Skip to Content
The Makinari API repo now includes an MCP Server — connect your AI models directly. View on GitHub →
MCP ServerToolsSegmentsPOST

Segments

Manage audience segments. Use action=“create” to create a new segment (requires name). Use action=“update” to update an existing segment (requires segment_id). Use action=“list” to get segments with filters.

Input Schema

ParameterTypeDescription
actionstringAction to perform on segments. Enum: create, list, update
segment_idstringSegment UUID (required for update)
namestringSegment name
descriptionstringDescription
audiencestringTarget audience category (e.g. professional, tech)
sizenumberEstimated audience size
estimated_valuenumberEstimated value
languagestringLanguage code (e.g. en)
is_activebooleanIs segment active?
attributesobjectAdditional attributes
site_idstringFilter by site UUID
user_idstringFilter by user UUID
limitnumberMax results
offsetnumberPagination offset

REST Endpoint

Actions map to sub-routes: create/create, list/get, update/update.

POST /api/agents/tools/segments/create POST /api/agents/tools/segments/get POST /api/agents/tools/segments/update
POST /api/agents/tools/segments/create Authorization: Bearer YOUR_API_KEY Content-Type: application/json { "site_id": "YOUR_SITE_ID", "name": "SaaS Decision Makers", "audience": "professional", "language": "en", "is_active": true }

Response:

{ "success": true, "segment": { "id": "...", "name": "SaaS Decision Makers" } }
Last updated on