API Reference
Create a new access token
Creates a new sk_live_ API token. The raw token value is returned only once — store it securely.
AuthorizationBearer <token>
Enter your JWT token
In: header
Header Parameters
X-Workspace-Id?string
Required when authenticating with a JWT (not needed for API tokens)
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
curl -X POST "https://loading/access-tokens" \ -H "Content-Type: application/json" \ -d '{ "name": "CI/CD pipeline key", "scopes": [ "deploy", "read" ] }'{
"id": "tok_abc123",
"name": "CI Deploy Token",
"token": "sk_live_xxxxxxxxxxxx",
"scopes": [
"deploy"
],
"createdAt": "2024-01-01T00:00:00.000Z"
}Empty
Empty