Overview
Segments are named collections of people that enable you to organize, monitor, and analyze specific cohorts within your data. The Segments Create endpoint initializes a new empty segment with a unique identifier that can be populated using the segments/members/add endpoint. Common Use Cases:- Track high-value prospect lists for sales campaigns
- Monitor customer cohorts for lifecycle signals (deaths, job changes, relocations)
- Organize contacts by geography, industry, or behavioral attributes
- Create watchlists for compliance and fraud prevention purposes
Request
Headers
Your API key for authentication
application/json
Request Body
The request body must be a JSON object with the following fields:The name of the segment. Must be unique within your organization. This is the primary identifier you’ll use to reference the segment.
Optional description of the segment’s purpose, selection criteria, or business context. Useful for documenting segment composition and intent.
Request Example
Response
Success Response
The API returns a JSON object containing the newly created segment’s identifier along with request metadata.Unique identifier for this API request, useful for debugging and request tracking
UUID of the newly created segment. Store this ID to add members, retrieve members, and access signals for this segment.
ISO 8601 timestamp (YYYY-MM-DDTHH:MM:SS.ffffffZ format) indicating when the segment was created
Error Responses
The API returns standard HTTP status codes with detailed error messages:401- Unauthorized: Invalid or missing API key in x-api-key header404- Not Found: Segment name already exists (names must be unique per organization) OR attempting to use v1 API version (only v2 is supported)405- Method Not Allowed: Using GET, PUT, DELETE, or other methods (only POST is supported)422- Unprocessable Entity: Request body is not valid JSON, missing requirednamefield, or invalid data types500- Internal Server Error: Unexpected server error occurred
Error Examples
Duplicate segment name:Implementation Notes
- API Version: This endpoint only supports v2. Using
/v1/segments/createwill return a 404 error. - HTTP Method: Only POST requests are accepted. GET, PUT, DELETE, and PATCH requests will return a 405 error.
- Uniqueness: Segment names must be unique within your organization. Attempting to create a duplicate name returns a 404 error.
- Initial State: Newly created segments start empty (
current_size: 0) with no members. - Storage: The
segment_idis persisted and should be stored in your system for future operations. - Source Attribution: Segments created via API are automatically tagged with
source: "api"for tracking purposes.
Next Steps
After creating a segment, you’ll typically want to:- Add members using the
/v2/segments/members/addendpoint with Minerva PIDs - Monitor signals using endpoints like
/v2/segments/signals/deathsto track lifecycle events - Retrieve members using
/v2/segments/membersto export or process the segment - Track size by checking the
current_sizefield in the segment metadata
Related Endpoints
- Add Members to Segment - Populate the segment with Minerva PIDs
- Get Segment Members - Retrieve all members with pagination
- Death Signals - Monitor death events for segment members
- Remove Members - Remove specific PIDs from the segment

