v1

latestOpenAPI 3.1.02026-07-26436887.6 KB
main

Create Workflow From Template

Create 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

post/api/v1/workflow/create/template

Headers

authorizationstring nullable
X-API-Keystring nullable

Request body

call_type'inbound' | 'outbound' required
use_casestring required
activity_descriptionstring required

Response

Successful Response

idinteger required
namestring required
statusstring required
created_atstring date-time required
workflow_definitionobject required
current_definition_idinteger nullable required
template_context_variablesobject nullable
total_runsinteger nullable
workflow_configurationsobject nullable
version_numberinteger nullable
version_statusstring nullable
workflow_uuidstring nullable