Skip to main content
POST
Create Download Token

Headers

x-user-id
string
required

Caller's user ID. Temporary header-based identity; will be replaced by JWT auth.

Query Parameters

agent_id
string
required
session_id
string
required
path
string
required

The path the token will authorize.

Response

Successful Response

A capability authorizing one download of one path.

token
string
required

Pass as the token query parameter of GET /workspace/files, in place of the X-User-ID header. Valid for this path only.

expires_at
number
required

Unix timestamp after which the token is refused.