Skip to main content
DELETE
/
api
/
v1
/
partners
/
{partnerId}
/
api-keys
/
{keyId}
Revoke an API key immediately
curl --request DELETE \
  --url https://dev-api-partner.onecluster.co/api/v1/partners/{partnerId}/api-keys/{keyId} \
  --header 'Authorization: <api-key>'
{
  "type": "https://api-partner.onecluster.co/errors/insufficient-funds",
  "title": "Insufficient Funds",
  "status": 422,
  "detail": "The account balance is ₦0.00. You need at least ₦50,000.00 to complete this transfer.",
  "instance": "/api/v1/payments/transfer",
  "correlationId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "code": "INSUFFICIENT_FUNDS"
}

Authorizations

Authorization
string
header
required

Your API key, formatted as: ApiKey ubn_sb_your_key_here

  • Sandbox keys start with ubn_sb_
  • Production keys start with ubn_pk_
  • Never use production keys during testing — they will charge real money

Headers

X-Correlation-ID
string<uuid>

Path Parameters

partnerId
string<uuid>
required
keyId
string<uuid>
required

Response

Key revoked. It is immediately invalid.