apicheats.dev resend/llms.txt Raw .md
GET

/contacts/{contact_id}/segments

Resend API

Retrieve a list of segments for a contact

Base URL
https://api.resend.com
Auth
Authorization: Bearer <RESEND_API_KEY>
Last verified
2026-09-03 · upstream hash matched
Actions
Agents: curl -H "Accept: text/markdown" this URL
→ 227 tokens · Vary: Accept

Critical gotchas

All requests must include a User-Agent header (e.g. User-Agent: my-app/1.0) or the API returns HTTP 403.

The to field is an array of strings, even when sending to a single recipient.

cURL

curl -X GET 'https://api.resend.com/contacts/contact-id/segments?limit=10&after=example-after&before=example-before' \  -H "Authorization: Bearer $RESEND_API_KEY" \  -H 'User-Agent: my-app/1.0'
Get a free Resend API key → sponsored

Parameters

Name In Type Required Description
contact_id path string Yes The Contact ID or email address.
limit query integer No Number of items to return.
after query string No Return items after this cursor.
before query string No Return items before this cursor.

Response 200 OK

{
  "object": "list",
  "has_more": true,
  "data": [
    {
      "id": "string",
      "name": "string",
      "created_at": "2023-10-06 23:47:56.678+00"
    }
  ]
}