Deletes an API key. Any applications using this key will lose access immediately.
DELETE
/
v1
/
api_keys
/
{id}
JavaScript
import Charcoal from '@charcoalhq/sdk';
const client = new Charcoal({
apiKey: process.env['CHARCOAL_API_KEY'], // This is the default and can be omitted
});
const apiKey = await client.apiKeys.delete('id');
console.log(apiKey.success);
import Charcoal from '@charcoalhq/sdk';
const client = new Charcoal({
apiKey: process.env['CHARCOAL_API_KEY'], // This is the default and can be omitted
});
const apiKey = await client.apiKeys.delete('id');
console.log(apiKey.success);