Export schemas
Endpoints
Export schemas
Export one or more schemas to a downloadable zip file.
Request Body:
aiSchemaIds(string, required): Comma-separated list of schema IDs to export
Response:
exportedFileDownloadUrl(string): Pre-signed URL to download the exported zip file (valid for 1 hour)s3Path(string): S3 path where the file is storedfileName(string): Name of the exported file
Example:
{
"aiSchemaIds": "649e2d2d2d2d2d2d2d2d2d2d,649e2d2d2d2d2d2d2d2d2d2e"
}
POST
Export schemas
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
1. Select Schemas
Choose which schemas to export by providing their IDs
2
2. Export Request
Send the schema IDs to receive a pre-signed download URL
3
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:
Example Request Body:
Downloading the Exported File
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
This endpoint accepts an optional
Idempotency-Key request header so a retry
cannot apply the change twice. See
Idempotent requests.Authorizations
API key for authentication
Headers
Optional opaque key (max 255 chars, UUIDv4 recommended) making this request idempotent for 24h: a retry with the same key and body replays the original response with Idempotent-Replayed: true.
Body
application/json
AISchemaIds IDs to export (comma-separated)
Example:
"649e2d2d2d2d2d2d2d2d2d2d,649e2d2d2d2d2d2d2d2d2d2e"