You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 8bc63e6
Browse filesBrowse the repository at this point in the historyBrowse files
description: 'Copies a file from the container''s sandbox prefix into the workspace''s durable document storage, so it outlives the container. Returns the new document in the Files API shape, with a durable file id in the documents namespace. The copy counts against the workspace''s storage quota exactly like an upload.'
29661
+
operationId: 'promoteContainerFile'
29662
+
parameters:
29663
+
- description: '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.'
29664
+
in: 'path'
29665
+
name: 'container_id'
29666
+
required: true
29667
+
schema:
29668
+
description: '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.'
29669
+
example: 'sess_abc123'
29670
+
type: 'string'
29671
+
- description: 'Container file id (`cfile_` + base64url of the file path).'
29672
+
in: 'path'
29673
+
name: 'file_id'
29674
+
required: true
29675
+
schema:
29676
+
description: 'Container file id (`cfile_` + base64url of the file path).'
29677
+
example: 'cfile_b3V0L3JlcG9ydC5jc3Y'
29678
+
type: 'string'
29679
+
responses:
29680
+
'200':
29681
+
content:
29682
+
application/json:
29683
+
example:
29684
+
_shape: 'openrouter'
29685
+
created_at: '2026-08-23T00:00:00Z'
29686
+
downloadable: false
29687
+
filename: 'out/report.csv'
29688
+
id: 'or_file_011CNha8iCJcU1wXNR6q4V8w'
29689
+
mime_type: 'text/csv'
29690
+
size_bytes: 123
29691
+
type: 'file'
29692
+
schema:
29693
+
$ref: '#/components/schemas/FileResponse'
29694
+
description: 'The promoted file, as a workspace document.'
29695
+
'400':
29696
+
content:
29697
+
application/json:
29698
+
example:
29699
+
error:
29700
+
code: 400
29701
+
message: 'Invalid request parameters'
29702
+
schema:
29703
+
$ref: '#/components/schemas/BadRequestResponse'
29704
+
description: 'Bad Request - Invalid request parameters or malformed input'
29705
+
'401':
29706
+
content:
29707
+
application/json:
29708
+
example:
29709
+
error:
29710
+
code: 401
29711
+
message: 'Missing Authentication header'
29712
+
schema:
29713
+
$ref: '#/components/schemas/UnauthorizedResponse'
29714
+
description: 'Unauthorized - Authentication required or invalid credentials'
29715
+
'403':
29716
+
content:
29717
+
application/json:
29718
+
example:
29719
+
error:
29720
+
code: 403
29721
+
message: 'Only management keys can perform this operation'
29722
+
schema:
29723
+
$ref: '#/components/schemas/ForbiddenResponse'
29724
+
description: 'Forbidden - Authentication successful but insufficient permissions'
29725
+
'404':
29726
+
content:
29727
+
application/json:
29728
+
example:
29729
+
error:
29730
+
code: 404
29731
+
message: 'Resource not found'
29732
+
schema:
29733
+
$ref: '#/components/schemas/NotFoundResponse'
29734
+
description: 'Not Found - Resource does not exist'
description: 'Service Unavailable - Service temporarily unavailable'
29775
+
summary: 'Promote a container file into workspace documents'
29776
+
tags:
29777
+
- 'Containers'
29778
+
x-hidden: true
29779
+
parameters:
29780
+
- $ref: "#/components/parameters/AppIdentifier"
29781
+
- $ref: "#/components/parameters/AppDisplayName"
29782
+
- $ref: "#/components/parameters/AppCategories"
29658
29783
/credits:
29659
29784
get:
29660
29785
description: 'Get total credits purchased and used for the authenticated user. [Management key](/docs/guides/overview/auth/management-api-keys) required.'
|`http_referer`|*Optional[str]*|:heavy_minus_sign:| The app identifier should be your app's URL and is used as the primary identifier for rankings.<br/>This is used to track API usage per application.<br/> |
10
+
|`x_open_router_title`|*Optional[str]*|:heavy_minus_sign:| The app display name allows you to customize how your app appears in OpenRouter's dashboard.<br/> |
11
+
|`x_open_router_categories`|*Optional[str]*|:heavy_minus_sign:| Comma-separated list of app categories (e.g. "cli-agent,cloud-agent"). Used for marketplace rankings.<br/> |
0 commit comments