API 레퍼런스
Segments
Management API: GET /sites/{id}/segments
List contact segments with their rules and live audience counts. Use a segment id as campaigns.* audience. Errors: FORBIDDEN, INVALID_CURSOR.
Parameters
idstring · pathrequiredWebsite id. Get it from sites.list or from sites.create.
limitinteger · queryMaximum number of items to return, 1–100. Defaults to 20.
cursorstring · queryOpaque cursor from the previous page's nextCursor. Omit for the first page.
Response 200
dataobject[]requireddata[].idstringrequireddata[].namestringrequireddata[].descriptionstring | nullrequireddata[].isSystembooleanrequiredSystem segments (e.g. all subscribers) are read-only.
data[].systemKeystring | nullrequireddata[].rulesobjectrequireddata[].countsobjectrequiredLive audience counts: matched = all contacts matching the rules; sendable = with valid email consent.
data[].counts.matchedintegerrequireddata[].counts.sendableintegerrequiredhasMorebooleanrequiredTrue when another page exists; pass nextCursor to fetch it.
nextCursorstring | nullrequiredCursor for the next page, or null on the last page.
Errors
FORBIDDEN403INVALID_CURSOR400
MCP tool segments_list
curl -X GET "https://app.kanorio.com/api/v1/sites/{id}/segments" \
-H "Authorization: Bearer $KANORIO_TOKEN"Response
{
"data": [
{
"id": "seg_example01",
"name": "Ordered in the last 90 days",
"description": null,
"isSystem": false,
"systemKey": null,
"rules": {
"lastOrderWithinDays": 90
},
"counts": {
"matched": 340,
"sendable": 320
}
}
],
"hasMore": false,
"nextCursor": null
}