---
title: "Update Slack Webhook"
method: PUT
path: "/api/subscribe/slack"
tags: ["Subscriptions"]
---

# Update Slack Webhook

`PUT /api/subscribe/slack`

## Request

- Base URL: `https://warnfirehose.com` (the document declares no server; this is the origin it was published from)
- URL: `https://warnfirehose.com/api/subscribe/slack`
- Auth: none declared

Add or remove a Slack webhook URL on an email subscription — with proof that the caller owns the address
(W-FS-01). Proof is any of: the signed-in account (Bearer session / X-API-Key) whose email is the subscription;
the subscriber's own token (`token`, the secret in their alert mails); or, for an anonymous caller, a
confirmation link mailed to the address, which applies the change when clicked. Without proof nothing is
written, so a stranger who knows an address cannot redirect that person's alerts to their own Slack.

## Request body

- SlackWebhookRequest
  - `email` string, required
  - `slack_webhook_url` string
  - `token` string

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/warnfirehose/apis/laborcurrent-api.md) · [All operations](https://skmtc.dev/warnfirehose/apis/laborcurrent-api/llms.txt) · [OpenAPI document](https://skmtc.dev/warnfirehose/apis/laborcurrent-api/revisions/0040897972b8?raw)
