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

> ## Agent Instructions
> Postploy's MCP server for posting is https://api.postploy.com/mcp and signs in with OAuth. The REST API base URL is https://api.postploy.com/public/v1 and takes an API key as a Bearer token. The API calls channels accounts.

# List deliveries

> The endpoint's last 50 deliveries, newest first, and how each went. Deliveries are kept for 30 days.



## OpenAPI

````yaml /openapi.yaml get /webhooks/{id}/deliveries
openapi: 3.1.0
info:
  title: Postploy API
  version: '1'
  description: Schedule and manage social media posts in your Postploy team.
  contact:
    name: Postploy support
    email: support@postploy.com
servers:
  - url: https://api.postploy.com/public/v1
security:
  - apiKey: []
tags:
  - name: Channels
  - name: Posts
  - name: Approvals
  - name: Media
  - name: Trash
  - name: Webhooks
paths:
  /webhooks/{id}/deliveries:
    parameters:
      - $ref: '#/components/parameters/WebhookId'
    get:
      tags:
        - Webhooks
      summary: List deliveries
      description: >-
        The endpoint's last 50 deliveries, newest first, and how each went.
        Deliveries are kept for 30 days.
      operationId: listDeliveries
      responses:
        '200':
          description: Recent deliveries.
          content:
            application/json:
              schema:
                type: object
                required:
                  - data
                properties:
                  data:
                    type: array
                    items:
                      $ref: '#/components/schemas/Delivery'
              example:
                data:
                  - id: 2e3f4a5b-6c7d-4e8f-9a0b-1c2d3e4f5a6b
                    event: post.published
                    status: delivered
                    attempts: 1
                    responseStatus: 200
                    error: null
                    createdAt: '2030-01-15T09:00:04.000Z'
                    deliveredAt: '2030-01-15T09:00:04.000Z'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          $ref: '#/components/responses/NotFound'
        '429':
          $ref: '#/components/responses/TooManyRequests'
components:
  parameters:
    WebhookId:
      name: id
      in: path
      required: true
      description: The endpoint's id.
      schema:
        type: string
        format: uuid
  schemas:
    Delivery:
      type: object
      required:
        - id
        - event
        - status
        - attempts
        - responseStatus
        - error
        - createdAt
        - deliveredAt
      properties:
        id:
          type: string
          format: uuid
          description: The same as the `Postploy-Delivery` header.
        event:
          type: string
        status:
          type: string
          enum:
            - pending
            - delivered
            - failed
        attempts:
          type: integer
        responseStatus:
          type:
            - integer
            - 'null'
          description: The status your endpoint answered with last.
        error:
          type:
            - string
            - 'null'
        createdAt:
          type: string
          format: date-time
        deliveredAt:
          type:
            - string
            - 'null'
          format: date-time
    Error:
      type: object
      required:
        - statusCode
        - message
        - errors
        - timestamp
        - route
      properties:
        statusCode:
          type: integer
        message:
          type: string
          description: What went wrong, in plain words. Safe to show to people.
        errors:
          type:
            - array
            - 'null'
          description: Every problem, when there's more than one place to look.
          items:
            type: object
            properties:
              message:
                type: string
              path:
                type: array
                description: Where the problem is, such as `["posts", 0, "scheduledAt"]`.
                items:
                  type:
                    - string
                    - integer
              cause:
                type: string
              code:
                type: string
                description: >-
                  On plan limits, `PLATFORM_LIMIT_REACHED` or
                  `TOTAL_LIMIT_REACHED`.
              platform:
                type: string
        timestamp:
          type: string
          format: date-time
        route:
          type: string
  responses:
    Unauthorized:
      description: The API key is missing, unknown or revoked.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            statusCode: 401
            message: Invalid API key
            errors: null
            timestamp: '2030-01-10T12:00:00.000Z'
            route: /public/v1/accounts
    Forbidden:
      description: Your role in the team doesn't allow this.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    NotFound:
      description: It doesn't exist, or you can't see it.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    TooManyRequests:
      description: >-
        More than 120 requests a minute to this endpoint. All of a person's keys
        count together. Wait the number of seconds in `Retry-After-caller`, then
        try again.
      headers:
        Retry-After-caller:
          description: Seconds to wait before trying again.
          schema:
            type: integer
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  securitySchemes:
    apiKey:
      type: http
      scheme: bearer
      description: >-
        An API key from **Settings › AI apps & API** in Postploy. Keys start
        with `ppk_`.

````

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