Work Items and OKRs

GET /workspace/{workspaceId}/items/flat

Changed on

Get all workspace working items and OKRs metadata by the workspace ID (flattened format)

Request

  • Base URL
    https://api.craft.io
  • URL
    https://api.craft.io/workspace/{workspaceId}/items/flat
  • Auth
    API key in header x-api-key

Path parameters

workspaceIdstring required

Query parameters

fieldsstring

Comma separated field list to be included in response, set "all" for all fields

pagenumber double
limitnumber double

Items per page (1-500).

updated_fromstring date-time

Get list of items whose updateTime is at or after this date (e.g. 2023-08-09T12:33:18.615Z ). Matches the updateTime field this endpoint returns, so the largest one you have seen can be passed straight back as an incremental-sync cursor.

updated_tostring date-time

Get list of items whose updateTime is before this date (e.g. 2023-09-09T23:22:10.531Z )

typestring

Filter by item types, comma separated. Accepts canonical type names (see the 422 error for the full list) and this workspace's type labels. A canonical name ALWAYS wins over a label that collides with it, and Craft's stock labels do collide: "Story" is the default label of canonical feature and "Initiative" of canonical keyresult, so type=story means canonical story (labelled "Subtask") rather than the type displayed as "Story". Filter by the typeKey a read returns, not the type label, to be unambiguous.

parentsstring

Filter by parent/ancestor IDs (comma separated). MUST be internal numeric IDs (e.g. 2305843010635321210), NOT shortIds like CRK-25832 — the SQL casts to ::bigint[], so a shortId yields zero matches (200 with an empty list, no error). To resolve a shortId first, call the same list endpoint with ?shortId=<KEY-N> to get the numeric id.

parentIdstring
keywordstring

Case-insensitive substring search over title + description + linked dev-tool issue keys (e.g. a Jira key like PROJ-123) + attachment metadata. Min 2 chars; shorter values are ignored.

shortIdstring

Exact match on textual short id (e.g. CRK-20091). When supplied, takes precedence over keyword and resolves via the (ct_craft_product__id, short_id) unique index.

devToolKeystring

Exact match on a linked dev-tool issue key — Jira, Azure DevOps, or another connected integration (e.g. EP-402). Strongly consistent: resolves against the link tables' key unique indexes, so it finds every linked item — unlike keyword, which only carries a dev key after the item's title/description is edited after linking and therefore misses linked-but-unedited items. Case-sensitive (keys are stored upper-case). Combines with other filters (status, type, …).

statusstring
importancestring
assigneestring
sprintstring
quarterstring
labelsstring
createdBystring
created_fromstring date-time
created_tostring date-time
customFieldsstring

Response

List of workspace items, OKRS and their metadata

Changes

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status