HookPulse Newsletter API

The Newsletter API from HookPulse — 2 operation(s) for newsletter.

GitHub OpenAPI

Operations 3

GET /api/newsletter Read email advertising consent #
PUT /api/newsletter Allow or stop advertising in requested notices #
POST /api/newsletter/cancelar Withdraw consent using the email link #

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-newsletter-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-newsletter-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: HookPulse Newsletter 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: Newsletter
paths:
  /api/newsletter:
    get:
      operationId: get_api_newsletter
      summary: Read email advertising consent
      description: 'Uses the session account. Cannot select another account. Response is not cached.

        Returns: { ativo, areas, idioma, verificado }'
      security:
      - bearerAuth: []
      responses:
        '200':
          description: '{ ativo, areas, idioma, verificado }'
          content:
            application/json:
              schema:
                type: object
                properties:
                  ativo:
                    type: boolean
                    description: Separate email advertising consent.
                  areas:
                    type: array
                    items:
                      type: string
                    description: '["publicidade"].'
                  idioma:
                    type: string
                    description: pt | en.
                  verificado:
                    type: boolean
                    description: The account has a verified email.
                required:
                - ativo
                - areas
                - idioma
                - verificado
        '401':
          description: invalid_session
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ProblemDetails'
        '503':
          description: newsletter_indisponivel
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ProblemDetails'
      tags:
      - Newsletter
    put:
      operationId: put_api_newsletter
      summary: Allow or stop advertising in requested notices
      description: 'Requires a session, Origin and X-CSRF-Token. Enabling requires explicit consent and a verified email. Withdrawal is immediate and keeps essential notices. At most one ad per account in 24 hours.

        Returns: { ok, ativo, areas, idioma }'
      security:
      - bearerAuth: []
      parameters:
      - name: X-CSRF-Token
        in: header
        required: true
        schema:
          type: string
        description: CSRF value supplied by the SDK.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                ativo:
                  type: boolean
                  description: true allows; false withdraws.
                areas:
                  type: array
                  items:
                    type: string
                  description: '["publicidade"].'
                idioma:
                  type: string
                  description: 'Notice language: pt or en.'
                consentimento:
                  type: boolean
                  description: true when allowing.
              required:
              - ativo
              - areas
              - idioma
            example:
              ativo: false
              areas:
              - publicidade
              idioma: en
      responses:
        '200':
          description: '{ ok, ativo, areas, idioma }'
          content:
            application/json:
              schema:
                type: object
                properties:
                  ok:
                    type: boolean
                    description: true.
                  ativo:
                    type: boolean
                    description: Separate email advertising consent.
                  areas:
                    type: array
                    items:
                      type: string
                    description: '["publicidade"].'
                  idioma:
                    type: string
                    description: pt | en.
                required:
                - ok
                - ativo
                - areas
                - idioma
        '400':
          description: assinatura_invalida
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ProblemDetails'
        '401':
          description: invalid_session
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ProblemDetails'
        '403':
          description: invalid_csrf | email_verificado_exigido
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ProblemDetails'
        '429':
          description: aguarde_para_alterar | limite_diario
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ProblemDetails'
        '503':
          description: newsletter_indisponivel
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ProblemDetails'
      tags:
      - Newsletter
  /api/newsletter/cancelar:
    post:
      operationId: post_api_newsletter_cancelar
      summary: Withdraw consent using the email link
      description: 'The secret link token replaces the session. JSON requires the product Origin. Also accepts RFC 8058: List-Unsubscribe=One-Click form body and token in the query, without login. Essential notices continue.

        Returns: { ok }'
      security: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                token:
                  type: string
                  description: 43-character link token, without the prefix.
              required:
              - token
      responses:
        '200':
          description: '{ ok }'
          content:
            application/json:
              schema:
                type: object
                properties:
                  ok:
                    type: boolean
                    description: true.
                required:
                - ok
        '400':
          description: cancelamento_invalido | confirmacao_exigida
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ProblemDetails'
        '403':
          description: invalid_origin
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ProblemDetails'
        '404':
          description: cancelamento_invalido_ou_vencido
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ProblemDetails'
      tags:
      - Newsletter
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