API & IntegrationReference
Agent tokens
Create and manage API tokens for programmatic access to the platform.
List agent tokens
Authorization
bearer AuthorizationBearer <token>
In: header
Response Body
application/json
curl -X GET "https://loading/agent-tokens"{
"tokens": [
{
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"orgId": "25b2c2d5-a7fc-47d0-89e4-8709a1560bfa",
"name": "string",
"scopes": [
"string"
],
"lastUsedAt": "2019-08-24T14:15:22Z",
"expiresAt": "2019-08-24T14:15:22Z",
"createdAt": "2019-08-24T14:15:22Z"
}
]
}Empty
Create an agent token
Authorization
bearer AuthorizationBearer <token>
In: header
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
curl -X POST "https://loading/agent-tokens" \ -H "Content-Type: application/json" \ -d '{ "name": "string", "scopes": [ "string" ] }'{
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"orgId": "25b2c2d5-a7fc-47d0-89e4-8709a1560bfa",
"name": "string",
"scopes": [
"string"
],
"lastUsedAt": "2019-08-24T14:15:22Z",
"expiresAt": "2019-08-24T14:15:22Z",
"createdAt": "2019-08-24T14:15:22Z",
"token": "string"
}Empty
Empty
Revoke an agent token
Authorization
bearer AuthorizationBearer <token>
In: header
Path Parameters
id*string
Token UUID
Format
uuidResponse Body
curl -X DELETE "https://loading/agent-tokens/497f6eca-6276-4993-bfeb-53cbbbba6f08"Empty
Empty
Empty