AnyFile Folders API
The Folders API from AnyFile — 2 operation(s) for folders.
The Folders API from AnyFile — 2 operation(s) for folders.
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-folders-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 Folders 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: Folders
paths:
/folders:
get:
operationId: folders_list
summary: List folders
x-required-scope: folders: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
responses:
'200':
description: A page of folders
content:
application/json:
schema:
type: object
required:
- data
- pagination
properties:
data:
type: array
items:
$ref: '#/components/schemas/Folder'
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:
- Folders
post:
operationId: folders_create
summary: Create a folder
x-required-scope: folders:write
security:
- bearerAuth: []
requestBody:
required: true
content:
application/json:
schema:
type: object
required:
- name
additionalProperties: false
properties:
name:
type: string
minLength: 1
maxLength: 80
responses:
'201':
description: Folder created
content:
application/json:
schema:
type: object
required:
- data
properties:
data:
$ref: '#/components/schemas/Folder'
'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:
- Folders
/folders/{folderId}:
get:
operationId: folders_get
summary: Get a folder
x-required-scope: folders:read
security:
- bearerAuth: []
parameters:
- name: folderId
in: path
required: true
schema:
type: string
minLength: 1
maxLength: 100
responses:
'200':
description: Folder
content:
application/json:
schema:
type: object
required:
- data
properties:
data:
$ref: '#/components/schemas/Folder'
'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:
- Folders
patch:
operationId: folders_update
summary: Rename a folder
x-required-scope: folders:write
security:
- bearerAuth: []
parameters:
- name: folderId
in: path
required: true
schema:
type: string
minLength: 1
maxLength: 100
requestBody:
required: true
content:
application/json:
schema:
type: object
required:
- name
additionalProperties: false
properties:
name:
type: string
minLength: 1
maxLength: 80
responses:
'200':
description: Updated folder
content:
application/json:
schema:
type: object
required:
- data
properties:
data:
$ref: '#/components/schemas/Folder'
'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:
- Folders
delete:
operationId: folders_delete
summary: Delete a folder
description: Deletes the folder only. Files and file requests in it are retained and moved back to root.
x-required-scope: folders:write
security:
- bearerAuth: []
parameters:
- name: folderId
in: path
required: true
schema:
type: string
minLength: 1
maxLength: 100
responses:
'200':
description: Folder deleted
content:
application/json:
schema:
type: object
required:
- data
properties:
data:
type: object
required:
- id
- deleted
properties:
id:
type: string
deleted:
type: boolean
'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:
- Folders
components:
responses:
ApiError:
description: Structured AnyFile API error
content:
application/json:
schema:
$ref: '#/components/schemas/ApiError'
schemas:
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
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
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