All tools
ResendR

by Resend

Add a contact to a segment

Adds an existing contact, found by ID or email address, to a segment that broadcasts can target.

View on GitHub
Updated Sep 27, 2026Available asMCPCLIAPI

Description

The contact must already exist; to put a new contact in segments as you create it, pass `segments` to Create a contact. A broadcast goes to one segment, so segment membership decides who receives it.

add-contact-to-segment.md

Add a contact to a segment

Adds an existing contact, found by ID or email address, to a segment that broadcasts can target.

The contact must already exist; to put a new contact in segments as you create it, pass segments to Create a contact. A broadcast goes to one segment, so segment membership decides who receives it.

Set up

Use the first option your agent supports.

MCP (official, remote)

Add this server to your agent's MCP settings, then sign in when asked.

{ "mcpServers": { "resend": { "url": "https://mcp.resend.com/mcp" } } }

Call the MCP tool add-contact-to-segment.

Server URL: https://mcp.resend.com/mcp

CLI (official)

Install the command, then confirm it runs.

npm install -g resend-cli
resend --version

Run resend contacts add-segment.

Set $RESEND_API_KEY in your environment first (get a key: https://resend.com/api-keys).

API (official)

Before doing anything else, make one read-only call to confirm access.

Rules

  • Ask the user before anything that sends messages, costs money, or changes data.
  • Never print API keys.

Built from these files in the repository

The layout and the rules come from lib/catalog/render-markdown.ts, the set-up wording from lib/catalog/render-access.ts.

Ways in

RouteSourceCallRequiredDocs
MCPOfficial · remoteadd-contact-to-segmentOAuthDocs
CLIOfficialresend contacts add-segmentAPI key in $RESEND_API_KEYDocs
APIOfficialPOST /contacts/:contact_id/segments/:segment_idAPI key in $RESEND_API_KEYDocs

Workflows using Add a contact to a segment

No workflows yet
No published workflow uses Add a contact to a segment yet.