Skip to main content
DELETE
/
api-keys
/
{id}
Delete API key
curl --request DELETE \
  --url http://localhost:5001/api-keys/{id} \
  --header 'X-blnk-key: <api-key>'
Use blnk.ApiKeys.delete to revoke an API key by ID.
blnk.ApiKeys.delete
const response = await blnk.ApiKeys.delete('api_key_abc123', {
  owner: 'merchant_a',
});
FieldDescription
idID of the API key to revoke.
options.ownerOwner of the key. Required when authenticating with the master key.

Response shape

204 No Content
{}
Returns 204 No Content on success with an empty body, so response.data is null.

How API keys work

Scopes, the master key, and the auth model.

Revoke API key

HTTP request and response schema.

Need help?

We are very happy to help you make the most of Blnk, regardless of whether it is your first time or you are switching from another tool. To ask questions or discuss issues, please contact us or join our Discord community.