---
title: "Cadastrar Webhook"
method: POST
path: "/webhook/subscription"
---

# Cadastrar Webhook

`POST /webhook/subscription`

Confira nosso tutorial -> https://developers.celcoin.com.br/docs/gerenciamento-de-webhook

## Request body

- object
  - `entity` string, required — Identificador do Evento. (deverá ser: (pix-payment-out, pix-payment-in, pix-reversal-in, pix-reversal-out)
  - `webhookUrl` string, required — Rota do Webhook.
  - `auth` object, required
    - `login` string — Login de autenticação (obrigatório quando type for "basic")
    - `pwd` string — Senha (obrigatório quando o type for "basic")
    - `type` string, required — Tipo de autenticação ("basic" ou "JWT")
    - `urlAuth` string
    - `requestType` string
    - `responsePathToken` string
    - `requestAuth` object
  - `context` string, required — Identificador do produto relacionado ao Webhook (deverá ser REDE,CORP,PIX,BAAS,PAGAMENTOS,ONBOARDING)

## Response `200`

200

- object
  - `version` string
  - `status` string
  - `body` object
    - `subscriptionId` string

## Other responses

- `400` — 400
- `401` — 401
- `500` — 500

---

[API](https://skmtc.net/celcoin/apis/api-para-transa-es.md) · [All operations](https://skmtc.net/celcoin/apis/api-para-transa-es/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/celcoin/api-para-transa-es/versions/85dd6188a37b/schema)
