Docs
Sign in

Add a notification channel.

Koidog first asks Notify who the token belongs to (GET /auth/status): a token Notify refuses, or one without notifications:send, interactions:create and interactions:read, is refused here (422 notify_token_refused) and nothing is saved.

POST/api/v1/notifications/channels

Scopesconfigapprove

If Notify cannot be reached the channel is saved failing and retried. Needs approve as well as config, because whoever answers prompts on that Notify account decides approvals. Only what happens after the channel is made is sent; older pending items are in the digest. The timeline records the key ID, action and outcome.

Headers.

Idempotency-Keystring

Retry the same request with the same key. Retry rules.

Body.

kindenumrequired

notify sends to a phone through Notify.

namestringrequired

A name to tell channels apart, such as the phone's. 1 to 80 characters.

tokenstringrequired

Your Notify agent token, with the scopes notifications:send, interactions:create and interactions:read (devices:read is optional: it names the phone that answered). 8 to 2000 characters.

sendarray

What to send: approvals, questions, crew_finished, crew_failed, budget, digest. Any of approvals, questions, crew_finished, crew_failed, budget, digest. 1 to 6 items. Default ["approvals","questions","crew_failed","digest"].

digestMinutes15–10080

The digest is sent at most once in this many minutes, and only when something needs you. Default 1440.

maxPerHour1–120

At most this many messages and prompts an hour (the digest not counted). Past it, what needs you waits for the digest and the dashboard Inbox. Default 20.

enabledboolean

False saves the channel switched off: nothing is sent until it is switched on. Default true.

Response.

201 Created · JSON object

422 validation_failed
Each schema error appears in details.