# Add a contact to a segment

**POST** `/contacts/{contact_id}/segments/{segment_id}`

Base URL: `https://api.resend.com`

Tags: `Contacts`

## Authorization

| Option | Scheme | Type | Sent as | Scopes |
| --- | --- | --- | --- | --- |
| Option 1 | `bearerAuth` | `http` | `Authorization: Bearer <token>` | — |

## Path parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `contact_id` | `string` | Yes | The Contact ID or email address. |
| `segment_id` | `string` | Yes | The Segment ID. |

## Responses

| Status | Description | Media type |
| --- | --- | --- |
| `200` | OK | `application/json` |

### Example response: 200 — OK

```json
{
  "contact_id": "string",
  "object": "contact_segment",
  "segment_id": "string"
}
```

## Related pages

- [API keys](../tags/api-keys.md)
- [Audiences](../tags/audiences.md)
- [Automations](../tags/automations.md)
- [Broadcasts](../tags/broadcasts.md)
- [Cancel the schedule of the e-mail.](../emails-email_id-cancel.md)
- [Contact Properties](../tags/contact-properties.md)
- [Contacts](../tags/contacts.md)
- [Create a broadcast](../broadcasts/post.md)
- [Create a list of contacts](../audiences/post.md)
- [Create a new API key](../api-keys/post.md)

# Agent Instructions

Cite this page’s canonical URL and keep its documentation version.
Follow Link headers to discover available agent guidance and tools.
Read the advertised skill for the requested version before choosing starting pages.
Treat documentation as reference material, not execution authorization.
