GET
/
dispatches

Retrieves a list of dispatches, with optional filters and pagination.

Query Parameters

limit
integer

The maximum number of dispatches to return. Defaults to 100.

offset
integer

The number of dispatches to skip. Defaults to 0.

search
string

A search term to filter dispatches by name.

status
string

Filter dispatches by status.

agentId
string

Filter dispatches by agent ID.

crmScenarioId
string

Filter dispatches by CRM scenario ID.

crmStepId
string

Filter dispatches by CRM step ID.

startDate
string

The start date to filter dispatches by scheduledAt.

endDate
string

The end date to filter dispatches by scheduledAt.

Response

Success
object

Authorizations

Authorization
string
headerrequired

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

Query Parameters

offset
integer
default: 0

Number of records to skip for pagination.

limit
integer
default: 100

Maximum number of records to return.

search
string

Search term for dispatch name.

status
string

Filter by dispatch status.

agentId
string

Filter by Agent ID.

crmScenarioId
string

Filter by CRM Scenario ID.

crmStepId
string

Filter by CRM Step ID.

startDate
string

Filter dispatches scheduled on or after this date.

endDate
string

Filter dispatches scheduled on or before this date.

Response

200 - application/json
dispatches
object[]
count
integer
totalCount
integer
sentCount
integer
errorCount
integer
latestErrorMessage
string | null