Auth

Authentication and API key management operations

Authentication and API key management operations

Generate a new API key

Generate a new API key for the authenticated user

POST
/auth/generate

Header Parameters

Authorizationstring

Bearer token for authentication

Response Body

curl -X POST "https://loading/api/v0/auth/generate" \
  -H "Authorization: string"
{
  "data": {
    "api_key": "string"
  },
  "message": "string"
}
{
  "details": "string",
  "error": "string"
}
{
  "details": "string",
  "error": "string"
}

List user's API keys

List all API keys for the authenticated user

GET
/auth/keys

Header Parameters

Authorizationstring

Bearer token for authentication

Response Body

curl -X GET "https://loading/api/v0/auth/keys" \
  -H "Authorization: string"
{}
{
  "property1": "string",
  "property2": "string"
}
{
  "property1": "string",
  "property2": "string"
}

Revoke an API key

Revoke an API key by ID

DELETE
/auth/keys/{id}

Path Parameters

idstring

API Key ID

Header Parameters

Authorizationstring

Bearer token for authentication

Response Body

curl -X DELETE "https://loading/api/v0/auth/keys/string" \
  -H "Authorization: string"
{
  "property1": "string",
  "property2": "string"
}
{
  "property1": "string",
  "property2": "string"
}
{
  "property1": "string",
  "property2": "string"
}
{
  "property1": "string",
  "property2": "string"
}