Context Management

List project context groups

Changed on

Lists the groups assigned to the project, in priority order. Requires org:context:read. Omit cursor for the first page. When the response's nextCursor is a string, pass it as cursor to fetch the next page; when it is null, there are no more results.

get/v2/projects/{projectId}/context-groups

Request

  • Base URL: https://api.gtx.dev
  • URL: https://api.gtx.dev/v2/projects/{projectId}/context-groups
  • Auth: one of:
    • HTTP bearer
    • HTTP bearer

Path parameters

projectIdstring required

Project ID.

Query parameters

cursorstring

The nextCursor from the previous page. Omit for the first page.

limitinteger

Maximum number of items to return, 1–100. Defaults to 50.

Headers

gt-api-version'2025-01-01.v0' | '2025-11-03.v1' | '2026-02-18.v1' | '2026-03-06.v1'

API contract version. Defaults to the oldest supported version.

Response

Page of project context groups

nextCursorstring nullable required

Opaque cursor for the next page; null when there are no more items. Pages are read independently, so items changed between requests may be missed or repeated.

Changes