CampaignsBlock snippets
Get Campaign Block Snippet Assignments
Get all block-snippet assignments for a campaign.
Authorization
x-api-key x-api-key<token>
API key required for authentication.
Keys begin with 'cc_' prefix. Get your API key from the Developer Dashboard.
In: header
Path Parameters
string
Campaign ID
Match^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$Formatuuid
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
application/json
application/json
curl -X GET "https://api.carecycle.ai/v2/campaigns/497f6eca-6276-4993-bfeb-53cbbbba6f08/block-snippets"{
"assignments": [
{
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"createdAt": "2019-08-24T14:15:22Z",
"campaignId": "13f8bf6d-dc27-4a04-bffe-6e5b13c19ddf",
"blockId": "fcde1d7c-c9cf-4365-8b6f-51bb6a8bc460",
"snippetId": "ecb0f447-186f-4346-95ab-e27b9e84b6b4",
"transferConfigId": "e0ca1204-c276-46be-8cf8-5259ed04eb66",
"appointmentConfigId": "1c7d76df-b376-45c7-a6f4-7e4bd224ddc2",
"afterHoursBlockId": "67b2a124-4795-4fed-8c57-0e2417fda047",
"afterHoursTransferConfigId": "6ce8c3e4-145f-4a90-b651-30ca815d9242",
"afterHoursAppointmentConfigId": "a372642e-8e77-4832-b8b0-f7e3c22e825f",
"capabilityId": "486ae165-7fa3-4fe9-8d0b-0636c8459cb3",
"scope": "business_hours",
"appliesTo": "string",
"enabled": true,
"priority": -2147483648,
"isDefault": true,
"settings": "string",
"block": {
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"createdAt": "2019-08-24T14:15:22Z",
"updatedAt": "2019-08-24T14:15:22Z",
"name": "string",
"tag": "string",
"description": "string",
"toolType": "string",
"enabled": true,
"kind": "tool",
"contract": "string",
"injectionTag": "string"
},
"snippet": {
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"createdAt": "2019-08-24T14:15:22Z",
"updatedAt": "2019-08-24T14:15:22Z",
"clientId": "5e505642-9024-474d-9434-e5a44f505cc5",
"name": "string",
"description": "string",
"examples": "string",
"toolsAllowlist": "string",
"verticalAllowlist": "string",
"suiteAllowlist": "string",
"isSystem": true,
"enabled": true,
"defaultBlockId": "351af964-3320-43e6-8b88-c926580311bc",
"defaultTransferConfigId": "2dab01de-0c6b-4aa5-bbcd-5ef72238f0b9",
"defaultAppointmentConfigId": "f18915f6-743f-4c27-aa4d-5213eb71151b",
"defaultAfterHoursBlockId": "778003e6-8322-4ff9-b2bf-238c84745070",
"defaultAfterHoursAppointmentConfigId": "e2ce9cef-d1d0-4f68-ab9f-03a041d84b84"
},
"transferConfig": {
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"createdAt": "2019-08-24T14:15:22Z",
"updatedAt": "2019-08-24T14:15:22Z",
"clientId": "5e505642-9024-474d-9434-e5a44f505cc5",
"name": "string",
"routingConfigId": "b6e138dd-eba1-4cd6-85c1-31882f4d70e7",
"type": "direct",
"warmTransfer": true,
"directPhoneNumber": "string",
"dynamicOptions": "string",
"sipUri": "string",
"sipHeaders": "string",
"warmSummaryPrompt": "string",
"warmMode": "wait-for-operator",
"softphoneFallbackType": "appointment_booking",
"softphoneHandoffStrategy": "wait-for-operator",
"softphoneFallbackPhoneNumber": "string",
"appointmentBookingEnabled": true,
"appointmentConfigId": "1c7d76df-b376-45c7-a6f4-7e4bd224ddc2",
"agentFirstFallbackConfig": "string",
"transferWaitingMessages": "string",
"screenBehavior": "call-form",
"callFormId": "ce7b9bca-896d-440b-961b-042f5bf12d2d"
},
"appointmentConfig": {
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"createdAt": "2019-08-24T14:15:22Z",
"updatedAt": "2019-08-24T14:15:22Z",
"clientId": "5e505642-9024-474d-9434-e5a44f505cc5",
"name": "string",
"description": "string",
"concurrentLimit": -2147483648,
"appointmentLength": -2147483648,
"appointmentSpacing": -2147483648,
"maxOptions": -2147483648,
"minDate": "2019-08-24",
"maxDate": "2019-08-24",
"minHours": -2147483648,
"preferredMode": "timezone",
"appointmentMode": "phone_call",
"showCallerIdOnBookingPage": true,
"assignmentMode": "customer_agent",
"routingConfigId": "b6e138dd-eba1-4cd6-85c1-31882f4d70e7",
"transferConfigId": "e0ca1204-c276-46be-8cf8-5259ed04eb66",
"workflows": "string",
"bookingHours": "string",
"createdBy": "25a02396-1048-48f9-bf93-102d2fb7895e",
"updatedBy": "b0efe45f-0520-4e21-90f0-7e35f137732e"
}
}
],
"total": 0
}{
"message": "string",
"code": "string"
}{
"message": "string",
"code": "string"
}{
"message": "string",
"code": "string"
}{
"message": "string",
"code": "string"
}{
"message": "string",
"code": "VALIDATION_ERROR",
"errors": [
{
"path": [
"string"
],
"message": "string",
"expected": "string",
"received": "string",
"code": "string"
}
],
"failedRecords": [
{
"index": 0,
"phoneNumber": "string",
"firstName": "string",
"lastName": "string",
"externalId": "string"
}
]
}{
"message": "string",
"code": "string",
"retryAfter": 0
}{
"message": "string",
"code": "string"
}