Skip to content

Suggested

API Dashboard

RecipesObtain an Access Token

Obtain an Access Token

To obtain an access token, make the following POST request to the Auth endpoint.

To obtain an access token, make the following POST request to the Auth endpoint.

Tip

Use the returned accessToken in the Authorization header for subsequent API requests.

Attention

Never expose clientSecret in frontend code. Exchange credentials only from trusted backend services.

Request
POST /sandbox/auth HTTP/1.1
Host: api.conomyhq.com
x-api-key: {YOUR_API_KEY}
conomyhq-api-version: 24-04-2025
User-Agent: MyApp/1.0
Content-Type: application/json
Accept: application/json

{
  "clientId": "{YOUR_CLIENT_ID}",
  "clientSecret": "{YOUR_CLIENT_SECRET}"
}
Response
{
  "accessToken": "{ACCESS_TOKEN}",
  "tokenType": "Bearer",
  "expiresIn": 3600
}