by HubSpot
Add records to a segment
Adds contacts or other records, by ID, to a static segment (list).
Updated Sep 29, 2026
add-to-segment.md
Add records to a segment
Adds contacts or other records, by ID, to a static segment (list).
Note: Only MANUAL or SNAPSHOT segments take records; DYNAMIC ones follow their filters. The MCP tool asks the user to confirm each write.
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": { "hubspot": { "url": "https://mcp.hubspot.com" } } }
Call the MCP tool manage_segment.
Server URL: https://mcp.hubspot.com
API (official)
- Base URL: https://api.hubapi.com
- Endpoint:
PUT /crm/lists/2026-09/{listId}/memberships/add - Auth: send the header
Authorization: Bearer $HUBSPOT_API_KEY - Docs: https://developers.hubspot.com/docs/api-reference/latest/overview
Note: Use a service key or an app's static access token with the CRM scopes the calls need; paths carry a dated version such as 2026-09.
Before anything else, confirm access with the cheapest read-only call, like a list or a search. Never send or change anything to test access.
Rules
- Ask the user before anything that sends messages, costs money, or changes data, and say how many records it touches. One approval covers a batch the user has seen.
- Never print API keys.
