Skip to main content
POST
Promote a container file into workspace documents

Authorizations

Authorization
string
header
required

API key as bearer token in Authorization header

Path Parameters

container_id
string
required

The canonical container id, exactly as returned in a bash/shell tool result — a restarted session has its own -r<nonce>-suffixed id. A session-derived id is always sess_ + the sanitized session key, which is not necessarily the raw session id that was sent.

Example:

"sess_abc123"

file_id
string
required

Container file id (cfile_ + base64url of the file path).

Example:

"cfile_b3V0L3JlcG9ydC5jc3Y"

Response

The promoted file, as a workspace document.

A stored file. The shape is negotiated per request — see the endpoint description.

_shape
enum<string>
required
Available options:
openrouter
created_at
string
required
downloadable
boolean
required
filename
string
required
id
string
required
mime_type
string
required
size_bytes
integer
required
type
enum<string>
required
Available options:
file