Download OpenAPI specification:Download
limit parameterunscheduled to scheduled400 response when CRM is not the contact sourcesource.taskId to source.task to maintain consistencynewTasks.campaignId to newTasks.campaign to maintain consistencydoNotCall flagtasksSource fieldtaskId for task callscalendar to campaignperson field must be nullGETperson or company must not be nullcategory to tagstimestampClosedtimestampEnd nullable for unanswered callssource and contact fieldsperson and company a displayNamemessage to returnpostProcessAll date and time strings in this document should be formatted according to ISO 8601-1:2019.
In particular Apollo will always send such parameters formatted as UTC time stamps, e.g. 2019-08-24T14:15:22Z.
All phone numbers must be formatted according to E.164 without any whitespace or brackets.
Every phone number must fulfil the following regular expression: ^\+\d{3,}$.
IDs can be any string, but should not begin or end with whitespace.
In the examples usually UUIDv4 are used – this is for purposes of illustration only.
required | Company contact (object) or Person contact (object) (contact) | ||||
One of
| |||||
{- "contact": {
- "person": {
- "id": "83FA8C8A-77AB-4946-A8A0-6E921071176A"
}, - "company": {
- "id": "64A865FC-732B-E811-A954-000D3A246A83"
}
}
}Retrieve all contacts associated with a search parameter.
required | object | ||||
| |||||
{- "query": {
- "phoneNumber": "+4350456"
}
}{- "contacts": [
- {
- "company": {
- "id": "64A865FC-732B-E811-A954-000D3A246A83",
- "displayName": "CX Labs GmbH (DE)"
}, - "person": {
- "id": "83FA8C8A-77AB-4946-A8A0-6E921071176A",
- "displayName": "Rob Klein"
}
}
]
}required | object (company) | ||||||||||||||||||||||
| |||||||||||||||||||||||
{- "contact": {
- "company": {
- "name": "CX Labs GmbH",
- "address": "Prinzregentenstrasse 54",
- "zipCode": "80538",
- "city": "München",
- "country": "DE",
- "phone": "+498944322883100",
- "phone2": null,
- "email": "office@cxlabs.de",
- "annotation": "Sauber!"
}
}
}{- "contact": {
- "company": {
- "id": "64A865FC-732B-E811-A954-000D3A246A83"
}
}
}| companyId required | string (companyId) Example: 64A865FC-732B-E811-A954-000D3A246A83 Company reference ID |
{- "company": {
- "name": "CX Labs GmbH",
- "address": "Prinzregentenstrasse 54",
- "zipCode": "80538",
- "city": "München",
- "country": "DE",
- "phone": "+498944322883100",
- "phone2": null,
- "email": "office@cxlabs.de",
- "annotation": "Sauber!"
}
}| companyId required | string (companyId) Example: 64A865FC-732B-E811-A954-000D3A246A83 Company reference ID |
required | object | ||||||||||||||||||
| |||||||||||||||||||
{- "company": {
- "email": "office@cxlabs.at"
}
}required | object (companyIdRef) | ||||
| |||||
{- "contact": {
- "company": {
- "id": "64A865FC-732B-E811-A954-000D3A246A83"
}, - "person": {
- "salutation": "Herr",
- "firstName": "Robert",
- "lastName": "Klein",
- "city": "",
- "phone": "+498944322883100",
- "phone2": null,
- "email": "rob@cxlabs.de",
- "annotation": "Cooler Typ"
}
}
}{- "contact": {
- "person": {
- "id": "83FA8C8A-77AB-4946-A8A0-6E921071176A"
}
}
}| personId required | string (personId) Example: 83FA8C8A-77AB-4946-A8A0-6E921071176A Person reference ID |
{- "person": {
- "displayName": "Rob Klein",
- "salutation": "Herr",
- "firstName": "Robert",
- "lastName": "Klein",
- "city": "",
- "phone": "+498944322883100",
- "phone2": null,
- "email": "rob@cxlabs.de",
- "annotation": "Cooler Typ"
}
}| personId required | string (personId) Example: 83FA8C8A-77AB-4946-A8A0-6E921071176A Person reference ID |
required | object | ||||||||||||||||||||||||||
| |||||||||||||||||||||||||||
{- "person": {
- "city": "München"
}
}| campaignId required | string (campaignId) Example: 8EB46643-C769-45F2-AD67-8D1E8D0C8705 Campaign reference ID |
{- "contacts": [
- {
- "person": null,
- "company": {
- "id": "64A865FC-732B-E811-A954-000D3A246A83",
- "displayName": "CX Labs GmbH (DE)"
}
}
]
}| campaignId required | string (campaignId) Example: 8EB46643-C769-45F2-AD67-8D1E8D0C8705 Campaign reference ID |
date and time (string) or date only (string) Lower inclusive limit for the task's If not provided, no lower limit shall be set. | |
date and time (string) or date only (string) Upper non-inclusive limit for the task's If not provided, no upper limit shall be set. | |
| limit | string If set, limit the number of returned tasks. Must be a positive integer. |
| scheduled | string Enum: true false If If If not set, include all available tasks. |
{- "tasks": [
- {
- "timestamp": "2019-08-24T14:15:22Z",
- "contact": {
- "person": null,
- "company": {
- "id": "64A865FC-732B-E811-A954-000D3A246A83",
- "displayName": "CX Labs GmbH (DE)"
}
}, - "id": "63f6b159256d2da6bbb687fa22a4a52aafc301007e1bb388937112c13037c518"
}
]
}| campaignId required | string (campaignId) Example: 8EB46643-C769-45F2-AD67-8D1E8D0C8705 Campaign reference ID |
{- "contact": {
- "person": null,
- "company": {
- "id": "64A865FC-732B-E811-A954-000D3A246A83",
- "displayName": "CX Labs GmbH (DE)"
}
}
}required | inbound call (object) or outbound call (object) or campaign call (object) | ||||||||||||||||||||||||||||||||||
One of
| |||||||||||||||||||||||||||||||||||
{- "call": {
- "agent": "peggy.sue",
- "annotation": "Some difficulties with the ignition.",
- "attempts": [
- {
- "agent": "john.doe",
- "timestampClosed": "2020-10-28T10:34:18.040Z",
- "timestampAssigned": "2020-10-28T10:33:48.126Z"
}
], - "contact": {
- "company": "64A865FC-732B-E811-A954-000D3A246A83",
- "person": "83FA8C8A-77AB-4946-A8A0-6E921071176A"
}, - "dtmfPath": "",
- "newTasks": [
- {
- "campaign": "tech_level_2",
- "timestamp": "2020-10-28T11:00:00.00Z",
- "annotation": "Ask for Steven!"
}
], - "transfer": {
- "id": "accounting",
- "type": "queue"
}, - "id": "1c4881e2-3df2-403c-834b-a16a982780a1",
- "phoneNumber": null,
- "source": {
- "id": "tech_level_1",
- "type": "queue"
}, - "tags": [
- {
- "category": "reason",
- "id": "mechanical",
- "payload": {
- "part": "IGN"
}
}, - {
- "category": "model",
- "id": "class_S",
- "payload": null
}, - {
- "category": "resolution",
- "id": "send_voucher",
- "payload": {
- "email": "some@email.com"
}
}
], - "timestampAssigned": "2020-10-28T10:34:18.048Z",
- "timestampClosed": "2020-10-28T10:39:84.392Z",
- "timestampEnd": "2020-10-28T10:49:55.351Z",
- "timestampInit": "2020-10-28T10:33:48.124Z",
- "timestampStart": "2020-10-28T10:34:20.528Z",
- "doNotCall": false
}
}