import Nuntly from '@nuntly/sdk';
const client = new Nuntly({
apiKey: process.env['NUNTLY_API_KEY'], // This is the default and can be omitted
});
const apiKey = await client.apiKeys.delete('apk_01ka8k8s80gvx9604cn9am5st4');
console.log(apiKey.id);
{
"data": {
"id": "<string>"
}
}
API Keys
Delete API Key
Revoke an API key. Requests authenticating with this key will be rejected immediately.
DELETE
/
api-keys
/
{id}
JavaScript
import Nuntly from '@nuntly/sdk';
const client = new Nuntly({
apiKey: process.env['NUNTLY_API_KEY'], // This is the default and can be omitted
});
const apiKey = await client.apiKeys.delete('apk_01ka8k8s80gvx9604cn9am5st4');
console.log(apiKey.id);