API Keys
API Keys enable programmatic access to Miiflow workflows and integration with your applications.
Overview
Use API Keys to:
- Trigger workflows from external applications
- Build custom integrations
- Automate workflow execution
- Connect to third-party services
Creating API Keys
- Go to Dashboard > Settings > API Keys
- Click Create API Key
- Name your key (e.g., “Production Backend”)
- Copy and securely store the key
Important: API keys are shown only once. Store them securely.
Using API Keys
Authentication
Include the API key in request headers:
Authorization: Bearer your_api_key_here
Triggering Workflows
curl -X POST https://api.miiflow.ai/v1/workflows/{workflow_id}/run \
-H "Authorization: Bearer your_api_key" \
-H "Content-Type: application/json" \
-d '{"input": "Your input data"}'
Key Management
Permissions
Each key can be scoped to specific:
- Workflows
- Operations (read, write, execute)
Rotation
Regularly rotate keys for security:
- Create a new key
- Update your applications
- Delete the old key
Security Best Practices
- Never expose keys in client-side code
- Use environment variables
- Rotate keys regularly
- Monitor key usage for anomalies
- Delete unused keys