GET
/
crm
/
step

Authorizations

Authorization
string
headerrequired

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Query Parameters

scenarioId
string
required

The ID of the CRM scenario to fetch steps for.

agentId
string

Filter steps by a specific Agent ID.

Response

200 - application/json
id
string

The unique identifier for the CRM step.

name
string

The name of the CRM step.

index
integer

The order/index of the step within its scenario.

prompt
string | null

The main prompt or instruction for this step.

trigger
string | null

A trigger condition or keyword for this step.

initialMessage
string | null

An initial message to be sent when this step is activated.

autoNextStepId
string | null

ID of the step to automatically transition to after this one.

autoNextTime
integer | null

Time in seconds to wait before automatically transitioning to autoNextStepId.

autoNextTimeUnit
enum<string> | null

The time unit for auto-transition.

Available options:
m,
h,
d
defaultStatus
enum<string> | null

Default status to set for conversations reaching this step.

Available options:
RESOLVED,
UNRESOLVED,
HUMAN_REQUESTED
defaultPriority
enum<string> | null

Default priority to set for conversations reaching this step.

Available options:
LOW,
MEDIUM,
HIGH
defaultAiControl
boolean | null

Default AI control setting for the conversation.

assigneeLogicType
enum<string> | null

Logic for assigning conversations at this step.

Available options:
none,
clear,
single_user,
random_selected,
fair_distribution_selected
selectedMembershipIdsForAssignee
string[] | null

List of membership IDs for assignee logic.

isRequired
boolean | null

Indicates if this step is mandatory.

isConversationRemovalStep
boolean | null

If true, this step removes the conversation from the scenario.

defaultTags
string[] | null

Default tags to add to the conversation.

defaultTagsToRemove
string[] | null

Default tags to remove from the conversation.

requestContact
object | null

Configuration for requesting contact information.

organizationId
string
agentId
string | null
scenarioId
string
zapi
object | null

Z-API integration settings.

whatsapp
object | null

WhatsApp template integration settings.

webhookUrl
string | null

URL for the webhook to be called.

webhookHeader
object | null

Headers for the webhook request.

createdAt
string

Timestamp of when the step was created.

updatedAt
string

Timestamp of when the step was last updated.

agent
object | null
scenario
object