Skip to main content
Resend Docs
current

Search documentation

Type to search this documentation.

On this pageOverview

List Contacts

Show all contacts.

The Segment ID to filter contacts by. If provided, only contacts in this Segment will be returned.

<>

  {isRequired ? 
  • limit (number) — Number of contacts 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 contacts will be returned in a single response.

  • limit (number) — Number of contacts to retrieve.

    • Maximum value: 100

    • Minimum value: 1

      </>}
      • after (string) — The ID after which we'll retrieve more contacts (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 contacts (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.contacts.list();
PHP
$resend = Resend::client('re_xxxxxxxxx');

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

resend.api_key = "re_xxxxxxxxx"

resend.Contacts.list()
Ruby
require "resend"

Resend.api_key = "re_xxxxxxxxx"

Resend::Contacts.list()
Go
package main

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

func main() {
	client := resend.NewClient("re_xxxxxxxxx")

	client.Contacts.List(&resend.ListContactsOptions{})
}
Java
import com.resend.Resend;
import com.resend.core.exception.ResendException;
import com.resend.services.contacts.model.ListContactsResponseSuccess;

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

        ListContactsResponseSuccess data = resend.contacts().list();
    }
}
.NET
using Resend;

IResend resend = ResendClient.Create( "re_xxxxxxxxx" ); // Or from DI

var resp = await resend.ContactListAsync();
Console.WriteLine( "Nr Contacts={0}", resp.Content.Data.Count );
cURL
curl -X GET 'https://api.resend.com/contacts' \
     -H 'Authorization: Bearer re_xxxxxxxxx'
CLI
resend contacts list
Response
{
  "object": "list",
  "has_more": false,
  "data": [
    {
      "id": "e169aa45-1ecf-4183-9955-b1499d5701d3",
      "email": "steve.wozniak@gmail.com",
      "first_name": "Steve",
      "last_name": "Wozniak",
      "created_at": "2026-10-06 23:47:56.678+00",
      "unsubscribed": false
    }
  ]
}
Suggest an edit

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

Export
Documentation menu