Skip to main content
POST
/
webhooks
/
apps
Create webhook app
curl --request POST \
  --url https://api.wacht.dev/webhooks/apps \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "my-webhook-app",
  "description": "Webhooks for user events",
  "events": [
    {
      "name": "user.created",
      "description": "User account created",
      "schema": {}
    }
  ]
}
'
{
  "deployment_id": "9876543210987654321",
  "name": "my-webhook-app",
  "description": "Webhooks for user events",
  "signing_secret": "whsec_abc123...",
  "is_active": true,
  "created_at": "2024-01-15T10:30:00Z",
  "updated_at": "2024-01-15T10:30:00Z"
}

Authorizations

Authorization
string
header
required

API key authentication (format: Bearer {api_key})

Body

application/json
name
string
required

Webhook app name (must be unique)

Example:

"my-webhook-app"

description
string

Webhook app description

Example:

"Webhooks for user events"

events
object[]

Events to subscribe to

Response

200 - application/json

Webhook app created

deployment_id
string

Deployment ID

Example:

"9876543210987654321"

name
string

Webhook app name

Example:

"my-webhook-app"

description
string | null

App description

Example:

"Webhooks for user events"

signing_secret
string

Signing secret for webhook verification

Example:

"whsec_abc123..."

is_active
boolean

Whether the app is active

Example:

true

created_at
string<date-time>

Creation timestamp

Example:

"2024-01-15T10:30:00Z"

updated_at
string<date-time>

Last update timestamp

Example:

"2024-01-15T10:30:00Z"