API ReferenceAuthentication API

Create API key

Creates a new API key for the authenticated user. API keys provide programmatic access without requiring user credentials.

POST
/auth/api-keys
Authorization<token>

Type "Bearer" followed by a space and JWT token.

In: header

API key creation request with name and optional scopes

Response Body

application/json

application/json

application/json

application/json

curl -X POST "https://loading/auth/api-keys" \  -H "Content-Type: application/json" \  -d '{}'
{}
{
  "code": "string",
  "error": "string",
  "message": "string",
  "request_id": "string"
}
{
  "code": "string",
  "error": "string",
  "message": "string",
  "request_id": "string"
}
{
  "code": "string",
  "error": "string",
  "message": "string",
  "request_id": "string"
}