Skip to main content
POST
/
api
/
auth
/
api-keys
/
{keyId}
/
revoke
curl -X POST https://oro-tradebook-devnet.up.railway.app/api/auth/api-keys/key-uuid-1/revoke \
  -H "x-api-key: your-api-key"
{
  "success": true,
  "data": {
    "keyId": "key-uuid-1",
    "keyName": "Trading Key",
    "revokedAt": "2024-01-15T12:00:00.000Z"
  }
}

Overview

Permanently revokes an API key. This action cannot be undone. Authorization Required: PARTNER_UPDATE_AUTHORITY or ADMIN

Headers

x-api-key
string
required
Your API key for authentication

Path Parameters

keyId
string
required
The unique identifier of the API key to revoke

Response

success
boolean
Whether the request was successful
data
object
curl -X POST https://oro-tradebook-devnet.up.railway.app/api/auth/api-keys/key-uuid-1/revoke \
  -H "x-api-key: your-api-key"
{
  "success": true,
  "data": {
    "keyId": "key-uuid-1",
    "keyName": "Trading Key",
    "revokedAt": "2024-01-15T12:00:00.000Z"
  }
}