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
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.'
29394
+
operationId: 'promoteContainerFile'
29395
+
parameters:
29396
+
- 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.'
29397
+
in: 'path'
29398
+
name: 'container_id'
29399
+
required: true
29400
+
schema:
29401
+
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.'
29402
+
example: 'sess_abc123'
29403
+
type: 'string'
29404
+
- description: 'Container file id (`cfile_` + base64url of the file path).'
29405
+
in: 'path'
29406
+
name: 'file_id'
29407
+
required: true
29408
+
schema:
29409
+
description: 'Container file id (`cfile_` + base64url of the file path).'
29410
+
example: 'cfile_b3V0L3JlcG9ydC5jc3Y'
29411
+
type: 'string'
29412
+
responses:
29413
+
'200':
29414
+
content:
29415
+
application/json:
29416
+
example:
29417
+
_shape: 'openrouter'
29418
+
created_at: '2026-08-23T00:00:00Z'
29419
+
downloadable: false
29420
+
filename: 'out/report.csv'
29421
+
id: 'or_file_011CNha8iCJcU1wXNR6q4V8w'
29422
+
mime_type: 'text/csv'
29423
+
size_bytes: 123
29424
+
type: 'file'
29425
+
schema:
29426
+
$ref: '#/components/schemas/FileResponse'
29427
+
description: 'The promoted file, as a workspace document.'
29428
+
'400':
29429
+
content:
29430
+
application/json:
29431
+
example:
29432
+
error:
29433
+
code: 400
29434
+
message: 'Invalid request parameters'
29435
+
schema:
29436
+
$ref: '#/components/schemas/BadRequestResponse'
29437
+
description: 'Bad Request - Invalid request parameters or malformed input'
29438
+
'401':
29439
+
content:
29440
+
application/json:
29441
+
example:
29442
+
error:
29443
+
code: 401
29444
+
message: 'Missing Authentication header'
29445
+
schema:
29446
+
$ref: '#/components/schemas/UnauthorizedResponse'
29447
+
description: 'Unauthorized - Authentication required or invalid credentials'
29448
+
'403':
29449
+
content:
29450
+
application/json:
29451
+
example:
29452
+
error:
29453
+
code: 403
29454
+
message: 'Only management keys can perform this operation'
29455
+
schema:
29456
+
$ref: '#/components/schemas/ForbiddenResponse'
29457
+
description: 'Forbidden - Authentication successful but insufficient permissions'
29458
+
'404':
29459
+
content:
29460
+
application/json:
29461
+
example:
29462
+
error:
29463
+
code: 404
29464
+
message: 'Resource not found'
29465
+
schema:
29466
+
$ref: '#/components/schemas/NotFoundResponse'
29467
+
description: 'Not Found - Resource does not exist'
description: 'Service Unavailable - Service temporarily unavailable'
29508
+
summary: 'Promote a container file into workspace documents'
29509
+
tags:
29510
+
- 'Containers'
29511
+
x-hidden: true
29391
29512
/credits:
29392
29513
get:
29393
29514
description: 'Get total credits purchased and used for the authenticated user. [Management key](/docs/guides/overview/auth/management-api-keys) required.'
0 commit comments