ReplyLayer Webhooks API

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

GitHub OpenAPI

Operations 9

GET /v1/webhooks List webhooks #
POST /v1/webhooks Create a webhook #
DELETE /v1/webhooks/{id} Delete a webhook #
GET /v1/webhooks/{id} Get a webhook #
PATCH /v1/webhooks/{id} Update a webhook #
GET /v1/webhooks/{id}/deliveries List webhook deliveries #
POST /v1/webhooks/{id}/deliveries/{delivery_id}/retry Retry a failed webhook delivery #
POST /v1/webhooks/{id}/rotate-secret Rotate a webhook signing secret #
POST /v1/webhooks/{id}/test Send a test webhook delivery #

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/replylayer-ai:replylayer-ai-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

replylayer-ai-webhooks-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  description: 'The ReplyLayer REST API for AI agents — send, receive, read, and reply to email with built-in security scanning. Authenticate with an API key (`Authorization: Bearer rly_live_.`). This is the customer contract only; operator/admin endpoints and the session-cookie dashboard surface are not part of this spec.'
  title: ReplyLayer Webhooks API
  version: 1.0.0
servers:
- description: Production
  url: https://api.replylayer.ai
security:
- BearerApiKey: []
tags:
- name: Webhooks
paths:
  /v1/webhooks:
    get:
      operationId: getV1Webhooks
      responses:
        '200':
          content:
            application/json:
              schema:
                properties:
                  webhooks:
                    items:
                      properties:
                        consecutive_failures:
                          type: integer
                        created_at:
                          format: date-time
                          type: string
                        description:
                          type:
                          - string
                          - 'null'
                        disabled_at:
                          format: date-time
                          type:
                          - string
                          - 'null'
                        disabled_reason:
                          type:
                          - string
                          - 'null'
                        enabled:
                          type: boolean
                        enabled_events:
                          items:
                            type: string
                          type: array
                        id:
                          type: string
                        last_error:
                          type:
                          - string
                          - 'null'
                        last_failure_at:
                          format: date-time
                          type:
                          - string
                          - 'null'
                        last_success_at:
                          format: date-time
                          type:
                          - string
                          - 'null'
                        request_header_names:
                          items:
                            type: string
                          type: array
                        updated_at:
                          format: date-time
                          type: string
                        url:
                          type: string
                      required:
                      - id
                      - url
                      - enabled
                      - enabled_events
                      - created_at
                      - updated_at
                      - consecutive_failures
                      type: object
                    type: array
                required:
                - webhooks
                type: object
          description: Success
        '401':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          description: 'Missing or invalid API key (code: UNAUTHORIZED)'
        '403':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          description: Forbidden
        '429':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          description: 'Rate limited (code: RATE_LIMITED)'
        '500':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          description: 'Internal error (code: INTERNAL_ERROR)'
      summary: List webhooks
      tags:
      - Webhooks
    post:
      operationId: postV1Webhooks
      requestBody:
        content:
          application/json:
            schema:
              additionalProperties: false
              properties:
                description:
                  maxLength: 200
                  type: string
                enabled:
                  type: boolean
                enabled_events:
                  items:
                    enum:
                    - message.received
                    - message.delivered
                    - message.bounced
                    - message.quarantined
                    - message.scanner_blocked
                    - attachment.preview.queued
                    - attachment.preview.ready
                    - attachment.preview.blocked
                    - attachment.preview.failed
                    - recipient_blocklist.added
                    - recipient_blocklist.removed
                    - recipient_blocklist.complaint_override
                    - recipient_allowlist.added
                    - recipient_allowlist.removed
                    - mailbox.recipient_policy_changed
                    - recipient_allowlist.blocked_attempt
                    - verified_recipient.confirmed
                    - message.scheduled
                    - message.rescheduled
                    - message.schedule_cancelled
                    - message.dispatch_failed
                    - domain.self_hosted_auth_failed
                    - domain.self_hosted_probe_failed
                    - inbound_sender.blocked
                    - sender_allowlist.added
                    - sender_allowlist.removed
                    - sender_blocklist.added
                    - sender_blocklist.removed
                    - mailbox.sender_policy_changed
                    - legal_hold.applied
                    - legal_hold.released
                    - message.review.queued
                    - message.review.approved
                    - message.review.denied
                    - message.review.expired
                    - message.released
                    - mailbox.policy_changed
                    - trusted_source.granted
                    - trusted_source.revoked
                    - webhook.test
                    type: string
                  type: array
                  uniqueItems: true
                request_headers:
                  additionalProperties:
                    maxLength: 1024
                    minLength: 1
                    pattern: ^[\x20-\x7E]+$
                    type: string
                  maxProperties: 8
                  type: object
                url:
                  maxLength: 2048
                  minLength: 1
                  type: string
              required:
              - url
              - enabled_events
              type: object
        required: true
      responses:
        '201':
          content:
            application/json:
              schema:
                properties:
                  created_at:
                    format: date-time
                    type: string
                  description:
                    type:
                    - string
                    - 'null'
                  enabled:
                    type: boolean
                  enabled_events:
                    items:
                      type: string
                    type: array
                  id:
                    type: string
                  request_header_names:
                    items:
                      type: string
                    type: array
                  signing_secret:
                    type: string
                  url:
                    type: string
                required:
                - id
                - url
                - enabled
                - enabled_events
                - signing_secret
                - created_at
                type: object
          description: Created
        '400':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          description: Validation error
        '401':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          description: 'Missing or invalid API key (code: UNAUTHORIZED)'
        '403':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          description: Forbidden
        '429':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          description: 'Rate limited (code: RATE_LIMITED)'
        '500':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          description: 'Internal error (code: INTERNAL_ERROR)'
        '503':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          description: Temporarily unavailable
      summary: Create a webhook
      tags:
      - Webhooks
  /v1/webhooks/{id}:
    delete:
      operationId: deleteV1WebhooksById
      parameters:
      - in: path
        name: id
        required: true
        schema:
          pattern: ^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$
          type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                properties:
                  status:
                    enum:
                    - deleted
                    type: string
                required:
                - status
                type: object
          description: Success
        '400':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          description: 'Validation error (code: VALIDATION_ERROR)'
        '401':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          description: 'Missing or invalid API key (code: UNAUTHORIZED)'
        '403':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          description: Forbidden
        '404':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          description: Not found
        '429':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          description: 'Rate limited (code: RATE_LIMITED)'
        '500':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          description: 'Internal error (code: INTERNAL_ERROR)'
      summary: Delete a webhook
      tags:
      - Webhooks
    get:
      operationId: getV1WebhooksById
      parameters:
      - in: path
        name: id
        required: true
        schema:
          pattern: ^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$
          type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                properties:
                  consecutive_failures:
                    type: integer
                  created_at:
                    format: date-time
                    type: string
                  description:
                    type:
                    - string
                    - 'null'
                  disabled_at:
                    format: date-time
                    type:
                    - string
                    - 'null'
                  disabled_reason:
                    type:
                    - string
                    - 'null'
                  enabled:
                    type: boolean
                  enabled_events:
                    items:
                      type: string
                    type: array
                  id:
                    type: string
                  last_error:
                    type:
                    - string
                    - 'null'
                  last_failure_at:
                    format: date-time
                    type:
                    - string
                    - 'null'
                  last_success_at:
                    format: date-time
                    type:
                    - string
                    - 'null'
                  request_header_names:
                    items:
                      type: string
                    type: array
                  updated_at:
                    format: date-time
                    type: string
                  url:
                    type: string
                required:
                - id
                - url
                - enabled
                - enabled_events
                - created_at
                - updated_at
                - consecutive_failures
                type: object
          description: Success
        '400':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          description: 'Validation error (code: VALIDATION_ERROR)'
        '401':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          description: 'Missing or invalid API key (code: UNAUTHORIZED)'
        '403':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          description: Forbidden
        '404':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          description: Not found
        '429':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          description: 'Rate limited (code: RATE_LIMITED)'
        '500':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          description: 'Internal error (code: INTERNAL_ERROR)'
      summary: Get a webhook
      tags:
      - Webhooks
    patch:
      operationId: patchV1WebhooksById
      parameters:
      - in: path
        name: id
        required: true
        schema:
          pattern: ^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$
          type: string
      requestBody:
        content:
          application/json:
            schema:
              additionalProperties: false
              properties:
                description:
                  maxLength: 200
                  type:
                  - string
                  - 'null'
                enabled:
                  type: boolean
                enabled_events:
                  items:
                    enum:
                    - message.received
                    - message.delivered
                    - message.bounced
                    - message.quarantined
                    - message.scanner_blocked
                    - attachment.preview.queued
                    - attachment.preview.ready
                    - attachment.preview.blocked
                    - attachment.preview.failed
                    - recipient_blocklist.added
                    - recipient_blocklist.removed
                    - recipient_blocklist.complaint_override
                    - recipient_allowlist.added
                    - recipient_allowlist.removed
                    - mailbox.recipient_policy_changed
                    - recipient_allowlist.blocked_attempt
                    - verified_recipient.confirmed
                    - message.scheduled
                    - message.rescheduled
                    - message.schedule_cancelled
                    - message.dispatch_failed
                    - domain.self_hosted_auth_failed
                    - domain.self_hosted_probe_failed
                    - inbound_sender.blocked
                    - sender_allowlist.added
                    - sender_allowlist.removed
                    - sender_blocklist.added
                    - sender_blocklist.removed
                    - mailbox.sender_policy_changed
                    - legal_hold.applied
                    - legal_hold.released
                    - message.review.queued
                    - message.review.approved
                    - message.review.denied
                    - message.review.expired
                    - message.released
                    - mailbox.policy_changed
                    - trusted_source.granted
                    - trusted_source.revoked
                    - webhook.test
                    type: string
                  type: array
                  uniqueItems: true
                request_headers:
                  additionalProperties:
                    maxLength: 1024
                    minLength: 1
                    pattern: ^[\x20-\x7E]+$
                    type: string
                  maxProperties: 8
                  type:
                  - object
                  - 'null'
                url:
                  maxLength: 2048
                  minLength: 1
                  type: string
              type: object
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                properties:
                  consecutive_failures:
                    type: integer
                  created_at:
                    format: date-time
                    type: string
                  description:
                    type:
                    - string
                    - 'null'
                  disabled_at:
                    format: date-time
                    type:
                    - string
                    - 'null'
                  disabled_reason:
                    type:
                    - string
                    - 'null'
                  enabled:
                    type: boolean
                  enabled_events:
                    items:
                      type: string
                    type: array
                  id:
                    type: string
                  last_error:
                    type:
                    - string
                    - 'null'
                  last_failure_at:
                    format: date-time
                    type:
                    - string
                    - 'null'
                  last_success_at:
                    format: date-time
                    type:
                    - string
                    - 'null'
                  request_header_names:
                    items:
                      type: string
                    type: array
                  updated_at:
                    format: date-time
                    type: string
                  url:
                    type: string
                required:
                - id
                - url
                - enabled
                - enabled_events
                - created_at
                - updated_at
                - consecutive_failures
                type: object
          description: Success
        '400':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          description: Validation error
        '401':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          description: 'Missing or invalid API key (code: UNAUTHORIZED)'
        '403':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          description: Forbidden
        '404':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          description: Not found
        '429':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          description: 'Rate limited (code: RATE_LIMITED)'
        '500':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          description: 'Internal error (code: INTERNAL_ERROR)'
      summary: Update a webhook
      tags:
      - Webhooks
  /v1/webhooks/{id}/deliveries:
    get:
      operationId: getV1WebhooksByIdDeliveries
      parameters:
      - in: path
        name: id
        required: true
        schema:
          pattern: ^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$
          type: string
      - in: query
        name: before_at
        required: false
        schema:
          minLength: 1
          type: string
      - in: query
        name: before_id
        required: false
        schema:
          pattern: ^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$
          type: string
      - in: query
        name: limit
        required: false
        schema:
          pattern: ^[0-9]+$
          type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                properties:
                  deliveries:
                    items:
                      properties:
                        attempt_count:
                          type: integer
                        created_at:
                          format: date-time
                          type: string
                        delivered_at:
                          format: date-time
                          type:
                          - string
                          - 'null'
                        event_type:
                          type: string
                        failed_at:
                          format: date-time
                          type:
                          - string
                          - 'null'
                        http_status:
                          type:
                          - integer
                          - 'null'
                        id:
                          type: string
                        next_retry_at:
                          format: date-time
                          type:
                          - string
                          - 'null'
                        response_preview:
                          type:
                          - string
                          - 'null'
                        status:
                          enum:
                          - pending
                          - delivering
                          - delivered
                          - failed
                          type: string
                      required:
                      - id
                      - event_type
                      - status
                      - attempt_count
                      - created_at
                      type: object
                    type: array
                  has_more:
                    type: boolean
                  next_before_at:
                    format: date-time
                    type: string
                  next_before_id:
                    type: string
                required:
                - deliveries
                - has_more
                type: object
          description: Success
        '400':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          description: Validation error
        '401':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          description: 'Missing or invalid API key (code: UNAUTHORIZED)'
        '403':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          description: Forbidden
        '404':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          description: Not found
        '429':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          description: 'Rate limited (code: RATE_LIMITED)'
        '500':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          description: 'Internal error (code: INTERNAL_ERROR)'
      summary: List webhook deliveries
      tags:
      - Webhooks
  /v1/webhooks/{id}/deliveries/{delivery_id}/retry:
    post:
      operationId: postV1WebhooksByIdDeliveriesByDeliveryIdRetry
      parameters:
      - in: path
        name: id
        required: true
        schema:
          pattern: ^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$
          type: string
      - in: path
        name: delivery_id
        required: true
        schema:
          pattern: ^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$
          type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                properties:
                  delivery_id:
                    type: string
                  status:
                    enum:
                    - pending
                    type: string
                required:
                - delivery_id
                - status
                type: object
          description: Success
        '400':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          description: 'Validation error (code: VALIDATION_ERROR)'
        '401':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          description: 'Missing or invalid API key (code: UNAUTHORIZED)'
        '403':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          description: Forbidden
        '404':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          description: Not found
        '409':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          description: Conflict
        '429':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          description: 'Rate limited (code: RATE_LIMITED)'
        '500':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          description: 'Internal error (code: INTERNAL_ERROR)'
      summary: Retry a failed webhook delivery
      tags:
      - Webhooks
  /v1/webhooks/{id}/rotate-secret:
    post:
      operationId: postV1WebhooksByIdRotateSecret
      parameters:
      - in: path
        name: id
        required: true
        schema:
          pattern: ^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$
          type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                properties:
                  signing_secret:
                    type: string
                required:
                - signing_secret
                type: object
          description: Success
        '400':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          description: 'Validation error (code: VALIDATION_ERROR)'
        '401':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          description: 'Missing or invalid API key (code: UNAUTHORIZED)'
        '403':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          description: Forbidden
        '404':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          description: Not found
        '429':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          description: 'Rate limited (code: RATE_LIMITED)'
        '500':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          description: Internal error
      summary: Rotate a webhook signing secret
      tags:
      - Webhooks
  /v1/webhooks/{id}/test:
    post:
      operationId: postV1WebhooksByIdTest
      parameters:
      - in: path
        name: id
        required: true
        schema:
          pattern: ^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$
          type: string
      requestBody:
        content:
          application/json:
            schema:
              additionalProperties: false
              properties:
                event:
                  enum:
                  - message.delivered
                  - message.bounced
                  - recipient_blocklist.added
                  type: string
              type:
              - object
              - 'null'
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                properties:
                  delivery_id:
                    type: string
                required:
                - delivery_id
                type: object
          description: Success
        '400':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          description: 'Validation error (code: VALIDATION_ERROR)'
        '401':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          description: 'Missing or invalid API key (code: UNAUTHORIZED)'
        '403':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          description: Forbidden
        '404':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          description: Not found
        '409':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          description: Conflict
        '429':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          description: 'Rate limited (code: RATE_LIMITED)'
        '500':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          description: 'Internal error (code: INTERNAL_ERROR)'
      summary: Send a test webhook delivery
      tags:
      - Webhooks
components:
  schemas:
    Error:
      description: Standard error envelope. `code` is a stable machine-readable string.
      properties:
        code:
          type: string
        details:
          additionalProperties: true
          type: object
        error:
          type: string
      required:
      - error
      - code
      type: object
  securitySchemes:
    BearerApiKey:
      description: 'ReplyLayer API key: `Authorization: Bearer rly_live_<public_id>.<secret>`.'
      scheme: bearer
      type: http