POST/api/v1/oauth/token
Issue a token
OAuth2 client credentials: `client_id` is the key's name, `client_secret` the key. The token is valid for 15 minutes; a revoked key stops its tokens at once.
Body (application/x-www-form-urlencoded)
grant_type | string (client_credentials) | |
client_id | string | Name of the key |
client_secret | string | The key (`ak_...`) |
Responses: 200 Token — Token400 Invalid request401 Invalid client credentials
Token
access_token | string | |
token_type | string (Bearer) | |
expires_in | integer | Seconds |
scope | string | Project codes, or `all` |