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

# List posts

> List workspace posts within an inclusive UTC date range.



## OpenAPI

````yaml /api-reference/openapi.json get /public/v1/posts
openapi: 3.0.0
info:
  title: PostlyBee Public API
  description: >-
    Create and manage social posts, upload media, and discover connected
    accounts with the PostlyBee Public API.
  version: 1.0.0
  contact:
    name: PostlyBee Support
    url: https://postlybee.com
    email: support@postlybee.com
  license:
    name: Proprietary
    url: https://postlybee.com/terms
servers:
  - url: https://api.postlybee.com
    description: Production
security: []
tags:
  - name: Posts
    description: Create, list, update, and delete social posts.
  - name: Media
    description: Upload media and use enabled video generators.
  - name: Accounts
    description: Discover connected social accounts.
  - name: Utilities
    description: Verify access and find posting slots.
paths:
  /public/v1/posts:
    get:
      tags:
        - Posts
      summary: List posts
      description: List workspace posts within an inclusive UTC date range.
      operationId: listPosts
      parameters:
        - name: customer
          required: false
          in: query
          description: Only return posts belonging to this customer ID.
          schema: {}
        - name: endDate
          required: true
          in: query
          description: Inclusive end of the UTC reporting range.
          schema:
            example: '2026-09-30T23:59:59.999Z'
        - name: startDate
          required: true
          in: query
          description: Inclusive start of the UTC reporting range.
          schema:
            example: '2026-09-01T00:00:00.000Z'
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PublicApiPostsResponseDto'
        '400':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PublicApiValidationErrorDto'
        '401':
          description: The bearer token is missing or invalid.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PublicApiErrorDto'
        '429':
          description: Hourly API limit exceeded.
      security:
        - public-api: []
components:
  schemas:
    PublicApiPostsResponseDto:
      type: object
      properties:
        posts:
          type: array
          items:
            $ref: '#/components/schemas/PublicApiPostDto'
      required:
        - posts
    PublicApiValidationErrorDto:
      type: object
      properties:
        message:
          oneOf:
            - type: string
              example: At least one post is required
            - type: array
              items:
                type: string
              example:
                - date must be a valid ISO 8601 date string
        error:
          type: string
          example: Bad Request
        statusCode:
          type: number
          example: 400
      required:
        - message
    PublicApiErrorDto:
      type: object
      properties:
        msg:
          type: string
          example: Invalid API key
      required:
        - msg
    PublicApiPostDto:
      type: object
      properties:
        id:
          type: string
          example: clz8v2f6r0001k9p8t5m3w7q1
        state:
          type: string
          example: QUEUE
        publishDate:
          type: string
          example: '2026-09-01T09:00:00.000Z'
        content:
          type: string
          example: A scheduled update from PostlyBee.
        integrationId:
          type: string
          example: clz8tq4ka0001m8p7y6n5r3d2
        integration:
          type: object
          additionalProperties: true
          description: The connected social account associated with the post.
        tags:
          type: array
          items:
            type: object
      required:
        - id
        - state
        - publishDate
        - content
        - integrationId
  securitySchemes:
    public-api:
      scheme: bearer
      bearerFormat: API key
      type: http
      description: Workspace API key from Settings → Public API.

````