Notifications

Create a webhook. The HMAC signing secret (generic webhooks only) is returned once

post/notifications/webhooks

Request

  • Base URL: https://hostingsurge.com/api/v1
  • URL: https://hostingsurge.com/api/v1/notifications/webhooks
  • Auth: one of:
    • HTTP bearer
    • API key in cookie __Host-hs_session

Query parameters

orgIdstring

Organization id (required when you belong to several)

Request body

namestring required
kind'generic' | 'slack' | 'discord'
urlstring required
projectIdstring uuid nullable
eventTypesstring[]
auditStreamboolean

default false. Stream the team audit log to this webhook (needs audit:read; team-wide webhooks only)

Response

Created

secretstring nullable required

shown once; null for slack/discord

Changes

No recorded changes to this operation across all 1 revision of this API.