SDK reference
Issue automation and webhooks
GET/
Notifications, newest first (unread=1 for unread only); page with cursor.
curl 'https://api.cactive.com.au/v1/orgs/{orgId}/issues/notifications' \
-H "Authorization: Bearer $CACTIVE_TOKEN"GET/
How many notifications are unread.
Parameters and answerscurl 'https://api.cactive.com.au/v1/orgs/{orgId}/issues/notifications/count' \
-H "Authorization: Bearer $CACTIVE_TOKEN"POST/
Marks notifications read (or unread with read: false); all: true for every one.
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
}'GET/
Email on or off, notifications about your own changes, and muted events.
Parameters and answerscurl 'https://api.cactive.com.au/v1/orgs/{orgId}/issues/notifications/settings' \
-H "Authorization: Bearer $CACTIVE_TOKEN"PUT/
Changes what the caller hears about.
Parameters and answerscurl -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"
]
}'GET/
Rules the caller can see (space narrows to one space), with the trigger types there are.
curl 'https://api.cactive.com.au/v1/orgs/{orgId}/issues/automation' \
-H "Authorization: Bearer $CACTIVE_TOKEN"POST/
Creates a rule. Rules for every space need issues:admin; space admins can automate their spaces.
Parameters and answerscurl -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": [
{}
]
}'GET/
A rule.
Parameters and answerscurl 'https://api.cactive.com.au/v1/orgs/{orgId}/issues/automation/{ruleId}' \
-H "Authorization: Bearer $CACTIVE_TOKEN"PATCH/
Changes a rule; pass baseVersion to avoid overwriting newer edits.
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
}'DELETE/
Deletes a rule.
Parameters and answerscurl -X DELETE 'https://api.cactive.com.au/v1/orgs/{orgId}/issues/automation/{ruleId}' \
-H "Authorization: Bearer $CACTIVE_TOKEN"GET/
The last 50 runs of a rule.
Parameters and answerscurl 'https://api.cactive.com.au/v1/orgs/{orgId}/issues/automation/{ruleId}/runs' \
-H "Authorization: Bearer $CACTIVE_TOKEN"POST/
Runs a manual rule on issues now.
Parameters and answerscurl -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"
]
}'POST/
Issues a new token for an incoming-webhook rule and returns its URL (shown once; the old one stops working).
Parameters and answerscurl -X POST 'https://api.cactive.com.au/v1/orgs/{orgId}/issues/automation/{ruleId}/token' \
-H "Authorization: Bearer $CACTIVE_TOKEN"GET/
Webhooks of the organization, with the events they can subscribe to.
Parameters and answerscurl 'https://api.cactive.com.au/v1/orgs/{orgId}/issues/webhooks' \
-H "Authorization: Bearer $CACTIVE_TOKEN"POST/
Creates a webhook; the signing secret is in the response this once.
Parameters and answerscurl -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"
]
}'GET/
A webhook.
Parameters and answerscurl 'https://api.cactive.com.au/v1/orgs/{orgId}/issues/webhooks/{webhookId}' \
-H "Authorization: Bearer $CACTIVE_TOKEN"PATCH/
Changes a webhook.
Parameters and answerscurl -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"
]
}'DELETE/
Deletes a webhook.
Parameters and answerscurl -X DELETE 'https://api.cactive.com.au/v1/orgs/{orgId}/issues/webhooks/{webhookId}' \
-H "Authorization: Bearer $CACTIVE_TOKEN"POST/
Replaces the signing secret (returned this once).
Parameters and answerscurl -X POST 'https://api.cactive.com.au/v1/orgs/{orgId}/issues/webhooks/{webhookId}/secret' \
-H "Authorization: Bearer $CACTIVE_TOKEN"POST/
Sends a ping event now and returns the outcome.
curl -X POST 'https://api.cactive.com.au/v1/orgs/{orgId}/issues/webhooks/{webhookId}/ping' \
-H "Authorization: Bearer $CACTIVE_TOKEN"GET/
The last 50 deliveries.
Parameters and answerscurl 'https://api.cactive.com.au/v1/orgs/{orgId}/issues/webhooks/{webhookId}/deliveries' \
-H "Authorization: Bearer $CACTIVE_TOKEN"GET/
Notifications, newest first (unread=1 for unread only); page with cursor.
curl 'https://api.cactive.com.au/v1/me/issues/notifications' \
-H "Authorization: Bearer $CACTIVE_TOKEN"GET/
How many notifications are unread.
Parameters and answerscurl 'https://api.cactive.com.au/v1/me/issues/notifications/count' \
-H "Authorization: Bearer $CACTIVE_TOKEN"POST/
Marks notifications read (or unread with read: false); all: true for every one.
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
}'GET/
Email on or off, notifications about your own changes, and muted events.
Parameters and answerscurl 'https://api.cactive.com.au/v1/me/issues/notifications/settings' \
-H "Authorization: Bearer $CACTIVE_TOKEN"PUT/
Changes what the caller hears about.
Parameters and answerscurl -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"
]
}'GET/
Rules the caller can see (space narrows to one space), with the trigger types there are.
curl 'https://api.cactive.com.au/v1/me/issues/automation' \
-H "Authorization: Bearer $CACTIVE_TOKEN"POST/
Creates a rule. Rules for every space need issues:admin; space admins can automate their spaces.
Parameters and answerscurl -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": [
{}
]
}'curl 'https://api.cactive.com.au/v1/me/issues/automation/{ruleId}' \
-H "Authorization: Bearer $CACTIVE_TOKEN"PATCH/
Changes a rule; pass baseVersion to avoid overwriting newer edits.
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
}'DELETE/
Deletes a rule.
Parameters and answerscurl -X DELETE 'https://api.cactive.com.au/v1/me/issues/automation/{ruleId}' \
-H "Authorization: Bearer $CACTIVE_TOKEN"GET/
The last 50 runs of a rule.
Parameters and answerscurl 'https://api.cactive.com.au/v1/me/issues/automation/{ruleId}/runs' \
-H "Authorization: Bearer $CACTIVE_TOKEN"POST/
Runs a manual rule on issues now.
Parameters and answerscurl -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"
]
}'POST/
Issues a new token for an incoming-webhook rule and returns its URL (shown once; the old one stops working).
Parameters and answerscurl -X POST 'https://api.cactive.com.au/v1/me/issues/automation/{ruleId}/token' \
-H "Authorization: Bearer $CACTIVE_TOKEN"GET/
Webhooks of the organization, with the events they can subscribe to.
Parameters and answerscurl 'https://api.cactive.com.au/v1/me/issues/webhooks' \
-H "Authorization: Bearer $CACTIVE_TOKEN"POST/
Creates a webhook; the signing secret is in the response this once.
Parameters and answerscurl -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"
]
}'curl 'https://api.cactive.com.au/v1/me/issues/webhooks/{webhookId}' \
-H "Authorization: Bearer $CACTIVE_TOKEN"PATCH/
Changes a webhook.
Parameters and answerscurl -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"
]
}'DELETE/
Deletes a webhook.
Parameters and answerscurl -X DELETE 'https://api.cactive.com.au/v1/me/issues/webhooks/{webhookId}' \
-H "Authorization: Bearer $CACTIVE_TOKEN"POST/
Replaces the signing secret (returned this once).
Parameters and answerscurl -X POST 'https://api.cactive.com.au/v1/me/issues/webhooks/{webhookId}/secret' \
-H "Authorization: Bearer $CACTIVE_TOKEN"POST/
Sends a ping event now and returns the outcome.
curl -X POST 'https://api.cactive.com.au/v1/me/issues/webhooks/{webhookId}/ping' \
-H "Authorization: Bearer $CACTIVE_TOKEN"GET/
The last 50 deliveries.
Parameters and answerscurl 'https://api.cactive.com.au/v1/me/issues/webhooks/{webhookId}/deliveries' \
-H "Authorization: Bearer $CACTIVE_TOKEN"