> ## Documentation Index
> Fetch the complete documentation index at: /docs/llms.txt
> Use this file to discover all available pages before exploring further.

# List webhook deliveries

> See what was sent to an endpoint and what your server answered.

> [!NOTE]
>
> Needs `webhooks:read`. Every role in the workspace can read them. See [Permissions](/docs/essentials/authentication.md#permissions).

Gives the endpoint's deliveries, newest first, 25 a page, wrapped in `data` with `links` and `meta`. `status=failed` keeps the deliveries that failed or gave up.

A delivery is one event sent to the endpoint. It keeps its last try: the request sent (`request_headers` with the signature, never the secret, and `request_body` as sent, up to its first 64 KB) and what your server answered (`response_status`, the start of `response_body`, and `error` in plain words).

* `pending`: waiting for its first try, or for a retry at `next_attempt_at`.
* `sent`: your server answered `2xx`.
* `failed`: not tried again. Your server gave an answer that isn't retried (a `3xx`, or a `4xx` other than `408` and `429`), the address turned out not to be public, or the endpoint was off.
* `gave_up`: every try failed. A webhook gets 7 tries over about 41 hours; [Delivery and retries](/docs/api-reference/webhooks/overview.md#delivery-and-retries) has the times.

`event_id` is also the `webhook-id` header, the same on every try: use it to drop a request you already handled.

## Errors

| Status | `error` | When | Retry? |
| - | - | - | - |
| 401 | | No API key, or not a valid one. | No: fix the key. |
| 403 | | The key lacks `webhooks:read`, or its user is inactive. | No: grant it in Settings → API. |
| 404 | | No webhook with that id in the workspaces the key can reach. | No. |
| 422 | | `status` isn't `all` or `failed`. | No: fix the request. |
| 429 | | More than 60 requests a minute. | Yes, after `Retry-After` seconds. |

## Related

* [Send a test event](/docs/api-reference/webhooks/test.md): make a delivery to look at.
* [Get a webhook](/docs/api-reference/webhooks/get.md): the endpoint's last 7 days in numbers.


## OpenAPI

````yaml GET /webhooks/{id}/deliveries
openapi: 3.0.3
info:
  title: PostSyncer API
  description: >-
    Post to 12 social networks from your code: posts, media, comments,
    analytics, webhooks and more.
  version: 1.0.0
servers:
  - url: https://postsyncer.com/api/v1
security:
  - bearerAuth: []
tags:
  - name: Workspaces
    description: The workspaces the key can reach.
  - name: Accounts
    description: Connected social accounts, links to connect more, and disconnecting them.
  - name: Posts
    description: Drafts, scheduled and published posts, approvals and a post's history.
  - name: Post settings
    description: A post's auto-plug, comment moderation and contact collection.
  - name: Media
    description: >-
      The media library: file uploads, URL imports, and reading videos and
      social posts' files.
  - name: Folders
    description: Folders that organise the media library.
  - name: Comments
    description: >-
      Comments on your posts: reading, replying, editing, hiding, deleting and
      syncing them.
  - name: Reviews
    description: Google Business Profile reviews and your replies to them.
  - name: Analytics
    description: Workspace, account and post performance.
  - name: Brand
    description: >-
      A workspace's brand: identity, voice, look, accounts, competitors,
      learnings and rules.
  - name: Labels
    description: Labels used to tag posts.
  - name: Campaigns
    description: Campaigns used to group posts.
  - name: Snippets
    description: Saved snippets and hashtag groups to drop into posts.
  - name: Webhooks
    description: Signed webhook endpoints that get your notification events.
  - name: Billing
    description: >-
      The owner's plan, invoices and the links that pay for, change or cancel
      it.
  - name: Team
    description: A workspace's teammates and invitations, and their roles.
  - name: Notifications
    description: >-
      Your bell and notification settings, and the workspace's Slack, Discord
      and Telegram channels.
  - name: Blog-to-social
    description: Blog feeds that turn a workspace's new articles into posts.
  - name: Products
    description: Products the workspace's posts can promote.
  - name: Contacts
    description: People who commented on the workspace's posts, and the lists they are on.
  - name: Profile
    description: 'The key''s user: their name and sign-in email.'
  - name: API keys
    description: 'Your API keys: listing and deleting them.'
  - name: Agent sign-up
    description: >-
      An AI agent signs a person up with a code emailed to them, and gets their
      first key. No key needed.
paths:
  /webhooks/{id}/deliveries:
    get:
      tags:
        - Webhooks
      summary: List webhook deliveries
      description: >-
        Needs `webhooks:read`. Gives an endpoint's deliveries, newest first, 25
        a page, wrapped in `data` with `links` and `meta`. Each keeps the last
        request sent (its signature headers, never the secret) and what your
        server answered. Every role in the workspace can read them. Webhooks
        work on every plan, Free included.
      operationId: listWebhookDeliveries
      parameters:
        - name: id
          in: path
          required: true
          description: The webhook's id.
          schema:
            type: integer
        - name: status
          in: query
          required: false
          description: >-
            `failed` gives the deliveries that failed or gave up; `all` (the
            default) gives every one.
          schema:
            type: string
            enum:
              - all
              - failed
            default: all
        - name: page
          in: query
          required: false
          description: The page, from 1.
          schema:
            type: integer
            minimum: 1
            default: 1
      responses:
        '200':
          description: A page of deliveries.
          content:
            application/json:
              schema:
                type: object
                required:
                  - data
                  - links
                  - meta
                properties:
                  data:
                    type: array
                    items:
                      $ref: '#/components/schemas/WebhookDelivery'
                  links:
                    $ref: '#/components/schemas/PaginationLinks'
                  meta:
                    $ref: '#/components/schemas/PaginationMeta'
              examples:
                default:
                  summary: A sent and a failed test
                  value:
                    data:
                      - id: 913
                        destination_id: 42
                        event_id: 01q9aa8mm0k5r6t1n0xwdq7h3m
                        event_type: webhook.test
                        status: sent
                        attempts: 1
                        response_status: 200
                        response_body: ok
                        error: null
                        duration_ms: 184
                        next_attempt_at: null
                        request_headers:
                          webhook-id: 01q9aa8mm0k5r6t1n0xwdq7h3m
                          webhook-timestamp: '1899795602'
                          webhook-signature: v1,v8UaC0rxuMAGslYwf+obcE5x0vE2HQBAmQAKT/r3/jo=
                          content-type: application/json
                        request_body: >-
                          {"type":"webhook.test","id":"01q9aa8mm0k5r6t1n0xwdq7h3m","timestamp":"2030-03-15T09:00:00+00:00","workspace_id":12,"data":{"message":"This
                          is a test event from PostSyncer."}}
                        created_at: '2030-03-15T09:00:00+00:00'
                        updated_at: '2030-03-15T09:00:02+00:00'
                      - id: 911
                        destination_id: 42
                        event_id: 01q98nm2c0p3w8z1q6t9rm4xk7
                        event_type: webhook.test
                        status: failed
                        attempts: 1
                        response_status: 404
                        response_body: Not Found
                        error: Your server answered 404.
                        duration_ms: 97
                        next_attempt_at: null
                        request_headers:
                          webhook-id: 01q98nm2c0p3w8z1q6t9rm4xk7
                          webhook-timestamp: '1899740401'
                          webhook-signature: v1,2ZcxAQZCWG7R9ZVUwEtunAmctC/vEa318gdDF9zrOUs=
                          content-type: application/json
                        request_body: >-
                          {"type":"webhook.test","id":"01q98nm2c0p3w8z1q6t9rm4xk7","timestamp":"2030-03-14T17:40:00+00:00","workspace_id":12,"data":{"message":"This
                          is a test event from PostSyncer."}}
                        created_at: '2030-03-14T17:40:00+00:00'
                        updated_at: '2030-03-14T17:40:01+00:00'
                    links:
                      first: >-
                        https://postsyncer.com/api/v1/webhooks/42/deliveries?page=1
                      last: >-
                        https://postsyncer.com/api/v1/webhooks/42/deliveries?page=1
                      prev: null
                      next: null
                    meta:
                      current_page: 1
                      from: 1
                      last_page: 1
                      links:
                        - url: null
                          label: '&laquo; Previous'
                          page: null
                          active: false
                        - url: >-
                            https://postsyncer.com/api/v1/webhooks/42/deliveries?page=1
                          label: '1'
                          page: 1
                          active: true
                        - url: null
                          label: Next &raquo;
                          page: null
                          active: false
                      path: https://postsyncer.com/api/v1/webhooks/42/deliveries
                      per_page: 25
                      to: 2
                      total: 2
                failed:
                  summary: With status=failed
                  value:
                    data:
                      - id: 911
                        destination_id: 42
                        event_id: 01q98nm2c0p3w8z1q6t9rm4xk7
                        event_type: webhook.test
                        status: failed
                        attempts: 1
                        response_status: 404
                        response_body: Not Found
                        error: Your server answered 404.
                        duration_ms: 97
                        next_attempt_at: null
                        request_headers:
                          webhook-id: 01q98nm2c0p3w8z1q6t9rm4xk7
                          webhook-timestamp: '1899740401'
                          webhook-signature: v1,2ZcxAQZCWG7R9ZVUwEtunAmctC/vEa318gdDF9zrOUs=
                          content-type: application/json
                        request_body: >-
                          {"type":"webhook.test","id":"01q98nm2c0p3w8z1q6t9rm4xk7","timestamp":"2030-03-14T17:40:00+00:00","workspace_id":12,"data":{"message":"This
                          is a test event from PostSyncer."}}
                        created_at: '2030-03-14T17:40:00+00:00'
                        updated_at: '2030-03-14T17:40:01+00:00'
                    links:
                      first: >-
                        https://postsyncer.com/api/v1/webhooks/42/deliveries?status=failed&page=1
                      last: >-
                        https://postsyncer.com/api/v1/webhooks/42/deliveries?status=failed&page=1
                      prev: null
                      next: null
                    meta:
                      current_page: 1
                      from: 1
                      last_page: 1
                      links:
                        - url: null
                          label: '&laquo; Previous'
                          page: null
                          active: false
                        - url: >-
                            https://postsyncer.com/api/v1/webhooks/42/deliveries?status=failed&page=1
                          label: '1'
                          page: 1
                          active: true
                        - url: null
                          label: Next &raquo;
                          page: null
                          active: false
                      path: https://postsyncer.com/api/v1/webhooks/42/deliveries
                      per_page: 25
                      to: 1
                      total: 1
        '401':
          $ref: '#/components/responses/Unauthorized401'
        '403':
          description: The key lacks `webhooks:read`, or its user is inactive.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                missing_permission:
                  summary: The key lacks webhooks:read
                  value:
                    message: >-
                      This API key does not have the "webhooks:read" permission.
                      Edit the key in PostSyncer under Settings → API to grant
                      it.
                inactive_account:
                  summary: The key's user is inactive
                  value:
                    message: Your account is inactive.
        '404':
          $ref: '#/components/responses/NotFound404'
        '422':
          description: '`status` isn''t `all` or `failed`.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ValidationError'
              examples:
                status:
                  summary: Not a status
                  value:
                    message: The selected status is invalid.
                    errors:
                      status:
                        - The selected status is invalid.
        '429':
          $ref: '#/components/responses/RateLimited429'
components:
  schemas:
    WebhookDelivery:
      type: object
      description: 'One event sent to an endpoint: the last request and what came back.'
      required:
        - id
        - destination_id
        - event_id
        - event_type
        - status
        - attempts
        - response_status
        - response_body
        - error
        - duration_ms
        - next_attempt_at
        - request_headers
        - request_body
        - created_at
        - updated_at
      properties:
        id:
          type: integer
        destination_id:
          type: integer
          description: The webhook's id.
        event_id:
          type: string
          description: The event's id, also the `webhook-id` header. The same on every try.
        event_type:
          type: string
          description: The event, like `post.failed`.
        status:
          type: string
          enum:
            - pending
            - sent
            - failed
            - gave_up
          description: >-
            `pending` waits for a try or a retry, `sent` got a 2xx, `failed`
            isn't tried again, `gave_up` used every retry. A webhook gets 7
            tries over about 41 hours.
        attempts:
          type: integer
          description: The tries so far.
        response_status:
          type: integer
          nullable: true
          description: >-
            The HTTP status your server answered on the last try; null when no
            answer came.
        response_body:
          type: string
          nullable: true
          description: The start of your server's answer, up to 1000 characters.
        error:
          type: string
          nullable: true
          description: What went wrong on the last try, in plain words.
        duration_ms:
          type: integer
          nullable: true
          description: How long the last try took.
        next_attempt_at:
          type: string
          format: date-time
          nullable: true
          description: >-
            When the next try is due, for a `pending` delivery whose last try
            failed; null otherwise.
        request_headers:
          type: object
          nullable: true
          additionalProperties:
            type: string
          description: >-
            The headers of the last request: `webhook-id`, `webhook-timestamp`,
            `webhook-signature` and `content-type`. Null before the first try.
        request_body:
          type: string
          nullable: true
          description: >-
            The JSON body of the last request, as sent, up to its first 64 KB.
            Null before the first try.
        created_at:
          type: string
          format: date-time
        updated_at:
          type: string
          format: date-time
    PaginationLinks:
      type: object
      description: Links to the list's first, last, previous and next pages.
      required:
        - first
        - last
        - prev
        - next
      properties:
        first:
          type: string
        last:
          type: string
        prev:
          type: string
          nullable: true
          description: Null on the first page.
        next:
          type: string
          nullable: true
          description: Null on the last page.
    PaginationMeta:
      type: object
      description: Where this page sits in the whole list.
      required:
        - current_page
        - from
        - last_page
        - links
        - path
        - per_page
        - to
        - total
      properties:
        current_page:
          type: integer
        from:
          type: integer
          nullable: true
          description: >-
            The position of this page's first item in the list; null when the
            page is empty.
        last_page:
          type: integer
        links:
          type: array
          description: 'A pager: previous, the page numbers, next.'
          items:
            type: object
            required:
              - url
              - label
              - active
            properties:
              url:
                type: string
                nullable: true
              label:
                type: string
              page:
                type: integer
                nullable: true
              active:
                type: boolean
        path:
          type: string
          description: The list's URL without the query.
        per_page:
          type: integer
        to:
          type: integer
          nullable: true
          description: >-
            The position of this page's last item in the list; null when the
            page is empty.
        total:
          type: integer
          description: Items in the whole list.
    Error:
      type: object
      description: >-
        An error answer. Every one has `message`, in plain words; some add an
        `error` code and fields of their own.
      required:
        - message
      properties:
        message:
          type: string
          description: What went wrong and what to do about it.
        error:
          type: string
          description: >-
            A code a few errors add, such as `rate_limited`. See [Handle
            errors](/essentials/error-handling#answers-with-an-error-code).
    ValidationError:
      type: object
      description: '422: the request didn''t pass validation, and nothing changed.'
      required:
        - message
        - errors
      properties:
        message:
          type: string
          description: >-
            The first error and, when there are more, how many: `(and 1 more
            error)`, `(and 2 more errors)`.
        errors:
          type: object
          description: >-
            The messages, by field. A field inside a list is named with dots:
            `accounts.0.id`.
          additionalProperties:
            type: array
            items:
              type: string
  responses:
    Unauthorized401:
      description: No API key, or not a valid one.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          examples:
            unauthenticated:
              summary: No valid API key
              value:
                message: Unauthenticated.
    NotFound404:
      description: Nothing with that id in the workspaces the key can reach.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          examples:
            not_found:
              summary: Not found
              value:
                message: Not found.
    RateLimited429:
      description: >-
        More than 60 requests in a minute from this key's user (the API and the
        MCP server share the count). Wait `Retry-After` seconds.
      headers:
        Retry-After:
          description: Seconds until requests are allowed again.
          schema:
            type: integer
        X-RateLimit-Limit:
          description: Requests allowed a minute.
          schema:
            type: integer
        X-RateLimit-Remaining:
          description: Requests left this minute.
          schema:
            type: integer
        X-RateLimit-Reset:
          description: When requests are allowed again, as a Unix timestamp.
          schema:
            type: integer
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          examples:
            too_many_attempts:
              summary: Too many requests
              value:
                message: Too Many Attempts.
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.