Docs
API Keys

Delete API Key

Revoke a key. Apps using it stop working immediately.

DELETE/api-keys/{api_key_id}

Path Parameters

api_key_idstringrequired
API key ID.
import { Resend } from 'resend';

const client = new Resend('pw_xxxxxxxxx');

const { data, error } = await client.apiKeys.remove('{api_key_id}');
Try itDELETE/api-keys/%7Bapi_key_id%7D

No key yet? Create one in the dashboard.