import { Resend } from 'resend';
const resend = new Resend('re_xxxxxxxxx');
const { data, error } = await resend.apiKeys.list();
$resend = Resend::client('re_xxxxxxxxx');
$resend->apiKeys->list();
import resend
resend.api_key = "re_xxxxxxxxx"
resend.ApiKeys.list()
require "resend"
Resend.api_key = "re_xxxxxxxxx"
Resend::ApiKeys.list
package main
import "github.com/resend/resend-go/v3"
func main() {
client := resend.NewClient("re_xxxxxxxxx")
client.ApiKeys.List()
}
use resend_rs::{Resend, Result, list_opts::ListOptions};
#[tokio::main]
async fn main() -> Result<()> {
let resend = Resend::new("re_xxxxxxxxx");
let _api_keys = resend.api_keys.list(ListOptions::default()).await?;
Ok(())
}
import com.resend.*;
public class Main {
public static void main(String[] args) {
Resend resend = new Resend("re_xxxxxxxxx");
resend.apiKeys().list();
}
}
using Resend;
IResend resend = ResendClient.Create( "re_xxxxxxxxx" ); // Or from DI
var resp = await resend.ApiKeyListAsync();
Console.WriteLine( "Nr keys={0}", resp.Content.Count );
curl -X GET 'https://api.resend.com/api-keys' \
-H 'Authorization: Bearer re_xxxxxxxxx'
resend api-keys list
{
"object": "list",
"has_more": false,
"data": [
{
"id": "91f3200a-df72-4654-b0cd-f202395f5354",
"name": "Production",
"created_at": "2026-04-08 00:11:13.110779+00",
"last_used_at": "2026-11-01 17:09:51.813959+00"
}
]
}
List API keys
Retrieve a list of API keys for the authenticated user.
GET
/
api-keys
import { Resend } from 'resend';
const resend = new Resend('re_xxxxxxxxx');
const { data, error } = await resend.apiKeys.list();
$resend = Resend::client('re_xxxxxxxxx');
$resend->apiKeys->list();
import resend
resend.api_key = "re_xxxxxxxxx"
resend.ApiKeys.list()
require "resend"
Resend.api_key = "re_xxxxxxxxx"
Resend::ApiKeys.list
package main
import "github.com/resend/resend-go/v3"
func main() {
client := resend.NewClient("re_xxxxxxxxx")
client.ApiKeys.List()
}
use resend_rs::{Resend, Result, list_opts::ListOptions};
#[tokio::main]
async fn main() -> Result<()> {
let resend = Resend::new("re_xxxxxxxxx");
let _api_keys = resend.api_keys.list(ListOptions::default()).await?;
Ok(())
}
import com.resend.*;
public class Main {
public static void main(String[] args) {
Resend resend = new Resend("re_xxxxxxxxx");
resend.apiKeys().list();
}
}
using Resend;
IResend resend = ResendClient.Create( "re_xxxxxxxxx" ); // Or from DI
var resp = await resend.ApiKeyListAsync();
Console.WriteLine( "Nr keys={0}", resp.Content.Count );
curl -X GET 'https://api.resend.com/api-keys' \
-H 'Authorization: Bearer re_xxxxxxxxx'
resend api-keys list
{
"object": "list",
"has_more": false,
"data": [
{
"id": "91f3200a-df72-4654-b0cd-f202395f5354",
"name": "Production",
"created_at": "2026-04-08 00:11:13.110779+00",
"last_used_at": "2026-11-01 17:09:51.813959+00"
}
]
}
import { Resend } from 'resend';
const resend = new Resend('re_xxxxxxxxx');
const { data, error } = await resend.apiKeys.list();
$resend = Resend::client('re_xxxxxxxxx');
$resend->apiKeys->list();
import resend
resend.api_key = "re_xxxxxxxxx"
resend.ApiKeys.list()
require "resend"
Resend.api_key = "re_xxxxxxxxx"
Resend::ApiKeys.list
package main
import "github.com/resend/resend-go/v3"
func main() {
client := resend.NewClient("re_xxxxxxxxx")
client.ApiKeys.List()
}
use resend_rs::{Resend, Result, list_opts::ListOptions};
#[tokio::main]
async fn main() -> Result<()> {
let resend = Resend::new("re_xxxxxxxxx");
let _api_keys = resend.api_keys.list(ListOptions::default()).await?;
Ok(())
}
import com.resend.*;
public class Main {
public static void main(String[] args) {
Resend resend = new Resend("re_xxxxxxxxx");
resend.apiKeys().list();
}
}
using Resend;
IResend resend = ResendClient.Create( "re_xxxxxxxxx" ); // Or from DI
var resp = await resend.ApiKeyListAsync();
Console.WriteLine( "Nr keys={0}", resp.Content.Count );
curl -X GET 'https://api.resend.com/api-keys' \
-H 'Authorization: Bearer re_xxxxxxxxx'
resend api-keys list
{
"object": "list",
"has_more": false,
"data": [
{
"id": "91f3200a-df72-4654-b0cd-f202395f5354",
"name": "Production",
"created_at": "2026-04-08 00:11:13.110779+00",
"last_used_at": "2026-11-01 17:09:51.813959+00"
}
]
}
Was this page helpful?
⌘I