Skip to main content
Download a workspace file's current head bytes

Authorizations

Authorization
string
header
required

Authorization: Bearer stefan_sk_... (API key — bills the API wallet) or stefan_oat_... (OAuth member token — bills your plan pool).

Path Parameters

fileId
string
required

The file id from the files listing: the SHA-256 of the head's content (64 hex characters).

Pattern: ^[0-9a-fA-F]{64}$

Query Parameters

chat_id
string
required

The chat the file belongs to (a chat UUID or chat_... id).

path
string
required

The file's workspace path, exactly as the listing returned it.

Response

The head's bytes with an attachment Content-Disposition (Cache-Control: private, no-store).

The response is of type file.