Key Features
These API endpoints are the building blocks for all your file ingestion needs. They can be used individually or in conjunction to create powerful end-to-end workflows.File Upload & Management
Upload, retrieve and manage files in various formats in fileAI (includes sources, citations, location data and more)
Smart File Processing
Proprietary AI OCR with cross-file extraction and custom AI schemas
Dynamic AI Schemas
Auto-generated data structures that adapt to your files, fetch cross-file data (coming soon) and online data all in one workflow
Enterprise Ready
Secure, scalable, and built for production workloads (SOCII, ISO27001)
Easy Integration
RESTful API with callback URLs for real-time updates
Base URL and instances
The default base URL is:
So every endpoint in this reference is reached at:
Not sure whether your workspace is on an instance, or which one? Ask your
account manager or contact
support@file.ai.
Switching between instances
Because only the hostname changes, switching instances never means rewriting a request. Swap the host and everything else stays byte-for-byte identical.- In your code
- In a curl command
- In the API playground
Keep the base URL in one constant or environment variable and build every
request path from it. Switching instances is then a one-line config change,
not a search-and-replace.
Prerequisites for using the fileAI API
Before using our API, please ensure you complete the following prerequisites:You must have a fileAI account
To use our API endpoints, you need to sign up or login here. Both self-serve and enterprise accounts are supported.
You must have an API Key
After creating your fileAI account, you can generate your API Key.
You must verify an AI Schema
fileAI suggests extraction and data fetch schemas. Confirm or edit these in the UI to call them directly via MCP.
How to get an API token
- Go to API Keys
- Click Create API Key
- Name the token, set expiration and permission
- Click Generate API Key
- Token will be shown, click Copy & Close
Note: Only admins can create API keys.
How to authorize an API token
- Once you have your API key, go to the API documentation page:
https://api.orion.file.ai/prod/v1/docs/swagger-uiOn an instance-specific host, swap the hostname — for example
https://api.orion.sg.file.ai/prod/v1/docs/swagger-ui. See Base URL and
instances.- Click the Authorize button on the right of this page (the green Authorize button with lock icon)
- Enter your API Key under Value
- Click Authorize to start making authenticated requests directly from the documentation
If you need any further assistance, please reach out to our team at support@file.ai