AnyFile Requests API
The Requests API from AnyFile — 3 operation(s) for requests.
The Requests API from AnyFile — 3 operation(s) for requests.
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/useanyfile-com:useanyfile-com-requests-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: AnyFile REST Requests API
version: 1.0.0
description: 'Public REST API for AnyFile: upload, download and organize owned files in folders, manage share links and file requests, inspect submissions, and read share analytics. Authenticate with an AnyFile API key or OAuth 2.0 bearer token and request only the scopes required for the task.'
servers:
- url: https://www.useanyfile.com/api/v1
tags:
- name: Requests
paths:
/requests:
get:
operationId: requests_list
summary: List file requests
x-required-scope: requests:read
security:
- bearerAuth: []
parameters:
- name: cursor
in: query
schema:
type: string
maxLength: 128
- name: limit
in: query
schema:
type: integer
minimum: 1
maximum: 100
default: 25
- name: folderId
in: query
description: Return resources assigned to this owned folder.
schema:
type: string
minLength: 1
maxLength: 100
responses:
'200':
description: A page of file requests
content:
application/json:
schema:
type: object
required:
- data
- pagination
properties:
data:
type: array
items:
$ref: '#/components/schemas/FileRequestWithCount'
pagination:
$ref: '#/components/schemas/Pagination'
'400':
$ref: '#/components/responses/ApiError'
'401':
$ref: '#/components/responses/ApiError'
'403':
$ref: '#/components/responses/ApiError'
'404':
$ref: '#/components/responses/ApiError'
'409':
$ref: '#/components/responses/ApiError'
'429':
$ref: '#/components/responses/ApiError'
tags:
- Requests
post:
operationId: requests_create
summary: Create a file request
x-required-scope: requests:write
security:
- bearerAuth: []
requestBody:
required: true
content:
application/json:
schema:
type: object
required:
- title
additionalProperties: false
properties:
title:
type: string
minLength: 3
maxLength: 100
description:
type: string
maxLength: 500
collectEmail:
type: boolean
default: true
emailRequired:
type: boolean
default: true
folderId:
description: Owned folder ID. Pass null on update to move the resource back to root.
type:
- string
- 'null'
minLength: 1
maxLength: 100
responses:
'201':
description: File request created
content:
application/json:
schema:
type: object
required:
- data
properties:
data:
$ref: '#/components/schemas/FileRequest'
'400':
$ref: '#/components/responses/ApiError'
'401':
$ref: '#/components/responses/ApiError'
'403':
$ref: '#/components/responses/ApiError'
'404':
$ref: '#/components/responses/ApiError'
'409':
$ref: '#/components/responses/ApiError'
'429':
$ref: '#/components/responses/ApiError'
tags:
- Requests
/requests/{requestId}:
get:
operationId: requests_get
summary: Get a file request
x-required-scope: requests:read
security:
- bearerAuth: []
parameters:
- name: requestId
in: path
required: true
schema:
type: string
minLength: 1
maxLength: 128
responses:
'200':
description: File request
content:
application/json:
schema:
type: object
required:
- data
properties:
data:
$ref: '#/components/schemas/FileRequestWithCount'
'400':
$ref: '#/components/responses/ApiError'
'401':
$ref: '#/components/responses/ApiError'
'403':
$ref: '#/components/responses/ApiError'
'404':
$ref: '#/components/responses/ApiError'
'409':
$ref: '#/components/responses/ApiError'
'429':
$ref: '#/components/responses/ApiError'
tags:
- Requests
patch:
operationId: requests_update
summary: Update a file request
x-required-scope: requests:write
security:
- bearerAuth: []
parameters:
- name: requestId
in: path
required: true
schema:
type: string
minLength: 1
maxLength: 128
requestBody:
required: true
content:
application/json:
schema:
type: object
minProperties: 1
additionalProperties: false
properties:
title:
type: string
minLength: 3
maxLength: 100
description:
type:
- string
- 'null'
maxLength: 500
collectEmail:
type: boolean
emailRequired:
type: boolean
isActive:
type: boolean
folderId:
description: Owned folder ID. Pass null on update to move the resource back to root.
type:
- string
- 'null'
minLength: 1
maxLength: 100
responses:
'200':
description: Updated file request
content:
application/json:
schema:
type: object
required:
- data
properties:
data:
$ref: '#/components/schemas/FileRequest'
'400':
$ref: '#/components/responses/ApiError'
'401':
$ref: '#/components/responses/ApiError'
'403':
$ref: '#/components/responses/ApiError'
'404':
$ref: '#/components/responses/ApiError'
'409':
$ref: '#/components/responses/ApiError'
'429':
$ref: '#/components/responses/ApiError'
tags:
- Requests
/requests/{requestId}/submissions:
get:
operationId: request_submissions_list
summary: List submissions for a file request
description: Returns submitter-provided name, email, and message when present, plus safe file metadata. Private storage URLs are never exposed.
x-required-scope: requests:read
security:
- bearerAuth: []
parameters:
- name: requestId
in: path
required: true
schema:
type: string
minLength: 1
maxLength: 128
- name: cursor
in: query
schema:
type: string
maxLength: 128
- name: limit
in: query
schema:
type: integer
minimum: 1
maximum: 100
default: 25
responses:
'200':
description: A page of request submissions
content:
application/json:
schema:
type: object
required:
- data
- pagination
properties:
data:
type: array
items:
$ref: '#/components/schemas/Submission'
pagination:
$ref: '#/components/schemas/Pagination'
'400':
$ref: '#/components/responses/ApiError'
'401':
$ref: '#/components/responses/ApiError'
'403':
$ref: '#/components/responses/ApiError'
'404':
$ref: '#/components/responses/ApiError'
'409':
$ref: '#/components/responses/ApiError'
'429':
$ref: '#/components/responses/ApiError'
tags:
- Requests
components:
schemas:
FileSummary:
type: object
required:
- id
- name
- contentType
- size
properties:
id:
type: string
name:
type: string
contentType:
type: string
size:
type: integer
minimum: 0
Folder:
type: object
required:
- id
- name
- fileCount
- requestCount
properties:
id:
type: string
name:
type: string
createdAt:
type: string
format: date-time
fileCount:
type: integer
minimum: 0
requestCount:
type: integer
minimum: 0
FileRequest:
allOf:
- type: object
required:
- id
- title
- description
- collectEmail
- emailRequired
- isActive
- createdAt
- publicUrl
properties:
id:
type: string
title:
type: string
description:
type:
- string
- 'null'
collectEmail:
type: boolean
emailRequired:
type: boolean
isActive:
type: boolean
createdAt:
type: string
format: date-time
publicUrl:
type: string
format: uri
- type: object
required:
- folderId
- folder
properties:
folderId:
type:
- string
- 'null'
minLength: 1
maxLength: 100
folder:
anyOf:
- $ref: '#/components/schemas/Folder'
- type: 'null'
Submission:
type: object
required:
- submitterName
- submitterEmail
- message
- createdAt
- file
properties:
submitterName:
type:
- string
- 'null'
submitterEmail:
type:
- string
- 'null'
format: email
message:
type:
- string
- 'null'
createdAt:
type: string
format: date-time
file:
$ref: '#/components/schemas/FileSummary'
FileRequestWithCount:
allOf:
- $ref: '#/components/schemas/FileRequest'
- type: object
required:
- submissionCount
properties:
submissionCount:
type: integer
minimum: 0
Pagination:
type: object
required:
- nextCursor
properties:
nextCursor:
type:
- string
- 'null'
ApiError:
type: object
required:
- error
properties:
error:
type: object
required:
- code
- message
- hint
properties:
code:
type: string
message:
type: string
hint:
type: string
responses:
ApiError:
description: Structured AnyFile API error
content:
application/json:
schema:
$ref: '#/components/schemas/ApiError'
securitySchemes:
bearerAuth:
type: http
scheme: bearer
bearerFormat: AnyFile API key or OAuth 2.0 access token
description: 'Send an AnyFile API key or OAuth 2.0 access token in Authorization: Bearer. OAuth tokens must target https://www.useanyfile.com/api/v1.'
externalDocs:
description: AnyFile developer resources
url: https://www.useanyfile.com/developers