SDK reference

Service

Each route's function in the SDK, its call beside the same request in cURL.
serviceConversationsList

GET/v1/orgs/:orgId/service/conversations

List Service's conversations

Parameters and answers
curl 'https://api.cactive.com.au/v1/orgs/{orgId}/service/conversations' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
serviceConversationsGet

GET/v1/orgs/:orgId/service/inboxes/:inboxId/conversations/:conversationId

Get a Service conversation

Parameters and answers
curl 'https://api.cactive.com.au/v1/orgs/{orgId}/service/inboxes/{inboxId}/conversations/{conversationId}' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
serviceConversationsUpdate

PATCH/v1/orgs/:orgId/service/inboxes/:inboxId/conversations/:conversationId

Change a Service conversation

Parameters and answers
curl -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
  }'
serviceConversationsSnooze

POST/v1/orgs/:orgId/service/inboxes/:inboxId/conversations/:conversationId/snooze

Snooze a conversation

Parameters and answers
curl -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
  }'
serviceConversationsUnsnooze

DELETE/v1/orgs/:orgId/service/inboxes/:inboxId/conversations/:conversationId/snooze

Unsnooze a conversation

Parameters and answers
curl -X DELETE 'https://api.cactive.com.au/v1/orgs/{orgId}/service/inboxes/{inboxId}/conversations/{conversationId}/snooze' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
serviceNotesCreate

POST/v1/orgs/:orgId/service/inboxes/:inboxId/conversations/:conversationId/notes

Add an internal note

Parameters and answers
curl -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"
  }'
serviceRepliesSend

POST/v1/orgs/:orgId/service/inboxes/:inboxId/conversations/:conversationId/replies

Reply to the customer

Parameters and answers
curl -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"
  }'
serviceConversationsSuggest

POST/v1/orgs/:orgId/service/inboxes/:inboxId/conversations/:conversationId/suggest

Suggest a reply and actions

Parameters and answers
curl -X POST 'https://api.cactive.com.au/v1/orgs/{orgId}/service/inboxes/{inboxId}/conversations/{conversationId}/suggest' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
serviceActionsPreview

POST/v1/orgs/:orgId/service/inboxes/:inboxId/conversations/:conversationId/actions/preview

Preview an action

Parameters and answers
curl -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": {}
    }
  }'
serviceActionsApply

POST/v1/orgs/:orgId/service/inboxes/:inboxId/conversations/:conversationId/actions

Apply an action

Parameters and answers
curl -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": {}
    }
  }'
serviceConversationsMerge

POST/v1/orgs/:orgId/service/inboxes/:inboxId/conversations/:conversationId/merge

Merge a conversation into another

Parameters and answers
curl -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"
  }'
serviceConversationsSplit

POST/v1/orgs/:orgId/service/inboxes/:inboxId/conversations/:conversationId/split

Split a conversation

Parameters and answers
curl -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>"
  }'
serviceConversationsImport

POST/v1/orgs/:orgId/service/inboxes/:inboxId/conversations

Bring a Mail thread into an inbox

Parameters and answers
curl -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>"
  }'
serviceInboxesList

GET/v1/orgs/:orgId/service/inboxes

List Service's inboxes

Parameters and answers
curl 'https://api.cactive.com.au/v1/orgs/{orgId}/service/inboxes' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
serviceInboxesCreate

POST/v1/orgs/:orgId/service/inboxes

Create an inbox

Parameters and answers
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"
  }'
serviceInboxesUpdate

PATCH/v1/orgs/:orgId/service/inboxes/:inboxId

Change an inbox

Parameters and answers
curl -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
  }'
serviceInboxesDelete

DELETE/v1/orgs/:orgId/service/inboxes/:inboxId

Delete an inbox

Parameters and answers
curl -X DELETE 'https://api.cactive.com.au/v1/orgs/{orgId}/service/inboxes/{inboxId}' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
serviceFactsGet

GET/v1/orgs/:orgId/service/inboxes/:inboxId/facts

Get an inbox's facts

Parameters and answers
curl 'https://api.cactive.com.au/v1/orgs/{orgId}/service/inboxes/{inboxId}/facts' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
serviceFactsUpdate

PUT/v1/orgs/:orgId/service/inboxes/:inboxId/facts

Update an inbox's facts

Parameters and answers
curl -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"
  }'
serviceChannelsGet

GET/v1/orgs/:orgId/service/inboxes/:inboxId/channels

Get an inbox's web form and chat

Parameters and answers
curl 'https://api.cactive.com.au/v1/orgs/{orgId}/service/inboxes/{inboxId}/channels' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
serviceChannelsUpdate

PUT/v1/orgs/:orgId/service/inboxes/:inboxId/channels/:kind

Turn an inbox's web form or chat on or off

Parameters and answers
curl -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
  }'
serviceMacrosList

GET/v1/orgs/:orgId/service/macros

List Service's macros

Parameters and answers
curl 'https://api.cactive.com.au/v1/orgs/{orgId}/service/macros' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
serviceMacrosCreate

POST/v1/orgs/:orgId/service/macros

Create a macro

Parameters and answers
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"
  }'
serviceMacrosUpdate

PATCH/v1/orgs/:orgId/service/macros/:macroId

Change a macro

Parameters and answers
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
  }'
serviceMacrosDelete

DELETE/v1/orgs/:orgId/service/macros/:macroId

Delete a macro

Parameters and answers
curl -X DELETE 'https://api.cactive.com.au/v1/orgs/{orgId}/service/macros/{macroId}' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
serviceSettingsGet

GET/v1/orgs/:orgId/service/settings

Get Service's settings

Parameters and answers
curl 'https://api.cactive.com.au/v1/orgs/{orgId}/service/settings' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
serviceSettingsUpdate

PATCH/v1/orgs/:orgId/service/settings

Update Service's settings

Parameters and answers
curl -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"
  }'