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

# Get a post

> The post and each channel's status, live URL, error and latest metrics.



## OpenAPI

````yaml /openapi.json get /posts/{id}
openapi: 3.1.0
info:
  title: Postbase API
  version: 1.0.0
  description: >-
    Schedule and manage social posts on X, LinkedIn, Bluesky, Mastodon and
    YouTube. Authenticate with an API key from Postbase → Developers, sent as
    `Authorization: Bearer pb_live_…`.
  contact:
    url: https://www.postbase.so
  license:
    name: AGPL-3.0
    identifier: AGPL-3.0-only
servers:
  - url: https://www.postbase.so/api/v1
security:
  - bearerAuth: []
tags:
  - name: Posts
  - name: Media
  - name: Analytics
  - name: Webhooks
  - name: Channels
  - name: Account
paths:
  /posts/{id}:
    get:
      tags:
        - Posts
      summary: Get a post
      description: The post and each channel's status, live URL, error and latest metrics.
      operationId: getPost
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
            format: uuid
      responses:
        '200':
          description: The post
          content:
            application/json:
              schema:
                type: object
                properties:
                  post:
                    $ref: '#/components/schemas/Post'
        '401':
          description: Missing or invalid API key
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: Not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Rate limited
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  schemas:
    Post:
      type: object
      properties:
        id:
          type: string
          format: uuid
        status:
          type: string
          enum:
            - draft
            - scheduled
            - publishing
            - published
            - failed
        body:
          type: string
        thread:
          type: array
          items:
            type: string
        scheduled_at:
          type:
            - string
            - 'null'
          format: date-time
        created_at:
          type: string
          format: date-time
        media:
          type: array
          items:
            type: object
            properties:
              url:
                type: string
                format: uri
              type:
                type: string
        channels:
          type: array
          items:
            $ref: '#/components/schemas/PostChannel'
        summary:
          type: object
          properties:
            published:
              type: integer
            failed:
              type: integer
            pending:
              type: integer
        warning:
          type: string
      required:
        - id
        - status
        - channels
    Error:
      type: object
      properties:
        error:
          type: string
          description: A readable message
        code:
          type: string
          description: A stable code, e.g. not_found
      required:
        - error
    PostChannel:
      type: object
      properties:
        channel_id:
          type: string
          format: uuid
        platform:
          type:
            - string
            - 'null'
        handle:
          type:
            - string
            - 'null'
        status:
          type: string
          enum:
            - draft
            - scheduled
            - publishing
            - published
            - failed
        url:
          type:
            - string
            - 'null'
          format: uri
          description: The live post, once published
        error:
          type:
            - string
            - 'null'
          description: Why it failed
        warning:
          type:
            - string
            - 'null'
          description: It published, with something to know
        retry_at:
          type:
            - string
            - 'null'
          format: date-time
          description: When Postbase will retry a failed channel on its own
        body:
          type:
            - string
            - 'null'
          description: This channel's own text, if any
        metrics:
          type:
            - object
            - 'null'
          additionalProperties:
            type: number
          description: Latest likes, impressions, etc.
      required:
        - channel_id
        - status
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: A pb_live_ API key

````

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