List Campaigns
Headers
Authorization
Bearer authentication of the form Bearer <token>, where token is your auth token.
Query parameters
limit
This is the maximum number of items to return. Defaults to 100.
createdAtGt
This will return items where the createdAt is greater than the specified value.
createdAtLt
This will return items where the createdAt is less than the specified value.
createdAtGe
This will return items where the createdAt is greater than or equal to the specified value.
createdAtLe
This will return items where the createdAt is less than or equal to the specified value.
updatedAtGt
This will return items where the updatedAt is greater than the specified value.
updatedAtLt
This will return items where the updatedAt is less than the specified value.
updatedAtGe
This will return items where the updatedAt is greater than or equal to the specified value.
updatedAtLe
This will return items where the updatedAt is less than or equal to the specified value.
Response
status
This is the status of the campaign.
Allowed values:
name
This is the name of the campaign. This is just for your own reference.
phoneNumberId
This is the phone number ID that will be used for the campaign calls.
schedulePlan
This is the schedule plan for the campaign.
customers
These are the customers that will be called in the campaign.
id
This is the unique identifier for the campaign.
orgId
This is the unique identifier for the org that this campaign belongs to.
createdAt
This is the ISO 8601 date-time string of when the campaign was created.
updatedAt
This is the ISO 8601 date-time string of when the campaign was last updated.
calls
This is a map of call IDs to campaign call details.
callsCounterEnded
This is the number of calls that have ended.
endedReason
This is the explanation for how the campaign ended.
Allowed values:
assistantId
This is the assistant ID that will be used for the campaign calls. Note: Either assistantId or workflowId can be used, but not both.
workflowId
This is the workflow ID that will be used for the campaign calls. Note: Either assistantId or workflowId can be used, but not both.