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.
Example Request Body:
The exported zip file contains all schema definitions, field mappings, and
related metadata needed to recreate the schemas.
How It Works
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 |
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
Authorizations
API key for authentication
Body
application/json
AISchemaIds IDs to export (comma-separated)
Example:
"649e2d2d2d2d2d2d2d2d2d2d,649e2d2d2d2d2d2d2d2d2d2e"