SDK reference

Issue automation and webhooks

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

GET/v1/orgs/:orgId/issues/notifications

Notifications, newest first (unread=1 for unread only); page with cursor.

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

GET/v1/orgs/:orgId/issues/notifications/count

How many notifications are unread.

Parameters and answers
curl 'https://api.cactive.com.au/v1/orgs/{orgId}/issues/notifications/count' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
postOrgIssuesNotificationsRead

POST/v1/orgs/:orgId/issues/notifications/read

Marks notifications read (or unread with read: false); all: true for every one.

Parameters and answers
curl -X POST 'https://api.cactive.com.au/v1/orgs/{orgId}/issues/notifications/read' \
  -H "Authorization: Bearer $CACTIVE_TOKEN" \
  -H 'Content-Type: application/json' \
  -d '{
    "ids": [
      "example"
    ],
    "all": true,
    "read": true
  }'
orgIssuesNotificationsSettings

GET/v1/orgs/:orgId/issues/notifications/settings

Email on or off, notifications about your own changes, and muted events.

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

PUT/v1/orgs/:orgId/issues/notifications/settings

Changes what the caller hears about.

Parameters and answers
curl -X PUT 'https://api.cactive.com.au/v1/orgs/{orgId}/issues/notifications/settings' \
  -H "Authorization: Bearer $CACTIVE_TOKEN" \
  -H 'Content-Type: application/json' \
  -d '{
    "email": true,
    "own": true,
    "muted": [
      "created"
    ]
  }'
orgIssuesAutomation

GET/v1/orgs/:orgId/issues/automation

Rules the caller can see (space narrows to one space), with the trigger types there are.

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

POST/v1/orgs/:orgId/issues/automation

Creates a rule. Rules for every space need issues:admin; space admins can automate their spaces.

Parameters and answers
curl -X POST 'https://api.cactive.com.au/v1/orgs/{orgId}/issues/automation' \
  -H "Authorization: Bearer $CACTIVE_TOKEN" \
  -H 'Content-Type: application/json' \
  -d '{
    "name": "Example",
    "trigger": {},
    "actions": [
      {}
    ]
  }'
orgIssuesAutomationByRuleId

GET/v1/orgs/:orgId/issues/automation/:ruleId

A rule.

Parameters and answers
curl 'https://api.cactive.com.au/v1/orgs/{orgId}/issues/automation/{ruleId}' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
patchOrgIssuesAutomationByRuleId

PATCH/v1/orgs/:orgId/issues/automation/:ruleId

Changes a rule; pass baseVersion to avoid overwriting newer edits.

Parameters and answers
curl -X PATCH 'https://api.cactive.com.au/v1/orgs/{orgId}/issues/automation/{ruleId}' \
  -H "Authorization: Bearer $CACTIVE_TOKEN" \
  -H 'Content-Type: application/json' \
  -d '{
    "name": "Example",
    "description": "example",
    "enabled": true
  }'
deleteOrgIssuesAutomationByRuleId

DELETE/v1/orgs/:orgId/issues/automation/:ruleId

Deletes a rule.

Parameters and answers
curl -X DELETE 'https://api.cactive.com.au/v1/orgs/{orgId}/issues/automation/{ruleId}' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
orgIssuesAutomationRuns

GET/v1/orgs/:orgId/issues/automation/:ruleId/runs

The last 50 runs of a rule.

Parameters and answers
curl 'https://api.cactive.com.au/v1/orgs/{orgId}/issues/automation/{ruleId}/runs' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
postOrgIssuesAutomationRun

POST/v1/orgs/:orgId/issues/automation/:ruleId/run

Runs a manual rule on issues now.

Parameters and answers
curl -X POST 'https://api.cactive.com.au/v1/orgs/{orgId}/issues/automation/{ruleId}/run' \
  -H "Authorization: Bearer $CACTIVE_TOKEN" \
  -H 'Content-Type: application/json' \
  -d '{
    "issues": [
      "example"
    ]
  }'
postOrgIssuesAutomationToken

POST/v1/orgs/:orgId/issues/automation/:ruleId/token

Issues a new token for an incoming-webhook rule and returns its URL (shown once; the old one stops working).

Parameters and answers
curl -X POST 'https://api.cactive.com.au/v1/orgs/{orgId}/issues/automation/{ruleId}/token' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
orgIssuesWebhooks

GET/v1/orgs/:orgId/issues/webhooks

Webhooks of the organization, with the events they can subscribe to.

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

POST/v1/orgs/:orgId/issues/webhooks

Creates a webhook; the signing secret is in the response this once.

Parameters and answers
curl -X POST 'https://api.cactive.com.au/v1/orgs/{orgId}/issues/webhooks' \
  -H "Authorization: Bearer $CACTIVE_TOKEN" \
  -H 'Content-Type: application/json' \
  -d '{
    "name": "Example",
    "url": "https://example.com",
    "events": [
      "issue.created"
    ]
  }'
orgIssuesWebhooksByWebhookId

GET/v1/orgs/:orgId/issues/webhooks/:webhookId

A webhook.

Parameters and answers
curl 'https://api.cactive.com.au/v1/orgs/{orgId}/issues/webhooks/{webhookId}' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
patchOrgIssuesWebhooksByWebhookId

PATCH/v1/orgs/:orgId/issues/webhooks/:webhookId

Changes a webhook.

Parameters and answers
curl -X PATCH 'https://api.cactive.com.au/v1/orgs/{orgId}/issues/webhooks/{webhookId}' \
  -H "Authorization: Bearer $CACTIVE_TOKEN" \
  -H 'Content-Type: application/json' \
  -d '{
    "name": "Example",
    "url": "https://example.com",
    "events": [
      "issue.created"
    ]
  }'
deleteOrgIssuesWebhooksByWebhookId

DELETE/v1/orgs/:orgId/issues/webhooks/:webhookId

Deletes a webhook.

Parameters and answers
curl -X DELETE 'https://api.cactive.com.au/v1/orgs/{orgId}/issues/webhooks/{webhookId}' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
postOrgIssuesWebhooksSecret

POST/v1/orgs/:orgId/issues/webhooks/:webhookId/secret

Replaces the signing secret (returned this once).

Parameters and answers
curl -X POST 'https://api.cactive.com.au/v1/orgs/{orgId}/issues/webhooks/{webhookId}/secret' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
postOrgIssuesWebhooksPing

POST/v1/orgs/:orgId/issues/webhooks/:webhookId/ping

Sends a ping event now and returns the outcome.

Parameters and answers
curl -X POST 'https://api.cactive.com.au/v1/orgs/{orgId}/issues/webhooks/{webhookId}/ping' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
orgIssuesWebhooksDeliveries

GET/v1/orgs/:orgId/issues/webhooks/:webhookId/deliveries

The last 50 deliveries.

Parameters and answers
curl 'https://api.cactive.com.au/v1/orgs/{orgId}/issues/webhooks/{webhookId}/deliveries' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
meIssuesNotifications

GET/v1/me/issues/notifications

Notifications, newest first (unread=1 for unread only); page with cursor.

Parameters and answers
curl 'https://api.cactive.com.au/v1/me/issues/notifications' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
meIssuesNotificationsCount

GET/v1/me/issues/notifications/count

How many notifications are unread.

Parameters and answers
curl 'https://api.cactive.com.au/v1/me/issues/notifications/count' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
postMeIssuesNotificationsRead

POST/v1/me/issues/notifications/read

Marks notifications read (or unread with read: false); all: true for every one.

Parameters and answers
curl -X POST 'https://api.cactive.com.au/v1/me/issues/notifications/read' \
  -H "Authorization: Bearer $CACTIVE_TOKEN" \
  -H 'Content-Type: application/json' \
  -d '{
    "ids": [
      "example"
    ],
    "all": true,
    "read": true
  }'
meIssuesNotificationsSettings

GET/v1/me/issues/notifications/settings

Email on or off, notifications about your own changes, and muted events.

Parameters and answers
curl 'https://api.cactive.com.au/v1/me/issues/notifications/settings' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
putMeIssuesNotificationsSettings

PUT/v1/me/issues/notifications/settings

Changes what the caller hears about.

Parameters and answers
curl -X PUT 'https://api.cactive.com.au/v1/me/issues/notifications/settings' \
  -H "Authorization: Bearer $CACTIVE_TOKEN" \
  -H 'Content-Type: application/json' \
  -d '{
    "email": true,
    "own": true,
    "muted": [
      "created"
    ]
  }'
meIssuesAutomation

GET/v1/me/issues/automation

Rules the caller can see (space narrows to one space), with the trigger types there are.

Parameters and answers
curl 'https://api.cactive.com.au/v1/me/issues/automation' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
postMeIssuesAutomation

POST/v1/me/issues/automation

Creates a rule. Rules for every space need issues:admin; space admins can automate their spaces.

Parameters and answers
curl -X POST 'https://api.cactive.com.au/v1/me/issues/automation' \
  -H "Authorization: Bearer $CACTIVE_TOKEN" \
  -H 'Content-Type: application/json' \
  -d '{
    "name": "Example",
    "trigger": {},
    "actions": [
      {}
    ]
  }'
meIssuesAutomationByRuleId

GET/v1/me/issues/automation/:ruleId

A rule.

Parameters and answers
curl 'https://api.cactive.com.au/v1/me/issues/automation/{ruleId}' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
patchMeIssuesAutomationByRuleId

PATCH/v1/me/issues/automation/:ruleId

Changes a rule; pass baseVersion to avoid overwriting newer edits.

Parameters and answers
curl -X PATCH 'https://api.cactive.com.au/v1/me/issues/automation/{ruleId}' \
  -H "Authorization: Bearer $CACTIVE_TOKEN" \
  -H 'Content-Type: application/json' \
  -d '{
    "name": "Example",
    "description": "example",
    "enabled": true
  }'
deleteMeIssuesAutomationByRuleId

DELETE/v1/me/issues/automation/:ruleId

Deletes a rule.

Parameters and answers
curl -X DELETE 'https://api.cactive.com.au/v1/me/issues/automation/{ruleId}' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
meIssuesAutomationRuns

GET/v1/me/issues/automation/:ruleId/runs

The last 50 runs of a rule.

Parameters and answers
curl 'https://api.cactive.com.au/v1/me/issues/automation/{ruleId}/runs' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
postMeIssuesAutomationRun

POST/v1/me/issues/automation/:ruleId/run

Runs a manual rule on issues now.

Parameters and answers
curl -X POST 'https://api.cactive.com.au/v1/me/issues/automation/{ruleId}/run' \
  -H "Authorization: Bearer $CACTIVE_TOKEN" \
  -H 'Content-Type: application/json' \
  -d '{
    "issues": [
      "example"
    ]
  }'
postMeIssuesAutomationToken

POST/v1/me/issues/automation/:ruleId/token

Issues a new token for an incoming-webhook rule and returns its URL (shown once; the old one stops working).

Parameters and answers
curl -X POST 'https://api.cactive.com.au/v1/me/issues/automation/{ruleId}/token' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
meIssuesWebhooks

GET/v1/me/issues/webhooks

Webhooks of the organization, with the events they can subscribe to.

Parameters and answers
curl 'https://api.cactive.com.au/v1/me/issues/webhooks' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
postMeIssuesWebhooks

POST/v1/me/issues/webhooks

Creates a webhook; the signing secret is in the response this once.

Parameters and answers
curl -X POST 'https://api.cactive.com.au/v1/me/issues/webhooks' \
  -H "Authorization: Bearer $CACTIVE_TOKEN" \
  -H 'Content-Type: application/json' \
  -d '{
    "name": "Example",
    "url": "https://example.com",
    "events": [
      "issue.created"
    ]
  }'
meIssuesWebhooksByWebhookId

GET/v1/me/issues/webhooks/:webhookId

A webhook.

Parameters and answers
curl 'https://api.cactive.com.au/v1/me/issues/webhooks/{webhookId}' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
patchMeIssuesWebhooksByWebhookId

PATCH/v1/me/issues/webhooks/:webhookId

Changes a webhook.

Parameters and answers
curl -X PATCH 'https://api.cactive.com.au/v1/me/issues/webhooks/{webhookId}' \
  -H "Authorization: Bearer $CACTIVE_TOKEN" \
  -H 'Content-Type: application/json' \
  -d '{
    "name": "Example",
    "url": "https://example.com",
    "events": [
      "issue.created"
    ]
  }'
deleteMeIssuesWebhooksByWebhookId

DELETE/v1/me/issues/webhooks/:webhookId

Deletes a webhook.

Parameters and answers
curl -X DELETE 'https://api.cactive.com.au/v1/me/issues/webhooks/{webhookId}' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
postMeIssuesWebhooksSecret

POST/v1/me/issues/webhooks/:webhookId/secret

Replaces the signing secret (returned this once).

Parameters and answers
curl -X POST 'https://api.cactive.com.au/v1/me/issues/webhooks/{webhookId}/secret' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
postMeIssuesWebhooksPing

POST/v1/me/issues/webhooks/:webhookId/ping

Sends a ping event now and returns the outcome.

Parameters and answers
curl -X POST 'https://api.cactive.com.au/v1/me/issues/webhooks/{webhookId}/ping' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
meIssuesWebhooksDeliveries

GET/v1/me/issues/webhooks/:webhookId/deliveries

The last 50 deliveries.

Parameters and answers
curl 'https://api.cactive.com.au/v1/me/issues/webhooks/{webhookId}/deliveries' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"