POST
/
v1
/
tenants
/
access-key
/
exchange
Exchange access key for JWT token
curl --request POST \
  --url https://staging.api.us.aptlydone.com/auth/v1/tenants/access-key/exchange \
  --header 'Content-Type: application/json' \
  --data '{
  "accessKey": "asd55asdasd55asdasd55asdsad"
}'
{
  "statusCode": 200,
  "timestamp": "2025-06-25T06:16:48.664Z",
  "message": "Success",
  "data": {
    "token": "1cbaa7f1-12f0-4ae8-a86a-0c36be518235"
  }
}

The Aptly API uses JWT Bearer Tokens for Authentication. To generate a JWT Bearer Token for use with the Aptly API you must first create a M2M Access Key for your user inside your Aptly admin panel.

Please visit the following links to create your Access Key

Once you have your Access Key pass it as the accessKey property to receive your JWT Bearer Token for use in all other Aptly API endpoints.

Body

application/json

Response

200
application/json

Returns JWT token

The response is of type object.