Skip to main content
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
accessKey
string
required

accessKey generated from the Aptly account

Example:

"asd55asdasd55asdasd55asdsad"

Response

Returns JWT token

statusCode
number
required

HTTP Status code

Example:

200

timestamp
string
required

Timestamp of the response

Example:

"2025-06-25T06:16:48.664Z"

message
string
required

Response message

Example:

"Success"

data
object
required

Response data