---
title: "Cria assinatura"
method: POST
path: "/v1/webhook/subscription"
tags: ["Webhooks"]
---

# Cria assinatura

`POST /v1/webhook/subscription`

Cria assinatura de webhook.

## Request body

- PublicReqCreateWebhookSubscriptionDTO
  - `name` string, required — Nome para identificação da assinatura
  - `url` string, required — URL destino para onde serão enviadas requisições POST
  - `enabled` boolean, nullable — Estado inicial da assinatura (ativa ou inativa)
  - `events` string[], required — Eventos que deverão ser enviados para esta assinatura

## Response `200`

Success

- PublicWebhookSubscriptionDTO
  - `id` string, uuid
  - `createdAt` string, date-time
  - `updatedAt` string, date-time
  - `companyId` string, uuid
  - `name` string, nullable
  - `url` string, nullable
  - `enabled` boolean
  - `events` PublicWebhookEventDTO[], nullable
    - `event` 'SESSION_NEW' | 'SESSION_UPDATE' | 'SESSION_COMPLETE' | 'MESSAGE_RECEIVED' | 'MESSAGE_UPDATED' | 'MESSAGE_SENT' | 'CONTACT_NEW' | 'CONTACT_UPDATE' | 'CONTACT_TAG_UPDATE' | 'PAYMENT_NEW' | 'PAYMENT_UPDATE' | 'PANEL_CARD_NEW' | 'PANEL_CARD_UPDATE' | 'PANEL_CARD_STEP_CHANGE' | 'PANEL_CARD_NOTE_NEW' | 'PANEL_CARD_NOTE_UPDATE'
    - `description` string, nullable

## Other responses

- `500` — Server Error

---

[API](https://skmtc.net/wts/apis/core.md) · [All operations](https://skmtc.net/wts/apis/core/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/wts/core/versions/1efd0a6ba643/schema)
