Skip to content

Suggested

API Dashboard

FundamentalsAuthentication

Authentication

How to obtain an access token and send the required headers on Conomy API requests.

Conomy uses backend authentication. Your server exchanges client credentials for an access token, then sends that token as a bearer credential on protected API requests.

Every protected request should include:

HeaderPurpose
AuthorizationBearer access token returned by POST /auth.
x-api-keyAPI Gateway key assigned to your Conomy integration.
conomyhq-api-versionVersion selector for the current API contract. Optional — defaults to v1; send 24-04-2025 for v2.
User-AgentApplication identifier used for observability and support.
Attention

Never expose clientSecret, access tokens, or x-api-key in a browser application. Keep authentication on your backend.

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": "{CLIENT_ID}",
  "clientSecret": "{CLIENT_SECRET}"
}
Response
{
  "accessToken": "{ACCESS_TOKEN}",
  "tokenType": "Bearer",
  "expiresIn": 3600
}

Use the token to create the first operating resources in Recipes or validate the endpoint contract in API Reference.