Pillwise Webhooks API

Outbound POST to the HTTPS URL you registered, signed with the `whsec_…` secret shown once at create. `X-Pillwise-Signature` is `t=,v1=`, where v1 is HMAC-SHA256 of `.` keyed with the whole secret (prefix included). Compare in constant time and refuse a `t` more than five minutes from your clock, so a captured delivery cannot be replayed. 2xx is success; anything else is retried.

GitHub OpenAPI

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/pillwise-dev:pillwise-dev-webhooks-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

pillwise-dev-webhooks-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Pillwise Dev Webhooks API
  version: 0.1.0
  license:
    name: Proprietary
  description: 'Operations tagged Webhooks across 2 of this provider''s published API definitions: pillwise-dev-openapi.json, pillwise-dev-openapi.json. Each path carries the servers of the definition it was published in.'
servers:
- url: https://api.pillwise.dev
  description: Future public API
security:
- bearerAuth: []
tags:
- name: Webhooks
  description: Outbound POST to the HTTPS URL you registered, signed with the `whsec_…` secret shown once at create. `X-Pillwise-Signature` is `t=,v1=`, where v1 is HMAC-SHA256 of `.` keyed with the whole secret (prefix included). Compare in constant time and refuse a `t` more than five minutes from your clock, so a captured delivery cannot be replayed. 2xx is success; anything else is retried.
paths: {}
webhooks:
  cabinetAffected:
    post:
      tags:
      - Webhooks
      security: []
      summary: cabinet.affected
      description: 'POST to your registered URL when a stored cabinet item is affected. Join `member_id` to your user locally. We never send your inbound member id. Optional: most tenants never subscribe.'
      parameters:
      - $ref: '#/components/parameters/webhookSignature'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CabinetAffectedEvent'
            example:
              type: cabinet.affected
              tenant_id: acme
              member_id: 3fa85f64-5717-4562-b3fc-2c963f66afa6
              item_id: 7c9e6679-7425-40de-944b-e07fc1f90ae7
              codes:
                pillwise_id: pw_d_lisinopril
                rxcui: '314076'
                ndc11: 68180-0514-01
              reason: recall.issued
              recall_id: rec_example
              graph_version: '2026-01-15T12:00:00Z'
              observed_at: '2026-01-15T12:01:00Z'
      responses:
        '200':
          description: Received. Any 2xx is success.
    servers:
    - url: https://api.pillwise.dev
      description: Future public API
  recallIssued:
    post:
      tags:
      - Webhooks
      security: []
      summary: recall.issued
      description: POST to your registered URL for a catalog Class I recall. Optional. Subscribe only if you need catalog-level notices, not member lists.
      parameters:
      - $ref: '#/components/parameters/webhookSignature'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/RecallIssuedEvent'
            example:
              type: recall.issued
              classification: Class I
              recall_id: rec_example
              recall_number: F-1234-2026
              drug_ids:
              - pw_d_lisinopril
              codes:
                ndc11:
                - 68180-0514-01
                rxcui:
                - '314076'
              graph_version: '2026-01-15T12:00:00Z'
              observed_at: '2026-01-15T12:01:00Z'
      responses:
        '200':
          description: Received. Any 2xx is success.
    servers:
    - url: https://api.pillwise.dev
      description: Future public API
components:
  schemas:
    CabinetAffectedEvent:
      type: object
      required:
      - type
      - tenant_id
      - member_id
      - item_id
      - codes
      - reason
      - recall_id
      - graph_version
      - observed_at
      properties:
        type:
          type: string
          const: cabinet.affected
        tenant_id:
          type: string
        member_id:
          type: string
          format: uuid
        item_id:
          type: string
          format: uuid
        codes:
          $ref: '#/components/schemas/CabinetItemWrite/properties/codes'
        reason:
          type: string
          const: recall.issued
        recall_id:
          type: string
        graph_version:
          type: string
        observed_at:
          type: string
          format: date-time
    RecallIssuedEvent:
      type: object
      required:
      - type
      - classification
      - recall_id
      - drug_ids
      - codes
      - graph_version
      - observed_at
      properties:
        type:
          type: string
          const: recall.issued
        classification:
          type: string
          example: Class I
        recall_id:
          type: string
        recall_number:
          type: string
        drug_ids:
          type: array
          items:
            type: string
        codes:
          type: object
          required:
          - ndc11
          - rxcui
          properties:
            ndc11:
              type: array
              items:
                type: string
            rxcui:
              type: array
              items:
                type: string
        graph_version:
          type: string
        observed_at:
          type: string
          format: date-time
    CabinetItemWrite:
      type: object
      required:
      - answers
      properties:
        answers:
          type: object
          required:
          - confirmed_name
          properties:
            confirmed_name:
              type: string
            form:
              type: string
            strength:
              type: string
            strength_unit:
              type: string
            route:
              type: string
            frequency:
              type: string
            prn:
              type: boolean
            quantity:
              type: string
            days_supply:
              type: integer
            start_on:
              type: string
              format: date
            end_on:
              type: string
              format: date
            instructions:
              type: string
            entered_by:
              type: string
              enum:
              - self
              - caregiver
              - clinician
              - claim
              - barcode
        codes:
          type: object
          properties:
            rxcui:
              type: string
            rxcui_ingredient:
              type: string
            ndc11:
              type: string
            ndc_basis:
              type: string
              enum:
              - asserted
              - representative
            ndc_candidates:
              type: array
              items:
                type: object
                properties:
                  ndc11:
                    type: string
                  ndc_display:
                    type: string
                  description:
                    type: string
            ndc_fda:
              type: string
            ndc_display:
              type: string
            unii:
              type: array
              items:
                type: string
            spl_set_id:
              type: string
            application_number:
              type: string
            te_code:
              type: string
            pillwise_id:
              type: string
        resolved:
          type: object
          properties:
            pick_level:
              type: string
            search_hit_id:
              type: string
            confidence:
              type: string
            jurisdiction:
              type: string
  parameters:
    webhookSignature:
      in: header
      name: X-Pillwise-Signature
      required: true
      schema:
        type: string
        example: t=1767225600,v1=0123456789abcdef
      description: '`t=<unix seconds>,v1=<hex>`: v1 is HMAC-SHA256 of `<t>.<raw JSON body>` using the full `whsec_…` secret shown at webhook create (prefix included). Refuse a `t` more than five minutes old.

        '
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: pw_live_
      description: 'Live keys start `pw_live_`; sandbox keys start `pw_test_` and share the same API with a 500-lookup monthly cap. Minted from the account pages or by an operator (`pillwise key create`). Shown once. A Cabinet PUT that would add a member past the tenant''s band returns 402 member_cap_reached. Scopes: index:read, cabinet:read, cabinet:write, cabinet:export. Cabinet reads and exports are audited like writes. Successful Index responses may include X-Quota-Used, X-Quota-Limit, X-Quota-Remaining, X-Quota-Period, X-Quota-Overage-Until.

        '
x-refined-from:
- pillwise-dev-openapi.json
- pillwise-dev-openapi.json