Obtain an Access Token
To obtain an access token, make the following POST
request to the Auth endpoint.
Use the returned accessToken
in the Authorization
header for subsequent API requests.
Request
curl --location --request POST 'https://api.conomyhq.com/sandbox/auth' \
--header 'x-api-key: {YOUR_API_KEY}' \
--header 'User-Agent: {YOUR_CLIENT_APPLICATION}' \
--header 'Content-Type: application/json' \
--header 'Accept: */*' \
--header 'Host: api.conomyhq.com' \
--header 'Connection: keep-alive' \
--data-raw '{
"clientId": {YOUR_CLIENT_ID},
"clientSecret": {YOUR_CLIENT_SECRET}
}'
Response
{
"accessToken": {YOUR_ACCESS_TOKEN},
"tokenType": "Bearer",
"expiresIn": 3600
}
Last updated