> ## 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.

# Look up posts by id

> Return up to 100 root posts by post ID or by externalId, in the same shape as webhook events. Deleted posts are returned with state DELETED; unknown IDs are omitted.



## OpenAPI

````yaml /api-reference/openapi.json get /public/v1/workspaces/{workspaceId}/posts/lookup
openapi: 3.0.0
info:
  title: PostlyBee Public API
  description: >-
    Connect accounts, create and manage social posts, inspect analytics and
    notifications, and upload media 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: Workspaces
    description: List workspaces available to the API token.
  - 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: Analytics
    description: Inspect account and published-post performance.
  - name: Notifications
    description: List workspace notifications.
  - name: Utilities
    description: Verify access and find posting slots.
paths:
  /public/v1/workspaces/{workspaceId}/posts/lookup:
    get:
      tags:
        - Posts
      summary: Look up posts by id
      description: >-
        Return up to 100 root posts by post ID or by externalId, in the same
        shape as webhook events. Deleted posts are returned with state DELETED;
        unknown IDs are omitted.
      operationId: lookupPosts
      parameters:
        - name: ids
          required: false
          in: query
          description: Comma-separated root post IDs. Use either ids or externalIds.
          schema:
            type: string
        - name: externalIds
          required: false
          in: query
          description: Comma-separated externalId values. Use either ids or externalIds.
          schema:
            example: rbdp_123,rbdp_124
            type: string
        - name: workspaceId
          required: true
          in: path
          description: Workspace ID returned by GET /public/v1/workspaces.
          schema: {}
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PublicApiPostLookupResponseDto'
        '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:
    PublicApiPostLookupResponseDto:
      type: object
      properties:
        posts:
          type: array
          items:
            $ref: '#/components/schemas/PublicApiPostSnapshotDto'
      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
        code:
          type: string
          example: invalid_request
        statusCode:
          type: number
          example: 400
      required:
        - message
        - code
        - statusCode
    PublicApiErrorDto:
      type: object
      properties:
        statusCode:
          type: number
          example: 401
        code:
          type: string
          description: >-
            Stable error code, for example unauthorized, forbidden,
            insufficient_scope, not_found, invalid_request, quota_exceeded,
            plan_limit, integration_disconnected, external_id_conflict,
            idempotency_key_reused, idempotency_in_progress, rate_limited.
          example: unauthorized
        message:
          type: string
          example: Invalid API token
      required:
        - statusCode
        - code
        - message
    PublicApiPostSnapshotDto:
      type: object
      properties:
        id:
          type: string
          example: clz8v2f6r0001k9p8t5m3w7q1
        externalId:
          type: string
          nullable: true
          example: rbdp_123
        group:
          type: string
          nullable: true
          example: f2a1d1f4-0c4e-4d1e-9a51-2b8f3f0e6c11
        state:
          type: string
          enum:
            - DRAFT
            - QUEUE
            - PUBLISHING
            - PUBLISHED
            - ERROR
            - DELETED
          example: PUBLISHED
        publishDate:
          type: string
          example: '2026-09-01T09:00:00.000Z'
        integration:
          nullable: true
          allOf:
            - $ref: '#/components/schemas/PublicApiPostSnapshotIntegrationDto'
        releaseURL:
          type: string
          nullable: true
          example: https://www.linkedin.com/feed/update/urn:li:share:1
        releaseId:
          type: string
          nullable: true
          example: urn:li:share:1
        error:
          type: string
          nullable: true
          example: null
      required:
        - id
        - externalId
        - group
        - state
        - publishDate
        - integration
        - releaseURL
        - releaseId
        - error
    PublicApiPostSnapshotIntegrationDto:
      type: object
      properties:
        id:
          type: string
          example: clz8tq4ka0001m8p7y6n5r3d2
        providerIdentifier:
          type: string
          example: linkedin
        name:
          type: string
          example: Acme Inc.
      required:
        - id
        - providerIdentifier
        - name
  securitySchemes:
    public-api:
      scheme: bearer
      bearerFormat: API token
      type: http
      description: >-
        User API token from Settings → Public API. Access is restricted by
        scopes and workspace selection.

````

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