Purpose
The Import/Export API enables batch operations for backing up, sharing, and migrating tool configurations across HandsAI instances. These endpoints allow you to:- Export provider configurations with their associated tools and parameters
- Import configurations to replicate setups or share with team members
- Backup your entire tool catalog for disaster recovery
- Migrate configurations between development, staging, and production environments
Base Paths
- Export endpoint:
/api/export - Import endpoint:
/api/import
Use Cases
Configuration Backup
Export all your configured providers to create a backup of your tool catalog:Sharing Configurations
Share specific provider configurations with team members or across projects:Environment Migration
Export from one environment and import to another to maintain consistency:Data Structure
The import/export format follows a hierarchical structure:Hierarchical Format
The JSON structure represents the complete provider configuration:- Provider level: Authentication settings, base URL, custom headers
- Tool level: Endpoint paths, HTTP methods, descriptions
- Parameter level: Type definitions, validation rules, default values
API Key Security
Export Behavior
For security reasons, API keys are automatically masked during export:- Real API keys are replaced with
<YOUR_API_KEY> - Empty or null values remain unchanged
- Other sensitive fields are preserved as-is for functionality
Import Behavior
The import process handles API key placeholders intelligently:- Values set to
<YOUR_API_KEY>are skipped (not updated) - Empty or blank values are skipped
- Only valid API key values are encrypted and stored
- Existing keys are preserved if the import payload contains placeholders
Upsert Behavior
The import endpoint uses upsert logic based on thecode field:
- If a provider with the given
codeexists, it will be updated - If no provider exists with that
code, a new one will be created - Tools follow the same pattern using their
codefield - Parameters are recreated with new UUIDs to avoid conflicts
Next Steps
Export API
Learn how to export provider configurations
Import API
Learn how to import provider configurations