Skip to main content
Resend Docs
current

Search documentation

Type to search this documentation.

On this pageOverview

List API keys

Retrieve a list of API keys for the authenticated user.

<>

  {isRequired ? 
  • limit (number) — Number of API keys to retrieve.

    • Default value: 20

    • Maximum value: 100

    • Minimum value: 1

: <>

Note that the limit parameter is optional. If you do not provide a limit, all API keys will be returned in a single response.

  • limit (number) — Number of API keys to retrieve.

    • Maximum value: 100

    • Minimum value: 1

      </>}
      • after (string) — The ID after which we'll retrieve more API keys (for pagination). This ID will not be included in the returned list. Cannot be used with the before parameter.

      • before (string) — The ID before which we'll retrieve more API keys (for pagination). This ID will not be included in the returned list. Cannot be used with the after parameter.

      </>

Node.js
import { Resend } from 'resend';

const resend = new Resend('re_xxxxxxxxx');

const { data, error } = await resend.apiKeys.list();
PHP
$resend = Resend::client('re_xxxxxxxxx');

$resend->apiKeys->list();
Python
import resend

resend.api_key = "re_xxxxxxxxx"
resend.ApiKeys.list()
Ruby
require "resend"

Resend.api_key = "re_xxxxxxxxx"

Resend::ApiKeys.list
Go
package main

import "github.com/resend/resend-go/v4"

func main() {
	client := resend.NewClient("re_xxxxxxxxx")
	client.ApiKeys.List()
}
Rust
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(())
}
Java
import com.resend.Resend;
import com.resend.core.exception.ResendException;

public class Main {
    public static void main(String[] args) throws ResendException {
        Resend resend = new Resend("re_xxxxxxxxx");

        resend.apiKeys().list();
    }
}
.NET
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
curl -X GET 'https://api.resend.com/api-keys' \
     -H 'Authorization: Bearer re_xxxxxxxxx'
CLI
resend api-keys list
Response
{
  "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"
    }
  ]
}
Suggest an edit

Propose a replacement for this page. The site team reviews it before applying any changes.

Export
Documentation menu