Create Integration
Create a new integration for the authenticated user.
Request Body
Integration objectType of integration (e.g., ‘elevenlabs’, ‘openai’, ‘anthropic’)
Integration-specific configuration
curl -X POST "https://api.example.com/api/v1/integrations" \
-H "X-API-Key: your-api-key-here" \
-H "Content-Type: application/json" \
-d '{
"integration": {
"integration_type": "elevenlabs",
"config": {
"api_key": "sk_your_elevenlabs_key"
}
}
}'
Response
Response status information
Created integration object
{
"status": {
"code": 201,
"message": "Integration created successfully"
},
"data": {
"id": 1,
"integration_type": "elevenlabs",
"config": {
"api_key": "sk_***"
},
"schema": {
"required": ["api_key"],
"optional": [],
"fields": {
"api_key": {
"type": "string",
"description": "ElevenLabs API key"
}
}
},
"user_id": 1,
"user_email": "[email protected]",
"created_at": "2024-01-15T10:30:00Z",
"updated_at": "2024-01-15T10:30:00Z"
}
}
Error Responses
Unauthorized - Invalid or missing authentication
Validation error - Invalid request body