SDK reference
Service
GET/
List Service's conversations
Parameters and answerscurl 'https://api.cactive.com.au/v1/orgs/{orgId}/service/conversations' \
-H "Authorization: Bearer $CACTIVE_TOKEN"GET/
Get a Service conversation
Parameters and answerscurl 'https://api.cactive.com.au/v1/orgs/{orgId}/service/inboxes/{inboxId}/conversations/{conversationId}' \
-H "Authorization: Bearer $CACTIVE_TOKEN"PATCH/
Change a Service conversation
Parameters and answerscurl -X PATCH 'https://api.cactive.com.au/v1/orgs/{orgId}/service/inboxes/{inboxId}/conversations/{conversationId}' \
-H "Authorization: Bearer $CACTIVE_TOKEN" \
-H 'Content-Type: application/json' \
-d '{
"updatedAt": 1
}'POST/
Snooze a conversation
Parameters and answerscurl -X POST 'https://api.cactive.com.au/v1/orgs/{orgId}/service/inboxes/{inboxId}/conversations/{conversationId}/snooze' \
-H "Authorization: Bearer $CACTIVE_TOKEN" \
-H 'Content-Type: application/json' \
-d '{
"updatedAt": 1
}'DELETE/
Unsnooze a conversation
Parameters and answerscurl -X DELETE 'https://api.cactive.com.au/v1/orgs/{orgId}/service/inboxes/{inboxId}/conversations/{conversationId}/snooze' \
-H "Authorization: Bearer $CACTIVE_TOKEN"POST/
Add an internal note
Parameters and answerscurl -X POST 'https://api.cactive.com.au/v1/orgs/{orgId}/service/inboxes/{inboxId}/conversations/{conversationId}/notes' \
-H "Authorization: Bearer $CACTIVE_TOKEN" \
-H 'Content-Type: application/json' \
-d '{
"text": "example"
}'POST/
Reply to the customer
Parameters and answerscurl -X POST 'https://api.cactive.com.au/v1/orgs/{orgId}/service/inboxes/{inboxId}/conversations/{conversationId}/replies' \
-H "Authorization: Bearer $CACTIVE_TOKEN" \
-H 'Content-Type: application/json' \
-d '{
"text": "example"
}'POST/
Suggest a reply and actions
Parameters and answerscurl -X POST 'https://api.cactive.com.au/v1/orgs/{orgId}/service/inboxes/{inboxId}/conversations/{conversationId}/suggest' \
-H "Authorization: Bearer $CACTIVE_TOKEN"POST/
Preview an action
Parameters and answerscurl -X POST 'https://api.cactive.com.au/v1/orgs/{orgId}/service/inboxes/{inboxId}/conversations/{conversationId}/actions/preview' \
-H "Authorization: Bearer $CACTIVE_TOKEN" \
-H 'Content-Type: application/json' \
-d '{
"action": {
"provider": "commerce",
"kind": "example",
"values": {}
}
}'POST/
Apply an action
Parameters and answerscurl -X POST 'https://api.cactive.com.au/v1/orgs/{orgId}/service/inboxes/{inboxId}/conversations/{conversationId}/actions' \
-H "Authorization: Bearer $CACTIVE_TOKEN" \
-H 'Content-Type: application/json' \
-d '{
"action": {
"provider": "commerce",
"kind": "example",
"values": {}
}
}'POST/
Merge a conversation into another
Parameters and answerscurl -X POST 'https://api.cactive.com.au/v1/orgs/{orgId}/service/inboxes/{inboxId}/conversations/{conversationId}/merge' \
-H "Authorization: Bearer $CACTIVE_TOKEN" \
-H 'Content-Type: application/json' \
-d '{
"into": "example"
}'POST/
Split a conversation
Parameters and answerscurl -X POST 'https://api.cactive.com.au/v1/orgs/{orgId}/service/inboxes/{inboxId}/conversations/{conversationId}/split' \
-H "Authorization: Bearer $CACTIVE_TOKEN" \
-H 'Content-Type: application/json' \
-d '{
"entryId": "<entryId>"
}'POST/
Bring a Mail thread into an inbox
Parameters and answerscurl -X POST 'https://api.cactive.com.au/v1/orgs/{orgId}/service/inboxes/{inboxId}/conversations' \
-H "Authorization: Bearer $CACTIVE_TOKEN" \
-H 'Content-Type: application/json' \
-d '{
"mailboxId": "<mailboxId>",
"threadId": "<threadId>"
}'curl 'https://api.cactive.com.au/v1/orgs/{orgId}/service/inboxes' \
-H "Authorization: Bearer $CACTIVE_TOKEN"curl -X POST 'https://api.cactive.com.au/v1/orgs/{orgId}/service/inboxes' \
-H "Authorization: Bearer $CACTIVE_TOKEN" \
-H 'Content-Type: application/json' \
-d '{
"name": "Example"
}'PATCH/
Change an inbox
Parameters and answerscurl -X PATCH 'https://api.cactive.com.au/v1/orgs/{orgId}/service/inboxes/{inboxId}' \
-H "Authorization: Bearer $CACTIVE_TOKEN" \
-H 'Content-Type: application/json' \
-d '{
"updatedAt": 1
}'DELETE/
Delete an inbox
Parameters and answerscurl -X DELETE 'https://api.cactive.com.au/v1/orgs/{orgId}/service/inboxes/{inboxId}' \
-H "Authorization: Bearer $CACTIVE_TOKEN"GET/
Get an inbox's facts
Parameters and answerscurl 'https://api.cactive.com.au/v1/orgs/{orgId}/service/inboxes/{inboxId}/facts' \
-H "Authorization: Bearer $CACTIVE_TOKEN"PUT/
Update an inbox's facts
Parameters and answerscurl -X PUT 'https://api.cactive.com.au/v1/orgs/{orgId}/service/inboxes/{inboxId}/facts' \
-H "Authorization: Bearer $CACTIVE_TOKEN" \
-H 'Content-Type: application/json' \
-d '{
"text": "example"
}'GET/
Get an inbox's web form and chat
Parameters and answerscurl 'https://api.cactive.com.au/v1/orgs/{orgId}/service/inboxes/{inboxId}/channels' \
-H "Authorization: Bearer $CACTIVE_TOKEN"PUT/
Turn an inbox's web form or chat on or off
Parameters and answerscurl -X PUT 'https://api.cactive.com.au/v1/orgs/{orgId}/service/inboxes/{inboxId}/channels/{kind}' \
-H "Authorization: Bearer $CACTIVE_TOKEN" \
-H 'Content-Type: application/json' \
-d '{
"on": true
}'curl 'https://api.cactive.com.au/v1/orgs/{orgId}/service/macros' \
-H "Authorization: Bearer $CACTIVE_TOKEN"curl -X POST 'https://api.cactive.com.au/v1/orgs/{orgId}/service/macros' \
-H "Authorization: Bearer $CACTIVE_TOKEN" \
-H 'Content-Type: application/json' \
-d '{
"title": "Example",
"body": "example"
}'curl -X PATCH 'https://api.cactive.com.au/v1/orgs/{orgId}/service/macros/{macroId}' \
-H "Authorization: Bearer $CACTIVE_TOKEN" \
-H 'Content-Type: application/json' \
-d '{
"title": "Example",
"body": "example",
"updatedAt": 1
}'DELETE/
Delete a macro
Parameters and answerscurl -X DELETE 'https://api.cactive.com.au/v1/orgs/{orgId}/service/macros/{macroId}' \
-H "Authorization: Bearer $CACTIVE_TOKEN"curl 'https://api.cactive.com.au/v1/orgs/{orgId}/service/settings' \
-H "Authorization: Bearer $CACTIVE_TOKEN"PATCH/
Update Service's settings
Parameters and answerscurl -X PATCH 'https://api.cactive.com.au/v1/orgs/{orgId}/service/settings' \
-H "Authorization: Bearer $CACTIVE_TOKEN" \
-H 'Content-Type: application/json' \
-d '{
"taskSpace": "example"
}'