Documentation Index
Fetch the complete documentation index at: https://docs.file.ai/llms.txt
Use this file to discover all available pages before exploring further.
Export one or more schemas to a downloadable zip file. This endpoint allows you to backup or transfer your AI schemas between workspaces.
The exported zip file contains all schema definitions, field mappings, and
related metadata needed to recreate the schemas.
How It Works
1. Select Schemas
Choose which schemas to export by providing their IDs
2. Export Request
Send the schema IDs to receive a pre-signed download URL
3. Download File
Use the pre-signed URL to download the exported zip file
Request Parameters
Request Body
The request body must contain a JSON object with the following property:
| Property | Type | Required | Description |
|---|
| aiSchemaIds | string | Yes | Comma-separated list of schema IDs to export |
Example Request Body:
{
"aiSchemaIds": "649e2d2d2d2d2d2d2d2d2d2d,649e2d2d2d2d2d2d2d2d2d2e"
}
Downloading the Exported File
The pre-signed download URL is valid for 1 hour only. Download the file
promptly.
# Use the download URL from the response
curl -o exported-schemas.zip "https://s3.amazonaws.com/bucket/exported-schemas.zip?AWSAccessKeyId=AKIAIOSFODNN7EXAMPLE&Signature=...&Expires=3600"
Export File Contents
The exported zip file contains:
- Schema definitions - JSON files with field mappings and validation rules
- Blueprint configurations - Document type classifications and extraction rules
- Metadata - Creation timestamps, version information, and relationships
Exported schemas can be imported into other workspaces using the
/prod/v1/files/schema/import endpoint.
Best Practices
- Regular backups - Export schemas periodically to maintain backups
- Workspace transfers - Use export/import to move schemas between workspaces
- Version control - Keep track of exported files for schema versioning
- Validate before import - Review exported contents before importing to new workspaces
API key for authentication
AISchemaIds IDs to export (comma-separated)
Example:"649e2d2d2d2d2d2d2d2d2d2d,649e2d2d2d2d2d2d2d2d2d2e"
Schemas exported successfully
Exported file download URL
S3 path of the exported file