Set where Slack messages go
Replaces all the routes. An empty list sends everything to the connection's channel. Slack must be connected.
better-auth.session_token<token>Better Auth session cookie. Production uses the __Secure- prefixed name.
Idempotency-Key?stringMakes retries safe. A repeated key with the same request returns the first result and sets
Idempotent-Replayed: true. The same key with a different request answers 409
idempotency.key_reused, and while the first request is still running 409
idempotency.in_progress. Results are kept for 24 hours. Server errors and refusals for lack
of sign-in or permission are not kept, so a retry runs again.
^[A-Za-z0-9_.:-]+$1 <= length <= 255application/json- body
items*array<>The routes as kept.
application/json- response
items*array<>curl -X PUT 'https://wardn.example.com/api/v1/integrations/slack/routes' \ -H 'Content-Type: application/json' \ -d '{ "items": [ { "name": "string", "channel": "string", "events": [ "string" ], "environments": [ "string" ], "teams": [ "string" ], "minSeverity": "info" } ]}'{ "items": [ { "id": "string", "name": "string", "channel": "string", "events": [ "string" ], "environments": [ "string" ], "teams": [ "string" ], "minSeverity": "info" } ]}List where Slack messages go GET
The routes, in order. Each says which events, in which environments, for which teams, at least how urgent, go to which channel. Every route that matches posts. An event no route matches goes to the connection's own channel, and with no routes everything does.
List the GitHub App installations GET
The installations of the Wardn GitHub App linked to this organization, with the repositories each covers as of the last time Wardn read them. Answers 503 when this server has no GitHub App configured.