---
title: "Test webhook"
method: POST
path: "/settings/webhook_test"
tags: ["Channel"]
---

# Test webhook

`POST /settings/webhook_test`

Sends a test webhook callback to the specified URL.

## Request body

- WebhookTestRequest
  - `type` 'messages' | 'statuses' | 'chats' | 'contacts' | 'groups' | 'presences' | 'calls' | 'channel' | 'users' | 'labels' | 'service', required
  - `send_undecrypted_ad` boolean — Send a webhook for an ad that could not be decrypted.
  - `webhook_max_age_seconds` number, nullable — Time in seconds. If the message is delayed more than this time, the hook will not be sent.
  - `headers` object — Additional headers for webhook. Max 5 headers. <br/>Example: <br/>"Authorization - Bearer token" <br/>"Content-Type - application/json" <br/>"X-Header - value"
  - `url` string, required — Inbound and outbound notifications are routed to this URL.
  - `mode` 'body' | 'path' | 'method', required — Request method for sending hook.

## Response `200`

OK

- ResponseSuccess
  - `success` boolean

## Other responses

- `400` — Wrong parameters
- `500` — Internal Error

---

[API](https://skmtc.dev/whapi/apis/whatsapp-api.md) · [All operations](https://skmtc.dev/whapi/apis/whatsapp-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/whapi/whatsapp-api/revisions/40ab05abffdb/schema)
