List the groups recorded about people
/segmentsLists the segments recorded about people across this workspace's launched studies: a segment is a screening question or single-choice question the study tags with a name, such as Age band, and each person's answer is kept under that name. For each segment: its values, how many people have each value, how many have none, and which studies record it. Segment names are matched across studies ignoring case and surrounding spaces, so 'Age band' in one study and 'age band' in another are one segment; values are matched ignoring case. Call this before filtering search_answers by a group or writing a persona's criteria, and use the names and values exactly as given. A group that no study recorded (an age, a place, a habit nobody asked about) is not here and cannot be filtered on: say so rather than guessing. Counts are of people only (completed interviews that passed the quality check; never test-script interviews or twins), one per person and study, computed in code. Calls no model. (The MCP tool list_segments.)
Scope results:read · Credential a workspace API key (jean_sk_…, make one in the Jean app) or an OAuth access token. See scopes.
curl --fail-with-body "https://app.jeantechnologies.com/api/v1/segments" \
-H "Authorization: Bearer $JEAN_API_KEY"
Query
| Name | Type | Required | Notes |
|---|---|---|---|
studyIds | string | no | A comma-separated list of study ids. At most 2000 characters. |
Response · 200
| Field | Type | Required | Notes |
|---|---|---|---|
segments[] | object[] | yes | |
segments[].name | string | yes | The segment's name, as the newest study that records it spells it. Pass it as written. |
segments[].values[] | object[] | yes | |
segments[].peopleWithoutValue | integer | yes | People in the studies that record this segment who have no value for it. |
segments[].studies[] | object[] | yes | The launched studies whose design records this segment. |
studiesSearched | integer | yes | Launched studies read. |
peopleSearched | integer | yes | People in those studies who completed and passed the quality check. |
The full response schema
{
"type": "object",
"properties": {
"segments": {
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "The segment's name, as the newest study that records it spells it. Pass it as written."
},
"values": {
"type": "array",
"items": {
"type": "object",
"properties": {
"value": {
"type": "string"
},
"people": {
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991,
"description": "People with this value: completed, passed the quality check, not test scripts."
}
},
"required": [
"value",
"people"
],
"additionalProperties": false
}
},
"peopleWithoutValue": {
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991,
"description": "People in the studies that record this segment who have no value for it."
},
"studies": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"title": {
"type": "string"
}
},
"required": [
"id",
"title"
],
"additionalProperties": false
},
"description": "The launched studies whose design records this segment."
}
},
"required": [
"name",
"values",
"peopleWithoutValue",
"studies"
],
"additionalProperties": false
}
},
"studiesSearched": {
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991,
"description": "Launched studies read."
},
"peopleSearched": {
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991,
"description": "People in those studies who completed and passed the quality check."
}
},
"required": [
"segments",
"studiesSearched",
"peopleSearched"
],
"additionalProperties": false
}
Errors
| Status | Meaning |
|---|---|
400 | The request is not valid: the body is not JSON, a field is wrong (listed in errors), or a required Idempotency-Key is missing. |
401 | No key or token, or one that is wrong, expired or revoked. |
403 | The key or connection lacks the scope this operation needs. scope names it. |
404 | No such address, or no study (or conversation) with that id in this workspace. Another workspace's id is answered the same way. |
409 | The study is not in a state that allows this (the detail says what to do instead), or the Idempotency-Key was used with a different request. |
429 | Too many requests from this key or connection, or the workspace has reached its hourly or daily limit for model calls (title "Workspace model limit reached", window says which). Retry-After says when to try again. |
503 | The language model is not available. Try again later. |
Every error is application/problem+json, the same shape on every endpoint.