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

# Cadastrar Webhook - JWT

`POST /webhook/subscription.`

## Request

- Base URL: `https://sandbox.openfinance.celcoin.dev/baas/v2`
- URL: `https://sandbox.openfinance.celcoin.dev/baas/v2/webhook/subscription.`
- Auth: OAuth 2

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

## Request body

- object
  - `entity` string, required: Identificador do Evento.
  - `webhookUrl` string, required: Rota do Webhook.
  - `auth` object: Objeto de autorização
    - `responsePathToken` string, required: Propriedade do result da solicitação do token que retorna o token
    - `requestType` string, required: Tipo de conteúdo de formulário que o endpoint de solicitação do token aceita.
    - `urlAuth` string, required
    - `requestAuth` object
      - `key` string, required
      - `value` string, required
      - `type` string, required
    - `type` string

## Response `200`

200

- object
  - `version` string
  - `status` string

## Other responses

- `400`: 400
- `401`: 401
- `500`: 500

---

[API](https://skmtc.dev/celcoin/apis/baas-v2.md) - [All operations](https://skmtc.dev/celcoin/apis/baas-v2/llms.txt) - [OpenAPI document](https://skmtc.dev/celcoin/apis/baas-v2/revisions/98ec6869c1f2?raw)
