Skip to Content
Developers
Partner keys

Revoke a partner key; it stops working at once

Needs the partner-keys:write scope. About scopes

Try it with a test key

Sends to https://api.traki.io

Test keys only. The key stays in this page while it is open and is never saved.

/v1/account/partner-keys/{id}/revoke

Authorization

key
headerAuthorizationBearer <traki_account_…>

Path Parameters

id*string
Formatuuid

Response Body

Success

application/json
  1. response
id*string
Formatuuid
keyId*string
api*string
Value in"account""publisher""buyer"
mode*string
Value in"live""test"
name*string
preview*string
holder*|null
scopes*array<string>
ipAllowlist*array<string>
version*string
state*string
Value in"active""suspended""revoked""expired"
suspendedReason*string|null
expiresAt*string|null
lastUsedAt*string|null
lastUsedIp*string|null
rotatedAt*string|null
previousExpiresAt*string|null
createdBy*string|null
createdAt*string
Example Request
curl -X POST 'https://api.traki.io/v1/account/partner-keys/497f6eca-6276-4993-bfeb-53cbbbba6f08/revoke' \  -H "Authorization: Bearer $TRAKI_KEY"
Example Response
{  "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",  "keyId": "string",  "api": "account",  "mode": "live",  "name": "string",  "preview": "string",  "holder": {    "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",    "name": "string"  },  "scopes": [    "string"  ],  "ipAllowlist": [    "string"  ],  "version": "string",  "state": "active",  "suspendedReason": "string",  "expiresAt": "string",  "lastUsedAt": "string",  "lastUsedIp": "string",  "rotatedAt": "string",  "previousExpiresAt": "string",  "createdBy": "string",  "createdAt": "string"}