Create a flow
Creates a new automation flow for the specified organization. The flow defines execution logic, conditions, and target workspaces. Returns data of the created flow upon successful creation.
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Headers
Language code for text fields supporting multiple languages. When creating or updating resources, this specifies the language for the provided text values. When retrieving resources, this determines which language variant the multilingual text fields return. Accepted values: 'en-EN' (English), 'es-ES' (Spanish), 'pt-BR' (Portuguese), 'ca-ES' (Catalan), 'eu-ES' (Basque). The default is 'es-ES' if not provided.
en-EN, es-ES, pt-BR, ca-ES, eu-ES Path Parameters
The unique identifier of the organization
24^[0-9a-f]{24}$Body
Flow name. Requires at least one language key; each value must be between 1 and 512 characters.
Flow description. Requires at least one language key; each value must be between 1 and 512 characters.
session, workspace Waiting time in minutes. Must be between 10 and 1440.
10 <= x <= 144024^[0-9a-f]{24}$If true, the flow is enabled upon creation (requires valid conditions, microservice, and target). If omitted or false, a disabled flow is created.
Initial text message. Omitted if not needed. When provided, requires at least one language key; each value must be between 1 and 512 characters.
Success text message. Omitted if not needed. When provided, requires at least one language key; each value must be between 1 and 512 characters.
Error text message. Omitted if not needed. When provided, requires at least one language key; each value must be between 1 and 512 characters.
Response
Flow successfully created. The response contains the created resource.
Flow detail as returned by GET flow by id. Organization is implied by the route /v1/organizations/{organization_id}/flows/{flow_id}. Target workspaces/groups are normalized in target.ids (hexadecimal strings of MongoDB ObjectId).
24^[0-9a-f]{24}$Resolved to Accept-Language when multilingual
Resolved to Accept-Language when multilingual
session, workspace Waiting time in minutes
Execution destination: type selects the scope; ids list Workspace _id values, Workspace group _id values, or Reporting Group _id (empty when type is ALL_WORKSPACES)
Omitted or empty when the flow has no conditions
Linked microservice ID when present
Resolved to Accept-Language when multilingual
Resolved to Accept-Language when multilingual
Resolved to Accept-Language when multilingual
Present when metrics are calculated for this flow