Pomerado Files API
The files API from Pomerado — 2 operation(s) for files.
The files API from Pomerado — 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/pomerado-ai:pomerado-ai-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: Pomerado Files API
version: '1'
description: Run and build website tools, follow their jobs, and manage logins, API keys and webhooks. Authenticate with a Pomerado API key (pom_…), an MCP OAuth token or a Dashboard session as a Bearer token.
servers:
- url: https://api.pomerado.ai
tags:
- name: Files
x-group: Files
paths:
/v1/files:
post:
operationId: files.create
tags:
- Files
summary: Upload a file
description: 'Create a file for a run''s input and get a one-time upload URL.
- PUT the bytes to upload_url, then pass the file''s ID as the file field''s value in a run''s input.
- Send the same API key or token as Authorization: Bearer on the PUT, or transfer_key as the Pomerado-Transfer-Key header. An upload without either answers unauthorized, except one made with an API key created before uploads needed a key, which works without for 30 days after that, as the key''s unsigned_file_links_until shows.
- A file can be at most 25 MiB unless the deployment sets otherwise. Executables are refused, and the first bytes must match media_type.
- The upload_url works for 15 minutes and closes after three refused uploads; then create a new upload.
- A file serves one run. It is erased when that run''s job ends, or an hour after its upload if unused.
- An account keeps at most ten runs'' worth of files no run has used yet: 100 files and 500 MiB together by default.
- A run''s file field also takes an https URL, or a data: URI of at most 512 KB.'
requestBody:
required: true
content:
application/json:
schema:
type: object
required:
- name
- media_type
properties:
name:
type: string
description: The file's name, as the website will see it, for example receipt.pdf
minLength: 1
maxLength: 255
media_type:
type: string
description: The file's media type, such as application/pdf; its first bytes must match it
minLength: 1
maxLength: 255
size:
allOf:
- $ref: '#/components/schemas/Int'
description: a non-negative number
minimum: 0
description: The file's size in bytes; if given, the upload's Content-Length must match
sha256:
type: string
description: The file's SHA-256 as 64 hex characters, in either case; if given, an upload of other bytes is refused with file_digest_mismatch and stores nothing
pattern: ^[0-9a-fA-F]{64}$
additionalProperties: false
responses:
'201':
description: The new file, awaiting its upload
content:
application/json:
schema:
$ref: '#/components/schemas/FileUpload'
'400':
description: invalid_request
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'401':
description: sign_in_required, unauthorized, reauthentication_required
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'403':
description: forbidden
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'410':
description: moved_to_team
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'413':
description: file_too_large, file_limit_exceeded, request_too_large
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'415':
description: file_type_refused
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'500':
description: internal_error
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'501':
description: not_configured
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'503':
description: temporarily_unavailable
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
security:
- bearer: []
x-pomerado-effect: write
x-pomerado-callers:
- session
- oauth
- api_key
- integration_key
- service_account_key
x-pomerado-permission: runs:create
/v1/files/{id}:
get:
operationId: files.get
tags:
- Files
summary: Get a file
description: Get a file's name, type, size, SHA-256 and status, without its bytes.
parameters:
- name: id
in: path
required: true
description: 'a file ID: file_ and 32 lowercase hex digits'
schema:
type: string
examples:
- file_0f8e2d1c4b3a49e8a7f6e5d4c3b2a190
responses:
'200':
description: The file
content:
application/json:
schema:
$ref: '#/components/schemas/File'
'400':
description: invalid_request
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'401':
description: sign_in_required, unauthorized, reauthentication_required
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'403':
description: forbidden
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'404':
description: not_found
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'410':
description: moved_to_team
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'500':
description: internal_error
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'501':
description: not_configured
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'503':
description: temporarily_unavailable
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
security:
- bearer: []
x-pomerado-effect: read
x-pomerado-callers:
- session
- oauth
- api_key
- integration_key
- service_account_key
x-pomerado-permission: runs:create
delete:
operationId: files.delete
tags:
- Files
summary: Delete a file
description: Erase a file now, before it expires. A run that took it can no longer place it on the website.
parameters:
- name: id
in: path
required: true
description: 'a file ID: file_ and 32 lowercase hex digits'
schema:
type: string
examples:
- file_0f8e2d1c4b3a49e8a7f6e5d4c3b2a190
responses:
'204':
description: The file is erased
'400':
description: invalid_request
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'401':
description: sign_in_required, unauthorized, reauthentication_required
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'403':
description: forbidden
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'404':
description: not_found
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'410':
description: moved_to_team
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'500':
description: internal_error
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'501':
description: not_configured
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'503':
description: temporarily_unavailable
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
security:
- bearer: []
x-pomerado-effect: destructive
x-pomerado-callers:
- session
- oauth
- api_key
- integration_key
- service_account_key
x-pomerado-permission: runs:create
components:
schemas:
Int:
type: integer
description: an integer
job_id:
type: string
description: 'a job ID: job_ and 32 lowercase hex digits'
examples:
- job_0f8e2d1c4b3a49e8a7f6e5d4c3b2a190
FileUpload:
type: object
required:
- id
- name
- media_type
- size
- sha256
- status
- direction
- job_id
- created_at
- expires_at
- upload_url
- transfer_key
properties:
id:
$ref: '#/components/schemas/file_id'
name:
type: string
description: The file's name, as given
media_type:
type: string
description: The file's media type, as checked
size:
anyOf:
- type: number
- type: 'null'
description: 'Bytes: the declared size until the upload arrives, then the size received; null when none was declared'
sha256:
anyOf:
- type: string
- type: 'null'
description: The SHA-256 of the bytes, lowercase hex, once they arrived
status:
type: string
enum:
- awaiting_upload
- ready
- in_use
description: awaiting_upload until its bytes arrive at upload_url, ready to pass to a run, in_use once a run took it
direction:
type: string
enum:
- input
- output
description: input for a file sent to a run, output for one a run collected
job_id:
anyOf:
- $ref: '#/components/schemas/job_id'
- type: 'null'
description: 'The run''s job the file is bound to: an input in use, and every output'
created_at:
$ref: '#/components/schemas/Date'
expires_at:
anyOf:
- $ref: '#/components/schemas/Date'
- type: 'null'
description: When the file is erased unless used first; null for an input in use, which is erased when its job ends
upload_url:
type: string
description: 'PUT the file''s bytes here once, with Content-Type and Content-Length, and with transfer_key as the Pomerado-Transfer-Key header or the same API key or token as Authorization: Bearer. An upload without either answers unauthorized, except one made with an API key created before uploads needed a key, which works without for 30 days after that, as the key''s unsigned_file_links_until shows. Valid until expires_at, 15 minutes after it was created; three refused uploads close it.'
transfer_key:
type: string
description: 'This upload''s transfer key: send it as the Pomerado-Transfer-Key header on the PUT, for example from a device or worker that doesn''t hold your API key. Keep it as private as the URL.'
additionalProperties: false
Error:
type: object
required:
- error
properties:
error:
type: object
required:
- code
- message
- retryable
- docs_url
properties:
code:
type: string
message:
type: string
retryable:
type: boolean
docs_url:
type: string
details:
type: object
required: []
properties: {}
additionalProperties:
$id: /schemas/unknown
additionalProperties: false
additionalProperties: false
File:
type: object
required:
- id
- name
- media_type
- size
- sha256
- status
- direction
- job_id
- created_at
- expires_at
properties:
id:
$ref: '#/components/schemas/file_id'
name:
type: string
description: The file's name, as given
media_type:
type: string
description: The file's media type, as checked
size:
anyOf:
- type: number
- type: 'null'
description: 'Bytes: the declared size until the upload arrives, then the size received; null when none was declared'
sha256:
anyOf:
- type: string
- type: 'null'
description: The SHA-256 of the bytes, lowercase hex, once they arrived
status:
type: string
enum:
- awaiting_upload
- ready
- in_use
description: awaiting_upload until its bytes arrive at upload_url, ready to pass to a run, in_use once a run took it
direction:
type: string
enum:
- input
- output
description: input for a file sent to a run, output for one a run collected
job_id:
anyOf:
- $ref: '#/components/schemas/job_id'
- type: 'null'
description: 'The run''s job the file is bound to: an input in use, and every output'
created_at:
$ref: '#/components/schemas/Date'
expires_at:
anyOf:
- $ref: '#/components/schemas/Date'
- type: 'null'
description: When the file is erased unless used first; null for an input in use, which is erased when its job ends
additionalProperties: false
file_id:
type: string
description: 'a file ID: file_ and 32 lowercase hex digits'
examples:
- file_0f8e2d1c4b3a49e8a7f6e5d4c3b2a190
Date:
type: string
description: a string to be decoded into a Date
securitySchemes:
bearer:
type: http
scheme: bearer