x-api-key header and goes to the host of the instance your workspace lives on. The API is REST over HTTPS, with the same paths, methods and bodies on every instance.
Before you start
You need:- A fileAI account. Sign up or sign in on the Developer Portal. Already use the fileAI app at orion.file.ai? The same sign-in works on both, so you can move between them without signing in again. Self-serve and enterprise accounts both work.
- An API key. Only workspace admins can create one (see below).
- An approved AI Schema (Verify in the app) if you want structured values back. fileAI suggests schemas as files arrive; confirm or edit them in the app. See AI Schemas and Concepts.
Create an API key
1
Choose your project
Sign in to the Developer Portal as a workspace admin, then pick the organization and project from the switcher at the top.
2
Create the key
Open API Keys in the sidebar and click Create API Key. Fill in the form, then click Generate token:
- Name: anything that tells you where the key is used.
- Expiration: 7, 30, 60 or 90 days, or Never.
- Permissions: Read only (fetch data, but not change it) or Full Access (read and change data).
3
Copy it now
The key is shown once. Copy it and store it in a secret manager or environment variable.
The Developer Portal works with Developer Portal workspaces. If your workspace was set up in the fileAI app, create keys in the app instead: Settings → API Keys at orion.file.ai.
Key types
There are two kinds of key. Both work on one instance only.
Personal keys cannot call
PATCH /v1/project/setting, which needs a project admin. See Concepts for how workspaces, projects and folders relate.
What a key can do
Authenticate a request
Send the key in thex-api-key header:
Response
Try requests in the docs
Every endpoint page in the API reference tab has a playground. Enter your key, pick your region from the server dropdown, and send the request. The code samples update to match, so you can copy a snippet that already points at the right host.Regions
fileAI runs separate instances. Each serves exactly the same API and differs only in the hostname.
Use the default unless you have been told otherwise. Every example in these docs uses it. Not sure which instance your workspace is on? Ask your account manager or support@file.ai.
Switching between instances
Only the hostname changes, so switching never means rewriting a request. Keep the host in one variable and build every path from it:FILEAI_BASE_URL to …/prod/v1 and appends the endpoint path, for example $FILEAI_BASE_URL/files/upload. In Python and Node the guides use BASE = "https://api.orion.file.ai/prod/v1" the same way. In a one-off cURL command, replace the host and leave the path, query string, headers and body as they are:
Request conventions
Related
API quickstart
Upload a file and read its values in about 5 minutes.
Errors
Status codes, problem documents and error codes.
Idempotency
Retry writes without applying them twice.
Workspace setup
Invite your team and manage roles.