v1

latestOpenAPI 3.1.02026-07-22136108233.0 KB
run-attachments

Create Run Attachment

Create a new run attachment.

This endpoint is primarily for internal use. File uploads typically happen through the run creation endpoint.

post/v1/run-attachments

Headers

Idempotency-Keystring
Example:550e8400-e29b-41d4-a716-446655440000

Unique key for idempotent requests. If provided, the server ensures the request is processed at most once. Retries with the same key return the original response. SDKs auto-generate this for write requests.

Request body

run_idstring uuid required
filenamestring required
contentstring required

Base64 encoded file content

content_typestring required
attachment_type'input' | 'output' required
target_pathstring nullable
cleanup_imports_after_runboolean
expires_atstring date-time nullable

Response

Successful Response

filenamestring required
content_typestring required
attachment_type'input' | 'output' required
target_pathstring nullable
cleanup_imports_after_runboolean
idstring uuid required
user_idstring uuid nullable
organization_idstring nullable
run_idstring uuid required
size_bytesinteger required
storage_pathstring required
expires_atstring date-time nullable
created_atstring date-time required