Skip to main content
POST
/
webhooks
/
apps
/
{app_name}
/
rotate-secret
Rotate webhook secret
curl --request POST \
  --url https://api.wacht.dev/webhooks/apps/{app_name}/rotate-secret \
  --header 'Authorization: <api-key>'
{
  "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})

Path Parameters

app_name
string
required

Webhook app name

Response

Secret rotated

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"