Try our new Setup Skill to automatically integrate Hyperspell into your project
curl --request GET \
--url https://api.hyperspell.com/context-documents/tree/latest \
--header 'Authorization: Bearer <token>'{
"tree_id": "<string>",
"status": "<string>",
"version": 123,
"files": [
{
"path": "<string>",
"content": "<string>",
"tier": "<string>",
"team": "<string>",
"updated_at": "<string>"
}
],
"error": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"completed_at": "2023-11-07T05:31:56Z",
"meta": {}
}Get the most recent context document tree for the authenticated app.
The sync daemon polls this endpoint to fetch updated files. Use ?status=published to only get published trees (daemon default). Without a status filter, returns the latest tree of any status.
When the caller is authenticated with a user JWT (from device login), personal docs are generated lazily on first pull and merged into the response.
curl --request GET \
--url https://api.hyperspell.com/context-documents/tree/latest \
--header 'Authorization: Bearer <token>'{
"tree_id": "<string>",
"status": "<string>",
"version": 123,
"files": [
{
"path": "<string>",
"content": "<string>",
"tier": "<string>",
"team": "<string>",
"updated_at": "<string>"
}
],
"error": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"completed_at": "2023-11-07T05:31:56Z",
"meta": {}
}API Key or JWT User Token. If using an API Key, set the X-As-User header to act as a specific user. A JWT User Token is always scoped to a specific user.
Was this page helpful?