Get a segment
One segment of the scope the call names: the workspace, or the keyword group in `groupId`. A segment saved in another scope is a 404.
API key minted via POST /v1/api-keys (format mk_live_...)
In: header
Path Parameters
Segment id (seg_...).
1 <= lengthQuery Parameters
Scope to one keyword group (grp_...): only people who mentioned that group's keywords, with that group's own tags, notes, mute, merges, activities and segments. Omit for the whole workspace.
1 <= lengthResponse Body
application/json
application/json
application/json
curl -X GET "https://api.mentio.dev/v1/segments/seg_abc123"{
"id": "string",
"name": "string",
"description": "string",
"filter": {
"platforms": [
"bluesky"
],
"tags": [
"string"
],
"minFollowers": 0,
"maxFollowers": 0,
"minMentions": 1,
"minNegative": 1,
"intents": [
"string"
],
"keywordKinds": [
"brand"
],
"neverKeywordKinds": [
"brand"
],
"notPlatforms": [
"bluesky"
],
"notTags": [
"string"
],
"notIntents": [
"string"
],
"newSinceDays": 1,
"linkHosts": [
"string"
],
"muted": true,
"stages": [
"not_contacted"
],
"automated": true,
"ownerIds": [
"string"
]
},
"groupId": "string",
"count": 0,
"createdAt": "string",
"updatedAt": "string"
}{
"error": {
"code": "unauthorized",
"message": "string",
"requestId": "string",
"retryAfterSeconds": 0
}
}{
"error": {
"code": "unauthorized",
"message": "string",
"requestId": "string",
"retryAfterSeconds": 0
}
}Delete a segment DELETE
Nobody in it is affected. Pass the `groupId` the segment was saved in.
List segments GET
Your saved segments, each with the number of people in it right now (segments are evaluated on every read, never materialized), plus presets you can save as a starting point. Pass a segment id to GET /v1/people to list its members. With `groupId`, that keyword group's own segments, counted over its own people; without it, the workspace's. A segment belongs to one scope and is not visible from another.