Create from Template
POST
/api/v1/workflow/create/templateCreate a new workflow from a natural language template request. This endpoint: 1. Uses mps_service_key_client to call MPS workflow API 2. Passes organization ID (authenticated mode) or created_by (OSS mode) 3. Creates the workflow in the database Args: request: The template creation request with call_type, use_case, and activity_description user: The authenticated user Returns: The created workflow Raises: HTTPException: If MPS API call fails
cURL example
curl -X POST \
'http://localhost:8000/api/v1/workflow/create/template' \
-H 'Authorization: Bearer <API_KEY>' \
-H 'Content-Type: application/json' \
-d '{}'Parameters
| Name | Location | Type | Description |
|---|---|---|---|
authorization | header | object | — |
X-API-Key | header | object | — |
Request body
application/jsonView schema
{
"$ref": "#/components/schemas/CreateWorkflowTemplateRequest"
}Responses
200Successful Responseapplication/jsonView schema
{
"$ref": "#/components/schemas/WorkflowResponse"
}404Not found422Validation Errorapplication/jsonView schema
{
"$ref": "#/components/schemas/HTTPValidationError"
}