Every API here is available over the APIs.io API and to AI agents over MCP.
openapi: 3.2.0
info:
title: Hookpulse Me API
version: '1.0'
description: 'Operations tagged Me 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: Me
paths:
/api/me:
get:
operationId: get_api_me
summary: The session's account, its monitors and the state of the trial
description: 'Returns: { user{id,email}, endpoints[{id,name,interval_sec,alert_to,alert_url,last_event_at,last_status,last_latency_ms,miss_count,alerted_at,active,healthy,overdue,waiting_first_ping,created_at,ingest_url,token?,status_url?,events_url?,curl_example?,templates?}], trial{days,active,days_left?,ends_at,granted?} }'
security:
- bearerAuth: []
responses:
'200':
description: '{ user{id,email}, endpoints[{id,name,interval_sec,alert_to,alert_url,last_event_at,last_status,last_latency_ms,miss_count,alerted_at,active,healthy,overdue,waiting_first_ping,created_at,ingest_url,token?,status_url?,events_url?,curl_example?,templates?}], trial{days,active,days_left?,ends_at,granted?} }'
content:
application/json:
schema:
type: object
properties:
user:
allOf:
- $ref: '#/components/schemas/Conta'
description: The person who owns the session.
endpoints:
type: array
items:
$ref: '#/components/schemas/Monitor'
description: The account's monitors.
trial:
allOf:
- $ref: '#/components/schemas/Trial'
description: 'The trial: how many days, whether active and when it ends.'
required:
- user
- endpoints
- trial
'401':
description: No credential, or an invalid one. See this endpoint's auth.
tags:
- Me
servers:
- url: https://hookpulse.net
components:
schemas:
Conta:
type: object
properties:
id:
type: string
description: ID of the account.
email:
type: string
description: E-mail confirmed by code.
required:
- id
- email
description: The person behind the session.
Templates:
type: object
properties:
ingest_curl:
type: string
description: A `curl` that works as proof of life.
ingest_cron:
type: string
description: The equivalent crontab line.
ingest_n8n:
type: string
description: How to call the ingest from n8n.
miss_json:
type: string
description: The exact JSON we POST to `alert_url` when the silence becomes a miss.
miss_url_hint:
type: string
description: What works as `alert_url` — public HTTPS only.
required:
- ingest_curl
- ingest_cron
- ingest_n8n
- miss_json
- miss_url_hint
description: How to ping and what we send when it fails. It is what saves guessing the format.
Monitor:
type: object
properties:
id:
type: string
description: Monitor ID; it is the `:id` of the ingest URL.
name:
type: string
description: Name you gave it, to recognise it in the alert.
interval_sec:
type: integer
description: Tolerated silence, in seconds. Past that, it is a miss.
alert_to:
type: string
description: E-mail alerted on a miss.
nullable: true
alert_url:
type: string
description: HTTPS URL that receives a POST on a miss (Slack, Discord, n8n).
nullable: true
last_event_at:
type: string
description: Last ping received (UTC); `null` while it never pinged.
nullable: true
last_status:
type: integer
description: HTTP status the last ping sent, when it did.
nullable: true
last_latency_ms:
type: integer
description: Latency reported in the last ping, in ms.
nullable: true
miss_count:
type: integer
description: How many times this monitor has gone silent.
alerted_at:
type: string
description: When the last alert went out — it is what holds the 1 alert/24h cap.
nullable: true
active:
type: boolean
description: Whether the monitor is on.
healthy:
type: boolean
description: '`true` when it has pinged at least once and is not overdue.'
overdue:
type: boolean
description: '`true` when the silence passed `interval_sec`.'
waiting_first_ping:
type: boolean
description: '`true` while it never pinged. Neither healthy nor overdue: nobody has wired it yet.'
created_at:
type: string
description: When the monitor was created (UTC).
ingest_url:
type: string
description: The URL your cron/webhook calls to prove life.
token:
type: string
description: Read token of this monitor. Only comes on creation and to the owner.
status_url:
type: string
description: Status of this monitor with the token already in the query.
events_url:
type: string
description: Latest pings with the token already in the query.
curl_example:
type: string
description: The ingest `curl`, ready to paste in the cron.
templates:
allOf:
- $ref: '#/components/schemas/Templates'
description: Ingest snippets and the alert body, with this monitor already in them.
required:
- id
- name
- interval_sec
- alert_to
- alert_url
- last_event_at
- last_status
- last_latency_ms
- miss_count
- alerted_at
- active
- healthy
- overdue
- waiting_first_ping
- created_at
- ingest_url
description: 'A dead-man switch: the thing you make ping. If the ping stops for longer than `interval_sec`, it becomes `overdue` and the alert goes out.'
Trial:
type: object
properties:
days:
type: integer
description: Trial length in days.
active:
type: boolean
description: Whether it is in force now.
days_left:
type: integer
description: How many days remain.
ends_at:
type: string
description: When it ends (UTC).
nullable: true
granted:
type: boolean
description: '`true` when THIS call granted the trial.'
required:
- days
- active
- ends_at
description: The period without the usage paywall that confirming the e-mail grants. It is the alternative to paying.
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
Templates_2:
type: object
properties:
ingest_curl:
type: string
description: A `curl` that works as proof of life.
ingest_cron:
type: string
description: The equivalent crontab line.
ingest_n8n:
type: string
description: How to call the ingest from n8n.
miss_json:
type: string
description: 'The exact JSON we POST to `alert_url` when a monitor goes bad. `reason` says which way: `silence` (it stopped pinging) or `fail` (it reported an explicit failure).'
recovery_json:
type: string
description: The JSON we POST when the monitor comes back, with `down_since`, `recovered_at` and `downtime_sec`. It has its own `type` (`hookpulse.recovery`) so an integration filtering by type never shows good news as an incident.
miss_url_hint:
type: string
description: What works as `alert_url` — public HTTPS only.
github_actions:
type: string
description: 'A scheduled GitHub Actions workflow with the HookPulse step at the end: no secret, the job''s OIDC token identifies the repository.'
required:
- ingest_curl
- ingest_cron
- ingest_n8n
- miss_json
- recovery_json
- miss_url_hint
- github_actions
description: How to ping, what we send when it fails and what we send when it comes back. It is what saves guessing the format.
Monitor_2:
type: object
properties:
id:
type: string
description: Monitor ID; it is the `:id` of the ingest URL.
kind:
type: string
description: '`routine` (it pings us) or `site` (we call it).'
check:
type: object
description: 'Only on a site: what HookPulse calls — `url`, `method` (`GET` or `HEAD`), `expect_status` (`200-399`, a range `a-b` or one code), `keyword` (text that must be in the first 64 KB, or `null`) and `timeout_ms`.'
site:
type: object
description: 'Only on a site: `state` (`waiting`, `up` or `down`), `changed_at` (when it last changed), `last_check_at`, `last_ok`, `last_status` (HTTP status, `null` when nothing answered), `last_reason` (why it failed: `status`, `keyword`, `timeout`, `dns`, `connection`, `tls`, `private_address` or `network`; `null` when it answered), `last_ms` and `certificate_until` (HTTPS certificate expiry).'
name:
type: string
description: Name you gave it, to recognise it in the alert.
interval_sec:
type: integer
description: Tolerated silence, in seconds. Past that, it is a miss. With `cron` set it is read-only and mirrors the schedule's window.
cron:
type: string
description: Five-field cron expression, when the monitor runs on a schedule instead of an interval.
nullable: true
tz:
type: string
description: IANA time zone the `cron` is read in.
nullable: true
grace_sec:
type: integer
description: Tolerance after the scheduled time before it counts as late.
nullable: true
next_expected_at:
type: string
description: When the next scheduled run is due (UTC). Computed forward on creation, on patch and on every ping; late is this plus `grace_sec`.
nullable: true
alert_to:
type: string
description: E-mail alerted on a miss.
nullable: true
alert_url:
type: string
description: HTTPS URL that receives a POST on a miss (Slack, Discord, n8n).
nullable: true
last_event_at:
type: string
description: For routines, the last successful check-in (UTC). Start and failure signals do not move this clock.
nullable: true
last_status:
type: integer
description: HTTP status recorded for the last successful check-in, not the job outcome.
nullable: true
last_latency_ms:
type: integer
description: Latency reported in the last ping, in ms.
nullable: true
last_start_at:
type: string
description: When the current run said it started (`/in/:id/start`), while it has not finished.
nullable: true
last_run_id:
type: string
description: The `rid` of the run that is currently open, when the `start` carried one.
nullable: true
last_duration_ms:
type: integer
description: How long the last run took, measured between its `start` and its outcome.
nullable: true
duration:
type: object
description: 'Duration statistics over the last runs we measured: `samples`, `p50_ms` and `max_ms`. `p50_ms` is the low median, so it is always a duration that actually happened. Only on `GET /api/endpoints/:id` — the list does not pay for it. All null when nothing has been measured.'
max_duration_sec:
type: integer
description: 'Ceiling for an open run: past it, the next 5-minute check alerts with `reason: "too_long"`. `null` when it is off.'
nullable: true
alert_pending:
type: string
description: 'An outcome waiting for the next 5-minute check to alert: `fail`, `recovery`, or `null` when there is nothing pending.'
nullable: true
miss_count:
type: integer
description: For routines, overdue checks since the last successful check-in, not distinct outages.
alerts_on_hold:
type: boolean
description: '`true` when the monitor is beyond what its owner covers. It keeps checking, and its alerts wait for a plan (a guest signs in first). `coverage` on `GET /api/endpoints` tells why. On the list, `GET /api/endpoints/:id` and creation.'
alerted_at:
type: string
description: Current incident processing time, used for the repeat cap and cleared after recovery processing. It can be set without a delivery channel; it does not prove notification receipt.
nullable: true
alert_repeat_sec:
type: integer
description: 'EFFECTIVE gap before the same incident alerts again: what you asked for, or your `interval_sec` when that is longer, or the 86400 default.'
tags:
type: array
items:
type: string
description: The monitor's tags, normalised and sorted. Empty when it has none.
paused_until:
type: string
description: End of the maintenance window (UTC). While it is in the future the monitor is not checked and never alerts.
nullable: true
state:
type: string
description: 'The state in one word: `ok`, `late`, `down` (an unresolved routine incident or a site that does not answer), `waiting` (no successful check-in and no incident, or a site not checked yet), `paused` or `inactive`. Read this instead of re-deriving precedence from the booleans.'
active:
type: boolean
description: Whether the monitor is on.
healthy:
type: boolean
description: For routines, true when a successful check-in exists, the monitor is not overdue and no incident remains open. For sites, true when state is ok. Read state for pause and inactivity.
overdue:
type: boolean
description: '`true` when the silence passed `interval_sec`.'
waiting_first_ping:
type: boolean
description: '`true` before the first successful check-in. A start or failure signal does not clear it; read state to distinguish waiting from a reported failure.'
created_at:
type: string
description: When the monitor was created (UTC).
ingest_url:
type: string
description: 'The URL your cron/webhook calls to prove life. Not on a site: a site does not ping.'
token:
type: string
description: Read token of this monitor. Only comes on creation and to the owner.
guest_token:
type: string
description: Private owner credential returned on guest monitor creation. Keep it for later reads, changes and deletion. May be null; an authenticated account uses its existing credential.
nullable: true
status_url:
type: string
description: Status of this monitor with the token already in the query.
events_url:
type: string
description: Latest pings with the token already in the query.
curl_example:
type: string
description: The ingest `curl`, ready to paste in the cron.
templates:
allOf:
- $ref: '#/components/schemas/Templates_2'
description: Ingest snippets and the alert body, with this monitor already in them.
required:
- id
- kind
- name
- interval_sec
- cron
- tz
- grace_sec
- next_expected_at
- alert_to
- alert_url
- last_event_at
- last_status
- last_latency_ms
- last_start_at
- last_run_id
- last_duration_ms
- duration
- max_duration_sec
- alert_pending
- miss_count
- alerted_at
- alert_repeat_sec
- tags
- paused_until
- state
- active
- healthy
- overdue
- waiting_first_ping
- created_at
description: 'A monitor. A routine (`kind: "routine"`) is a dead-man switch: the thing you make ping. If the ping stops for longer than `interval_sec` — or, with a schedule, past `next_expected_at` plus `grace_sec` — it becomes `overdue` and the alert goes out. A site (`kind: "site"`) is the other way round: HookPulse calls its `check.url` every `interval_sec` and alerts when it goes down (`state: "down"`) and when it is back.'
Trial_2:
type: object
properties:
days:
type: integer
description: Trial length in days.
active:
type: boolean
description: Whether it is in force now.
days_left:
type: integer
description: How many days remain.
ends_at:
type: string
description: When it ends (UTC).
nullable: true
required:
- days
- active
- ends_at
description: The period without the usage paywall that each account gets once, counted from its first use of HookPulse. It is the alternative to paying.
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