Save Slack webhook URL

PUT /api/v1/businesses/slack

Configure a Slack Incoming Webhook URL for this business.

Operation ID: save_business_slack_webhook_api_v1_businesses_slack_put · View as markdown · OpenAPI slice

Authentication

Bearer token authentication. Pass your DayZero API token in the Authorization header and the target business UUID in x-business-id.

Request body

slack_webhook_url string

Slack Incoming Webhook URL, or empty/null to disconnect

channel_name string

Optional name for the channel or webhook

Responses

200 Successful Response

connected boolean required

Whether at least one webhook URL is configured

webhooks array · SlackWebhookItem SlackWebhookItem

List of configured webhooks

5 fields
id string required

Webhook ID

channel_name string

User-defined channel or webhook name

webhook_url_masked string required

Masked URL for display

notification_preferences object required

Per-category enabled flags

notification_categories array · SlackCategoryItem required

Categories with metadata for UI rendering

groups array · SlackGroupInfo SlackGroupInfo

Group definitions for UI section rendering

2 fields
key string required

Group key (matches SlackCategoryItem.group)

label string required

User-facing section label

400 Bad Request - Invalid input

401 Unauthorized - Authentication required

403 Forbidden - Insufficient permissions

404 Not Found - Resource does not exist

422 Validation Error

detail array · ValidationError ValidationError
5 fields
loc array · string | integer required
msg string required
type string required
input object
ctx object