SDK reference
Integrations and webhooks
GET/
The import sources, for Tasks (Jira, Linear, GitHub, GitLab, Zendesk) and Customers (Stripe, HubSpot, Salesforce): whether each is connected and as which account, whether it takes a token or a sign-in (and whether that's set up here), with what connecting one needs. Tokens are never returned.
Parameters and answerscurl 'https://api.cactive.com.au/v1/orgs/{orgId}/integrations/sources' \
-H "Authorization: Bearer $CACTIVE_TOKEN"PUT/
Connects an import source with a token: Jira and Zendesk also take their site (<name>.atlassian.net, <name>.zendesk.com) and the account's email, GitLab its host (empty for gitlab.com); Stripe takes a restricted key only. The token is checked with the provider and sealed; it replaces an earlier one. Salesforce connects through POST …/integrations/salesforce/authorize instead. Owners and admins.
curl -X PUT 'https://api.cactive.com.au/v1/orgs/{orgId}/integrations/sources/{provider}' \
-H "Authorization: Bearer $CACTIVE_TOKEN" \
-H 'Content-Type: application/json' \
-d '{
"token": "example"
}'DELETE/
Forgets an import source's token (Salesforce's sign-in is revoked there first); imports still running stop at their next step. Owners and admins.
Parameters and answerscurl -X DELETE 'https://api.cactive.com.au/v1/orgs/{orgId}/integrations/sources/{provider}' \
-H "Authorization: Bearer $CACTIVE_TOKEN"GET/
What a Tasks source's token reads, to import from: Jira projects, Linear teams, GitHub repositories with issues, GitLab projects, Zendesk groups (and all; 200 at most), each with the id an import names. Owners and admins.
curl 'https://api.cactive.com.au/v1/orgs/{orgId}/integrations/sources/{provider}/projects' \
-H "Authorization: Bearer $CACTIVE_TOKEN"GET/
Imports into Tasks, newest first (space: one space's, by key or id), with their counts, last problems and status.
curl 'https://api.cactive.com.au/v1/orgs/{orgId}/integrations/imports' \
-H "Authorization: Bearer $CACTIVE_TOKEN"GET/
One import into Tasks: its source project, space, options, status, counts and problems.
Parameters and answerscurl 'https://api.cactive.com.au/v1/orgs/{orgId}/integrations/imports/{importId}' \
-H "Authorization: Bearer $CACTIVE_TOKEN"POST/
Starts importing a source project's issues (and, by default, closed ones and comments) into a space you administer, run in the background as you. Imported issues link back and are skipped when imported again. Owners and admins with issues:write; three running at once.
curl -X POST 'https://api.cactive.com.au/v1/orgs/{orgId}/integrations/imports' \
-H "Authorization: Bearer $CACTIVE_TOKEN" \
-H 'Content-Type: application/json' \
-d '{
"provider": "jira",
"project": "example",
"space": "example"
}'POST/
Stops an import after its current page; what it imported stays. Owners and admins.
Parameters and answerscurl -X POST 'https://api.cactive.com.au/v1/orgs/{orgId}/integrations/imports/{importId}/cancel' \
-H "Authorization: Bearer $CACTIVE_TOKEN"GET/
The catalogue, the org's connections and the events a channel can carry.
Parameters and answerscurl 'https://api.cactive.com.au/v1/orgs/{orgId}/integrations' \
-H "Authorization: Bearer $CACTIVE_TOKEN"GET/
One chat connection (slack or teams): whether it's connected, to which workspace or Microsoft organisation, and its settings. Tokens are never returned.
curl 'https://api.cactive.com.au/v1/orgs/{orgId}/integrations/{provider}' \
-H "Authorization: Bearer $CACTIVE_TOKEN"GET/
Channels the org can send notices to.
Parameters and answerscurl 'https://api.cactive.com.au/v1/orgs/{orgId}/integrations/{provider}/channels' \
-H "Authorization: Bearer $CACTIVE_TOKEN"PATCH/
Changes a chat connection's settings: the notice channel (one the channels list offers), which org-wide events go there, and whether Caity answers and links preview. Owners and admins.
Parameters and answerscurl -X PATCH 'https://api.cactive.com.au/v1/orgs/{orgId}/integrations/{provider}' \
-H "Authorization: Bearer $CACTIVE_TOKEN" \
-H 'Content-Type: application/json' \
-d '{
"channelId": "<channelId>",
"events": [
"deployment.failed"
],
"ask": true
}'DELETE/
Disconnects: revokes at the provider (best effort) and forgets the tokens, links and channels.
Parameters and answerscurl -X DELETE 'https://api.cactive.com.au/v1/orgs/{orgId}/integrations/{provider}' \
-H "Authorization: Bearer $CACTIVE_TOKEN"GET/
The org's people linked in the workspace (Caity answers and links unfurl as them).
Parameters and answerscurl 'https://api.cactive.com.au/v1/orgs/{orgId}/integrations/{provider}/people' \
-H "Authorization: Bearer $CACTIVE_TOKEN"DELETE/
Unlinks a chat account from its person: Caity stops answering it as them and its links stop previewing. Owners and admins.
Parameters and answerscurl -X DELETE 'https://api.cactive.com.au/v1/orgs/{orgId}/integrations/{provider}/people/{externalUserId}' \
-H "Authorization: Bearer $CACTIVE_TOKEN"GET/
The organisation's outgoing webhooks: name, URL, events, on or off, and the secret's last four characters.
Parameters and answerscurl 'https://api.cactive.com.au/v1/orgs/{orgId}/webhooks' \
-H "Authorization: Bearer $CACTIVE_TOKEN"POST/
Adds a webhook: an https URL and the events it wants (audit actions such as member.join, categories such as member.*, or *). The signing secret is in this answer only. Owners and admins.
curl -X POST 'https://api.cactive.com.au/v1/orgs/{orgId}/webhooks' \
-H "Authorization: Bearer $CACTIVE_TOKEN" \
-H 'Content-Type: application/json' \
-d '{
"name": "Example",
"url": "https://example.com",
"events": [
"example"
],
"enabled": true
}'PATCH/
Changes a webhook's name, URL, events or whether it's on. Owners and admins.
Parameters and answerscurl -X PATCH 'https://api.cactive.com.au/v1/orgs/{orgId}/webhooks/{webhookId}' \
-H "Authorization: Bearer $CACTIVE_TOKEN" \
-H 'Content-Type: application/json' \
-d '{
"name": {},
"url": {},
"events": {}
}'POST/
A new secret, shown once; the old one stops signing.
Parameters and answerscurl -X POST 'https://api.cactive.com.au/v1/orgs/{orgId}/webhooks/{webhookId}/rotate' \
-H "Authorization: Bearer $CACTIVE_TOKEN"POST/
Sends a ping now, signed like every delivery.
curl -X POST 'https://api.cactive.com.au/v1/orgs/{orgId}/webhooks/{webhookId}/ping' \
-H "Authorization: Bearer $CACTIVE_TOKEN"GET/
A webhook's last 50 deliveries (30 days): event, status or error, try and time.
Parameters and answerscurl 'https://api.cactive.com.au/v1/orgs/{orgId}/webhooks/{webhookId}/deliveries' \
-H "Authorization: Bearer $CACTIVE_TOKEN"DELETE/
Removes a webhook; its deliveries stop. Owners and admins.
Parameters and answerscurl -X DELETE 'https://api.cactive.com.au/v1/orgs/{orgId}/webhooks/{webhookId}' \
-H "Authorization: Bearer $CACTIVE_TOKEN"POST/
Finishes connecting Slack, Teams or Salesforce with the provider's code (or error) and the state the connect started with. The state is used once, by the person who started it, still an owner or admin.
curl -X POST 'https://api.cactive.com.au/v1/integrations/oauth' \
-H "Authorization: Bearer $CACTIVE_TOKEN" \
-H 'Content-Type: application/json' \
-d '{
"state": "example"
}'GET/
Imports into Customers from Stripe, HubSpot and Salesforce, newest first: the source account, objects, status, counts (seen, created, updated since an earlier import, linked to a match, skipped, failed) and last problems. Customers admins (crm:admin).
curl 'https://api.cactive.com.au/v1/orgs/{orgId}/crm/source-imports' \
-H "Authorization: Bearer $CACTIVE_TOKEN"GET/
One import into Customers, as the list gives it. Customers admins (crm:admin).
curl 'https://api.cactive.com.au/v1/orgs/{orgId}/crm/source-imports/{importId}' \
-H "Authorization: Bearer $CACTIVE_TOKEN"POST/
Starts importing a connected source into Customers, run in the background as you: provider (stripe, hubspot, salesforce) and, optionally, which of its objects (taken in the source's order: accounts before the contacts and deals on them). Records link back; matches already here (accounts by name, contacts and leads by email) are linked, not copied; importing again changes a field only where the source changed it and nobody here did. Owners and admins with crm:write; three imports run at once.
curl -X POST 'https://api.cactive.com.au/v1/orgs/{orgId}/crm/source-imports' \
-H "Authorization: Bearer $CACTIVE_TOKEN" \
-H 'Content-Type: application/json' \
-d '{
"provider": "stripe"
}'POST/
Stops an import into Customers after its current page; what it imported stays. Owners and admins with crm:write.
curl -X POST 'https://api.cactive.com.au/v1/orgs/{orgId}/crm/source-imports/{importId}/cancel' \
-H "Authorization: Bearer $CACTIVE_TOKEN"GET/
List Mirage mirrors
Parameters and answerscurl 'https://api.cactive.com.au/v1/orgs/{orgId}/integrations/{provider}/mirrors' \
-H "Authorization: Bearer $CACTIVE_TOKEN"GET/
Where a Mirage mirror can start
Parameters and answerscurl 'https://api.cactive.com.au/v1/orgs/{orgId}/integrations/{provider}/mirrors/options' \
-H "Authorization: Bearer $CACTIVE_TOKEN"POST/
Mirror a Mirage channel
Parameters and answerscurl -X POST 'https://api.cactive.com.au/v1/orgs/{orgId}/integrations/{provider}/mirrors' \
-H "Authorization: Bearer $CACTIVE_TOKEN" \
-H 'Content-Type: application/json' \
-d '{
"serverId": "<serverId>",
"channelId": "<channelId>",
"externalChannelId": "<externalChannelId>"
}'PATCH/
Change a Mirage mirror
Parameters and answerscurl -X PATCH 'https://api.cactive.com.au/v1/orgs/{orgId}/integrations/{provider}/mirrors/{serverId}/{channelId}' \
-H "Authorization: Bearer $CACTIVE_TOKEN" \
-H 'Content-Type: application/json' \
-d '{
"direction": "both"
}'DELETE/
Stop a Mirage mirror
Parameters and answerscurl -X DELETE 'https://api.cactive.com.au/v1/orgs/{orgId}/integrations/{provider}/mirrors/{serverId}/{channelId}' \
-H "Authorization: Bearer $CACTIVE_TOKEN"