API keys
View as Markdown

Revoke an API key

No API key can call this route. It needs a signed-in dashboard user with the right role; a key answers 403. About scopes

DELETE
/api/v1/api-keys/{id}

Authorization

Authorization
Required
Bearer <token>

An API key: gpy_test_… or gpy_live_… (or an agent key, agk_…).

In: header

Path Parameters

id
Required
string

Format: "uuid"

Query Parameters

reasonstring

rolled ends a rolled key’s 24-hour overlap early. Default manual.

Value in: "manual" | "rolled"
curl -X DELETE "https://globalymint.com/api/v1/api-keys/3fa85f64-5717-4562-b3fc-2c963f66afa6?reason=manual" \
  -H "Authorization: Bearer <token>"

The revoked key.

{
  "data": {
    "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
    "name": "string",
    "mode": "test",
    "keyPrefix": "gpy_",
    "keyHint": "aB3x",
    "keyType": "developer",
    "scopes": [
      "string"
    ],
    "expiresAt": "2019-08-24T14:15:22Z",
    "lastUsedAt": "2019-08-24T14:15:22Z",
    "revokedAt": "2019-08-24T14:15:22Z",
    "revokedReason": "manual",
    "replacedBy": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
    "createdAt": "2019-08-24T14:15:22Z"
  },
  "_agent": {
    "summary": "string",
    "status": "ok",
    "next_actions": [
      "string"
    ],
    "warnings": [
      "string"
    ]
  },
  "api_version": "2026-07-01"
}