Delete API key

The method allows you to delete the user's API key

Request:

Parameter

Required

Type

Description

userId

Yes

String

User ID

keyId

Yes

String

Api key ID

Delete API key

POSThttps://ocp.onchainpay.io/partner/api/delete-api-keys
Header parameters
Body
userIdstring

User ID

organizationIdstring

Organization ID

keyIdstring

API key ID

Response
Body
success*boolean

Request success indicator

response*DeletePartnerApiKeyResponse (null)

The body of the api key deletion response

Request
const response = await fetch('https://ocp.onchainpay.io/partner/api/delete-api-keys', {
    method: 'POST',
    headers: {
      "Content-Type": "application/json"
    },
    body: JSON.stringify({}),
});
const data = await response.json();
Response
{
  "success": false
}

Last updated