Skip to main content
GET
/
api
/
v1
/
context
/
items
List context items in the caller’s organization
curl --request GET \
  --url https://api.staging.getmodus.com/api/v1/context/items \
  --header 'Authorization: Bearer <token>'
{
  "contextItems": [
    {
      "uid": "7a3f9d2c-1111-4000-a000-000000000abc",
      "orgId": "00000000-0000-0000-0000-000000000001",
      "contextType": "note",
      "content": {},
      "userFeedback": "neutral",
      "topics": [
        "analytics",
        "q3"
      ],
      "dataPath": [
        "salesforce",
        "00000000-0000-4000-a000-000000000111",
        "Account",
        "Name"
      ],
      "createdAt": "2026-05-01T10:00:00.000Z",
      "updatedAt": "2026-05-11T10:00:00.000Z",
      "description": "Q3 churn analysis notes",
      "connectionId": "00000000-0000-4000-a000-000000000111",
      "selectionId": "00000000-0000-4000-a000-000000000222",
      "lastUpdateMetadata": {
        "action": "auto_analysis",
        "timestamp": "2026-05-11T10:00:00.000Z"
      }
    }
  ],
  "nextPageToken": "eyJjcmVhdGVkQXQiOiIyMDI2LTA1LTAxIiwidWlkIjoiYWJjIn0",
  "totalCount": 142
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Query Parameters

pageToken
string

Opaque page token from a previous response's nextPageToken. Omit for the first page. AIP-158.

Example:

"eyJjcmVhdGVkQXQiOiIyMDI2LTA1LTAxIiwidWlkIjoiYWJjIn0"

pageSize
number
default:25

Max items per page. Defaults to 25 (the legacy list-context-items-olap action defaulted to 100; the new clampPageSize helper standardises every modus-api list surface on 25). Clamped to 200. AIP-158.

Required range: 1 <= x <= 200
Example:

25

contextTypes
string[]

Filter by one or more context types (repeat the query param). Example: ?contextTypes=note&contextTypes=saved_query.

Example:
["note", "saved_query"]
verificationStatuses
string[]

Filter by verification status (negative / neutral / positive).

Example:
["positive"]
searchQuery
string

Case-insensitive substring search over content + description + topics.

Example:

"churn"

topics
string[]

Filter by topic tag.

Example:
["analytics"]

Response

contextItems
object[]
required

Page of context items. Empty when no items match the filter.

nextPageToken
string | null
required

Opaque token for the next page; null when this was the last page. Pass as pageToken on the next request. AIP-158. Required-but-nullable — the field is always present on every response.

Example:

"eyJjcmVhdGVkQXQiOiIyMDI2LTA1LTAxIiwidWlkIjoiYWJjIn0"

totalCount
number | null

Approximate total count of matching items (when known). Some filter combinations skip this for cost reasons.

Example:

142