API Keys

Create and manage API Keys through the Resend API.

Operations

MethodEndpointDescription
GET/api-keysRetrieve a list of API keys
POST/api-keysCreate a new API key
PATCH/api-keys/{api_key_id}Update an existing API key
DELETE/api-keys/{api_key_id}Remove an existing API key

Example

Retrieve a list of API keys, with the TypeScript SDK:

ts
import { Resend } from "@octridev/resend";

const client = new Resend({
  // Optional: replaces the default server and any server an operation declares.
  baseUrl: "https://api.resend.com",
  auth: { bearerAuth: process.env.API_TOKEN! },
});

const result = await client.apiKeys.list();
console.log(result);
Nine more languages

The same call exists in every SDK. See SDKs for the other nine.