BTG Pactual Webhook API

The Webhook API from BTG Pactual — 3 operation(s) for webhook.

Operations 6

POST /{companyId}/apps/{appId}/webhooks/{webhookId}/secret Create by company id apps by app id webhooks by webhook id secret #
PATCH /{companyId}/apps/{appId}/webhooks/{webhookId} Update by company id apps by app id webhooks by webhook id #
GET /{companyId}/apps/{appId}/webhooks/{webhookId} Get by company id apps by app id webhooks by webhook id #
DELETE /{companyId}/apps/{appId}/webhooks/{webhookId} Delete by company id apps by app id webhooks by webhook id #
POST /{companyId}/apps/{appId}/webhooks Create by company id apps by app id webhooks #
GET /{companyId}/apps/{appId}/webhooks Get by company id apps by app id webhooks #

Documentation

📖
Documentation
https://developers.empresas.btgpactual.com/docs/api-specs-target/Acquirers%20-%20PaymentLink/acquirers-paymentlink
📖
Documentation
https://developers.empresas.btgpactual.com/docs/api-specs-target/Acquirers%20-%20Salesprovider/acquirers-salesprovider
📖
Documentation
https://developers.empresas.btgpactual.com/docs/api-specs-target/ANTECRED-Subcredenciadores/antecred-subcredenciadores
📖
Documentation
https://developers.empresas.btgpactual.com/docs/api-specs-target/Banking%20-%20Accounts/banking-accounts
📖
Documentation
https://developers.empresas.btgpactual.com/docs/api-specs-target/Banking%20-%20Cards/banking-cards
📖
Documentation
https://developers.empresas.btgpactual.com/docs/api-specs-target/Banking%20-%20CCReceivables/banking-ccreceivables
📖
Documentation
https://developers.empresas.btgpactual.com/docs/api-specs-target/Banking%20-%20Collections/banking-collections
📖
Documentation
https://developers.empresas.btgpactual.com/docs/api-specs-target/Banking%20-%20DDA/banking-dda
📖
Documentation
https://developers.empresas.btgpactual.com/docs/api-specs-target/Banking%20-%20PaymentLink/banking-paymentlink
📖
Documentation
https://developers.empresas.btgpactual.com/docs/api-specs-target/Banking%20-%20PaymentLinkRec/banking-paymentlinkrec
📖
Documentation
https://developers.empresas.btgpactual.com/docs/api-specs-target/Banking%20-%20Payments/banking-payments
📖
Documentation
https://developers.empresas.btgpactual.com/docs/api-specs-target/Banking%20-%20Payroll/banking-payroll
📖
Documentation
https://developers.empresas.btgpactual.com/docs/api-specs-target/Banking%20-%20Pix%20Autom%5Cxe1tico/banking-pix-automatico
📖
Documentation
https://developers.empresas.btgpactual.com/docs/api-specs-target/Banking%20-%20PixCashin/banking-pixcashin
📖
Documentation
https://developers.empresas.btgpactual.com/docs/api-specs-target/Banking%20-%20Protest/banking-protest
📖
Documentation
https://developers.empresas.btgpactual.com/docs/api-specs-target/Banking%20-%20Split/banking-split
📖
Documentation
https://developers.empresas.btgpactual.com/docs/api-specs-target/BankingHub%20-%20Open%20Finance%20Balance%20Refresh/bankinghub-open-finance-balance-refresh
📖
Documentation
https://developers.empresas.btgpactual.com/docs/api-specs-target/CrediFlow%20-%20Ativos%20e%20Cess%5Cxf5es/crediflow-ativos-e-cessoes
📖
Documentation
https://developers.empresas.btgpactual.com/docs/api-specs-target/FIDC%20-%20Consignado%20Privado/fidc-consignado-privado
📖
Documentation
https://developers.empresas.btgpactual.com/docs/api-specs-target/FIDC%20-%20Credit%20Conciliation/fidc-credit-conciliation
📖
Documentation
https://developers.empresas.btgpactual.com/docs/api-specs-target/FIDC%20-%20Document/fidc-document
📖
Documentation
https://developers.empresas.btgpactual.com/docs/api-specs-target/FIDC%20-%20Eligibility/fidc-eligibility
📖
Documentation
https://developers.empresas.btgpactual.com/docs/api-specs-target/FIDC%20-%20Motor%20de%20Credito/fidc-motor-de-credito
📖
Documentation
https://developers.empresas.btgpactual.com/docs/api-specs-target/FIDC%20-%20Operation/fidc-operation
📖
Documentation
https://developers.empresas.btgpactual.com/docs/api-specs-target/FIDC%20-%20Payment/fidc-payment
📖
Documentation
https://developers.empresas.btgpactual.com/docs/api-specs-target/FIDC%20-%20Portability/fidc-portability
📖
Documentation
https://developers.empresas.btgpactual.com/docs/api-specs-target/FIDC%20-%20Prepayment/fidc-prepayment
📖
Documentation
https://developers.empresas.btgpactual.com/docs/api-specs-target/FIDC%20-%20Renegotiation/fidc-renegotiation
📖
Documentation
https://developers.empresas.btgpactual.com/docs/api-specs-target/FIDC%20-%20Simulation/fidc-simulation
📖
Documentation
https://developers.empresas.btgpactual.com/docs/api-specs-target/FIDC%20-%20Wallet/fidc-wallet
📖
Documentation
https://developers.empresas.btgpactual.com/docs/api-specs-target/FIDC%20-%20Warranty/fidc-warranty
📖
Documentation
https://developers.empresas.btgpactual.com/docs/api-specs-target/Files/files
📖
Documentation
https://developers.empresas.btgpactual.com/docs/api-specs-target/HUBFX%20-%20Cambio/hubfx-cambio
📖
Documentation
https://developers.empresas.btgpactual.com/docs/api-specs-target/KGIRO%20-%20Leads%20de%20Cr%5Cxe9dito/kgiro-leads-de-credito
📖
Documentation
https://developers.empresas.btgpactual.com/docs/api-specs-target/Onboarding/onboarding
📖
Documentation
https://developers.empresas.btgpactual.com/docs/api-specs-target/SCF%20-%20Colombia/scf-colombia
📖
Documentation
https://developers.empresas.btgpactual.com/docs/api-specs-target/SCF%20-%20Risco%20Sacado/scf-risco-sacado
📖
Documentation
https://developers.empresas.btgpactual.com/docs/api-specs-target/SCF-Financiers-Supplier/scf-financiers-supplier
📖
Documentation
https://developers.empresas.btgpactual.com/docs/api-specs-target/Solar-CreditAnalysis/solar-creditanalysis
📖
Documentation
https://developers.empresas.btgpactual.com/docs/api-specs-target/Solar-Workflow/solar-workflow
📖
Documentation
https://developers.empresas.btgpactual.com/docs/api-specs-target/Webhooks/webhooks

Specifications

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/btg-pactual:btg-pactual-webhook-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

btg-pactual-webhook-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Webhooks Webhook API
  version: 1.0.0
servers:
- url: https://api.empresas.btgpactual.com
  description: Produção
- url: https://api.sandbox.empresas.btgpactual.com
  description: Sandbox
tags:
- name: Webhook
paths:
  /{companyId}/apps/{appId}/webhooks/{webhookId}/secret:
    post:
      tags:
      - Webhook
      description: Alterar a secret de um webhook
      parameters:
      - name: companyId
        schema:
          type: string
          description: CNPJ da empresa
          example: '1234124210002'
          title: CompanyId
        in: path
        required: true
      - name: appId
        schema:
          type: string
          description: Assume o valor do seu Client Id
          example: 1111111111-a78c-447b-b5fe-1111111111
          title: appId
        in: path
        required: true
      - name: webhookId
        schema:
          type: string
          description: Id único de um webhook cadastrado
          example: 1111111-b11f-48c3-9a0e-11111111111
          title: webhookId
        in: path
        required: true
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                value:
                  type: string
                  description: Valor utilizado para gerar a secret
                  example: my-example-key
              title: webhookSecretBody
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                type: object
                properties:
                  webhookId:
                    type: string
                    description: Id único de um webhook cadastrado
                    example: 1111111-b11f-48c3-9a0e-11111111111
                    title: webhookId
                  idAlias:
                    type: string
                    description: Alias que pode ser atribuido ao webhook
                    example: alias
                    title: idAlias
                  appId:
                    type: string
                    description: Assume o valor do seu Client Id
                    example: 1111111111-a78c-447b-b5fe-1111111111
                    title: appId
                  endpoint:
                    type: string
                    description: URL que deseja cadastrar no webhook
                    example: https://localhost.com/test
                    title: endpoint
                  description:
                    type: string
                    description: Descrição do webhook
                    example: exemplo de descrição
                    title: description
                  tags:
                    type: string
                    description: Tag do webhook
                    example: exemplo
                    title: tags
                  disabled:
                    type: boolean
                    description: Campo referente ao status de funcionamento do webhook
                    example: false
                    title: disabled
                  secret:
                    type: string
                    description: secret key do webhook
                    example: 1111111111-1a15-4aea-8d06-111111111
                    title: secret
                  key:
                    type: string
                    example: 11111111111-4ba6-b69e-11111111111
                    title: key
                  events:
                    type: array
                    description: Eventos que deseja assinar no webhook
                    items:
                      type: string
                      example: bank-slips.*
                    title: events
                title: PostSecretResponse
      x-docs-url: https://developers.empresas.btgpactual.com/docs/api-specs-target/Webhooks/alterar-a-secret-de-um-webhook
      summary: Create by company id apps by app id webhooks by webhook id secret
      x-summary-source: derived
      operationId: postByCompanyIdAppsByAppIdWebhooksByWebhookIdSecret
      x-operation-id-source: derived
  /{companyId}/apps/{appId}/webhooks/{webhookId}:
    patch:
      tags:
      - Webhook
      description: Atualizar parcialmente um webhook
      parameters:
      - name: companyId
        schema:
          type: string
          description: CNPJ da empresa
          example: '1234124210002'
          title: CompanyId
        in: path
        required: true
      - name: appId
        schema:
          type: string
          description: Assume o valor do seu Client Id
          example: 1111111111-a78c-447b-b5fe-1111111111
          title: appId
        in: path
        required: true
      - name: webhookId
        schema:
          type: string
          description: Id único de um webhook cadastrado
          example: 1111111-b11f-48c3-9a0e-11111111111
          title: webhookId
        in: path
        required: true
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              description: Todos os campos são opcionais. Apenas os campos enviados serão alterados.
              properties:
                endpoint:
                  type: string
                  description: Novo endpoint do webhook
                  example: https://localhost.com/test
                events:
                  type: array
                  description: Nova lista de eventos a assinar. Substitui a lista existente.
                  items:
                    type: string
                    example: bank-slips.*
                  minItems: 1
                tags:
                  type: object
                  description: Tags do webhook
                  additionalProperties: true
                description:
                  type:
                  - string
                  - 'null'
                  description: Descrição do webhook
                  example: exemplo de descrição
              title: PatchWebhookBody
      responses:
        '204':
          description: No Content
      x-docs-url: https://developers.empresas.btgpactual.com/docs/api-specs-target/Webhooks/atualizar-parcialmente-um-webhook
      summary: Update by company id apps by app id webhooks by webhook id
      x-summary-source: derived
      operationId: patchByCompanyIdAppsByAppIdWebhooksByWebhookId
      x-operation-id-source: derived
    get:
      tags:
      - Webhook
      description: Listar o webhook especificado
      parameters:
      - name: companyId
        schema:
          type: string
          description: CNPJ da empresa
          example: '1234124210002'
          title: CompanyId
        in: path
        required: true
      - name: appId
        schema:
          type: string
          description: Assume o valor do seu Client Id
          example: 1111111111-a78c-447b-b5fe-1111111111
          title: appId
        in: path
        required: true
      - name: webhookId
        schema:
          type: string
          description: Id único de um webhook cadastrado
          example: 1111111-b11f-48c3-9a0e-11111111111
          title: webhookId
        in: path
        required: true
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                type: object
                properties:
                  items:
                    type: array
                    items:
                      type: object
                      properties:
                        webhookId:
                          type: string
                          description: Id único de um webhook cadastrado
                          example: 1111111-b11f-48c3-9a0e-11111111111
                          title: webhookId
                        idAlias:
                          type: string
                          description: Alias que pode ser atribuido ao webhook
                          example: alias
                          title: idAlias
                        appId:
                          type: string
                          description: Assume o valor do seu Client Id
                          example: 1111111111-a78c-447b-b5fe-1111111111
                          title: appId
                        endpoint:
                          type: string
                          description: URL que deseja cadastrar no webhook
                          example: https://localhost.com/test
                          title: endpoint
                        description:
                          type: string
                          description: Descrição do webhook
                          example: exemplo de descrição
                          title: description
                        tags:
                          type: string
                          description: Tag do webhook
                          example: exemplo
                          title: tags
                        disabled:
                          type: boolean
                          description: Campo referente ao status de funcionamento do webhook
                          example: false
                          title: disabled
                        secret:
                          type: string
                          description: secret key do webhook
                          example: 1111111111-1a15-4aea-8d06-111111111
                          title: secret
                        key:
                          type: string
                          example: 11111111111-4ba6-b69e-11111111111
                          title: key
                        events:
                          type: array
                          description: Eventos que deseja assinar no webhook
                          items:
                            type: string
                            example: bank-slips.*
                          title: events
                        hasReprocessingPendingJob:
                          type: boolean
                          description: Campo que indica a presença de reprocessamento
                          example: false
                          title: hasReprocessingPendingJob
                      title: getArrayObj
                title: GetResponse
      x-docs-url: https://developers.empresas.btgpactual.com/docs/api-specs-target/Webhooks/listar-o-webhook-especificado
      summary: Get by company id apps by app id webhooks by webhook id
      x-summary-source: derived
      operationId: getByCompanyIdAppsByAppIdWebhooksByWebhookId
      x-operation-id-source: derived
    delete:
      tags:
      - Webhook
      description: Remover um webhook
      parameters:
      - name: companyId
        schema:
          type: string
          description: CNPJ da empresa
          example: '1234124210002'
          title: CompanyId
        in: path
        required: true
      - name: appId
        schema:
          type: string
          description: Assume o valor do seu Client Id
          example: 1111111111-a78c-447b-b5fe-1111111111
          title: appId
        in: path
        required: true
      - name: webhookId
        schema:
          type: string
          description: Id único de um webhook cadastrado
          example: 1111111-b11f-48c3-9a0e-11111111111
          title: webhookId
        in: path
        required: true
      responses:
        '204':
          description: No Content
      x-docs-url: https://developers.empresas.btgpactual.com/docs/api-specs-target/Webhooks/remover-um-webhook
      summary: Delete by company id apps by app id webhooks by webhook id
      x-summary-source: derived
      operationId: deleteByCompanyIdAppsByAppIdWebhooksByWebhookId
      x-operation-id-source: derived
  /{companyId}/apps/{appId}/webhooks:
    post:
      tags:
      - Webhook
      description: Criar um webhook
      parameters:
      - name: companyId
        schema:
          type: string
          description: CNPJ da empresa
          example: '1234124210002'
          title: CompanyId
        in: path
        required: true
      - name: appId
        schema:
          type: string
          description: Assume o valor do seu Client Id
          example: 1111111111-a78c-447b-b5fe-1111111111
          title: appId
        in: path
        required: true
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
              - appId
              - endpoint
              - events
              properties:
                appId:
                  type: string
                  description: clientId
                endpoint:
                  type: string
                  description: Endpoint do webhook a ser criado
                description:
                  type: string
                  description: Descrição do webhook
                events:
                  type: array
                  description: eventos dos produtos que deseja receber
                  items:
                    type: string
                  minItems: 1
                messageFilter:
                  type: object
                  description: Opção para filtrar mensagem de webhook com base em um valor da mensagem recebida
                  additionalProperties: true
                tags:
                  type: object
                  description: tags do webhook
                  additionalProperties: true
                idAlias:
                  type: string
                secret:
                  type: string
              title: webhookBody
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                type: object
                properties:
                  webhookId:
                    type: string
                    description: Id único de um webhook cadastrado
                    example: 1111111-b11f-48c3-9a0e-11111111111
                    title: webhookId
                  appId:
                    type: string
                    description: Assume o valor do seu Client Id
                    example: 1111111111-a78c-447b-b5fe-1111111111
                    title: appId
                  endpoint:
                    type: string
                    description: URL que deseja cadastrar no webhook
                    example: https://localhost.com/test
                    title: endpoint
                  key:
                    type: string
                    example: 11111111111-4ba6-b69e-11111111111
                    title: key
                  events:
                    type: array
                    description: Eventos que deseja assinar no webhook
                    items:
                      type: string
                      example: bank-slips.*
                    title: events
                  secret:
                    type: string
                    description: secret key do webhook
                    example: 1111111111-1a15-4aea-8d06-111111111
                    title: secret
                title: PostResponse
      x-docs-url: https://developers.empresas.btgpactual.com/docs/api-specs-target/Webhooks/criar-um-webhook
      summary: Create by company id apps by app id webhooks
      x-summary-source: derived
      operationId: postByCompanyIdAppsByAppIdWebhooks
      x-operation-id-source: derived
    get:
      tags:
      - Webhook
      description: Listar todos os webhooks de um app
      parameters:
      - name: companyId
        schema:
          type: string
          description: CNPJ da empresa
          example: '1234124210002'
          title: CompanyId
        in: path
        required: true
      - name: appId
        schema:
          type: string
          description: Assume o valor do seu Client Id
          example: 1111111111-a78c-447b-b5fe-1111111111
          title: appId
        in: path
        required: true
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                type: object
                properties:
                  items:
                    type: array
                    items:
                      type: object
                      properties:
                        id:
                          type: string
                          description: Id único de um webhook cadastrado
                          example: 1111111-b11f-48c3-9a0e-11111111111
                          title: webhookId
                        idAlias:
                          type: string
                          description: Alias que pode ser atribuido ao webhook
                          example: alias
                          title: idAlias
                        appId:
                          type: string
                          description: Assume o valor do seu Client Id
                          example: 1111111111-a78c-447b-b5fe-1111111111
                          title: appId
                        endpoint:
                          type: string
                          description: URL que deseja cadastrar no webhook
                          example: https://localhost.com/test
                          title: endpoint
                        key:
                          type: string
                          example: 11111111111-4ba6-b69e-11111111111
                          title: key
                        disabled:
                          type: boolean
                          description: Campo referente ao status de funcionamento do webhook
                          example: false
                          title: disabled
                        tenantId:
                          type: string
                          description: CNPJ da empresa
                          example: '1234124210002'
                          title: CompanyId
                        tags:
                          type: string
                          description: Tag do webhook
                          example: exemplo
                          title: tags
                        description:
                          type: string
                          description: Descrição do webhook
                          example: exemplo de descrição
                          title: description
                        secret:
                          type: string
                          description: secret key do webhook
                          example: 1111111111-1a15-4aea-8d06-111111111
                          title: secret
                        events:
                          type: array
                          description: Eventos que deseja assinar no webhook
                          items:
                            type: string
                            example: bank-slips.*
                          title: events
                        hasReprocessingPendingJob:
                          type: boolean
                          description: Campo que indica a presença de reprocessamento
                          example: false
                          title: hasReprocessingPendingJob
                        messageFilter:
                          type: object
                          description: Filtro de mensagens do webhook
                          additionalProperties: true
                      title: webhookItem
                title: GetWebhooksResponse
      x-docs-url: https://developers.empresas.btgpactual.com/docs/api-specs-target/Webhooks/listar-todos-os-webhooks-de-um-app
      summary: Get by company id apps by app id webhooks
      x-summary-source: derived
      operationId: getByCompanyIdAppsByAppIdWebhooks
      x-operation-id-source: derived
x-reassembled-from:
  source: https://developers.empresas.btgpactual.com/docs/api-specs-target/
  method: Operation objects decoded verbatim from the "api" payload that the provider's Docusaurus OpenAPI docs embed in each reference page chunk (/assets/js/*.js); grouped by info.title; jsonRequestBodyExample and postman keys dropped.
  chunks:
  - https://developers.empresas.btgpactual.com/assets/js/e168c415.61f96e3d.js
  - https://developers.empresas.btgpactual.com/assets/js/56833d64.8cd70507.js
  - https://developers.empresas.btgpactual.com/assets/js/c18645d8.2bd442ce.js
  - https://developers.empresas.btgpactual.com/assets/js/d824adb9.5c3af728.js
  - https://developers.empresas.btgpactual.com/assets/js/347956b3.afd06789.js
  - https://developers.empresas.btgpactual.com/assets/js/7d336481.726037af.js