Authorizations
tip
Need some changes ? More endpoints ? Please open a github issue or contact us at love@misakey.com.
note
Values used in the examples are fake and do not correspond to any real values.
Client Credentials Flow#
The endpoint follows the OAuth2.0 protocol for Access Token Request and Access Token Response.
Request#
Endpoint:
Request Body:
with
grant_type: (string) client_credentials must be set as it is the flow requested. Others would lead to a failure error.scope: (string) should be empty. We don't handle special scope for organization as off today.client_id: (string) (uuid) the unique id of your organization.client_secret: (string) the secret of your organization.
Response#
Response Headers:
Response Body:
with:
access_token: (string) the bearer token owning your organization authorizations.token_type: (string) the type of token delivered (always set to bearer).expires_in: (integer) the number of seconds before the token will expire. A new token must be generated at this moment. Ideally you should renew it just before the last delivered is expired.scope: (string) scopes contained in the token. An empty string today.