Files
The ID of the agent in which this file will be used; may be omitted if the API token is scoped to an agent (rather than the organization).
b4fznghynbdemslfd5k044fgdPattern: ^[a-zA-Z0-9-_]+$The name of the file to be uploaded.
test-file.pdfThe file upload created
File upload response containing S3 presigned POST credentials.
Use these fields to upload your file directly to S3:
- POST to upload_url with multipart/form-data
- Include all upload_fields as form fields
- Add your file as 'file' field
- Use the returned id to reference this file in other API calls
The sanitized filename that will be used for storage
document.pdfUnique file identifier - use this ID when referencing the file in other API calls (like starting a run). Only available after successful upload.
s3://bucket/path/to/uploaded-file.pdfS3 authentication fields - include ALL of these as form fields in your multipart upload request. These contain the signature, policy, and other S3 authentication data.
{"AWSAccessKeyId":"AKIAIOSFODNN7EXAMPLE","Content-Type":"application/pdf","key":"path/to/file.pdf","policy":"eyJ...base64_policy...","signature":"abc123..."}HTTP method for upload - always POST for S3 presigned uploads
POSTExample: POSTPossible values: S3 presigned POST URL where you upload your file. POST your multipart/form-data request to this URL.
http://example.com/file.pdfInvalid input values
The specified agent was not found
Last updated
Was this helpful?

