Create a segment
Save a named filter over your people. With `groupId` the segment belongs to that keyword group: it is listed, counted and changed only there, and its name only has to be unique in the group.
API key minted via POST /v1/api-keys (format mk_live_...)
In: header
Query 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 <= length1 <= length <= 80""length <= 500{}Response Body
application/json
application/json
application/json
application/json
application/json
curl -X POST "https://api.mentio.dev/v1/segments" \ -H "Content-Type: application/json" \ -d '{ "name": "string" }'{
"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
}
}{
"error": {
"code": "unauthorized",
"message": "string",
"requestId": "string",
"retryAfterSeconds": 0
}
}{
"error": {
"code": "unauthorized",
"message": "string",
"requestId": "string",
"retryAfterSeconds": 0
}
}Update your annotations on a person PATCH
Tags, notes, mute, and the outreach owner (a workspace member; null clears) and stage, for your workspace only. Mute hides their posts from your feed and every channel; ingest and billing never change. With `groupId` the annotations are that keyword group's own: `muted` hides the person, and the accounts that group merged into them, from the mentions of that group's keywords only (feed, alerts and digests), and the group's tags show on those mentions next to the workspace's. A mute set without `groupId` hides them everywhere.
Delete a segment DELETE
Nobody in it is affected. Pass the `groupId` the segment was saved in.