List Campaigns

Headers

AuthorizationstringRequired

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

Query parameters

limitdoubleOptional>=0<=1000
This is the maximum number of items to return. Defaults to 100.
createdAtGtstringOptionalformat: "date-time"
This will return items where the createdAt is greater than the specified value.
createdAtLtstringOptionalformat: "date-time"
This will return items where the createdAt is less than the specified value.
createdAtGestringOptionalformat: "date-time"
This will return items where the createdAt is greater than or equal to the specified value.
createdAtLestringOptionalformat: "date-time"
This will return items where the createdAt is less than or equal to the specified value.
updatedAtGtstringOptionalformat: "date-time"
This will return items where the updatedAt is greater than the specified value.
updatedAtLtstringOptionalformat: "date-time"
This will return items where the updatedAt is less than the specified value.
updatedAtGestringOptionalformat: "date-time"
This will return items where the updatedAt is greater than or equal to the specified value.
updatedAtLestringOptionalformat: "date-time"
This will return items where the updatedAt is less than or equal to the specified value.

Response

statusenum
This is the status of the campaign.
Allowed values:
namestring
This is the name of the campaign. This is just for your own reference.
phoneNumberIdstring
This is the phone number ID that will be used for the campaign calls.
schedulePlanobject
This is the schedule plan for the campaign.
customerslist of objects
These are the customers that will be called in the campaign.
idstring
This is the unique identifier for the campaign.
orgIdstring
This is the unique identifier for the org that this campaign belongs to.
createdAtstringformat: "date-time"

This is the ISO 8601 date-time string of when the campaign was created.

updatedAtstringformat: "date-time"

This is the ISO 8601 date-time string of when the campaign was last updated.

callsobject
This is a map of call IDs to campaign call details.
callsCounterEndeddouble
This is the number of calls that have ended.
endedReasonenum or null
This is the explanation for how the campaign ended.
Allowed values:
assistantIdstring or null

This is the assistant ID that will be used for the campaign calls. Note: Either assistantId or workflowId can be used, but not both.

workflowIdstring or null

This is the workflow ID that will be used for the campaign calls. Note: Either assistantId or workflowId can be used, but not both.