HookPulse Auth API

The Auth API from HookPulse — 4 operation(s) for auth.

GitHub OpenAPI

Operations 11

POST /api/auth/start Sends the 6-digit code by e-mail to create the account or sign in to it #
POST /api/auth/verify Exchanges the code for a session — and confirming the e-mail grants the trial… #
POST /api/auth/claim Moves the guest's monitors to the signed-in account #
POST /api/auth/logout Invalidates the current session #
GET /api/auth/bootstrap Prepare the browser for global sign-in #
POST /api/auth/pwa/install Prepare a personal app installation #
POST /api/auth/pwa/restore Restore an installed app #
GET /api/auth/pwa/manifest Read the private installation manifest #
POST /api/auth/wallet/agent/start Start the wallet credential of an agent without an account #
POST /api/auth/wallet/agent/token Get the wallet credential (mmw_…) of this product #
POST /api/auth/claim/wallets Move to the account what its wallets did without an account #

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/hookpulse:hookpulse-auth-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. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

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

OpenAPI Specification

hookpulse-auth-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Hookpulse Auth API
  version: '1.0'
  description: 'Operations tagged Auth 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: Auth
paths:
  /api/auth/start:
    post:
      operationId: post_api_auth_start
      summary: Sends the 6-digit code by e-mail to create the account or sign in to it
      description: 'Returns: { ok }'
      security: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                email:
                  type: string
                  description: E-mail that will receive the code.
              required:
              - email
            example:
              email: you@example.com
      responses:
        '200':
          description: '{ ok }'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Ok'
        '400':
          description: E-mail missing or malformed.
        '429':
          description: Too many requests for the same e-mail.
      tags:
      - Auth
    servers:
    - url: https://hookpulse.net
  /api/auth/verify:
    post:
      operationId: post_api_auth_verify
      summary: Exchanges the code for a session — and confirming the e-mail grants the trial…
      description: 'It is the free way out: confirming the e-mail is worth a period without the usage paywall (extra monitor and fast interval). E-mail alerts beyond the first stay paid, because they are SES cost per miss.

        Returns: { ok, token, user{id,email}, trial{days,active,days_left?,ends_at,granted?} }'
      security: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                email:
                  type: string
                  description: The same e-mail as in `/api/auth/start`.
                code:
                  type: string
                  description: The 6 digits that arrived by e-mail.
              required:
              - email
              - code
            example:
              email: you@example.com
              code: '123456'
      responses:
        '200':
          description: '{ ok, token, user{id,email}, trial{days,active,days_left?,ends_at,granted?} }'
          content:
            application/json:
              schema:
                type: object
                properties:
                  ok:
                    type: boolean
                    description: Always `true` when the code matched.
                  token:
                    type: string
                    description: 'Session `sess_…` to use in `Authorization: Bearer`.'
                  user:
                    allOf:
                    - $ref: '#/components/schemas/Conta'
                    description: The person who just signed in.
                  trial:
                    allOf:
                    - $ref: '#/components/schemas/Trial'
                    description: 'The trial, with `granted: true` when this call is the one that granted it.'
                required:
                - ok
                - token
                - user
                - trial
        '400':
          description: Wrong or expired code.
        '429':
          description: Too many attempts.
      tags:
      - Auth
    servers:
    - url: https://hookpulse.net
  /api/auth/claim:
    post:
      operationId: post_api_auth_claim
      summary: Moves the guest's monitors to the signed-in account
      description: 'Returns: { ok, claimed }'
      security:
      - bearerAuth: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                guest_token:
                  type: string
                  description: Guest `hp_…` whose monitors move to the account.
              required:
              - guest_token
            example:
              guest_token: hp_…
      responses:
        '200':
          description: '{ ok, claimed }'
          content:
            application/json:
              schema:
                type: object
                properties:
                  ok:
                    type: boolean
                    description: Always `true`.
                  claimed:
                    type: integer
                    description: How many monitors changed owner.
                required:
                - ok
                - claimed
        '400':
          description: '`guest_token` missing.'
        '401':
          description: No credential, or an invalid one. See this endpoint's auth.
      tags:
      - Auth
    servers:
    - url: https://hookpulse.net
  /api/auth/logout:
    post:
      operationId: post_api_auth_logout
      summary: Invalidates the current session
      description: 'Returns: { ok }'
      security:
      - bearerAuth: []
      responses:
        '200':
          description: '{ ok }'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Ok'
        '401':
          description: No credential, or an invalid one. See this endpoint's auth.
      tags:
      - Auth
    servers:
    - url: https://hookpulse.net
  /api/auth/bootstrap:
    get:
      operationId: get_api_auth_bootstrap
      summary: Prepare the browser for global sign-in
      description: 'Sets a host-only HttpOnly browser cookie. CSRF is bound to the current session. No CORS.

        Returns: { csrf, context }'
      security: []
      responses:
        '200':
          description: '{ csrf, context }'
          content:
            application/json:
              schema:
                type: object
                properties:
                  csrf:
                    type: string
                    description: X-CSRF-Token
                  context:
                    type: string
                    description: Opaque view context, also in X-MM-Context; not a credential.
                required:
                - csrf
                - context
        '400':
          description: invalid_request
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ProblemDetails'
        '403':
          description: invalid_origin / invalid_csrf
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ProblemDetails'
        '503':
          description: 'auth_unavailable: the previous session is preserved'
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ProblemDetails'
      tags:
      - Auth
    servers:
    - url: https://hookpulse.net
  /api/auth/pwa/install:
    post:
      operationId: post_api_auth_pwa_install
      summary: Prepare a personal app installation
      description: 'Requires recent sign-in, exact Origin and browser CSRF. Returns a private signed PIN and a no-store manifest address. At most 10 active installations per account and product.

        Returns: {pin,path,manifest}'
      security:
      - globalAccount: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                path:
                  type: string
                  description: Same-origin task path, up to 1600 characters.
                state:
                  type: object
                  description: Up to 30 allowlisted preference keys and string values.
                manifest:
                  type: object
                  description: Public app name and same-origin icons.
              required:
              - path
              - state
              - manifest
      responses:
        '200':
          description: '{pin,path,manifest}'
        '400':
          description: invalid_installation_path / invalid_installation_state / invalid_installation_manifest
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ProblemDetails'
        '401':
          description: invalid_session / reauth_required
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ProblemDetails'
        '409':
          description: installation_not_created
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ProblemDetails'
        '503':
          description: auth_unavailable
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ProblemDetails'
      tags:
      - Auth
    servers:
    - url: https://hookpulse.net
  /api/auth/pwa/restore:
    post:
      operationId: post_api_auth_pwa_restore
      summary: Restore an installed app
      description: 'Requires the signed PIN, exact Origin and browser CSRF. Verifies host, product, account status, security version and installation revocation. Keeps the original authentication time. Sensitive actions still require recent sign-in.

        Returns: {ok:true,state,path,manifest}; HttpOnly session cookies'
      security: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                pin:
                  type: string
                  description: Private signed installation credential.
              required:
              - pin
      responses:
        '200':
          description: '{ok:true,state,path,manifest}; HttpOnly session cookies'
        '401':
          description: invalid_installation
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ProblemDetails'
        '403':
          description: invalid_origin / invalid_csrf
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ProblemDetails'
        '503':
          description: auth_unavailable
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ProblemDetails'
      tags:
      - Auth
    servers:
    - url: https://hookpulse.net
  /api/auth/pwa/manifest:
    get:
      operationId: get_api_auth_pwa_manifest
      summary: Read the private installation manifest
      description: 'Requires the installation cookie and its manifest key. Private, no-store. The start URL keeps the PIN in the fragment.

        Returns: application/manifest+json'
      security: []
      parameters:
      - name: key
        in: query
        required: true
        schema:
          type: string
        description: Key in the manifest address that the install or restore call returned.
      responses:
        '200':
          description: application/manifest+json
        '401':
          description: invalid_installation
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ProblemDetails'
      tags:
      - Auth
    servers:
    - url: https://hookpulse.net
  /api/auth/wallet/agent/start:
    post:
      operationId: post_api_auth_wallet_agent_start
      summary: Start the wallet credential of an agent without an account
      description: 'No account: the wallet proves it is hers by signing the message (EIP-4361). Signing does not pay or transfer anything. The message names this product and lasts 5 minutes. Before you sign, compare the message with the URL that you called. The domain on the first line must be the host of that URL. URI must be its origin. If one is different, do not sign. Sign it with personal_sign and send it to /api/auth/wallet/agent/token.

        Returns: { message, issuedAt, expiresIn }'
      security: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                address:
                  type: string
                  description: 0x…, the wallet (an EOA or a contract on Base)
              required:
              - address
            example:
              address: '0x2c7536E3605D9C16a7a3D7b1898e529396a65c23'
      responses:
        '200':
          description: '{ message, issuedAt, expiresIn }'
          content:
            application/json:
              schema:
                type: object
                properties:
                  message:
                    type: string
                    description: EIP-4361
                  issuedAt:
                    type: number
                    description: segundos / seconds
                  expiresIn:
                    type: number
                    description: '300'
                required:
                - message
                - issuedAt
                - expiresIn
        '400':
          description: invalid_wallet_address
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ProblemDetails'
        '503':
          description: auth_unavailable
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ProblemDetails'
      tags:
      - Auth
    servers:
    - url: https://hookpulse.net
  /api/auth/wallet/agent/token:
    post:
      operationId: post_api_auth_wallet_agent_token
      summary: Get the wallet credential (mmw_…) of this product
      description: 'The wallet''s signature of the start message, checked here (own key) or on Base (contract, EIP-1271/6492). The credential lasts 30 days: send `Authorization: Bearer mmw_…` to the routes that accept the wallet as owner (owner `x402:`). Once the wallet is linked to an account, what it did here moves to the account when the person signs in.

        Returns: { token, owner, expiresAt }'
      security: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                address:
                  type: string
                  description: 0x…, the same wallet as in start
                issuedAt:
                  type: number
                  description: the issuedAt of start
                signature:
                  type: string
                  description: personal_sign (0x…)
              required:
              - address
              - issuedAt
              - signature
            example:
              address: '0x2c7536E3605D9C16a7a3D7b1898e529396a65c23'
              issuedAt: 1791400000
              signature: 0x…
      responses:
        '200':
          description: '{ token, owner, expiresAt }'
          content:
            application/json:
              schema:
                type: object
                properties:
                  token:
                    type: string
                    description: mmw_…
                  owner:
                    type: string
                    description: x402:0x…
                  expiresAt:
                    type: number
                    description: segundos / seconds
                required:
                - token
                - owner
                - expiresAt
        '400':
          description: invalid_body
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ProblemDetails'
        '401':
          description: invalid_wallet
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ProblemDetails'
        '429':
          description: wallet_limited
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ProblemDetails'
        '503':
          description: wallet_unavailable / auth_unavailable
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ProblemDetails'
      tags:
      - Auth
    servers:
    - url: https://hookpulse.net
  /api/auth/claim/wallets:
    post:
      operationId: post_api_auth_claim_wallets
      summary: Move to the account what its wallets did without an account
      description: 'The sign-in window calls it after every sign-in. For each wallet linked to the account: the rights bought here by x402 (owner x402:) and what this product keeps for that owner. Repeating moves nothing.

        Returns: { carteiras, direitos }'
      security:
      - globalAccount: []
      responses:
        '200':
          description: '{ carteiras, direitos }'
          content:
            application/json:
              schema:
                type: object
                properties:
                  carteiras:
                    type: number
                    description: wallets
                  direitos:
                    type: number
                    description: rights moved
                required:
                - carteiras
                - direitos
        '401':
          description: invalid_session
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ProblemDetails'
        '503':
          description: auth_unavailable
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ProblemDetails'
      tags:
      - Auth
    servers:
    - url: https://hookpulse.net
components:
  schemas:
    Ok:
      type: object
      properties:
        ok:
          type: boolean
          description: Always `true` — failure comes as a 4xx/5xx status, not as `ok:false`.
      required:
      - ok
      description: Write confirmation with no body of its own to return.
    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.
    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
  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