Premier Letters Webhooks API

The Webhooks API from Premier Letters — 4 operation(s) for webhooks.

GitHub OpenAPI

Operations 7

GET /api/v1/webhooks List webhook endpoints #
POST /api/v1/webhooks Create a webhook endpoint (returns the signing secret once) #
GET /api/v1/webhooks/{id} Get a webhook endpoint #
PUT /api/v1/webhooks/{id} Update a webhook endpoint #
DELETE /api/v1/webhooks/{id} Delete a webhook endpoint #
GET /api/v1/webhooks/{id}/deliveries Recent delivery attempts for a webhook endpoint #
POST /api/webhooks/stripe Stripe webhook receiver (inbound, not called by API clients) #

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/premierletters-com:premierletters-com-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

premierletters-com-webhooks-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Premierletters Com Webhooks API
  version: 1.0.0
  contact:
    url: https://www.premierletters.com/developers
  description: 'Operations tagged Webhooks across 2 of this provider''s published API definitions: premierletters-com.json, premierletters-com-openapi.json. Each path carries the servers of the definition it was published in.'
servers:
- url: https://www.premierletters.com
security:
- bearerAuth: []
tags:
- name: Webhooks
paths:
  /api/v1/webhooks:
    get:
      summary: List webhook endpoints
      security:
      - bearerAuth: []
      responses:
        '200':
          description: Endpoints and the valid event names
          content:
            application/json:
              schema:
                type: object
                properties:
                  endpoints:
                    type: array
                    items:
                      $ref: '#/components/schemas/WebhookEndpoint'
                  valid_events:
                    type: array
                    items:
                      type: string
      tags:
      - Webhooks
      operationId: getApiV1Webhooks
      x-operation-id-source: derived
    post:
      summary: Create a webhook endpoint (returns the signing secret once)
      security:
      - bearerAuth: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
              - url
              properties:
                url:
                  type: string
                  format: uri
                events:
                  type: array
                  items:
                    type: string
                    enum:
                    - order.created
                    - order.paid
                    - order.in_production
                    - order.shipped
                    - order.delivered
                    - order.cancelled
                    - lead.created
                    - lead.stage_changed
                    - reward.released
                    - reward.reversed
                  description: Defaults to every event
      responses:
        '201':
          description: Created; includes secret (whsec_...), which is never shown again
          content:
            application/json:
              schema:
                allOf:
                - $ref: '#/components/schemas/WebhookEndpoint'
                - type: object
                  properties:
                    secret:
                      type: string
                    warning:
                      type: string
        '400':
          description: missing_url, invalid_url or invalid_events
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      tags:
      - Webhooks
      operationId: postApiV1Webhooks
      x-operation-id-source: derived
    servers:
    - url: https://www.premierletters.com
  /api/v1/webhooks/{id}:
    get:
      summary: Get a webhook endpoint
      security:
      - bearerAuth: []
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
          format: uuid
      responses:
        '200':
          description: Endpoint
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WebhookEndpoint'
        '404':
          description: not_found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      tags:
      - Webhooks
      operationId: getApiV1WebhooksById
      x-operation-id-source: derived
    put:
      summary: Update a webhook endpoint
      security:
      - bearerAuth: []
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
          format: uuid
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                url:
                  type: string
                  format: uri
                events:
                  type: array
                  items:
                    type: string
                    enum:
                    - order.created
                    - order.paid
                    - order.in_production
                    - order.shipped
                    - order.delivered
                    - order.cancelled
                    - lead.created
                    - lead.stage_changed
                    - reward.released
                    - reward.reversed
                is_active:
                  type: boolean
      responses:
        '200':
          description: Updated endpoint
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WebhookEndpoint'
        '400':
          description: invalid_url, invalid_events, or no fields to update
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: not_found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      tags:
      - Webhooks
      operationId: putApiV1WebhooksById
      x-operation-id-source: derived
    delete:
      summary: Delete a webhook endpoint
      security:
      - bearerAuth: []
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
          format: uuid
      responses:
        '204':
          description: Deleted
        '404':
          description: not_found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      tags:
      - Webhooks
      operationId: deleteApiV1WebhooksById
      x-operation-id-source: derived
    servers:
    - url: https://www.premierletters.com
  /api/v1/webhooks/{id}/deliveries:
    get:
      summary: Recent delivery attempts for a webhook endpoint
      security:
      - bearerAuth: []
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
          format: uuid
      - name: limit
        in: query
        schema:
          type: integer
          maximum: 100
      - name: offset
        in: query
        schema:
          type: integer
      responses:
        '200':
          description: Paginated deliveries
          content:
            application/json:
              schema:
                type: object
                properties:
                  deliveries:
                    type: array
                    items:
                      $ref: '#/components/schemas/WebhookDelivery'
                  pagination:
                    type: object
        '404':
          description: not_found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      tags:
      - Webhooks
      operationId: getApiV1WebhooksByIdDeliveries
      x-operation-id-source: derived
    servers:
    - url: https://www.premierletters.com
  /api/webhooks/stripe:
    post:
      summary: Stripe webhook receiver (inbound, not called by API clients)
      security: []
      responses:
        '200':
          description: Acknowledged
      tags:
      - Webhooks
      operationId: postApiWebhooksStripe
      x-operation-id-source: derived
    servers:
    - url: https://www.premierletters.com
components:
  schemas:
    WebhookEndpoint:
      type: object
      properties:
        id:
          type: string
          format: uuid
        url:
          type: string
          format: uri
        events:
          type: array
          items:
            type: string
            enum:
            - order.created
            - order.paid
            - order.in_production
            - order.shipped
            - order.delivered
            - order.cancelled
            - lead.created
            - lead.stage_changed
            - reward.released
            - reward.reversed
        is_active:
          type: boolean
        created_at:
          type: string
          format: date-time
        updated_at:
          type: string
          format: date-time
    Error:
      type: object
      properties:
        error:
          type: string
          description: Stable machine-readable code, e.g. validation_failed, insufficient_balance, test_mode
        message:
          type: string
        suggestion:
          type: string
          description: What to do next
        details: {}
      required:
      - error
      - message
    WebhookDelivery:
      type: object
      properties:
        id:
          type: string
        event_type:
          type: string
        response_status:
          type:
          - integer
          - 'null'
        status:
          type: string
        attempts:
          type: integer
        created_at:
          type: string
          format: date-time
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: pl_live_... | pl_test_...
      description: 'API key from Settings → API keys, or from the agent connect flow. Sent as `Authorization: Bearer pl_live_...`. Live keys (pl_live_) create and charge real orders. Test keys (pl_test_) run the same validation, pricing and return-address checks but never create, charge or send anything: POST /api/v1/orders answers `{ test: true }`, order lists are empty, and balance top-ups, new-card charges and Growth record writes answer 400 test_mode. Webhook endpoints can be managed with either key.'
x-refined-from:
- premierletters-com.json
- premierletters-com-openapi.json