API Reference

The Context Pack Object

Properties
context_pack_id
string
Unique ID of the context pack.
workspace_id
string
The ID of the workspace that contains the context pack.
project_id
string, nullable
The ID of the project that contains the context pack.
created
datetime
UTC timestamp for when the context pack was created.
updated
datetime
UTC timestamp for when the context pack was updated.
name
string
Name of the context pack.
description
string, nullable
Description of the context item.
versions
List of versions for the context pack; can be empty. If the context pack has versions, by default the list will include only the context pack's primary version. If the versions expand is used, the list will include all versions for the context pack.
The Context Pack Object - Fully Expanded
{
   "context_pack_id": "cpk_2qRzu8geIvfudcJTwP0pur4TbMJ",
   "workspace_id": "wrk_2nKxr84BuEQIpUl3evP3XYyTxdo",
   "project_id": "prj_32Tk7u9OX9HN7AUXm3EjJKRJ5yD",
   "created": "2024-12-19T20:33:15.7387Z",
   "updated": "2024-12-19T20:33:15.971617Z",
   "name": "Context pack name",
   "description": "Context pack description",
   "versions": [
      {
         "version_id": "cpv_2qRzu8qzlNOMhTrini2EKCDh5r6",
         "context_pack_id": "cpk_2qRzu8geIvfudcJTwP0pur4TbMJ",
         "created": "2024-12-19T20:33:16.076891Z",
         "updated": "2024-12-19T20:39:13.026997Z",
         "is_primary": true,
         "is_locked": false,
         "locked_by": null,
         "name": null,
         "content": "This is a reusable piece of text."
      }
   ]
}