Pingwa Hooks API

The Hooks API from Pingwa — 5 operation(s) for hooks.

GitHub OpenAPI

Operations 7

POST /v1/hooks Create Hook #
GET /v1/hooks List Hooks #
GET /v1/hooks/presets List Presets #
PATCH /v1/hooks/{hook_id} Update Hook #
DELETE /v1/hooks/{hook_id} Delete Hook #
POST /v1/hooks/{hook_id}/test Send Test #
GET /v1/hooks/{hook_id}/deliveries List Deliveries #

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/pingwa-dev:pingwa-dev-hooks-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

pingwa-dev-hooks-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: pingwa Hooks API
  version: 0.1.0
tags:
- name: Hooks
paths:
  /v1/hooks:
    post:
      summary: Create Hook
      description: Mint a hook URL. The URL (it holds the token) is returned here only.
      operationId: create_hook_v1_hooks_post
      parameters:
      - name: authorization
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Authorization
      requestBody:
        content:
          application/json:
            schema:
              anyOf:
              - $ref: '#/components/schemas/HookIn'
              - type: 'null'
              title: Body
      responses:
        '201':
          description: Successful Response
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
                title: Response Create Hook V1 Hooks Post
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      tags:
      - Hooks
    get:
      summary: List Hooks
      description: 'This number''s active hooks. The URL is never returned again after create, the

        signing secret never (has_signing_secret says whether one is set).

        over_plan_limit: the hook is past this number''s plan limit (after a downgrade) and its

        sends are refused with plan_limit until older ones are revoked or the plan goes up.'
      operationId: list_hooks_v1_hooks_get
      parameters:
      - name: authorization
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Authorization
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
                title: Response List Hooks V1 Hooks Get
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      tags:
      - Hooks
  /v1/hooks/presets:
    get:
      summary: List Presets
      description: 'The presets a hook can be created from (POST /v1/hooks {"preset": id}): the template

        it copies, the setup text and the same as three short steps, and whether the sender signs its requests (then

        signing_secret can be set, and signature_header is the header checked).'
      operationId: list_presets_v1_hooks_presets_get
      parameters:
      - name: authorization
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Authorization
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
                title: Response List Presets V1 Hooks Presets Get
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      tags:
      - Hooks
  /v1/hooks/{hook_id}:
    patch:
      summary: Update Hook
      description: 'Change a hook''s name, template, allow_get, signing secret or send_to; only the

        fields sent change (template / signing_secret null clears them; send_to is validated

        and resolved as at create, null = "me"). The URL stays the same.'
      operationId: update_hook_v1_hooks__hook_id__patch
      parameters:
      - name: hook_id
        in: path
        required: true
        schema:
          type: string
          title: Hook Id
      - name: authorization
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Authorization
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/HookPatch'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
                title: Response Update Hook V1 Hooks  Hook Id  Patch
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      tags:
      - Hooks
    delete:
      summary: Delete Hook
      description: 'Revoke a hook: its URL answers 404 from now on. Owner-scoped (another number''s

        hook id is a 404 too).'
      operationId: delete_hook_v1_hooks__hook_id__delete
      parameters:
      - name: hook_id
        in: path
        required: true
        schema:
          type: string
          title: Hook Id
      - name: authorization
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Authorization
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
                title: Response Delete Hook V1 Hooks  Hook Id  Delete
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      tags:
      - Hooks
  /v1/hooks/{hook_id}/test:
    post:
      summary: Send Test
      description: 'Send the hook''s preset sample ({"text": "pingwa hook test"} without a preset)

        through its template, like a request to its URL: a real send through

        api.send_notification (quota, daily cap and every guard apply; messages.source "hook").

        Answers like the URL: {"accepted": true, "id"} or {"accepted": false, "error"}.'
      operationId: send_test_v1_hooks__hook_id__test_post
      parameters:
      - name: hook_id
        in: path
        required: true
        schema:
          type: string
          title: Hook Id
      - name: authorization
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Authorization
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      tags:
      - Hooks
  /v1/hooks/{hook_id}/deliveries:
    get:
      summary: List Deliveries
      description: 'The hook''s recent deliveries, newest first (at most hook_deliveries_keep, none

        older than hook_deliveries_ttl_s after the last): {"at", "accepted", "error", "id"}

        per answered request to its URL or Send test. Empty when Redis does not answer.'
      operationId: list_deliveries_v1_hooks__hook_id__deliveries_get
      parameters:
      - name: hook_id
        in: path
        required: true
        schema:
          type: string
          title: Hook Id
      - name: authorization
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Authorization
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
                title: Response List Deliveries V1 Hooks  Hook Id  Deliveries Get
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      tags:
      - Hooks
components:
  schemas:
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    HookIn:
      properties:
        name:
          type: string
          title: Name
          default: hook
        allow_get:
          type: boolean
          title: Allow Get
          default: false
        preset:
          anyOf:
          - type: string
          - type: 'null'
          title: Preset
        template:
          anyOf:
          - type: string
          - type: 'null'
          title: Template
        signing_secret:
          anyOf:
          - type: string
          - type: 'null'
          title: Signing Secret
        send_to:
          anyOf:
          - type: string
          - items:
              type: string
            type: array
          - type: 'null'
          title: Send To
        actions:
          title: Actions
        topic_template:
          anyOf:
          - type: string
          - type: 'null'
          title: Topic Template
        ref_template:
          anyOf:
          - type: string
          - type: 'null'
          title: Ref Template
      type: object
      title: HookIn
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
            - type: string
            - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
      - loc
      - msg
      - type
      title: ValidationError
    HookPatch:
      properties:
        name:
          anyOf:
          - type: string
          - type: 'null'
          title: Name
        allow_get:
          anyOf:
          - type: boolean
          - type: 'null'
          title: Allow Get
        template:
          anyOf:
          - type: string
          - type: 'null'
          title: Template
        signing_secret:
          anyOf:
          - type: string
          - type: 'null'
          title: Signing Secret
        send_to:
          anyOf:
          - type: string
          - items:
              type: string
            type: array
          - type: 'null'
          title: Send To
        actions:
          title: Actions
        topic_template:
          anyOf:
          - type: string
          - type: 'null'
          title: Topic Template
        ref_template:
          anyOf:
          - type: string
          - type: 'null'
          title: Ref Template
      type: object
      title: HookPatch
      description: 'Only the fields sent change; template / signing_secret null clears them, send_to

        null is "me".'