Activeflow

Activeflow

{
    "id": "<string>",
    "customer_id": "<string>",
    "flow_id": "<string>",
    "status": "<string>",
    "reference_type": "<string>",
    "reference_id": "<string>",
    "current_action": {
        ...
    },
    "forward_action_id": "<string>",
    "tm_create": "<string>",
    "tm_update": "<string>",
    "tm_delete": "<string>"
}
  • id (UUID): The activeflow’s unique identifier. Returned when listing via GET /activeflows or GET /activeflows/{id}.

  • customer_id (UUID): The customer who owns this activeflow. Obtained from GET /customers or your authentication context.

  • flow_id (UUID): The flow template this activeflow was created from. Obtained from GET /flows.

  • status (enum string): The activeflow’s current status. See detail here.

  • reference_type (enum string): The resource type that triggered this activeflow. See detail here.

  • reference_id (UUID): The ID of the resource that triggered this activeflow (e.g., a call ID if reference_type is call). Obtained from the corresponding resource endpoint (e.g., GET /calls/{id}).

  • current_action (Object): The action currently being executed. See detail here.

  • forward_action_id (UUID): The ID of the next action to execute. Set to 00000000-0000-0000-0000-000000000000 if sequential (next in array).

  • tm_create (String, ISO 8601): Timestamp when the activeflow was created.

  • tm_update (String, ISO 8601): Timestamp of the last state change.

  • tm_delete (String, ISO 8601): Timestamp when the activeflow was deleted. Set to 9999-01-01 00:00:00.000000 if not deleted.

Note

AI Implementation Hint

Activeflows are read-only from an API perspective – you cannot create them via API. They are created automatically when a flow is triggered. You can only list them (GET /activeflows), inspect them (GET /activeflows/{id}), or stop them (POST /activeflows/{id}/stop). Timestamps set to 9999-01-01 00:00:00.000000 indicate the event has not yet occurred.

Example

{
    "id": "6f18ae1c-ddf8-413b-9572-ad30574604ef",
    "customer_id": "5e4a0680-804e-11ec-8477-2fea5968d85b",
    "flow_id": "93993ae1-0408-4639-ad5f-1288aa8d4325",
    "status": "ended",
    "reference_type": "call",
    "reference_id": "fd581a20-2606-47fd-a7e8-6bba7c294170",
    "current_action": {
        "id": "93ebcadb-ecae-4291-8d49-ca81a926b8b3",
        "next_id": "00000000-0000-0000-0000-000000000000",
        "type": "digits_receive",
        "option": {
            "length": 1,
            "duration": 5000
        }
    },
    "forward_action_id": "00000000-0000-0000-0000-000000000000",
    "tm_create": "2023-04-06 14:53:12.569073",
    "tm_update": "2023-04-06 14:54:24.652558",
    "tm_delete": "9999-01-01 00:00:00.000000"
}

Status

Activeflow’s status.

Status

Description

""

Initial state. The activeflow has been created but execution has not yet started.

running

Activeflow is running.

ended

Activeflow has stopped.

Reference type

The resource type that triggered the activeflow execution.

Type

Description

call

Incoming or outgoing call triggered the flow.

message

Incoming SMS/MMS message triggered the flow.

api

Flow started via API call.

campaign

Outbound campaign triggered the flow.

transcribe

Transcription service triggered the flow.

recording

Recording completion triggered the flow.

ai

AI service triggered the flow.