Authentication
Our APIs utilize the OAuth 2.0 framework for secure and seamless authentication. OAuth 2.0 provides various grant types to cater to different scenarios.
Here are the primary authentication endpoints that you can use to be authenticated before using any of our APIs
Client Credentials Grant
POST
https://iam.ants.tech/oauth/token
The Client Credentials Grant API is designed for client applications to obtain an accessToken
in the OAuth2.0 process before it could be able to make any other further requests to our APIs.
Headers
Name | Type | Description |
---|---|---|
Content-Type* | String | application/x-www-form-urlencoded |
Request Body
Name | Type | Description |
---|---|---|
grant_type* | String | Fixed value: |
client_id* | String | Your provided app Client ID. For example, |
client_secret* | String | Your provided app Client Secret. For example, |
scope* | String | Your requested scope. Currently, our APIs support these 4 kinds of scope: - - - - You can request multiple scopes by separating them by a comma. |
Refresh Token Grant
POST
https://iam.ants.tech/oauth/token
The Refresh Token grant is an OAuth 2.0 authentication flow that allows clients to obtain a new access token and optionally a new refresh token, using a refresh token that was previously issued. This grant type is useful to extend the validity of an access token without requiring the user to re-enter their credentials.
Headers
Name | Type | Description |
---|---|---|
Content-Type* | String | application/x-www-form-urlencoded |
Request Body
Name | Type | Description |
---|---|---|
refresh_token* | String | The refresh token obtained from a previous authorization grant. For example, eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpYXQiOjE2Njg3NjQzMzUxNzEsImV4cCI6MTcwMDMwMDMzNTE3MX0.7gWYfhloKffgU5y7IS7WYZtFr601LPT7zeeeq7wfd0s |
grant_type* | String | Fixed value: |
client_id* | String | Your provided app Client ID. For example, f512a40f-294c-4d32-a29b-868dbef40de7 |
client_secret* | String | Your provided app Client Secret. For example, 123123 |
Last updated