Trillet AI logo

List Call Flows

Retrieve a list of all call flows in the workspace.

GEThttps://api.trillet.ai/v1/api/call-flows

Headers

x-api-keystringrequired

API key used for authenticating requests to the API.

x-workspace-idstringrequired

Workspace identifier for the API.

Response Fields

Each object in the response array represents a call flow within the workspace, containing the following fields:

_idstring

The unique identifier for the call flow.

workspaceIdstring

The identifier of the workspace where the call flow is configured.

namestring

The name assigned to the call flow.

directionstring

Indicates the direction of the call flow, such as "inbound" or "bidirectional".

agentstring

The identifier of the agent associated with the call flow.

isActiveboolean

A boolean indicating whether the call flow is currently active.

promptTypestring

The type of prompt used in the call flow, either "simple" or "flow".

createdAtstring

Timestamp when the call flow was updated.

updatedAtstring

Timestamp when the call flow was last updated.

[
  {
    "_id": "flowId1",
    "workspaceId": "workspaceIdExample1",
    "name": "Customer Support Flow",
    "direction": "inbound",
    "agent": "agentIdExample1",
    "isActive": true,
    "promptType": "simple",
    "createdAt": "2025-01-02T09:00:00Z",
    "updatedAt": "2025-01-02T09:30:00Z"
  },
  {
    "_id": "flowId2",
    "workspaceId": "workspaceIdExample2",
    "name": "Sales Inquiry Flow",
    "direction": "bidirectional",
    "agent": "agentIdExample2",
    "isActive": false,
    "promptType": "flow",
    "createdAt": "2025-01-05T09:00:00Z",
    "updatedAt": "2025-01-06T12:00:00Z"
  }
]