Try our new Setup Skill to automatically integrate Hyperspell into your project
curl --request POST \
--url https://api.hyperspell.com/context-documents/drive-export \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"workstream_name": "<string>"
}
'{
"status": "<string>",
"folder_count": 123,
"doc_count": 123,
"workstreams": [
{}
],
"resource_count": 123
}Generate context documents and write them to Google Drive.
Creates the full folder structure (context-docs/, company/, workstreams/) with CLAUDE.md files and synthesized documents. Requires a Google Drive connection with write access.
This is a synchronous endpoint — it runs all prompts in parallel and creates the Drive structure before returning. Expect 1-3 minutes.
curl --request POST \
--url https://api.hyperspell.com/context-documents/drive-export \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"workstream_name": "<string>"
}
'{
"status": "<string>",
"folder_count": 123,
"doc_count": 123,
"workstreams": [
{}
],
"resource_count": 123
}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.
Request body for POST /context-documents/drive-export.
Generate docs for this workstream only (skip auto-detection). Used for the demo.
Was this page helpful?