cloadyDocs
API ReferenceEndpointsAccount

Change an API token

Rename a token, change its capabilities or AI gateway limits, or pause and resume its AI gateway access (requires full scope).

PATCH
/api/me/tokens/{id}
AuthorizationBearer <token>

Personal API token (cldy_…)

In: header

Path Parameters

id*string

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

application/json

curl -X PATCH "https://example.com/api/me/tokens/string" \  -H "Content-Type: application/json" \  -d '{}'
{  "token": {    "id": "string",    "name": "string",    "scope": "full",    "capabilities": [      "read"    ],    "ai": {      "models": "all",      "budgetCents": 0,      "rpm": 1,      "sharedWith": "string",      "paused": {        "reason": "string",        "at": "string"      }    },    "prefix": "string",    "workspaceId": "string",    "lastUsedAt": "string",    "expiresAt": "string",    "createdAt": "string"  }}