API reference
Track watch rules
Rules that watch your tracks and tell you - and the people you name - when something happens: a track reaches a stage, sits in one too long, is due soon or overdue, goes quiet, or matches what you describe in your own words. Also the notices other people's rules sent you, and whose rules you stopped hearing from. Rules that tell other people keep the same confirmations and approvals as in the app. 19 endpoints. Add your API key in the authentication panel to send test requests from this page.
List the watch rules on a track
/api/external/v1/tracks/{trackId}/watchesThe rules that watch this track, as {"items": [...]}: its own and your board's (which watch every track on it). The shape is that of GET /tracks/watches. A track that is not yours has none.
Parameters
trackIdstring (uuid)pathRequired
Responses
200OK
Create a watch rule on a track
/api/external/v1/tracks/{trackId}/watchesCreates a rule that watches this one track (scope TRACK) and answers 201 with it; the same as POST /tracks/watches with scope TRACK and this trackId. A body that names another scope, track or team is refused. At most 10 rules per track.
Fields: scope (BOARD, TRACK, TEAM, TEAM_TRACK) with trackId, teamId or teamTrackId as it needs (they never change afterwards); name (at most 120 characters); when - {trigger, stageKeys, stageKinds, afterMinutes, repeatMinutes, maxRepeats, rule, sensitivity, url}: trigger is ENTERS_STAGE (a track comes into one of stageKeys or stageKinds), IN_STAGE_FOR (has been in one for afterMinutes, at least 60), NO_ACTIVITY (nothing happened for afterMinutes), DUE_SOON (due within afterMinutes), OVERDUE, or one judged against your own words in rule (3-300 characters): MATCHES (each new thing on what it watches), SITUATION (the track as a whole, every few hours) or PAGE_CHANGES (a public web page at url), told at sensitivity SURE or LIKELY; repeatMinutes (at least 360) and maxRepeats repeat a notice while the condition holds. recipients (at most 5): {kind, userId, contactId, label} with kind SELF, MEMBER (another person you are connected with or share the team with: told by their own assistant through their own reach settings, never the rule's), CONTACT (someone in your contact book: told on the rule's channels in the rule's hours, with a "Got it" link and a way to stop) or ASSIGNEES (a team track's assignees). channels (at most 5, tried one after the other): WHATSAPP, SMS, EMAIL, CALL, APP, TELEGRAM; stepWaitMinutes between them; escalate FAILED (next channel only when one fails) or UNACKED (also when nobody acknowledged in time); urgent; note (at most 300); hours {start "08:00", end "20:00", days ["MONDAY", ...]} when contacts may be reached, in your time zone; othersConfirmed - required true for a rule that tells contacts: you confirm that those people agreed to hear from you this way, as the app's checkbox does. GET /tracks/watches/options lists the stages, channels, recipients and limits that apply.
Errors: as for POST /tracks/watches; 400 INVALID for a body that names another place.
Parameters
trackIdstring (uuid)pathRequired
Request body application/json
object
Responses
200OK
List your watch rules
/api/external/v1/tracks/watchesYour watch rules, newest first (at most 200), as {"items": [...]}, narrowed by the parameters you send (a track's filter lists your board's rules too, a team track's its team board's).
Each rule has id, ownerId, scope, trackId, teamId, teamTrackId, subjectTitle, name, when, recipients, channels, stepWaitMinutes, escalate, urgent, note, hours, status (ACTIVE, PAUSED, HELD - waiting for your yes in the app because your assistant wrote a rule that reaches others -, DECLINED), createdBy, approvalId, reachesOthers, createdAt, updatedAt, lastFiredAt, firedCount, and for a web page rule page (how the page was last looked at).
Errors: 400 INVALID for an unknown scope or an id that is not one.
Parameters
scopestringqueryWhere rules sit: BOARD (every track on your board), TRACK, TEAM (a team board you are a member of) or TEAM_TRACK. Left out: all of them.
trackIdstringqueryOnly rules on this track (and your board's).
teamIdstringqueryOnly rules on this team's board.
teamTrackIdstringqueryOnly rules on this team track (and its board's).
Responses
200OK
Create a watch rule
/api/external/v1/tracks/watchesCreates a rule and answers 201 with it. It is yours and runs at once (ACTIVE), like one made in the app; your plan carries what it sends, and only you see and change it (on a team board too). Telling other people (members, contacts, assignees) needs a plan that includes it.
Fields: scope (BOARD, TRACK, TEAM, TEAM_TRACK) with trackId, teamId or teamTrackId as it needs (they never change afterwards); name (at most 120 characters); when - {trigger, stageKeys, stageKinds, afterMinutes, repeatMinutes, maxRepeats, rule, sensitivity, url}: trigger is ENTERS_STAGE (a track comes into one of stageKeys or stageKinds), IN_STAGE_FOR (has been in one for afterMinutes, at least 60), NO_ACTIVITY (nothing happened for afterMinutes), DUE_SOON (due within afterMinutes), OVERDUE, or one judged against your own words in rule (3-300 characters): MATCHES (each new thing on what it watches), SITUATION (the track as a whole, every few hours) or PAGE_CHANGES (a public web page at url), told at sensitivity SURE or LIKELY; repeatMinutes (at least 360) and maxRepeats repeat a notice while the condition holds. recipients (at most 5): {kind, userId, contactId, label} with kind SELF, MEMBER (another person you are connected with or share the team with: told by their own assistant through their own reach settings, never the rule's), CONTACT (someone in your contact book: told on the rule's channels in the rule's hours, with a "Got it" link and a way to stop) or ASSIGNEES (a team track's assignees). channels (at most 5, tried one after the other): WHATSAPP, SMS, EMAIL, CALL, APP, TELEGRAM; stepWaitMinutes between them; escalate FAILED (next channel only when one fails) or UNACKED (also when nobody acknowledged in time); urgent; note (at most 300); hours {start "08:00", end "20:00", days ["MONDAY", ...]} when contacts may be reached, in your time zone; othersConfirmed - required true for a rule that tells contacts: you confirm that those people agreed to hear from you this way, as the app's checkbox does. GET /tracks/watches/options lists the stages, channels, recipients and limits that apply.
Errors: 400 INVALID (also for a rule that tells contacts without othersConfirmed: true); 403 NOT_ALLOWED (a person this rule may not tell, a team you are not in) or PLAN; 404 NOT_FOUND for a track or team that is not yours; 409 LIMIT (as many rules as your plan or the track holds).
Request body application/json
object
Responses
200OK
Read a watch rule and its latest firings
/api/external/v1/tracks/watches/{watchId}One rule (watch, the shape of the list) and its latest 20 firings (fires: each id, watchId, firedAt, title, text, subjects, test, facts, and deliveries - per recipient the channel, status, step, acknowledgement and attempts).
Errors: 404 NOT_FOUND.
Parameters
watchIdstring (uuid)pathRequiredThe rule's id.
Responses
200OK
Change a watch rule
/api/external/v1/tracks/watches/{watchId}Changes the rule and answers it; a key left out keeps what the rule has (its scope and place never change). A rule you declined runs as you wrote it now. New contacts need othersConfirmed: true again.
A rule your assistant wrote that waits for your yes (HELD) is not changed here: in the app an edit of it counts as that yes, which is given only where you read it whole. Approve or decline it in the app, then change it - 409 WATCH_HELD.
Fields: scope (BOARD, TRACK, TEAM, TEAM_TRACK) with trackId, teamId or teamTrackId as it needs (they never change afterwards); name (at most 120 characters); when - {trigger, stageKeys, stageKinds, afterMinutes, repeatMinutes, maxRepeats, rule, sensitivity, url}: trigger is ENTERS_STAGE (a track comes into one of stageKeys or stageKinds), IN_STAGE_FOR (has been in one for afterMinutes, at least 60), NO_ACTIVITY (nothing happened for afterMinutes), DUE_SOON (due within afterMinutes), OVERDUE, or one judged against your own words in rule (3-300 characters): MATCHES (each new thing on what it watches), SITUATION (the track as a whole, every few hours) or PAGE_CHANGES (a public web page at url), told at sensitivity SURE or LIKELY; repeatMinutes (at least 360) and maxRepeats repeat a notice while the condition holds. recipients (at most 5): {kind, userId, contactId, label} with kind SELF, MEMBER (another person you are connected with or share the team with: told by their own assistant through their own reach settings, never the rule's), CONTACT (someone in your contact book: told on the rule's channels in the rule's hours, with a "Got it" link and a way to stop) or ASSIGNEES (a team track's assignees). channels (at most 5, tried one after the other): WHATSAPP, SMS, EMAIL, CALL, APP, TELEGRAM; stepWaitMinutes between them; escalate FAILED (next channel only when one fails) or UNACKED (also when nobody acknowledged in time); urgent; note (at most 300); hours {start "08:00", end "20:00", days ["MONDAY", ...]} when contacts may be reached, in your time zone; othersConfirmed - required true for a rule that tells contacts: you confirm that those people agreed to hear from you this way, as the app's checkbox does. GET /tracks/watches/options lists the stages, channels, recipients and limits that apply.
Errors: as for POST /tracks/watches; 404 NOT_FOUND for a rule that is not yours.
Parameters
watchIdstring (uuid)pathRequiredThe rule's id.
Request body application/json
object
Responses
200OK
Delete a watch rule
/api/external/v1/tracks/watches/{watchId}Deletes the rule and stops what it was still telling (204). A request for your yes it waited for is withdrawn.
Errors: 404 NOT_FOUND.
Parameters
watchIdstring (uuid)pathRequiredThe rule's id.
Responses
200OK
Pause a watch rule
/api/external/v1/tracks/watches/{watchId}/pausePauses the rule (PAUSED) and stops what it was still telling; answers it. A paused rule that waited for your yes no longer waits.
Errors: 404 NOT_FOUND; 409 STATE for a declined rule.
Parameters
watchIdstring (uuid)pathRequiredThe rule's id.
Responses
200OK
Resume a watch rule
/api/external/v1/tracks/watches/{watchId}/resumeMakes a paused or declined rule run again (ACTIVE) and answers it; a web page rule forgets its failures and looks at the page at once.
Errors: 404 NOT_FOUND; 409 STATE (a rule that tells contacts nobody confirmed: change it with othersConfirmed: true), 409 LIMIT.
Parameters
watchIdstring (uuid)pathRequiredThe rule's id.
Responses
200OK
Send yourself a test of a watch rule
/api/external/v1/tracks/watches/{watchId}/testSends you (and only you) what the rule would say, on an example track, and answers the firing. Nobody else is told. At most 10 tests an hour.
Errors: 404 NOT_FOUND; 409 STATE for a rule that is not running, 409 LIMIT.
Parameters
watchIdstring (uuid)pathRequiredThe rule's id.
Responses
200OK
List the latest firings of your rules
/api/external/v1/tracks/watches/firesYour rules' latest firings across all of them, newest first, as {"items": [...]} (the shape of fires in GET /tracks/watches/{watchId}).
Parameters
limitinteger (int32)queryHow many, 1-100 (default 20).
Responses
200OK
List the notices other people's rules sent you
/api/external/v1/tracks/watches/noticesWhat other people's watch rules told you through your assistant, newest first, in your app language, as {"items": [...]}: each deliveryId, fireId, ownerId (whose rule), ownerName, title, text, firedAt and acked. Uses the assistant's feature switch, where the app keeps these notices.
Parameters
limitinteger (int32)queryHow many, 1-100 (default 30).
Responses
200OK
Acknowledge a notice another person's rule sent you
/api/external/v1/tracks/watches/notices/{deliveryId}/ack"Got it" on a notice sent to you, and answers it (acked true): the owner's rule tries no other way to reach you about it.
Errors: 404 NOT_FOUND.
Parameters
deliveryIdstring (uuid)pathRequiredThe notice's `deliveryId`.
Responses
200OK
List whose watch rules you stopped hearing from
/api/external/v1/tracks/watches/opt-outsThe people whose rules may not tell you any more, newest first, as {"items": [...]}: each ownerId, ownerName and since.
Responses
200OK
Stop hearing from someone's watch rules
/api/external/v1/tracks/watches/opt-outsNo more notices from that person's rules (their open ones to you stop); answers 201 with {ownerId, ownerName, since}. Body: ownerId (required: the ownerId of one of their notices).
Errors: 400 MISSING_FIELD, INVALID_ID, INVALID (yourself).
Request body application/json
object
Responses
200OK
Hear from someone's watch rules again
/api/external/v1/tracks/watches/opt-outs/{ownerId}Their rules may tell you again, new notices only (204, also when you had not stopped hearing from them).
Parameters
ownerIdstring (uuid)pathRequiredThe person whose rules may tell you again.
Responses
200OK
List what a new watch rule can use
/api/external/v1/tracks/watches/optionsWhat a rule in this place can use: stages (each key, name, kind), channels (per channel whether it can tell you, self, and others, others, and why not), recipients (whether members, contacts and assignees can be named), limits (max, used, perTrack), level, plainWords (whether rules in your own words are on your plan) and pages (web page rules: allowed, how often a page is looked at, the day's looks).
Errors: 400 INVALID.
Parameters
scopestringqueryWhere rules sit: BOARD (every track on your board), TRACK, TEAM (a team board you are a member of) or TEAM_TRACK. Left out: all of them.
trackIdstringqueryteamIdstringqueryteamTrackIdstringquery
Responses
200OK
Check whether a web page can be watched
/api/external/v1/tracks/watches/page-checkWhether a rule can watch this address for changes (PAGE_CHANGES): always 200 with {url, problem} - url as it would be watched, problem null when it can be, else why not (not public, not a page, not reachable, ...).
Parameters
urlstringqueryThe page's address (http or https).
Responses
200OK
Find people a watch rule can tell
/api/external/v1/tracks/watches/recipientsPeople a rule can name, matching q (at most 20), as {"items": [...]}: each kind (MEMBER or CONTACT), userId or contactId, label, detail, hasPhone, hasEmail and timeZone (where they live, when known). Send what you pick as a recipient {kind, userId | contactId, label}.
Parameters
qstringqueryA name, an address or a number to look for.
teamIdstringqueryLook among this team's members too.
Responses
200OK