Every API here is available over the APIs.io API and to AI agents over MCP.
openapi: 3.2.0
info:
title: HookPulse Plans API
version: 9f4f73b5
description: Monitor scheduled tasks and receive alerts for missing check-ins. Read GET /api/ for the API index.
servers:
- url: https://hookpulse.net
tags:
- name: Plans
paths:
/api/plans:
get:
operationId: list_plans
summary: The plans for sale and the authenticated account or wallet's active plan
description: 'Each purchase lasts 30 days, with no automatic renewal. Without an account or wallet credential, `account` is `null`.
Returns: { plans, account }'
security: []
parameters:
- name: resumo
in: query
required: false
schema:
type: string
description: Use `1` to read the active plan without cancellation, retention and refund details.
example: '1'
responses:
'200':
description: '{ plans, account }'
content:
application/json:
schema:
type: object
properties:
plans:
type: array
items:
type: object
description: 'Each plan: `id`, `name`, `extra_monitors`, `days`, `price_usd`, `automatic_renewal`, `charged_now` and the `buy` URL.'
account:
type: object
description: '`active` (the plan that ends last, with `valid_until`) and `cancel` (what cancelling removes when the plan ends, the free-days offer, the refund, `keeps_until`, until when what you paid for stays active, `ends_now`, true when cancelling ends part of the plan now, and `renews`, true when a monthly subscription renews it). Without a refund, `ends_now` or `renews`, cancelling changes nothing.'
nullable: true
required:
- plans
- account
'401':
description: session_ended
content:
application/problem+json:
schema:
$ref: '#/components/schemas/ProblemDetails'
'503':
description: auth_unavailable
content:
application/problem+json:
schema:
$ref: '#/components/schemas/ProblemDetails'
tags:
- Plans
/api/plans/{plan}:
post:
operationId: buy_plan
summary: Buys a plan for the account or paying wallet
description: 'Each purchase lasts 30 days, with no automatic renewal. Without payment, the answer is 402 with the price. Pay with prepaid credit (`X-Credito`) or x402 (`PAYMENT-SIGNATURE` v2 or `X-PAYMENT` v1). Without an account, the verified paying wallet owns the purchase. Use wallet agent authentication to read its plan, or claim it after account sign-in. The `compra` mark prevents repeat credit debits. An x402 nonce can settle only once; keep the receipt after a delivery error.
Returns: { plan, extra_monitors_added, valid_until, automatic_renewal, account, _links }'
security: []
parameters:
- name: plan
in: path
required: true
schema:
type: string
description: '`starter` (40 more monitors, up to 50), `team` (90 more monitors, up to 100), `business` (490 more monitors, up to 500)'
example: starter
- name: compra
in: query
required: false
schema:
type: string
description: Mark of one credit purchase, 8 to 64 letters, digits, `-` or `_`. Repeating it with the same credit token does not debit again.
example: purchase-2026-10-12
responses:
'200':
description: '{ plan, extra_monitors_added, valid_until, automatic_renewal, account, _links }'
content:
application/json:
schema:
type: object
properties:
plan:
type: string
description: The plan bought.
extra_monitors_added:
type: number
description: Units granted by this purchase.
valid_until:
type: string
description: When this purchase ends (ISO 8601).
automatic_renewal:
type: boolean
description: '`false` for Pix, USDC and credit.'
account:
type: object
description: The active plan for the owner; `null` if its summary is unavailable.
nullable: true
_links:
type: object
description: Plans URL and, for a wallet purchase, wallet authentication and claim URLs.
required:
- plan
- extra_monitors_added
- valid_until
- automatic_renewal
- account
- _links
'401':
description: An explicit account, wallet or credit credential was refused.
content:
application/problem+json:
schema:
$ref: '#/components/schemas/ProblemDetails'
'402':
description: 'Payment required: the price and the accepted payments.'
content:
application/problem+json:
schema:
$ref: '#/components/schemas/ProblemDetails'
'403':
description: Writes with the account cookie need the same Origin and `X-CSRF-Token`.
content:
application/problem+json:
schema:
$ref: '#/components/schemas/ProblemDetails'
'404':
description: Unknown plan (`unknown_plan`).
content:
application/problem+json:
schema:
$ref: '#/components/schemas/ProblemDetails'
'409':
description: Plans are not on sale now (`sales_closed`) or billing is off (`billing_off`).
content:
application/problem+json:
schema:
$ref: '#/components/schemas/ProblemDetails'
tags:
- Plans
/api/plans/cancel:
post:
operationId: cancel_plan
summary: 'Cancels the active plan: nothing else is charged, and what you paid for stays…'
description: 'Send `{ "accept_data_removal": true }`. The monthly card subscription stops. A purchase made less than 7 days ago and a paid period that has not started yet, such as a renewal, go back the same way they were paid (card or Pix) and end now. The rest of the paid period stays active until `keeps_until`; then what the plan added ends (`account.cancel.losses` in `GET /api/plans` says what). A purchase paid with USDC or with credit from another purchase stays active until its end; ask for its refund by e-mail, as the cancellation page says.
Returns: { canceled, refund, keeps_until, account }'
security:
- bearerAuth: []
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
accept_data_removal:
type: boolean
description: 'Must be `true`: you accept losing what the plan added.'
required:
- accept_data_removal
example:
accept_data_removal: true
responses:
'200':
description: '{ canceled, refund, keeps_until, account }'
content:
application/json:
schema:
type: object
properties:
canceled:
type: boolean
description: '`true` when a valid plan was canceled: it ended now, or it stays active until `keeps_until`.'
refund:
type: object
description: '`method` (`original`), `amount_cents` and its `currency` (`brl` when Asaas refunds, `usd` when Stripe refunds; `null` when both do).'
nullable: true
keeps_until:
type: string
description: When the paid period that stays active ends (ISO 8601); `null` when everything ended now.
nullable: true
account:
type: object
description: The account state after cancelling, as in `GET /api/plans`.
required:
- canceled
- refund
- keeps_until
- account
'400':
description: 'Missing `accept_data_removal: true` (`confirmation_required`).'
content:
application/problem+json:
schema:
$ref: '#/components/schemas/ProblemDetails'
'401':
description: Sign in first (`account_required`), or the session ended (`session_ended`).
content:
application/problem+json:
schema:
$ref: '#/components/schemas/ProblemDetails'
'403':
description: Writes with the account cookie need the same Origin and `X-CSRF-Token`.
content:
application/problem+json:
schema:
$ref: '#/components/schemas/ProblemDetails'
tags:
- Plans
/api/plans/{plan}/grace:
post:
operationId: post_api_plans_by_plan_grace
summary: 'Takes the free-days offer from the cancellation: the offered plan, free for 7…'
description: '`account.cancel.offer` in `GET /api/plans` says which plan and for how long. Nothing renews by itself, and what you paid for stays active until its end; the free days start after it.
Returns: { plan, valid_until, price_usd, account }'
security:
- bearerAuth: []
parameters:
- name: plan
in: path
required: true
schema:
type: string
description: '`starter` (40 more monitors, up to 50), `team` (90 more monitors, up to 100), `business` (490 more monitors, up to 500)'
example: starter
responses:
'200':
description: '{ plan, valid_until, price_usd, account }'
content:
application/json:
schema:
type: object
properties:
plan:
type: string
description: The plan granted.
valid_until:
type: string
description: When the free days end.
price_usd:
type: number
description: Always `0`.
account:
type: object
description: The account state after the offer, as in `GET /api/plans`.
required:
- plan
- valid_until
- price_usd
- account
'401':
description: Sign in first (`account_required`), or the session ended (`session_ended`).
content:
application/problem+json:
schema:
$ref: '#/components/schemas/ProblemDetails'
'403':
description: Writes with the account cookie need the same Origin and `X-CSRF-Token`.
content:
application/problem+json:
schema:
$ref: '#/components/schemas/ProblemDetails'
'404':
description: Unknown plan (`unknown_plan`).
content:
application/problem+json:
schema:
$ref: '#/components/schemas/ProblemDetails'
'409':
description: No offer for this account or plan (`offer_unavailable`).
content:
application/problem+json:
schema:
$ref: '#/components/schemas/ProblemDetails'
tags:
- Plans
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 returned by monitor creation or `POST /api/guest`, in `X-Guest-Token: hp_…` or `Authorization: Bearer hp_…`. A signed-in account (cookie) also works and takes precedence.'
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-service-info:
categories:
- monitoring
- cron
- devops
docs:
homepage: https://hookpulse.net/
apiReference: https://hookpulse.net/developers
llms: https://hookpulse.net/llms.txt
errors: https://hookpulse.net/errors
status: https://hookpulse.net/status
pricing: https://hookpulse.net/api/pricing
billing: https://hookpulse.net/api/billing