POST /auth
Authenticates a client application and returns an access token.
POST
Authentication/authHeaders
The API key used for authentication when making requests to the API Gateway.
API version selector for Conomy endpoints. Use 24-04-2025 for the current version.
Identifies the application making the request.
Request body
The unique identifier assigned to the client requesting authentication.
The secret key associated with the client ID
Responses
accessTokenstringrequiredThe JWT (JSON Web Token) issued. It is used to authorize API requests.
tokenTypestringrequiredndicates the type of token issued.
expiresInnumberrequiredThe duration (in seconds) for which the access token remains valid before it expires.
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
{
"clientId": "string",
"clientSecret": "string"
} Response
{
"accessToken": "string",
"tokenType": "string",
"expiresIn": 0
}