apipj (MASTER BI TECNOLOGIA LTDA) Interno API

Rotas internas (webhooks)

Operations 2

POST /webhooks/asaas Webhook do Asaas (uso interno) #
POST /webhooks/stripe Webhook do Stripe (uso interno) #

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/apipj:apipj-interno-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

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

apipj-interno-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: apipj Interno API
  version: 0.1.0
  description: API de consulta de CNPJ a partir dos dados abertos da Receita Federal. Formato `completo` (padrão, documento estruturado) ou `simplificado` (formato plano com campos já formatados). Suporte a CNPJ alfanumérico.
  contact:
    email: brunogalizzi@masterbi.com
servers:
- url: https://apipj.com.br
tags:
- name: Interno
  description: Rotas internas (webhooks)
paths:
  /webhooks/asaas:
    post:
      summary: Webhook do Asaas (uso interno)
      tags:
      - Interno
      description: Recebe eventos de cobrança/assinatura. Exige o header `asaas-access-token` igual ao token cadastrado no Asaas. Responde 200 assim que o evento é gravado; o processamento é assíncrono e idempotente pelo `id` do evento.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
              - id
              - event
              properties:
                id:
                  type: string
                  minLength: 1
                  maxLength: 200
                event:
                  type: string
                  minLength: 1
                  maxLength: 80
                dateCreated:
                  type: string
                payment:
                  type: object
                subscription:
                  type: object
      responses:
        '200':
          description: Default Response
      operationId: postWebhooksAsaas
      x-operation-id-source: derived
  /webhooks/stripe:
    post:
      summary: Webhook do Stripe (uso interno)
      tags:
      - Interno
      description: Recebe eventos de checkout, fatura, assinatura, estorno e disputa. Exige o cabeçalho `Stripe-Signature` válido (HMAC-SHA256 com o segredo do endpoint, tolerância de 300 s). Responde 200 assim que o evento é gravado; o processamento é assíncrono e idempotente pelo `id` do evento.
      responses:
        '200':
          description: Default Response
      operationId: postWebhooksStripe
      x-operation-id-source: derived
components:
  securitySchemes:
    bearer:
      type: http
      scheme: bearer
      description: 'Authorization: Bearer <chave>'
    apiKey:
      type: apiKey
      in: header
      name: X-API-Key
    cookie:
      type: apiKey
      in: cookie
      name: __Host-apipj_session