Skip to main content
POST
Upload File

Headers

x-api-key
string | null

Skyvern API key for authentication. API key can be found at https://app.skyvern.com/settings.

Body

multipart/form-data
file
file
required
retention_days
integer | null

Number of days to keep the file before it is deleted automatically. Omit to keep the file until the organization's data retention policy removes it.

Response

Successful Response

s3_uri
string
required

S3 URI where the file was uploaded

presigned_url
string
required

Presigned URL to access the uploaded file

file_id
string | null

Identifier for this upload. Pass it to DELETE /v1/files/{file_id} to delete the file.

expires_at
string<date-time> | null

When the file will be deleted, if a retention_days was supplied. Null means the file has no expiry of its own and follows the organization's data retention policy.