---
updatedAt: 2026-10-30T08:57:48.000Z
agentTools:
  projectIndex: https://docs.wati.io/llms.txt
---

# Create webhooks

Retained legacy exception: Create a subscription; V3 manages the resulting subscription.

Legacy exception: webhook creation currently uses this V2 route; manage the returned subscription with the V3 webhook APIs. phoneNumber is the sending WhatsApp channel number, not a customer phone or channel ID. Set numeric status=1 to enable; status=0 creates a disabled subscription. Select eventTypes from the V3 event-types endpoint for this workspace. Check ok and retain the returned subscription ID. Supported event availability does not imply all channels can use this creation route.

Create webhooks. POST /{tenantId}/api/v2/webhookEndpoints.

### Permissions

For API access tokens and OIDC tokens, satisfy **at least one** of: `api`, `webhooks:create`. API access tokens may satisfy a listed scope through the configured scope hierarchy; OIDC tokens are checked against their scope claims. Legacy JWT authentication does not use this scope check. Authentication, role, tenant, and applicable feature or plan checks still apply. For HTTP 403, check the credential type, applicable scopes, roles, and workspace access; 403 does not always mean a missing scope. Authentication/authorization failures do not guarantee a JSON response body.

# OpenAPI definition

```json
{
  "openapi": "3.0.4",
  "info": {
    "title": "WATI API",
    "version": "2.6",
    "description": "Documentation contract version 2.6. Use V3 for supported business operations, adopting its request, response, defaults and pagination. Retain V1/V2 only for the business exceptions listed in Introduction. API route versions are independent of this artifact version.\n\nSend Authorization: Bearer <your-token> with the workspace credential and regional API host. API route version does not select the authentication mechanism. Endpoint scopes, roles, account availability and channel access still apply; consult Authentication and each operation.\n\nChannel support is operation-specific. GET /api/ext/v3/channels lists additional connected channels and may exclude the default WhatsApp number; do not infer full channel coverage or permission to send from discovery alone.\n\nInspect HTTP status and business result separately. Some operations report business failure or partial recipient failure in HTTP 200. Authorization errors may have no JSON body. A 429 can indicate a rate or usage limit. For unknown write outcomes, reconcile state before retrying; do not assume idempotency.\n\nCreate webhook subscriptions through the documented V2 exception or the dashboard, then manage them through V3. Use supported event types for the workspace and distinguish request acceptance from final message delivery.",
    "contact": {
      "name": "WATI Support",
      "url": "https://docs.wati.io"
    }
  },
  "servers": [
    {
      "url": "https://live-mt-server.wati.io",
      "description": "WATI API host. Legacy v1 and v2 endpoints require tenantId in the path; v3 endpoints do not."
    }
  ],
  "tags": [
    {
      "name": "Webhooks",
      "description": "Manage webhook subscriptions and discover supported event types."
    }
  ],
  "paths": {
    "/{tenantId}/api/v2/webhookEndpoints": {
      "post": {
        "tags": [
          "Webhooks"
        ],
        "summary": "Create webhooks",
        "responses": {
          "200": {
            "description": "Create webhooks success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "ok": {
                      "type": "boolean",
                      "description": "Indicates whether webhook creation was successful."
                    },
                    "result": {
                      "type": "array",
                      "description": "List of created or existing webhook endpoint configurations.",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "description": "Unique identifier of the webhook endpoint."
                          },
                          "tenantId": {
                            "type": "string",
                            "description": "Tenant identifier that owns this webhook endpoint."
                          },
                          "channelId": {
                            "type": "string",
                            "description": "Channel ID associated with this webhook, indicating which WhatsApp channel it belongs to."
                          },
                          "channelPhoneNumber": {
                            "type": "string",
                            "description": "Phone number of the channel for which this webhook is configured."
                          },
                          "url": {
                            "type": "string",
                            "description": "Destination URL where webhook events will be delivered."
                          },
                          "status": {
                            "type": "integer",
                            "description": "Webhook status: 0 = Disabled, 1 = Enabled, 2 = Defective."
                          },
                          "created": {
                            "type": "string",
                            "description": "Creation timestamp of the webhook endpoint."
                          },
                          "lastUpdated": {
                            "type": "string",
                            "description": "Last update timestamp of the webhook endpoint."
                          },
                          "failedIterationCount": {
                            "type": "integer",
                            "description": "Number of consecutive failed attempts for this webhook."
                          },
                          "isSentNotify": {
                            "type": "boolean",
                            "description": "Indicates whether a failure notification has been sent."
                          },
                          "eventTypes": {
                            "type": "array",
                            "description": "List of event types that will trigger this webhook (e.g. 'message', 'newContactMessageReceived').",
                            "items": {
                              "type": "string"
                            }
                          }
                        }
                      }
                    }
                  }
                },
                "example": {
                  "ok": true,
                  "result": [
                    {
                      "id": "68bfcbdcfb4c1ea18e30212b",
                      "tenantId": "100138",
                      "channelId": "687f6cf72b1ccf26eda76fce",
                      "channelPhoneNumber": "1650-937-9611",
                      "url": "https://google.com",
                      "status": 0,
                      "created": "2025-09-09T06:40:28.9638502Z",
                      "lastUpdated": "2025-09-09T06:40:28.9638502Z",
                      "failedIterationCount": 0,
                      "isSentNotify": false,
                      "eventTypes": [
                        "message"
                      ]
                    },
                    {
                      "id": "68bfcbdcfb4c1ea18e30212c",
                      "tenantId": "100138",
                      "channelId": "68831a430d62daa5211c30b1",
                      "channelPhoneNumber": "15557857193",
                      "url": "https://google.com",
                      "status": 0,
                      "created": "2025-09-09T06:40:28.9638502Z",
                      "lastUpdated": "2025-09-09T06:40:28.9638502Z",
                      "failedIterationCount": 0,
                      "isSentNotify": false,
                      "eventTypes": [
                        "message",
                        "newContactMessageReceived"
                      ]
                    }
                  ]
                }
              }
            }
          },
          "403": {
            "description": "Authorization failed. Check the Permissions section for the credential-specific scope rules, and check roles and workspace access. The response may have no body; do not require a JSON error envelope."
          }
        },
        "parameters": [
          {
            "name": "tenantId",
            "in": "path",
            "required": true,
            "description": "Your WATI workspace (tenant) ID. This required path segment identifies the WATI account for legacy v1 and v2 API requests.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "phoneNumber": {
                      "type": "string"
                    },
                    "status": {
                      "type": "integer",
                      "format": "int32",
                      "description": "Webhook status type: 0 = Disabled, 1 = Enabled, 2 = Defective."
                    },
                    "url": {
                      "type": "string"
                    },
                    "eventTypes": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    }
                  }
                }
              },
              "example": [
                {
                  "phoneNumber": "15551234567",
                  "status": 1,
                  "url": "https://example.com/wati/webhook",
                  "eventTypes": [
                    "message"
                  ]
                }
              ]
            }
          }
        },
        "operationId": "createWebhookEndpointV2",
        "description": "Retained legacy exception: Create a subscription; V3 manages the resulting subscription.\n\nLegacy exception: webhook creation currently uses this V2 route; manage the returned subscription with the V3 webhook APIs. phoneNumber is the sending WhatsApp channel number, not a customer phone or channel ID. Set numeric status=1 to enable; status=0 creates a disabled subscription. Select eventTypes from the V3 event-types endpoint for this workspace. Check ok and retain the returned subscription ID. Supported event availability does not imply all channels can use this creation route.\n\nCreate webhooks. POST /{tenantId}/api/v2/webhookEndpoints.\n\n### Permissions\n\nFor API access tokens and OIDC tokens, satisfy **at least one** of: `api`, `webhooks:create`. API access tokens may satisfy a listed scope through the configured scope hierarchy; OIDC tokens are checked against their scope claims. Legacy JWT authentication does not use this scope check. Authentication, role, tenant, and applicable feature or plan checks still apply. For HTTP 403, check the credential type, applicable scopes, roles, and workspace access; 403 does not always mean a missing scope. Authentication/authorization failures do not guarantee a JSON response body.",
        "x-wati-permissions": {
          "scopeRequirementGroups": [
            {
              "anyOf": [
                "api",
                "webhooks:create"
              ]
            }
          ],
          "groupOperator": "allOf",
          "appliesTo": [
            "ApiAccessToken",
            "OIDC"
          ],
          "legacyJwtScopeCheck": "skipped",
          "apiAccessTokenHierarchy": "configured-by-identity-provider",
          "oidcFallbackWhenNoEndpointScope": null,
          "sourceCommit": "03c6d4bc1590408c569e65602f969c6a596672e3"
        },
        "x-wati-documentation": {
          "discovery": "legacy-exception",
          "reason": "Create a subscription; V3 manages the resulting subscription."
        },
        "x-internal": false
      },
      "parameters": [
        {
          "name": "tenantId",
          "in": "path",
          "required": true,
          "description": "Your WATI workspace (tenant) ID. This required path segment identifies the WATI account for legacy v1 and v2 API requests.",
          "schema": {
            "type": "string"
          }
        }
      ]
    }
  },
  "components": {
    "securitySchemes": {
      "BearerAuth": {
        "type": "http",
        "scheme": "bearer",
        "description": "API token from your WATI Dashboard > API Settings. Pass as `Authorization: Bearer <token>`."
      }
    }
  },
  "security": [
    {
      "BearerAuth": []
    }
  ]
}
```