Skip to main content
POST
/
webhooks
/
apps
/
{app_name}
/
endpoints
/
{endpoint_id}
/
test
Test webhook endpoint
curl --request POST \
  --url https://api.wacht.dev/webhooks/apps/{app_name}/endpoints/{endpoint_id}/test \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "event_name": "user.created",
  "payload": {
    "test": true,
    "user_id": "123"
  }
}
'
{
  "success": true,
  "status_code": 200,
  "response_time_ms": 145,
  "response_body": "<string>",
  "error": "<string>"
}

Authorizations

Authorization
string
header
required

API key authentication (format: Bearer {api_key})

Path Parameters

app_name
string
required

Webhook app name

endpoint_id
string
required

Endpoint ID

Body

application/json
event_name
string
required

Event name to test

Example:

"user.created"

payload
object

Test payload (defaults to test event if not provided)

Example:
{ "test": true, "user_id": "123" }

Response

Test result

success
boolean

Whether test was successful

Example:

true

status_code
integer

HTTP status code from endpoint

Example:

200

response_time_ms
integer

Response time in milliseconds

Example:

145

response_body
string | null

Response body from endpoint

error
string | null

Error message if test failed