This page will help you get started with obtaining an access token.
To facilitate API interactions, we begin by retrieving the identification details through this initial operation. This is intended for server-to-server communication, with clients expected to make this request from their own server-side
environments.
To gain access to restricted resources and make authorized requests to our API, please proceed with acquiring an access token by completing the following steps.
1. Set the Request Details
- URL:
<https://public-gateway.aws.stg.mondia.io/api/marketplace/auth/token>
2. Add the Required Headers
Header | Value |
---|---|
Content-Type | application/x-www-form-urlencoded |
accept | application/json |
x-api-key | knoditaaFTamoGzp36s5h9ikLMZbVKEaaGfd62EP |
3. Prepare the Request Body
- Using the following parameters, make a request against the
auth/token
endpoint:grant_type
: Set this toclient_credentials
.client_id
: Set this to the unique client Id provided to you from Mondia.client_secret
: Set this to the client secret provided to you from Mondia.
access_token
:Cef215fd5-5cb2-4d2f-8bd0-e8463ff2a500
.
Request Body | Description | Required |
---|---|---|
grant_type | Choose from: client_credentials , user_credentials , refresh_token , authorization_code | Yes |
client_id | A unique ID provided to you | Yes |
client_secret | The client secret you received | Yes |
code | For the authorization_code grant type | No |
uuid | For user_credentials | No |
refresh_token | For the refresh_token grant type | No |
Access Token
This initial access token is referred to as the "client_credentials".
Expiration Time: 7 days
HTTP Method: POST
URL: https://public-gateway.aws.stg.mondia.io/api/marketplace/auth/token
4. Make the Request
With your URL, header settings, and request payload in place, complete the API interaction by sending a POST request.
This step will return the access token necessary for logging in:
Keep this token safe, as it allows you to make authenticated requests until it expires.