Skyvern Files API
The Files API from Skyvern — 2 operation(s) for files.
The Files API from Skyvern — 2 operation(s) for files.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/skyvern-com:skyvern-com-files-api"
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: Skyvern Files API
description: API for Skyvern
version: 1.0.0
servers:
- url: https://api.skyvern.com
x-fern-server-name: Cloud
- url: https://api-staging.skyvern.com
x-fern-server-name: Staging
- url: http://localhost:8000
x-fern-server-name: Local
tags:
- name: Files
paths:
/v1/upload_file:
post:
tags:
- Files
summary: Upload a file
description: Upload a file to Skyvern storage so runs can reference it as an input. Returns the file id, its storage URI, a presigned download URL, and the expiry implied by the requested retention period.
operationId: upload_file_v1_upload_file_post
parameters:
- name: x-api-key
in: header
required: false
schema:
anyOf:
- type: string
- type: 'null'
description: Skyvern API key for authentication. API key can be found at https://app.skyvern.com/settings.
title: X-Api-Key
description: Skyvern API key for authentication. API key can be found at https://app.skyvern.com/settings.
requestBody:
required: true
content:
multipart/form-data:
schema:
$ref: '#/components/schemas/Body_upload_file_v1_upload_file_post'
responses:
'200':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/UploadFileResponse'
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
x-fern-sdk-method-name: upload_file
/v1/files/{file_id}:
delete:
tags:
- Files
summary: Delete File
description: 'Delete a previously uploaded file.
A file that does not exist, was already deleted, or belongs to another organization all
answer 404 alike — the endpoint must not tell a caller whether someone else''s file id
exists.'
operationId: delete_file_v1_files__file_id__delete
parameters:
- name: file_id
in: path
required: true
schema:
type: string
title: File Id
- name: x-api-key
in: header
required: false
schema:
anyOf:
- type: string
- type: 'null'
description: Skyvern API key for authentication. API key can be found at https://app.skyvern.com/settings.
title: X-Api-Key
description: Skyvern API key for authentication. API key can be found at https://app.skyvern.com/settings.
responses:
'204':
description: Successful Response
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
x-fern-sdk-method-name: delete_file
components:
schemas:
UploadFileResponse:
properties:
s3_uri:
type: string
title: S3 Uri
description: S3 URI where the file was uploaded
presigned_url:
type: string
title: Presigned Url
description: Presigned URL to access the uploaded file
file_id:
anyOf:
- type: string
- type: 'null'
title: File Id
description: Identifier for this upload. Pass it to DELETE /v1/files/{file_id} to delete the file.
expires_at:
anyOf:
- type: string
format: date-time
- type: 'null'
title: Expires At
description: 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.
type: object
required:
- s3_uri
- presigned_url
title: UploadFileResponse
Body_upload_file_v1_upload_file_post:
properties:
retention_days:
anyOf:
- type: integer
- type: 'null'
title: Retention Days
description: 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.
file:
type: string
contentMediaType: application/octet-stream
title: File
type: object
required:
- file
title: Body_upload_file_v1_upload_file_post
HTTPValidationError:
properties:
detail:
items:
$ref: '#/components/schemas/ValidationError'
type: array
title: Detail
type: object
title: HTTPValidationError
ValidationError:
properties:
loc:
items:
anyOf:
- type: string
- type: integer
type: array
title: Location
msg:
type: string
title: Message
type:
type: string
title: Error Type
input:
title: Input
ctx:
type: object
title: Context
type: object
required:
- loc
- msg
- type
title: ValidationError
securitySchemes:
ApiKeyAuth:
type: apiKey
description: Your Skyvern API key from https://app.skyvern.com/settings.
in: header
name: x-api-key