POST
POST /contacts/{contact_id}/segments/{segment_id} — Resend API
Resend APIAdd a contact to a segment
- Base URL
- https://api.resend.com
- Auth
- Authorization: Bearer <RESEND_API_KEY>
- Last verified
- 2026-10-20 · upstream hash matched
Actions Try in browser→
Agents: curl -H "Accept: text/markdown" this URL
→ 162 tokens · Vary: Accept
→ 162 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.
cURL
curl -X POST 'https://api.resend.com/contacts/contact-id/segments/segment-id' \ -H "Authorization: Bearer $RESEND_API_KEY" \ -H 'User-Agent: my-app/1.0'
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| contact_id | path | string | Yes | The Contact ID or email address. |
| segment_id | path | string | Yes | The Segment ID. |
Response 200 OK
{
"object": "contact_segment",
"contact_id": "string",
"segment_id": "string"
} Get a free Resend API key → sponsored Affiliate link - we may earn a commission, at no extra cost to you.