SparkPost Webhooks API

The Webhooks API from SparkPost — 6 operation(s) for webhooks.

GitHub OpenAPI
Pull this API's OpenAPI, operations, scores and pricing into your own code or AI agent with a free APIs.io key — sign in with GitHub, Google or LinkedIn. No form to fill in; signing in shares your email address with us (Privacy).
Business capability
Webhook & Event Subscription Management BC-4270.80

Operations 9

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

0 of 9 operations are conformant: apis.io called them with no credentials and the responses matched this contract; 2 more answered but could not be checked against a schema. Checked 2026-11-12. how this works · status file

POST /webhooks Create a webhook · Create a Webhook #
Ask an LLM
“How do I get email events pushed to my server in real time?”
“Can a webhook subscribe to several event types at once?”
Tell an agent
Create webhook {name} sending {events} to {target}.
Create webhook {name} at {target} for events {events} with auth type {auth_type}.
GET /webhooks List webhooks · List All Webhooks #
Ask an LLM
“Which webhooks are configured to receive email event notifications?”
“Can I see all webhook URLs and the events they subscribe to?”
Tell an agent
List all webhooks.
Show webhooks configured in timezone {timezone}.
GET /webhooks/{id} Get a webhook · Retrieve a Webhook #
Ask an LLM
“What URL and events does a particular webhook deliver to?”
“Can I check whether a webhook is active?”
Tell an agent
Get webhook {id}.
Show webhook {id} details in timezone {timezone}.
PUT /webhooks/{id} Update a webhook · Update a Webhook #
Ask an LLM
“Can I change the URL a webhook posts to?”
“How do I stop a webhook from sending events for certain subaccounts?”
Tell an agent
Update webhook {id} to send {events} to {target}.
Set webhook {id} active to {active}.
DELETE /webhooks/{id} Delete a webhook · Delete a Webhook #
Ask an LLM
“How do I stop email events from being pushed to a URL?”
“Can I remove a webhook configuration?”
Tell an agent destructive · confirm first
Delete webhook {id}.
Remove the webhook configuration {id}.
POST /webhooks/{id}/validate Test a webhook's connectivity · Validate a Webhook #
Ask an LLM
“Is my webhook target reachable and receiving events?”
“Can I send a test event batch to a webhook to check it?”
Tell an agent
Validate webhook {id}.
Send a test event batch to webhook {id} and report connectivity.
GET /webhooks/{id}/batch-status Check recent webhook delivery batches · Retrieve Batch Status Information #
Ask an LLM
“Did my webhook receive the event batches I sent?”
“What is the delivery status of recent webhook batches?”
Tell an agent
Show batch status for webhook {id}.
Show the last {limit} delivery batches for webhook {id}.
GET /webhooks/events/documentation Get webhook event type documentation · Events Documentation observed #
Ask an LLM
“Which event types can be delivered to a webhook?”
“What does a webhook event payload look like for each event type?”
Tell an agent
Get the webhook events documentation.
List all event types available for webhook delivery.
GET /webhooks/events/samples Get sample webhook payloads · Event Samples observed #
Ask an LLM
“Can I see sample payloads for a bounce or open event?”
“What does a webhook event payload look like for a specific event type?”
Tell an agent
Get sample payloads for events {events}.
Show a sample webhook event for {events}.

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/sparkpost:sparkpost-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

sparkpost-webhooks-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: SparkPost Webhooks API
  description: Configure real-time HTTP push notifications for email events (deliveries, bounces, opens, clicks, spam complaints). Supports batched event payloads and retry logic.
  version: 1.0.0
  contact:
    name: SparkPost Developer Support
    url: https://developers.sparkpost.com/api/webhooks/
  license:
    name: Apache 2.0
    url: https://www.apache.org/licenses/LICENSE-2.0
servers:
- url: https://api.sparkpost.com/api/v1
  description: SparkPost Production API
security:
- ApiKeyAuth: []
tags:
- name: Webhooks
paths:
  /webhooks:
    post:
      operationId: createWebhook
      summary: Create a Webhook
      description: Create a new webhook to receive real-time event notifications via HTTP POST.
      tags:
      - Webhooks
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/WebhookRequest'
      responses:
        '200':
          description: Webhook created
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WebhookResponse'
        '400':
          description: Invalid request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
    get:
      operationId: listWebhooks
      summary: List All Webhooks
      description: Retrieve a list of all configured webhooks.
      tags:
      - Webhooks
      parameters:
      - name: timezone
        in: query
        required: false
        description: Timezone for date fields (default UTC)
        schema:
          type: string
          default: UTC
      responses:
        '200':
          description: List of webhooks
          content:
            application/json:
              schema:
                type: object
                properties:
                  results:
                    type: array
                    items:
                      $ref: '#/components/schemas/WebhookDetails'
  /webhooks/{id}:
    get:
      operationId: getWebhook
      summary: Retrieve a Webhook
      description: Retrieve details about a specific webhook.
      tags:
      - Webhooks
      parameters:
      - name: id
        in: path
        required: true
        description: Webhook ID
        schema:
          type: string
      - name: timezone
        in: query
        required: false
        description: Timezone for date fields (default UTC)
        schema:
          type: string
          default: UTC
      responses:
        '200':
          description: Webhook details
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WebhookResponse'
    put:
      operationId: updateWebhook
      summary: Update a Webhook
      description: Update configuration for an existing webhook.
      tags:
      - Webhooks
      parameters:
      - name: id
        in: path
        required: true
        description: Webhook ID
        schema:
          type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/WebhookUpdateRequest'
      responses:
        '200':
          description: Webhook updated
    delete:
      operationId: deleteWebhook
      summary: Delete a Webhook
      description: Remove a webhook configuration.
      tags:
      - Webhooks
      parameters:
      - name: id
        in: path
        required: true
        description: Webhook ID
        schema:
          type: string
      responses:
        '204':
          description: Webhook deleted
  /webhooks/{id}/validate:
    post:
      operationId: validateWebhook
      summary: Validate a Webhook
      description: Send a test event batch to the webhook target to validate connectivity.
      tags:
      - Webhooks
      parameters:
      - name: id
        in: path
        required: true
        description: Webhook ID
        schema:
          type: string
      requestBody:
        required: false
        content:
          application/json:
            schema:
              type: array
              description: Sample event batch to send
              items:
                type: object
      responses:
        '200':
          description: Validation result
  /webhooks/{id}/batch-status:
    get:
      operationId: getWebhookBatchStatus
      summary: Retrieve Batch Status Information
      description: Retrieve delivery status information for recent event batches sent to this webhook.
      tags:
      - Webhooks
      parameters:
      - name: id
        in: path
        required: true
        description: Webhook ID
        schema:
          type: string
      - name: limit
        in: query
        required: false
        description: Maximum number of batch status records to return (default 1000)
        schema:
          type: integer
          default: 1000
      responses:
        '200':
          description: Batch status records
  /webhooks/events/documentation:
    get:
      operationId: getWebhookEventsDocumentation
      summary: Events Documentation
      description: Retrieve documentation for all event types available for webhook delivery.
      tags:
      - Webhooks
      responses:
        '200':
          description: Event type documentation
  /webhooks/events/samples:
    get:
      operationId: getWebhookEventSamples
      summary: Event Samples
      description: Retrieve sample payloads for specific event types.
      tags:
      - Webhooks
      parameters:
      - name: events
        in: query
        required: false
        description: Comma-delimited list of event types
        schema:
          type: string
      responses:
        '200':
          description: Sample event payloads
components:
  schemas:
    WebhookDetails:
      type: object
      properties:
        id:
          type: string
        name:
          type: string
        target:
          type: string
        events:
          type: array
          items:
            type: string
        active:
          type: boolean
        auth_type:
          type: string
        custom_headers:
          type: object
        last_successful:
          type: string
          format: date-time
        last_failure:
          type: string
          format: date-time
    WebhookResponse:
      type: object
      properties:
        results:
          $ref: '#/components/schemas/WebhookDetails'
    ErrorResponse:
      type: object
      properties:
        errors:
          type: array
          items:
            type: object
            properties:
              message:
                type: string
              code:
                type: string
              description:
                type: string
    WebhookUpdateRequest:
      type: object
      properties:
        name:
          type: string
        target:
          type: string
          format: uri
        events:
          type: array
          items:
            type: string
        active:
          type: boolean
        custom_headers:
          type: object
          additionalProperties:
            type: string
        exception_subaccounts:
          type: array
          items:
            type: integer
        subaccount_id:
          type: integer
        auth_type:
          type: string
          enum:
          - none
          - basic
          - oauth2
        auth_request_details:
          type: object
        auth_credentials:
          type: object
    WebhookRequest:
      type: object
      required:
      - name
      - target
      - events
      properties:
        name:
          type: string
          description: Human-readable name for the webhook
        target:
          type: string
          format: uri
          description: HTTP or HTTPS URL to receive webhook POST events
        events:
          type: array
          items:
            type: string
          description: List of event types to subscribe to
        active:
          type: boolean
          default: true
          description: Whether the webhook is active
        custom_headers:
          type: object
          additionalProperties:
            type: string
          description: Custom HTTP headers to include in webhook requests
        exception_subaccounts:
          type: array
          items:
            type: integer
          description: Subaccount IDs to exclude from this webhook
        auth_type:
          type: string
          enum:
          - none
          - basic
          - oauth2
          default: none
          description: Authentication type for webhook requests
        auth_request_details:
          type: object
          description: OAuth 2.0 configuration (required if auth_type=oauth2)
          properties:
            url:
              type: string
              format: uri
            body:
              type: object
        auth_credentials:
          type: object
          description: Credentials for basic auth (required if auth_type=basic)
          properties:
            username:
              type: string
            password:
              type: string
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: Authorization