Retrieving Your Authentication Token
To use the DIMARC API, you must authenticate using a token in each of your calls. This guide explains how to obtain and use this authentication token.
Prerequisites
- An active DIMARC account.
Getting your API keys
To use our services via API, you will need an API key:
- In your dashboard, click on your profile icon in the top right corner, then go to the Organization > API section
- In the API Keys section, you can retrieve your ClientId and ClientSecret
Retrieving Your Authentication Token
GET /v2/token
Once you have your ClientId and ClientSecret, you can generate an authentication token by following these steps:
- Make a GET request to our authentication endpoint
https://api.dimarc.ai/v2/token
with your credentials as query parameters - Retrieve the returned JWT token
Request
curl --location 'https://api.dimarc.ai/v2/token?client_id=your-client-id&client_secret=your-client-secret'
Response
{ "access_token": "**************", "token_type": "x-api-key", "expires_in": "3600"}
Using the authentication token
To use the authentication token in your API requests, include it in the x-api-key
header of the request:
curl --request GET \ --url https://api.dimarc.ai/v2/endpoint \ --header 'x-api-key: **************'
Troubleshooting
If you encounter authentication problems, check the following points:
- Your credentials (ClientId and ClientSecret) are correctly entered
- Your token is not expired
- Your account has the necessary permissions for the requested operation
For additional assistance, contact our technical support at: support@dimarc.fr