Skip to main content
POST
/
context-documents
/
drive-export
Generate context docs folder structure in Google Drive
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
}

Authorizations

Authorization
string
header
required

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.

Body

application/json

Request body for POST /context-documents/drive-export.

workstream_name
string | null

Generate docs for this workstream only (skip auto-detection). Used for the demo.

Response

Successful Response

status
string
required
folder_count
integer
required
doc_count
integer
required
workstreams
Workstreams · object[]
required
resource_count
integer
required