API reference

Service

Inboxes, conversations, replies, notes, macros, facts and previewed actions.
GET/v1/hooks/service/form/:key

An inbox's web form by its public key (no sign-in): the inbox's name, a ticket to send back and the hidden field's name. 404, naming nothing, when it's off, the key was replaced or the organization's plan has no Service. Never cached.

Auth
None.

Path parameters

  • key

    Variable name; under marketing journeys a person's key: their email address, mobile (E.164) or rec:<record id>, URL-encoded.

curl 'https://api.cactive.com.au/v1/hooks/service/form/{key}'
Send it from this page with your session or a key.
POST/v1/hooks/service/form/:key

Sends a web form message (email, message, optional name, subject and page, the ticket): it opens a conversation in the inbox, and replies go by email. The same { ok } for anything taken for spam; 422 with each field's problem; 429 past an address's or the form's hour.

Auth
None.

Path parameters

  • key

    Variable name; under marketing journeys a person's key: their email address, mobile (E.164) or rec:<record id>, URL-encoded.

Errors

  • 413That message is too long.
curl -X POST 'https://api.cactive.com.au/v1/hooks/service/form/{key}'
Send it from this page with your session or a key.
GET/v1/hooks/service/chat/:key

An inbox's chat by its public key, as its panel shows it; answers as the web form's does.

Auth
None.

Path parameters

  • key

    Variable name; under marketing journeys a person's key: their email address, mobile (E.164) or rec:<record id>, URL-encoded.

curl 'https://api.cactive.com.au/v1/hooks/service/chat/{key}'
Send it from this page with your session or a key.
POST/v1/hooks/service/chat/:key

Sends a chat message: the first takes email and answers a thread, which later messages send instead to land in the same conversation for twelve hours (409 thread_expired after). Otherwise as the web form's.

Auth
None.

Path parameters

  • key

    Variable name; under marketing journeys a person's key: their email address, mobile (E.164) or rec:<record id>, URL-encoded.

Errors

  • 413That message is too long.
curl -X POST 'https://api.cactive.com.au/v1/hooks/service/chat/{key}'
Send it from this page with your session or a key.
GET/v1/orgs/:orgId/service/conversations

List Service's conversations

Auth
A person's token or an API key, as Authorization: Bearer.
Get an API key

Path parameters

  • orgId

    Organization id (org_…).

Query parameters

  • inboxIdstring

    3–80 characters.

  • view"active" | "snoozed" | "solved" | "spam"
  • queueany
  • status"open" | "pending" | "solved" | "spam"
  • assigneestring

    Up to 60 characters.

Errors

  • 400Invalid input (invalid_input)
  • 401Not signed in (unauthenticated)
  • 403Not allowed
  • 404Not found, or not yours to see
  • 428A reason is required (purpose_required); state it in the purpose header
  • 429Too many requests (rate_limited); see Retry-After
  • 500Something went wrong (internal)
  • 503Try again shortly
curl 'https://api.cactive.com.au/v1/orgs/{orgId}/service/conversations' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
Send it from this page with your session or a key.

Response 200 with no body

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

Get a Service conversation

Auth
A person's token or an API key, as Authorization: Bearer.
Get an API key

Path parameters

  • orgId

    Organization id (org_…).

  • inboxId

    A Service inbox's id: one of the org's own (svi_…) or a provider's, such as a Commerce brand's (commerce-<brandId>).

  • conversationId

    A Service conversation's id (svc_…).

Errors

  • 400Invalid input (invalid_input)
  • 401Not signed in (unauthenticated)
  • 403Not allowed
  • 404Not found, or not yours to see
  • 428A reason is required (purpose_required); state it in the purpose header
  • 429Too many requests (rate_limited); see Retry-After
  • 500Something went wrong (internal)
  • 503Try again shortly
curl 'https://api.cactive.com.au/v1/orgs/{orgId}/service/inboxes/{inboxId}/conversations/{conversationId}' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
Send it from this page with your session or a key.

Response 200 with no body

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

Change a Service conversation

Auth
A person's token or an API key, as Authorization: Bearer.
Get an API key

Path parameters

  • orgId

    Organization id (org_…).

  • inboxId

    A Service inbox's id: one of the org's own (svi_…) or a provider's, such as a Commerce brand's (commerce-<brandId>).

  • conversationId

    A Service conversation's id (svc_…).

Request body

  • status"open" | "pending" | "solved" | "spam"
  • assigneestringor null

    2–60 characters.

  • queueany
  • updatedAtintegerrequired

Errors

  • 400Invalid input (invalid_input)
  • 401Not signed in (unauthenticated)
  • 403Not allowed
  • 404Not found, or not yours to see
  • 428A reason is required (purpose_required); state it in the purpose header
  • 429Too many requests (rate_limited); see Retry-After
  • 500Something went wrong (internal)
  • 503Try again shortly
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
  }'
Send it from this page with your session or a key.

Response 200 with no body

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

Snooze a conversation

Auth
A person's token or an API key, as Authorization: Bearer.
Get an API key

Path parameters

  • orgId

    Organization id (org_…).

  • inboxId

    A Service inbox's id: one of the org's own (svi_…) or a provider's, such as a Commerce brand's (commerce-<brandId>).

  • conversationId

    A Service conversation's id (svc_…).

Request body

  • untilinteger

    > 0.

  • updatedAtintegerrequired

Errors

  • 400Invalid input (invalid_input)
  • 401Not signed in (unauthenticated)
  • 403Not allowed
  • 404Not found, or not yours to see
  • 428A reason is required (purpose_required); state it in the purpose header
  • 429Too many requests (rate_limited); see Retry-After
  • 500Something went wrong (internal)
  • 503Try again shortly
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
  }'
Send it from this page with your session or a key.

Response 200 with no body

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

Unsnooze a conversation

Auth
A person's token or an API key, as Authorization: Bearer.
Get an API key

Path parameters

  • orgId

    Organization id (org_…).

  • inboxId

    A Service inbox's id: one of the org's own (svi_…) or a provider's, such as a Commerce brand's (commerce-<brandId>).

  • conversationId

    A Service conversation's id (svc_…).

Errors

  • 400Invalid input (invalid_input)
  • 401Not signed in (unauthenticated)
  • 403Not allowed
  • 404Not found, or not yours to see
  • 428A reason is required (purpose_required); state it in the purpose header
  • 429Too many requests (rate_limited); see Retry-After
  • 500Something went wrong (internal)
  • 503Try again shortly
curl -X DELETE 'https://api.cactive.com.au/v1/orgs/{orgId}/service/inboxes/{inboxId}/conversations/{conversationId}/snooze' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
Send it from this page with your session or a key.

Response 200 with no body

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

Add an internal note

Auth
A person's token or an API key, as Authorization: Bearer.
Get an API key

Path parameters

  • orgId

    Organization id (org_…).

  • inboxId

    A Service inbox's id: one of the org's own (svi_…) or a provider's, such as a Commerce brand's (commerce-<brandId>).

  • conversationId

    A Service conversation's id (svc_…).

Request body

  • textstringrequired

    1–5,000 characters.

Errors

  • 400Invalid input (invalid_input)
  • 401Not signed in (unauthenticated)
  • 403Not allowed
  • 404Not found, or not yours to see
  • 428A reason is required (purpose_required); state it in the purpose header
  • 429Too many requests (rate_limited); see Retry-After
  • 500Something went wrong (internal)
  • 503Try again shortly
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"
  }'
Send it from this page with your session or a key.

Response 200 with no body

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

Reply to the customer

Auth
A person's token or an API key, as Authorization: Bearer.
Get an API key

Path parameters

  • orgId

    Organization id (org_…).

  • inboxId

    A Service inbox's id: one of the org's own (svi_…) or a provider's, such as a Commerce brand's (commerce-<brandId>).

  • conversationId

    A Service conversation's id (svc_…).

Request body

  • textstringrequired

    1–20,000 characters.

  • status"open" | "pending" | "solved"
  • startedAtinteger

Errors

  • 400Invalid input (invalid_input)
  • 401Not signed in (unauthenticated)
  • 403Not allowed
  • 404Not found, or not yours to see
  • 428A reason is required (purpose_required); state it in the purpose header
  • 429Too many requests (rate_limited); see Retry-After
  • 500Something went wrong (internal)
  • 503Try again shortly
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"
  }'
Send it from this page with your session or a key.

Response 200 with no body

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

Suggest a reply and actions

Auth
A person's token or an API key, as Authorization: Bearer.
Get an API key

Path parameters

  • orgId

    Organization id (org_…).

  • inboxId

    A Service inbox's id: one of the org's own (svi_…) or a provider's, such as a Commerce brand's (commerce-<brandId>).

  • conversationId

    A Service conversation's id (svc_…).

Errors

  • 400Invalid input (invalid_input)
  • 401Not signed in (unauthenticated)
  • 403Not allowed
  • 404Not found, or not yours to see
  • 428A reason is required (purpose_required); state it in the purpose header
  • 429Too many requests (rate_limited); see Retry-After
  • 500Something went wrong (internal)
  • 503Try again shortly
curl -X POST 'https://api.cactive.com.au/v1/orgs/{orgId}/service/inboxes/{inboxId}/conversations/{conversationId}/suggest' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
Send it from this page with your session or a key.

Response 200 with no body

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

Preview an action

Auth
A person's token or an API key, as Authorization: Bearer.
Get an API key

Path parameters

  • orgId

    Organization id (org_…).

  • inboxId

    A Service inbox's id: one of the org's own (svi_…) or a provider's, such as a Commerce brand's (commerce-<brandId>).

  • conversationId

    A Service conversation's id (svc_…).

Request body

  • actionobjectrequired
  • action.provider"commerce" | "tasks" | "crm" | "billing" | "cloud"required
  • action.kindstringrequired

    1–40 characters.

  • action.targetstring

    3–80 characters.

  • action.valuesobjectrequired

    Values: string (up to 5,000 characters), number or boolean.

Errors

  • 400Invalid input (invalid_input)
  • 401Not signed in (unauthenticated)
  • 403Not allowed
  • 404Not found, or not yours to see
  • 428A reason is required (purpose_required); state it in the purpose header
  • 429Too many requests (rate_limited); see Retry-After
  • 500Something went wrong (internal)
  • 503Try again shortly
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": {}
    }
  }'
Send it from this page with your session or a key.

Response 200 with no body

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

Apply an action

Auth
A person's token or an API key, as Authorization: Bearer.
Get an API key

Path parameters

  • orgId

    Organization id (org_…).

  • inboxId

    A Service inbox's id: one of the org's own (svi_…) or a provider's, such as a Commerce brand's (commerce-<brandId>).

  • conversationId

    A Service conversation's id (svc_…).

Request body

  • actionobjectrequired
  • action.provider"commerce" | "tasks" | "crm" | "billing" | "cloud"required
  • action.kindstringrequired

    1–40 characters.

  • action.targetstring

    3–80 characters.

  • action.valuesobjectrequired

    Values: string (up to 5,000 characters), number or boolean.

  • startedAtinteger

Errors

  • 400Invalid input (invalid_input)
  • 401Not signed in (unauthenticated)
  • 403Not allowed
  • 404Not found, or not yours to see
  • 428A reason is required (purpose_required); state it in the purpose header
  • 429Too many requests (rate_limited); see Retry-After
  • 500Something went wrong (internal)
  • 503Try again shortly
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": {}
    }
  }'
Send it from this page with your session or a key.

Response 200 with no body

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

Merge a conversation into another

Auth
A person's token or an API key, as Authorization: Bearer.
Get an API key

Path parameters

  • orgId

    Organization id (org_…).

  • inboxId

    A Service inbox's id: one of the org's own (svi_…) or a provider's, such as a Commerce brand's (commerce-<brandId>).

  • conversationId

    A Service conversation's id (svc_…).

Request body

  • intostringrequired

    3–80 characters.

Errors

  • 400Invalid input (invalid_input)
  • 401Not signed in (unauthenticated)
  • 403Not allowed
  • 404Not found, or not yours to see
  • 428A reason is required (purpose_required); state it in the purpose header
  • 429Too many requests (rate_limited); see Retry-After
  • 500Something went wrong (internal)
  • 503Try again shortly
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"
  }'
Send it from this page with your session or a key.

Response 200 with no body

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

Split a conversation

Auth
A person's token or an API key, as Authorization: Bearer.
Get an API key

Path parameters

  • orgId

    Organization id (org_…).

  • inboxId

    A Service inbox's id: one of the org's own (svi_…) or a provider's, such as a Commerce brand's (commerce-<brandId>).

  • conversationId

    A Service conversation's id (svc_…).

Request body

  • entryIdstringrequired

    3–80 characters.

Errors

  • 400Invalid input (invalid_input)
  • 401Not signed in (unauthenticated)
  • 403Not allowed
  • 404Not found, or not yours to see
  • 428A reason is required (purpose_required); state it in the purpose header
  • 429Too many requests (rate_limited); see Retry-After
  • 500Something went wrong (internal)
  • 503Try again shortly
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>"
  }'
Send it from this page with your session or a key.

Response 200 with no body

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

Bring a Mail thread into an inbox

Auth
A person's token or an API key, as Authorization: Bearer.
Get an API key

Path parameters

  • orgId

    Organization id (org_…).

  • inboxId

    A Service inbox's id: one of the org's own (svi_…) or a provider's, such as a Commerce brand's (commerce-<brandId>).

Request body

  • mailboxIdstringrequired

    3–80 characters.

  • threadIdstringrequired

    3–80 characters.

Errors

  • 400Invalid input (invalid_input)
  • 401Not signed in (unauthenticated)
  • 403Not allowed
  • 404Not found, or not yours to see
  • 428A reason is required (purpose_required); state it in the purpose header
  • 429Too many requests (rate_limited); see Retry-After
  • 500Something went wrong (internal)
  • 503Try again shortly
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>"
  }'
Send it from this page with your session or a key.

Response 200 with no body

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

List Service's inboxes

Auth
A person's token or an API key, as Authorization: Bearer.
Get an API key

Path parameters

  • orgId

    Organization id (org_…).

Errors

  • 400Invalid input (invalid_input)
  • 401Not signed in (unauthenticated)
  • 403Not allowed
  • 404Not found, or not yours to see
  • 428A reason is required (purpose_required); state it in the purpose header
  • 429Too many requests (rate_limited); see Retry-After
  • 500Something went wrong (internal)
  • 503Try again shortly
curl 'https://api.cactive.com.au/v1/orgs/{orgId}/service/inboxes' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
Send it from this page with your session or a key.

Response 200 with no body

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

Create an inbox

Auth
A person's token or an API key, as Authorization: Bearer.
Get an API key

Path parameters

  • orgId

    Organization id (org_…).

Request body

  • namestringrequired

    1–80 characters.

  • addressesstring[]

    Up to 10 items. Each 3–254 characters.

Errors

  • 400Invalid input (invalid_input)
  • 401Not signed in (unauthenticated)
  • 403Not allowed
  • 404Not found, or not yours to see
  • 428A reason is required (purpose_required); state it in the purpose header
  • 429Too many requests (rate_limited); see Retry-After
  • 500Something went wrong (internal)
  • 503Try again shortly
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"
  }'
Send it from this page with your session or a key.

Response 200 with no body

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

Change an inbox

Auth
A person's token or an API key, as Authorization: Bearer.
Get an API key

Path parameters

  • orgId

    Organization id (org_…).

  • inboxId

    A Service inbox's id: one of the org's own (svi_…) or a provider's, such as a Commerce brand's (commerce-<brandId>).

Request body

  • namestring

    1–80 characters.

  • addressesstring[]

    Up to 10 items. Each 3–254 characters.

  • updatedAtintegerrequired

Errors

  • 400Invalid input (invalid_input)
  • 401Not signed in (unauthenticated)
  • 403Not allowed
  • 404Not found, or not yours to see
  • 428A reason is required (purpose_required); state it in the purpose header
  • 429Too many requests (rate_limited); see Retry-After
  • 500Something went wrong (internal)
  • 503Try again shortly
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
  }'
Send it from this page with your session or a key.

Response 200 with no body

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

Delete an inbox

Auth
A person's token or an API key, as Authorization: Bearer.
Get an API key

Path parameters

  • orgId

    Organization id (org_…).

  • inboxId

    A Service inbox's id: one of the org's own (svi_…) or a provider's, such as a Commerce brand's (commerce-<brandId>).

Errors

  • 400Invalid input (invalid_input)
  • 401Not signed in (unauthenticated)
  • 403Not allowed
  • 404Not found, or not yours to see
  • 428A reason is required (purpose_required); state it in the purpose header
  • 429Too many requests (rate_limited); see Retry-After
  • 500Something went wrong (internal)
  • 503Try again shortly
curl -X DELETE 'https://api.cactive.com.au/v1/orgs/{orgId}/service/inboxes/{inboxId}' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
Send it from this page with your session or a key.

Response 200 with no body

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

Get an inbox's facts

Auth
A person's token or an API key, as Authorization: Bearer.
Get an API key

Path parameters

  • orgId

    Organization id (org_…).

  • inboxId

    A Service inbox's id: one of the org's own (svi_…) or a provider's, such as a Commerce brand's (commerce-<brandId>).

Errors

  • 400Invalid input (invalid_input)
  • 401Not signed in (unauthenticated)
  • 403Not allowed
  • 404Not found, or not yours to see
  • 428A reason is required (purpose_required); state it in the purpose header
  • 429Too many requests (rate_limited); see Retry-After
  • 500Something went wrong (internal)
  • 503Try again shortly
curl 'https://api.cactive.com.au/v1/orgs/{orgId}/service/inboxes/{inboxId}/facts' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
Send it from this page with your session or a key.

Response 200 with no body

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

Update an inbox's facts

Auth
A person's token or an API key, as Authorization: Bearer.
Get an API key

Path parameters

  • orgId

    Organization id (org_…).

  • inboxId

    A Service inbox's id: one of the org's own (svi_…) or a provider's, such as a Commerce brand's (commerce-<brandId>).

Request body

  • textstringrequired

    Up to 8,000 characters.

  • updatedAtinteger

Errors

  • 400Invalid input (invalid_input)
  • 401Not signed in (unauthenticated)
  • 403Not allowed
  • 404Not found, or not yours to see
  • 428A reason is required (purpose_required); state it in the purpose header
  • 429Too many requests (rate_limited); see Retry-After
  • 500Something went wrong (internal)
  • 503Try again shortly
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"
  }'
Send it from this page with your session or a key.

Response 200 with no body

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

Get an inbox's web form and chat

Auth
A person's token or an API key, as Authorization: Bearer.
Get an API key

Path parameters

  • orgId

    Organization id (org_…).

  • inboxId

    A Service inbox's id: one of the org's own (svi_…) or a provider's, such as a Commerce brand's (commerce-<brandId>).

Errors

  • 400Invalid input (invalid_input)
  • 401Not signed in (unauthenticated)
  • 403Not allowed
  • 404Not found, or not yours to see
  • 428A reason is required (purpose_required); state it in the purpose header
  • 429Too many requests (rate_limited); see Retry-After
  • 500Something went wrong (internal)
  • 503Try again shortly
curl 'https://api.cactive.com.au/v1/orgs/{orgId}/service/inboxes/{inboxId}/channels' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
Send it from this page with your session or a key.

Response 200 with no body

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

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

Auth
A person's token or an API key, as Authorization: Bearer.
Get an API key

Path parameters

  • orgId

    Organization id (org_…).

  • inboxId

    A Service inbox's id: one of the org's own (svi_…) or a provider's, such as a Commerce brand's (commerce-<brandId>).

  • kind

    What the resource is: project (a Serverless App Service), database, bucket, domain, repository or agent; under vehicles the kind of schedule, charge or precondition.

Request body

  • onbooleanrequired
  • rotateboolean

Errors

  • 400Invalid input (invalid_input)
  • 401Not signed in (unauthenticated)
  • 403Not allowed
  • 404Not found, or not yours to see
  • 428A reason is required (purpose_required); state it in the purpose header
  • 429Too many requests (rate_limited); see Retry-After
  • 500Something went wrong (internal)
  • 503Try again shortly
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
  }'
Send it from this page with your session or a key.

Response 200 with no body

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

List Service's macros

Auth
A person's token or an API key, as Authorization: Bearer.
Get an API key

Path parameters

  • orgId

    Organization id (org_…).

Errors

  • 400Invalid input (invalid_input)
  • 401Not signed in (unauthenticated)
  • 403Not allowed
  • 404Not found, or not yours to see
  • 428A reason is required (purpose_required); state it in the purpose header
  • 429Too many requests (rate_limited); see Retry-After
  • 500Something went wrong (internal)
  • 503Try again shortly
curl 'https://api.cactive.com.au/v1/orgs/{orgId}/service/macros' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
Send it from this page with your session or a key.

Response 200 with no body

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

Create a macro

Auth
A person's token or an API key, as Authorization: Bearer.
Get an API key

Path parameters

  • orgId

    Organization id (org_…).

Request body

  • titlestringrequired

    1–120 characters.

  • bodystringrequired

    1–5,000 characters.

  • inboxIdstring

    3–80 characters.

Errors

  • 400Invalid input (invalid_input)
  • 401Not signed in (unauthenticated)
  • 403Not allowed
  • 404Not found, or not yours to see
  • 428A reason is required (purpose_required); state it in the purpose header
  • 429Too many requests (rate_limited); see Retry-After
  • 500Something went wrong (internal)
  • 503Try again shortly
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"
  }'
Send it from this page with your session or a key.

Response 200 with no body

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

Change a macro

Auth
A person's token or an API key, as Authorization: Bearer.
Get an API key

Path parameters

  • orgId

    Organization id (org_…).

  • macroId

    A Service macro's id (svm_…).

Request body

  • titlestringrequired

    1–120 characters.

  • bodystringrequired

    1–5,000 characters.

  • inboxIdstringor null

    3–80 characters.

  • updatedAtintegerrequired

Errors

  • 400Invalid input (invalid_input)
  • 401Not signed in (unauthenticated)
  • 403Not allowed
  • 404Not found, or not yours to see
  • 428A reason is required (purpose_required); state it in the purpose header
  • 429Too many requests (rate_limited); see Retry-After
  • 500Something went wrong (internal)
  • 503Try again shortly
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
  }'
Send it from this page with your session or a key.

Response 200 with no body

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

Delete a macro

Auth
A person's token or an API key, as Authorization: Bearer.
Get an API key

Path parameters

  • orgId

    Organization id (org_…).

  • macroId

    A Service macro's id (svm_…).

Errors

  • 400Invalid input (invalid_input)
  • 401Not signed in (unauthenticated)
  • 403Not allowed
  • 404Not found, or not yours to see
  • 428A reason is required (purpose_required); state it in the purpose header
  • 429Too many requests (rate_limited); see Retry-After
  • 500Something went wrong (internal)
  • 503Try again shortly
curl -X DELETE 'https://api.cactive.com.au/v1/orgs/{orgId}/service/macros/{macroId}' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
Send it from this page with your session or a key.

Response 200 with no body

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

Get Service's settings

Auth
A person's token or an API key, as Authorization: Bearer.
Get an API key

Path parameters

  • orgId

    Organization id (org_…).

Errors

  • 400Invalid input (invalid_input)
  • 401Not signed in (unauthenticated)
  • 403Not allowed
  • 404Not found, or not yours to see
  • 428A reason is required (purpose_required); state it in the purpose header
  • 429Too many requests (rate_limited); see Retry-After
  • 500Something went wrong (internal)
  • 503Try again shortly
curl 'https://api.cactive.com.au/v1/orgs/{orgId}/service/settings' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
Send it from this page with your session or a key.

Response 200 with no body

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

Update Service's settings

Auth
A person's token or an API key, as Authorization: Bearer.
Get an API key

Path parameters

  • orgId

    Organization id (org_…).

Request body

  • taskSpacestringor null

    Up to 10 characters.

Errors

  • 400Invalid input (invalid_input)
  • 401Not signed in (unauthenticated)
  • 403Not allowed
  • 404Not found, or not yours to see
  • 428A reason is required (purpose_required); state it in the purpose header
  • 429Too many requests (rate_limited); see Retry-After
  • 500Something went wrong (internal)
  • 503Try again shortly
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"
  }'
Send it from this page with your session or a key.

Response 200 with no body