SERP Agent Webhooks API

Outbound event notifications with HMAC signatures.

GitHub OpenAPI

Operations 3

POST /v1/webhooks Register a webhook endpoint #
GET /v1/webhooks List webhook endpoints #
DELETE /v1/webhooks/{id} Delete a webhook endpoint #

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/serp-agent-com:serp-agent-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

serp-agent-com-webhooks-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: SERP Agent Webhooks API
  version: 1.0.0
  description: 'Agent-ready SEO automation API: programmatic signup, technical site audits, and end-to-end SEO article generation. Designed for AI agents — instant sandbox keys (no CAPTCHA, no payment method), uniform machine-readable errors, idempotent POSTs, and signed webhooks. All request and response fields are snake_case. Quickstart for agents: https://serp-agent.com/docs/agents'
  contact:
    url: https://serp-agent.com/docs
servers:
- url: https://serp-agent.com
  description: Production
security:
- apiKey: []
tags:
- name: Webhooks
  description: Outbound event notifications with HMAC signatures.
paths:
  /v1/webhooks:
    post:
      operationId: createWebhook
      summary: Register a webhook endpoint
      description: Registers an HTTPS endpoint to receive event POSTs. `events` filters which events are delivered — omit it (or pass `[]`) to subscribe to ALL events. The response includes the raw signing `secret` exactly once (only an encrypted form is stored). URLs must be public HTTPS (private/internal hosts are refused). Max 20 endpoints per account. Deliveries retry with exponential backoff (up to 8 attempts, capped at 6h between attempts); an endpoint is auto-deactivated after 50 consecutive failures.
      tags:
      - Webhooks
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
              - url
              properties:
                url:
                  type: string
                  format: uri
                  maxLength: 2048
                  description: Public HTTPS URL to POST events to.
                events:
                  type: array
                  items:
                    type: string
                    enum:
                    - audit.completed
                    - article.generated
                    - article.published
                    - subscription.updated
                    - usage.threshold_reached
                    - credits.updated
                  description: Events to deliver. Omit or [] = all events.
            example:
              url: https://agent.example.com/hooks/serp-agent
              events:
              - audit.completed
              - article.published
      responses:
        '201':
          description: Endpoint registered. `secret` is shown exactly once — store it to verify signatures.
          headers:
            X-RateLimit-Limit:
              description: Request budget for the current window (600/min per API key on authenticated routes; 5/hour per IP on signup).
              schema:
                type: integer
            X-RateLimit-Remaining:
              description: Requests remaining in the current window.
              schema:
                type: integer
            X-RateLimit-Reset:
              description: Unix timestamp (seconds) when the window resets.
              schema:
                type: integer
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WebhookCreated'
              example:
                webhook_id: wh_01h9x6
                url: https://agent.example.com/hooks/serp-agent
                events:
                - audit.completed
                - article.published
                active: true
                created_at: '2026-07-23T09:10:00.000Z'
                secret: 3f9c…64-hex-chars…e1a0
                signature_header: X-SerpAgent-Signature
                signature_scheme: hex sha256 HMAC of the raw request body
        '400':
          description: 'Invalid URL (must be public https), unknown event name, or malformed body. Code: `invalid_request`.'
          headers:
            X-RateLimit-Limit:
              description: Request budget for the current window (600/min per API key on authenticated routes; 5/hour per IP on signup).
              schema:
                type: integer
            X-RateLimit-Remaining:
              description: Requests remaining in the current window.
              schema:
                type: integer
            X-RateLimit-Reset:
              description: Unix timestamp (seconds) when the window resets.
              schema:
                type: integer
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              example:
                error:
                  code: invalid_request
                  message: Webhook URLs must use https.
                  doc_url: https://serp-agent.com/docs/errors#invalid_request
        '401':
          description: 'Missing, malformed, unknown, revoked, or expired API key. Codes: `unauthorized`, `key_revoked`, `key_expired`.'
          headers:
            X-RateLimit-Limit:
              description: Request budget for the current window (600/min per API key on authenticated routes; 5/hour per IP on signup).
              schema:
                type: integer
            X-RateLimit-Remaining:
              description: Requests remaining in the current window.
              schema:
                type: integer
            X-RateLimit-Reset:
              description: Unix timestamp (seconds) when the window resets.
              schema:
                type: integer
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              example:
                error:
                  code: unauthorized
                  message: 'Missing or malformed Authorization header. Expected: Bearer sk_...'
                  doc_url: https://serp-agent.com/docs/errors#unauthorized
        '409':
          description: 'Endpoint cap reached (20 per account). Code: `limit_reached`.'
          headers:
            X-RateLimit-Limit:
              description: Request budget for the current window (600/min per API key on authenticated routes; 5/hour per IP on signup).
              schema:
                type: integer
            X-RateLimit-Remaining:
              description: Requests remaining in the current window.
              schema:
                type: integer
            X-RateLimit-Reset:
              description: Unix timestamp (seconds) when the window resets.
              schema:
                type: integer
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              example:
                error:
                  code: limit_reached
                  message: At most 20 webhook endpoints per account. Delete one first (DELETE /v1/webhooks/{id}).
                  doc_url: https://serp-agent.com/docs/errors#limit_reached
        '429':
          description: Rate limit exceeded (600 requests/minute per API key). Honor `Retry-After`.
          headers:
            Retry-After:
              description: Seconds to wait before retrying.
              schema:
                type: integer
            X-RateLimit-Limit:
              description: Request budget for the current window (600/min per API key on authenticated routes; 5/hour per IP on signup).
              schema:
                type: integer
            X-RateLimit-Remaining:
              description: Requests remaining in the current window.
              schema:
                type: integer
            X-RateLimit-Reset:
              description: Unix timestamp (seconds) when the window resets.
              schema:
                type: integer
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              example:
                error:
                  code: rate_limited
                  message: Rate limit exceeded for this API key.
                  doc_url: https://serp-agent.com/docs/errors#rate_limited
        '500':
          description: 'Server-side secret encryption unavailable. Code: `internal_error`.'
          headers:
            X-RateLimit-Limit:
              description: Request budget for the current window (600/min per API key on authenticated routes; 5/hour per IP on signup).
              schema:
                type: integer
            X-RateLimit-Remaining:
              description: Requests remaining in the current window.
              schema:
                type: integer
            X-RateLimit-Reset:
              description: Unix timestamp (seconds) when the window resets.
              schema:
                type: integer
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              example:
                error:
                  code: internal_error
                  message: Secret encryption is not configured on the server.
                  doc_url: https://serp-agent.com/docs/errors#internal_error
    get:
      operationId: listWebhooks
      summary: List webhook endpoints
      description: All endpoints on the account, oldest first. The signing secret is masked (shown only at creation).
      tags:
      - Webhooks
      responses:
        '200':
          description: The account's endpoints.
          headers:
            X-RateLimit-Limit:
              description: Request budget for the current window (600/min per API key on authenticated routes; 5/hour per IP on signup).
              schema:
                type: integer
            X-RateLimit-Remaining:
              description: Requests remaining in the current window.
              schema:
                type: integer
            X-RateLimit-Reset:
              description: Unix timestamp (seconds) when the window resets.
              schema:
                type: integer
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WebhookList'
              example:
                webhooks:
                - webhook_id: wh_01h9x6
                  url: https://agent.example.com/hooks/serp-agent
                  events:
                  - audit.completed
                  - article.published
                  active: true
                  secret: whsec_************ (shown once at creation)
                  failure_count: 0
                  last_success_at: '2026-07-23T09:31:00.000Z'
                  last_failure_at: null
                  created_at: '2026-07-23T09:10:00.000Z'
        '401':
          description: 'Missing, malformed, unknown, revoked, or expired API key. Codes: `unauthorized`, `key_revoked`, `key_expired`.'
          headers:
            X-RateLimit-Limit:
              description: Request budget for the current window (600/min per API key on authenticated routes; 5/hour per IP on signup).
              schema:
                type: integer
            X-RateLimit-Remaining:
              description: Requests remaining in the current window.
              schema:
                type: integer
            X-RateLimit-Reset:
              description: Unix timestamp (seconds) when the window resets.
              schema:
                type: integer
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              example:
                error:
                  code: unauthorized
                  message: 'Missing or malformed Authorization header. Expected: Bearer sk_...'
                  doc_url: https://serp-agent.com/docs/errors#unauthorized
        '429':
          description: Rate limit exceeded (600 requests/minute per API key). Honor `Retry-After`.
          headers:
            Retry-After:
              description: Seconds to wait before retrying.
              schema:
                type: integer
            X-RateLimit-Limit:
              description: Request budget for the current window (600/min per API key on authenticated routes; 5/hour per IP on signup).
              schema:
                type: integer
            X-RateLimit-Remaining:
              description: Requests remaining in the current window.
              schema:
                type: integer
            X-RateLimit-Reset:
              description: Unix timestamp (seconds) when the window resets.
              schema:
                type: integer
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              example:
                error:
                  code: rate_limited
                  message: Rate limit exceeded for this API key.
                  doc_url: https://serp-agent.com/docs/errors#rate_limited
  /v1/webhooks/{id}:
    delete:
      operationId: deleteWebhook
      summary: Delete a webhook endpoint
      description: Removes the endpoint and its queued deliveries.
      tags:
      - Webhooks
      parameters:
      - name: id
        in: path
        required: true
        description: Webhook endpoint id.
        schema:
          type: string
      responses:
        '200':
          description: Endpoint deleted.
          headers:
            X-RateLimit-Limit:
              description: Request budget for the current window (600/min per API key on authenticated routes; 5/hour per IP on signup).
              schema:
                type: integer
            X-RateLimit-Remaining:
              description: Requests remaining in the current window.
              schema:
                type: integer
            X-RateLimit-Reset:
              description: Unix timestamp (seconds) when the window resets.
              schema:
                type: integer
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WebhookDeleted'
              example:
                deleted: true
                webhook_id: wh_01h9x6
        '401':
          description: 'Missing, malformed, unknown, revoked, or expired API key. Codes: `unauthorized`, `key_revoked`, `key_expired`.'
          headers:
            X-RateLimit-Limit:
              description: Request budget for the current window (600/min per API key on authenticated routes; 5/hour per IP on signup).
              schema:
                type: integer
            X-RateLimit-Remaining:
              description: Requests remaining in the current window.
              schema:
                type: integer
            X-RateLimit-Reset:
              description: Unix timestamp (seconds) when the window resets.
              schema:
                type: integer
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              example:
                error:
                  code: unauthorized
                  message: 'Missing or malformed Authorization header. Expected: Bearer sk_...'
                  doc_url: https://serp-agent.com/docs/errors#unauthorized
        '404':
          description: 'No such endpoint on this account. Code: `not_found`.'
          headers:
            X-RateLimit-Limit:
              description: Request budget for the current window (600/min per API key on authenticated routes; 5/hour per IP on signup).
              schema:
                type: integer
            X-RateLimit-Remaining:
              description: Requests remaining in the current window.
              schema:
                type: integer
            X-RateLimit-Reset:
              description: Unix timestamp (seconds) when the window resets.
              schema:
                type: integer
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              example:
                error:
                  code: not_found
                  message: No webhook endpoint with that id on this account.
                  doc_url: https://serp-agent.com/docs/errors#not_found
        '429':
          description: Rate limit exceeded (600 requests/minute per API key). Honor `Retry-After`.
          headers:
            Retry-After:
              description: Seconds to wait before retrying.
              schema:
                type: integer
            X-RateLimit-Limit:
              description: Request budget for the current window (600/min per API key on authenticated routes; 5/hour per IP on signup).
              schema:
                type: integer
            X-RateLimit-Remaining:
              description: Requests remaining in the current window.
              schema:
                type: integer
            X-RateLimit-Reset:
              description: Unix timestamp (seconds) when the window resets.
              schema:
                type: integer
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              example:
                error:
                  code: rate_limited
                  message: Rate limit exceeded for this API key.
                  doc_url: https://serp-agent.com/docs/errors#rate_limited
components:
  schemas:
    WebhookList:
      type: object
      required:
      - webhooks
      properties:
        webhooks:
          type: array
          items:
            $ref: '#/components/schemas/WebhookEndpoint'
    Error:
      type: object
      description: 'Uniform error body returned by every non-2xx response. `code` is machine-readable (full catalog: https://serp-agent.com/docs/errors); `doc_url` links its documentation.'
      required:
      - error
      properties:
        error:
          type: object
          required:
          - code
          - message
          - doc_url
          properties:
            code:
              type: string
              example: rate_limited
            message:
              type: string
              description: Human/agent-readable explanation, often with the exact next step.
            doc_url:
              type: string
              format: uri
    WebhookCreated:
      type: object
      required:
      - webhook_id
      - url
      - events
      - active
      - created_at
      - secret
      - signature_header
      - signature_scheme
      properties:
        webhook_id:
          type: string
        url:
          type: string
          format: uri
        events:
          type: array
          items:
            type: string
          description: '[] = subscribed to all events.'
        active:
          type: boolean
        created_at:
          type: string
          format: date-time
        secret:
          type: string
          description: Raw signing secret (64 hex chars) — shown exactly once, never retrievable again.
        signature_header:
          type: string
          const: X-SerpAgent-Signature
        signature_scheme:
          type: string
          const: hex sha256 HMAC of the raw request body
    WebhookDeleted:
      type: object
      required:
      - deleted
      - webhook_id
      properties:
        deleted:
          type: boolean
          const: true
        webhook_id:
          type: string
    WebhookEndpoint:
      type: object
      required:
      - webhook_id
      - url
      - events
      - active
      - secret
      - failure_count
      - last_success_at
      - last_failure_at
      - created_at
      properties:
        webhook_id:
          type: string
        url:
          type: string
          format: uri
        events:
          type: array
          items:
            type: string
        active:
          type: boolean
          description: False after 50 consecutive delivery failures (auto-deactivated) — delete and re-register to resume.
        secret:
          type: string
          description: Always masked in listings.
        failure_count:
          type: integer
          description: Consecutive delivery failures; reset to 0 on success.
        last_success_at:
          type:
          - string
          - 'null'
          format: date-time
        last_failure_at:
          type:
          - string
          - 'null'
          format: date-time
        created_at:
          type: string
          format: date-time
  securitySchemes:
    apiKey:
      type: http
      scheme: bearer
      description: 'API key in the Authorization header: `Authorization: Bearer sk_sandbox_...` (trial) or `Bearer sk_live_...` (paid). Keys are obtained from POST /v1/accounts (instant sandbox key) or POST /v1/api-keys. The raw key is shown exactly once at creation — only a hash is stored. Sandbox keys expire after 14 days.'
x-sandbox-limits:
  description: 'Hard caps on a free sandbox trial (per key): 1 project, 1 audit, 2 draft-only articles; the key expires after 14 days. Exceeding a cap returns 403 sandbox_limit_reached with the upgrade URL. Upgrade: https://serp-agent.com/pricing'
  projects: 1
  audits: 1
  articles: 2
  expires_days: 14