Delete API Key
Delete an API key by ID. You cannot delete the API key that is currently being used for authentication.
DELETE
/api-keys/{api_key_id}Resend Compatibility: Compatible
Requires a full_access API key.
Path Parameters
api_key_idstringrequiredThe ID of the API key to delete.
Response Fields
objectstringAlways "api_key".
idstringThe API key ID.
deletedbooleanAlways true.
curl -X DELETE 'https://api.postflare.app/api-keys/a1b2c3d4-e5f6-7890-abcd-ef1234567890' \
-H 'Authorization: Bearer re_xxxxxxxxx'import { Resend } from 'resend';
const resend = new Resend('re_xxxxxxxxx');
const { data, error } = await resend.apiKeys.remove(
'a1b2c3d4-e5f6-7890-abcd-ef1234567890'
);Response
{
"object": "api_key",
"id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"deleted": true
}