Developers

Build with AnyFile

Upload and manage files, automate sharing and file requests, and read analytics with REST, or connect AI assistants and agents through MCP.

REST API

Use the versioned API for conventional integrations, including direct file uploads and authenticated downloads. Authenticate with a scoped AnyFile API key or OAuth 2.0 access token.

MCP server

Connect AI assistants and agents to the same AnyFile capabilities, including owned-file lifecycle operations, through a tool-oriented MCP interface with OAuth authorization.

Quick start

Your first API call

Create a scoped key, send it as a bearer token, then build on the same versioned endpoints described in the OpenAPI contract.

  1. 1.Create an API key with only the permissions your integration needs.
  2. 2.Send it in the Authorization: Bearer header.
  3. 3.Follow cursor pagination and handle structured API errors.
List filescurl
curl "https://www.useanyfile.com/api/v1/files?limit=25" \
  -H "Authorization: Bearer YOUR_API_KEY"
Capabilities

One capability set, two integration styles

Browse REST endpoints

Files

Upload, download, rename, delete, search, and inspect your files.

Share links

Create, inspect, and manage public share links.

File requests

Create requests and review submitted files.

Analytics

Read aggregate activity and per-share analytics.

API keys

Create and revoke scoped keys from your account settings, including the optional file-management permission.

Manage keys

API docs

Learn authentication, direct uploads, pagination, errors, scopes, and every REST endpoint.

Read the docs

OpenAPI

Use the OpenAPI 3.1 contract for code generation and machine-readable discovery.

View specification