import { Resend } from 'resend';
const resend = new Resend('re_xxxxxxxxx');
const { data, error } = await resend.apiKeys.list();
{
"object": "list",
"has_more": false,
"data": [
{
"id": "91f3200a-df72-4654-b0cd-f202395f5354",
"name": "Production",
"created_at": "2023-04-08T00:11:13.110779+00:00",
"last_used_at": "2024-11-01T17:09:51.813959+00:00"
}
]
}
Retrieve a list of API keys for the authenticated user.
import { Resend } from 'resend';
const resend = new Resend('re_xxxxxxxxx');
const { data, error } = await resend.apiKeys.list();
{
"object": "list",
"has_more": false,
"data": [
{
"id": "91f3200a-df72-4654-b0cd-f202395f5354",
"name": "Production",
"created_at": "2023-04-08T00:11:13.110779+00:00",
"last_used_at": "2024-11-01T17:09:51.813959+00:00"
}
]
}
import { Resend } from 'resend';
const resend = new Resend('re_xxxxxxxxx');
const { data, error } = await resend.apiKeys.list();
{
"object": "list",
"has_more": false,
"data": [
{
"id": "91f3200a-df72-4654-b0cd-f202395f5354",
"name": "Production",
"created_at": "2023-04-08T00:11:13.110779+00:00",
"last_used_at": "2024-11-01T17:09:51.813959+00:00"
}
]
}
Was this page helpful?