post
https://staging.ankatech.co/api/v3/auth/token
OAuth 2.0 token endpoint supporting four grant types.
Request Format: application/x-www-form-urlencoded (OAuth 2.0 standard)
Supported Grant Types:
- password: User authentication (RFC 6749 Section 4.3)
- client_credentials: Application authentication (RFC 6749 Section 4.4)
- refresh_token: Token refresh (RFC 6749 Section 6)
- urn:ietf:params:oauth:grant-type:token-exchange: Impersonation (RFC 8693)
Security:
- Rate limited: 10 attempts/min for password grant, 30/min for refresh
- Account lockout: 5 failed attempts → 15 min lockout
- Tokens are JWTs signed with RS256 (RSA-3072)
Token Claims:
- HUMAN tokens: audience=ankasecure-admin, includes loginId (email)
- APPLICATION tokens: audience=ankasecure-core, includes kp/kpv (key permissions)
All tokens include: sub, iss, aud, exp, iat, jti, tenantId, scopes, userType
Recent Requests
Log in to see full request history
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||
Loading…