List API Keys
List all API keys for the organization. The full token is not returned for security reasons.
GET
/api-keysResend Compatibility: Compatible
Requires an API key with api_keys:read permission.
Query Parameters
limitnumberMaximum number of results to return. Min 1, max 100. Default 20.
afterstringCursor for forward pagination.
beforestringCursor for backward pagination.
Response Fields
objectstringAlways "list".
has_morebooleanWhether there are more results available.
dataarrayArray of API key objects (without tokens). Each item includes id, name,
created_at, and last_used_at (null if the key has never been used).
curl -X GET 'https://api.postflare.dev/api-keys' \
-H 'Authorization: Bearer sk_xxxxxxxxx'// Set RESEND_BASE_URL=https://api.postflare.dev in the environment before
// the process starts. Without it the SDK sends to api.resend.com, silently.
import { Resend } from 'resend';
const resend = new Resend('sk_xxxxxxxxx');
const { data, error } = await resend.apiKeys.list();Response
{
"object": "list",
"has_more": false,
"data": [
{
"id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"name": "Production Key",
"created_at": "2026-01-01T00:00:00.000Z",
"last_used_at": null
}
]
}