Every API here is available over the APIs.io API and to AI agents over MCP.
openapi: 3.2.0
info:
title: Hookpulse Credito API
version: '1.0'
description: 'Operations tagged Credito across 2 of this provider''s published API definitions: hookpulse-openapi.json, hookpulse-openapi.json. Each path carries the servers of the definition it was published in.'
servers:
- url: https://hookpulse.net
tags:
- name: Credito
paths:
/api/credito:
post:
operationId: post_api_credito
summary: 'Top up prepaid credit: pay once with x402 and get the token that debits on any…'
description: 'Returns: { token, saldo_usd, guarde, usar, saldo_em }'
security: []
parameters:
- name: usd
in: query
required: true
schema:
type: integer
description: 'Package: 1, 5, 10 ou 25 dollars.'
responses:
'200':
description: '{ token, saldo_usd, guarde, usar, saldo_em }'
content:
application/json:
schema:
type: object
properties:
token:
type: string
description: Bearer token for the balance (`cred_…`). Shown ONCE — it cannot be recovered.
saldo_usd:
type: string
description: Credited balance.
guarde:
type: string
description: Warning that the token is the bearer of the credit.
usar:
type: string
description: How to present the token on paid routes.
saldo_em:
type: string
description: Where to check balance and statement.
required:
- token
- saldo_usd
- guarde
- usar
- saldo_em
'400':
description: Package outside the list (1, 5, 10 ou 25).
'402':
description: Unpaid — the body carries the x402 `accepts[]`.
tags:
- Credito
get:
operationId: get_api_credito
summary: Credit balance and statement — the latest movements, without returning the token
description: 'Returns: { saldo_micros, saldo_usd, criado_em, movimentos }'
security:
- bearerAuth: []
responses:
'200':
description: '{ saldo_micros, saldo_usd, criado_em, movimentos }'
content:
application/json:
schema:
type: object
properties:
saldo_micros:
type: integer
description: Balance in micro-dollars (1e-6 USD).
saldo_usd:
type: string
description: Formatted balance.
criado_em:
type: string
description: When the credit was opened.
movimentos:
type: array
items:
type: object
description: Recent credits and debits, with product and resource.
required:
- saldo_micros
- saldo_usd
- criado_em
- movimentos
'401':
description: No token, or unknown token.
tags:
- Credito
servers:
- url: https://hookpulse.net
/api/credito/x402/saude:
get:
operationId: get_api_credito_x402_saude
summary: 'x402 verifier health: pending payments, missing hashes, failed or stalled…'
description: 'Returns: { verificado_em, ativo, tarefas }'
security: []
responses:
'200':
description: '{ verificado_em, ativo, tarefas }'
content:
application/json:
schema:
type: object
properties:
verificado_em:
type: string
description: Reading time in UTC.
ativo:
type: object
description: Verifier configured in this process.
tarefas:
type: array
items:
type: object
description: Failures with id and reason, without payer data. Bounded counts show +.
required:
- verificado_em
- ativo
- tarefas
'503':
description: Verifier unavailable in this process.
content:
application/problem+json:
schema:
$ref: '#/components/schemas/ProblemDetails'
tags:
- Credito
servers:
- url: https://hookpulse.net
/api/credito/barrados/saude:
get:
operationId: get_api_credito_barrados_saude
summary: 'People who paid and were blocked on this site in the last 24 hours: the site…'
description: 'Returns: { verificado_em, ativo, total, tarefas }'
security: []
responses:
'200':
description: '{ verificado_em, ativo, total, tarefas }'
content:
application/json:
schema:
type: object
properties:
verificado_em:
type: string
description: Reading time in UTC.
ativo:
type: object
description: The reading worked.
total:
type: integer
description: Number of different cases.
tarefas:
type: array
items:
type: object
description: Up to 8 cases, with class, route, count and last time, without payer data.
required:
- verificado_em
- ativo
- total
- tarefas
tags:
- Credito
servers:
- url: https://hookpulse.net
/api/credito/conta:
get:
operationId: get_api_credito_conta
summary: 'The balance of the session account: the sum of its purchases in this…'
description: 'Returns: { saldo_micros, saldo_usd, referencia_usd, cotacao_brl_por_usd, movimentos, proximo }'
security:
- bearerAuth: []
parameters:
- name: movimentos
in: query
required: false
schema:
type: string
description: '`1`: reads only the paged statement of the account, without the balance.'
- name: de
in: query
required: false
schema:
type: string
description: 'Inclusive start in UTC ISO 8601 with milliseconds. Default: 1970-01-01T00:00:00.000Z.'
- name: ate
in: query
required: false
schema:
type: string
description: 'Exclusive end in UTC ISO 8601 with milliseconds. Default: now. Keep the value between pages.'
- name: antes
in: query
required: false
schema:
type: string
description: The `proximo` cursor of the previous page. Only with movimentos=1.
- name: limite
in: query
required: false
schema:
type: integer
description: 1 to 50 entries per page; default 20. Only with movimentos=1.
responses:
'200':
description: '{ saldo_micros, saldo_usd, referencia_usd, cotacao_brl_por_usd, movimentos, proximo }'
content:
application/json:
schema:
type: object
properties:
saldo_micros:
type: integer
description: The balance in millionths of a dollar.
saldo_usd:
type: string
description: The balance in dollars, formatted.
referencia_usd:
type: string
description: 'The balance right after the last top-up, added across the wallets with a balance: the base of what is left.'
cotacao_brl_por_usd:
type: number
description: The BRL rate the screen uses to show the balance.
movimentos:
type: array
items:
type: object
description: 'Only with movimentos=1: id, em, valor_usd, saldo_usd, motivo, produto and recurso, newest first.'
proximo:
type: string
description: 'Only with movimentos=1: the cursor of the next page or null.'
required:
- saldo_micros
- saldo_usd
- referencia_usd
- cotacao_brl_por_usd
- movimentos
- proximo
'400':
description: Invalid period, limit or cursor.
content:
application/problem+json:
schema:
$ref: '#/components/schemas/ProblemDetails'
'401':
description: No session.
content:
application/problem+json:
schema:
$ref: '#/components/schemas/ProblemDetails'
tags:
- Credito
post:
operationId: post_api_credito_conta
summary: Links credit bought without an account to the account of the session, USDC…
description: 'Returns: { ok, ligadas, da_conta }'
security:
- bearerAuth: []
responses:
'200':
description: '{ ok, ligadas, da_conta }'
content:
application/json:
schema:
type: object
properties:
ok:
type: object
description: The link was checked.
ligadas:
type: integer
description: Purchases linked now. Zero when the purchase already has an account.
da_conta:
type: object
description: The balance of this code is already in the account balance.
required:
- ok
- ligadas
- da_conta
'401':
description: No session or no credit code.
content:
application/problem+json:
schema:
$ref: '#/components/schemas/ProblemDetails'
tags:
- Credito
servers:
- url: https://hookpulse.net
/api/credito/indicacao:
get:
operationId: get_api_credito_indicacao
summary: The referral link of the session account, the reward rules and the progress…
description: 'Returns: { codigo, link, regras, convidadas, esperando, a_creditar, creditado }'
security:
- bearerAuth: []
responses:
'200':
description: '{ codigo, link, regras, convidadas, esperando, a_creditar, creditado }'
content:
application/json:
schema:
type: object
properties:
codigo:
type: string
description: 'The account code: eight letters and digits.'
link:
type: string
description: This product's address with `?ref=<code>`.
regras:
type: object
description: parte (share of the first payment), teto ({ micros, usd } for each of the two, per referred account) and prazo_dias (from payment to credit).
convidadas:
type: integer
description: Accounts that joined through the link.
esperando:
type: integer
description: Referred accounts that have not paid yet.
a_creditar:
type: object
description: '{ n, micros, usd }: the rewards waiting for the refund period.'
creditado:
type: object
description: '{ n, micros, usd }: the rewards already credited to the account wallet.'
required:
- codigo
- link
- regras
- convidadas
- esperando
- a_creditar
- creditado
'401':
description: No session; API keys and tokens do not work here.
content:
application/problem+json:
schema:
$ref: '#/components/schemas/ProblemDetails'
'503':
description: Account or database unavailable; try again.
content:
application/problem+json:
schema:
$ref: '#/components/schemas/ProblemDetails'
tags:
- Credito
post:
operationId: post_api_credito_indicacao
summary: The session account, which joined through a referral link, records the invite.
description: 'Returns: { aceito, motivo }'
security:
- bearerAuth: []
requestBody:
required: true
content:
application/json:
example:
codigo:
tipo: string
desc: The link code (`ref`).
responses:
'200':
description: '{ aceito, motivo }'
content:
application/json:
schema:
type: object
properties:
aceito:
type: object
description: The invite was recorded.
motivo:
type: string
description: 'When refused: codigo_invalido, propria_conta, ja_indicada, ja_pagou or mesmo_email.'
required:
- aceito
- motivo
'400':
description: Body other than { codigo }.
content:
application/problem+json:
schema:
$ref: '#/components/schemas/ProblemDetails'
'401':
description: No session; API keys and tokens do not work here.
content:
application/problem+json:
schema:
$ref: '#/components/schemas/ProblemDetails'
'403':
description: Invalid origin or CSRF protection.
content:
application/problem+json:
schema:
$ref: '#/components/schemas/ProblemDetails'
'413':
description: Body over 4 KiB.
content:
application/problem+json:
schema:
$ref: '#/components/schemas/ProblemDetails'
'415':
description: Body that is not application/json.
content:
application/problem+json:
schema:
$ref: '#/components/schemas/ProblemDetails'
'503':
description: Account or database unavailable; try again.
content:
application/problem+json:
schema:
$ref: '#/components/schemas/ProblemDetails'
tags:
- Credito
servers:
- url: https://hookpulse.net
/api/credito/pix/{id}:
get:
operationId: get_api_credito_pix_by_id
summary: 'Status of a Pix credit request: `pendente`, `liberado`, `recusado` or `falhou`'
description: 'Returns: { estado, usd, decidido_em }'
security: []
parameters:
- name: id
in: path
required: true
schema:
type: string
description: Request id (32 hex).
example: 0123456789abcdef0123456789abcdef
responses:
'200':
description: '{ estado, usd, decidido_em }'
content:
application/json:
schema:
type: object
properties:
estado:
type: string
description: '`pendente`, `liberado`, `recusado` or `falhou` (the e-mail to the owner did not go out; send again).'
usd:
type: integer
description: The requested pack.
decidido_em:
type: string
description: When the owner decided, or `null`.
required:
- estado
- usd
- decidido_em
'404':
description: Unknown request.
content:
application/problem+json:
schema:
$ref: '#/components/schemas/ProblemDetails'
tags:
- Credito
servers:
- url: https://hookpulse.net
/api/credito/asaas/{id}/cancelar:
post:
operationId: post_api_credito_asaas_by_id_cancelar
summary: Cancels a pending charge when the payment dialog closes
description: 'Requires the `cancelamento` capability returned at creation. An older credit charge accepts its token in `credito`. The product and environment must match. This does not refund payments or remove records. 202 means cancellation is pending; the scheduled worker retries provider failures.
Returns: { id, estado }'
security: []
parameters:
- name: id
in: path
required: true
schema:
type: string
description: Charge id (32 hex).
example: 0123456789abcdef0123456789abcdef
responses:
'200':
description: '{ id, estado }'
content:
application/json:
schema:
type: object
properties:
id:
type: string
description: Charge id.
estado:
type: string
description: '`cancelando`, `vencido`, or the confirmed final state.'
required:
- id
- estado
'404':
description: Invalid charge or capability, or a different product or environment.
content:
application/problem+json:
schema:
$ref: '#/components/schemas/ProblemDetails'
tags:
- Credito
servers:
- url: https://hookpulse.net
/api/credito/asaas:
get:
operationId: get_api_credito_asaas
summary: 'Automatic Pix: whether it is available in this app, the packs in reais and the…'
description: 'Returns: { disponivel, pacotes, exatos, saldo, precisa_documento, pix_precisa_documento }'
security: []
responses:
'200':
description: '{ disponivel, pacotes, exatos, saldo, precisa_documento, pix_precisa_documento }'
content:
application/json:
schema:
type: object
properties:
disponivel:
type: object
description: '`false` when the app has no Asaas configured.'
pacotes:
type: array
items:
type: object
description: The credit packs (3, 5, 10 or 25 dollars), with `brl_centavos`.
exatos:
type: array
items:
type: object
description: Prices declared by the app, with `usd` and `brl_centavos`. Amounts start at R$ 5.00 and cannot exceed R$ 10,000.
saldo:
type: object
description: 'When the product sells a balance in reais: the range and whether the account can buy.'
precisa_documento:
type: object
description: Whether the payer's CPF/CNPJ and name are required for card or boleto (first purchase).
pix_precisa_documento:
type: object
description: 'Whether Pix requires CPF/CNPJ and name (`false`: Pix uses a single-use static QR without prior tax ID).'
required:
- disponivel
- pacotes
- exatos
- saldo
- precisa_documento
- pix_precisa_documento
tags:
- Credito
post:
operationId: post_api_credito_asaas
summary: Creates an automatic Pix (single-use static QR, no CPF/CNPJ) or hosted…
description: 'The payment releases what was bought by itself: the pack becomes the `cred_…` token already in the response; the balance goes to the logged-in account''s organization. With `forma: "pix"` (the default), the single-use static QR does not require CPF/CNPJ or name before payment. For `cartao` and `cartao_boleto`, the first purchase needs `documento` (CPF or CNPJ, sent to the gateway and not stored here) and `nome`; `email`, `pagina` and `navegador_id` are optional. With `forma: "cartao_boleto"` the charge is open: the response brings `pagamento_em`, the gateway page where you pay by card, boleto or Pix (due in three days). With `forma: "cartao"`, the response brings `pagamento_em`, the Asaas hosted page to pay by card (no card data touches our servers). Set `usd` to an amount from `pacotes` or `exatos` in the GET response. The server sets the amount in cents and rejects amounts that the app has not declared.
Returns: { id, credito, forma, pix, pagamento_em, estado_em, cancelamento }'
security: []
responses:
'200':
description: '{ id, credito, forma, pix, pagamento_em, estado_em, cancelamento }'
content:
application/json:
schema:
type: object
properties:
id:
type: string
description: Charge id, to follow up.
credito:
type: string
description: 'For a pack: the `cred_…` token, shown ONCE; valid when the payment arrives.'
forma:
type: string
description: '`pix` (the default), `cartao` or `cartao_boleto`.'
pix:
type: object
description: '`copia_e_cola`, `imagem` (PNG QR, data URI) and `expira_em`; `pix` form only.'
pagamento_em:
type: string
description: 'In the `cartao` and `cartao_boleto` forms: the gateway hosted payment page.'
estado_em:
type: string
description: Where to follow the payment.
cancelamento:
type: string
description: Capability to cancel a pending Pix or boleto charge.
required:
- id
- credito
- forma
- pix
- pagamento_em
- estado_em
- cancelamento
'400':
description: Credit amount outside `pacotes` and `exatos`, amount out of range, invalid CPF/CNPJ, name or e-mail, direct card payload (`cartao_hospedado`), or the gateway refused the payer (`pagador_recusado`, with the reason in `detalhe`).
content:
application/problem+json:
schema:
$ref: '#/components/schemas/ProblemDetails'
'429':
description: Limit of 3 attempts per minute or 10 per day, per account or network.
content:
application/problem+json:
schema:
$ref: '#/components/schemas/ProblemDetails'
'502':
description: The gateway did not create the Pix; try again.
content:
application/problem+json:
schema:
$ref: '#/components/schemas/ProblemDetails'
'503':
description: Automatic Pix unavailable in this app, the gateway is busy (`asaas_ocupado`, wait `retry_after_s`), or too many charges from people not signed in waiting for payment.
content:
application/problem+json:
schema:
$ref: '#/components/schemas/ProblemDetails'
tags:
- Credito
servers:
- url: https://hookpulse.net
/api/credito/asaas/{id}:
get:
operationId: get_api_credito_asaas_by_id
summary: 'State of an automatic Pix charge: `pendente`, `pago`, `vencido`, `estornado` or…'
description: 'Returns: { estado, pago_em }'
security: []
parameters:
- name: id
in: path
required: true
schema:
type: string
description: Charge id (32 hex).
example: 0123456789abcdef0123456789abcdef
responses:
'200':
description: '{ estado, pago_em }'
content:
application/json:
schema:
type: object
properties:
estado:
type: string
description: '`pago` releases the pack token or the balance; a Pix paid after the due date counts.'
pago_em:
type: string
description: When the payment was confirmed, or `null`.
required:
- estado
- pago_em
'404':
description: Unknown charge.
content:
application/problem+json:
schema:
$ref: '#/components/schemas/ProblemDetails'
tags:
- Credito
servers:
- url: https://hookpulse.net
/api/credito/asaas/{id}/cartao:
post:
operationId: post_api_credito_asaas_by_id_cartao
summary: 'Pays a card charge whose card was declined with another card: the same charge…'
description: 'JSON with the `cartao` (the same fields as `POST /api/credito/asaas`) and, without an account, the `navegador_id` that created the charge. Only a card charge waiting for payment, by whoever created it, and up to five attempts per charge.
Returns: { estado, estado_em }'
security: []
parameters:
- name: id
in: path
required: true
schema:
type: string
description: Charge ID (32 hex).
example: 0123456789abcdef0123456789abcdef
responses:
'200':
description: '{ estado, estado_em }'
content:
application/json:
schema:
type: object
properties:
estado:
type: string
description: '`pago`, or `pendente` with `conferir` while the issuer reviews it.'
estado_em:
type: string
description: Where to follow the payment.
required:
- estado
- estado_em
'400':
description: Invalid card data (`cartao_dados`, with the `campo`).
content:
application/problem+json:
schema:
$ref: '#/components/schemas/ProblemDetails'
'404':
description: Unknown charge, someone else's charge, or not a card charge.
content:
application/problem+json:
schema:
$ref: '#/components/schemas/ProblemDetails'
'409':
description: The charge expired or was closed; start the payment again.
content:
application/problem+json:
schema:
$ref: '#/components/schemas/ProblemDetails'
'422':
description: Card declined (`cartao_recusado`).
content:
application/problem+json:
schema:
$ref: '#/components/schemas/ProblemDetails'
'429':
description: Used up the card attempts for this charge or for today.
content:
application/problem+json:
schema:
$ref: '#/components/schemas/ProblemDetails'
tags:
- Credito
servers:
- url: https://hookpulse.net
/api/credito/asaas/saude:
get:
operationId: get_api_credito_asaas_saude
summary: 'Health of this app''s Pix and enabled subscriptions: failures and reasons for…'
description: 'Returns: { ativo, tarefas }'
security: []
responses:
'200':
description: '{ ativo, tarefas }'
content:
application/json:
schema:
type: object
properties:
ativo:
type: object
description: '`false` when Asaas and subscriptions are disabled.'
tarefas:
type: array
items:
type: object
description: Each problem has `id`, `falhando`, and `motivo`. Includes Pix and, when enabled, subscription recovery, queue, and budget. Does not call the provider.
required:
- ativo
- tarefas
tags:
- Credito
servers:
- url: https://hookpulse.net
components:
schemas:
ProblemDetails:
type: object
description: RFC 9457 Problem Details error response (`application/problem+json`). Includes stable `code` and backward-compatible `error` and `message` fields; route-specific extension fields (such as `accepts`, `allow`, `retry_after`, or `request_id`) may also be present.
required:
- type
- title
- status
- detail
- instance
- code
properties:
type:
type: string
format: uri
description: URI identifying the problem type, linking to `/errors#<code>` on this host.
title:
type: string
description: Short human-readable summary of the problem type.
status:
type: integer
description: HTTP status code generated for this occurrence.
detail:
type: string
description: Human-readable explanation specific to this occurrence.
instance:
type: string
description: Request path where the error occurred (without query parameters).
code:
type: string
description: Stable machine-readable snake_case error code documented at `/errors`.
error:
type: string
description: Backward-compatible alias of `code` (or protocol reason on x402 402 responses).
message:
type: string
description: Backward-compatible alias of `detail`.
additionalProperties: true
securitySchemes:
bearerAuth:
type: http
scheme: bearer
description: 'Guest token (`POST /api/guest`) in `X-Guest-Token: hp_…` or `Authorization: Bearer hp_…`. A `sess_…` session also works.'
globalAccount:
type: apiKey
in: cookie
name: __Host-mm-auth
description: Global session in the product's HttpOnly cookie; writes require exact Origin and X-CSRF-Token.
contaChaveApi:
type: http
scheme: bearer
bearerFormat: mmk_…
description: 'Account API key: `Authorization: Bearer mmk_…` or `X-Api-Key: mmk_…`. Created on the account page (API keys), valid only in the product where it was created; it acts as the account (or the organization that owns it).'
carteiraAgente:
type: http
scheme: bearer
bearerFormat: mmw_…
description: 'Wallet credential of an agent without an account (`Authorization: Bearer mmw_…`, 30 days, this product only): POST /api/auth/wallet/agent/start, check that the domain and URI of the message are the host and origin that you called, sign the message with the wallet, POST /api/auth/wallet/agent/token. The owner is `x402:<address>`.'
externalDocs:
url: https://payapi.market/api/hookpulse
description: PayAPI Market
x-refined-from:
- hookpulse-openapi.json
- hookpulse-openapi.json