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

# Get a post

> Retrieve a specific post by its ID.



## OpenAPI

````yaml openapi.json GET /api/v1/posts/{id}
openapi: 3.1.0
info:
  title: Posttu API
  version: 1.0.0
  description: >-
    Posttu V1 REST API — Workflow automation, social-media post management,
    inbox, tags, and calendar.
servers:
  - url: https://posttu.com
    description: Production
security: []
paths:
  /api/v1/posts/{id}:
    get:
      tags:
        - Posts
      summary: Get a post by ID
      parameters:
        - schema:
            type: string
            description: Post ID
            example: post_abc123
          required: true
          description: Post ID
          name: postId
          in: path
        - schema:
            type: boolean
            default: false
            description: Get all posts in multi-post
            example: false
          required: false
          description: Get all posts in multi-post
          name: isMultiPost
          in: path
      responses:
        '200':
          description: Post details
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PostGetResponse'
        '401':
          description: Error response
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                required:
                  - error
      security:
        - ApiKeyAuth: []
components:
  schemas:
    PostGetResponse:
      type: object
      properties:
        id:
          type: string
          description: Post ID
          example: post_abc123
        text:
          type:
            - string
            - 'null'
          description: Post text content
          example: Hello world!
        richText:
          type:
            - string
            - 'null'
          description: >-
            Platform-native rich text content (Reddit Snoomark Markdown, X
            Unicode-styled text, Fansly custom markup, or OnlyFans <p> m-editor
            HTML)
        platform:
          type: string
          enum:
            - TWITTER
            - INSTAGRAM
            - REDDIT
            - ONLYFANS
            - FANSLY
            - FANVUE
            - TIKTOK
            - REDGIFS
            - THREADS
            - SNAPCHAT
            - BLUESKY
            - YOUTUBE
            - LINKEDIN
            - FACEBOOK
            - PINTEREST
            - MESSENGER
            - SLACK
            - TELEGRAM
            - DISCORD
            - GOOGLE_BUSINESS
            - MASTODON
            - HACKERNEWS
            - SUBSTACK
          description: Platform
          example: TWITTER
        channelId:
          type: string
          description: Channel ID
        scheduledFor:
          type:
            - string
            - 'null'
          format: date-time
          description: Scheduled timestamp
          example: '2024-01-15T10:00:00.000Z'
        postStatus:
          type: string
          description: Post status
          example: APPROVED
        postType:
          type:
            - string
            - 'null'
          description: Post type
        isNsfw:
          type: boolean
          description: NSFW content
          example: false
        media:
          type: array
          items:
            $ref: '#/components/schemas/PostMedia'
          description: Media attachments
        tags:
          type: array
          items:
            $ref: '#/components/schemas/PostTag'
          description: Post tags
        channel:
          $ref: '#/components/schemas/PostChannel'
        approvedBy:
          type: array
          items:
            $ref: '#/components/schemas/PostApprovedBy'
          description: Approved by users
        assignedApprovers:
          type: array
          items:
            $ref: '#/components/schemas/PostAssignedApprover'
          description: Assigned approvers
        createdAt:
          type: string
          format: date-time
          description: Creation timestamp
        updatedAt:
          type: string
          format: date-time
          description: Last update timestamp
      required:
        - id
        - text
        - platform
        - channelId
        - scheduledFor
        - postStatus
        - isNsfw
        - media
        - tags
        - channel
        - createdAt
        - updatedAt
    PostMedia:
      type: object
      properties:
        id:
          type: string
          description: Media ID
          example: media_abc123
        width:
          type:
            - number
            - 'null'
          description: Media width
          example: 1920
        height:
          type:
            - number
            - 'null'
          description: Media height
          example: 1080
        storageId:
          type: string
          description: Storage ID
        url:
          type: string
          description: Media URL
        mime:
          type:
            - string
            - 'null'
          description: MIME type
          example: image/jpeg
        durationSeconds:
          type:
            - number
            - 'null'
          description: Duration for video
          example: 30
        createdAt:
          type: string
          format: date-time
          description: Creation timestamp
      required:
        - id
        - width
        - height
        - storageId
        - url
        - mime
        - createdAt
    PostTag:
      type: object
      properties:
        id:
          type: string
          description: Tag ID
          example: tag_abc123
        name:
          type: string
          description: Tag name
          example: Important
        color:
          type: string
          description: Hex color
          example: '#FF5733'
      required:
        - id
        - name
        - color
    PostChannel:
      type:
        - object
        - 'null'
      properties:
        id:
          type: string
          description: Channel ID
          example: ch_xyz789
        username:
          type: string
          description: Channel username
          example: johndoe
        displayName:
          type:
            - string
            - 'null'
          description: Display name
          example: John Doe
        platform:
          type: string
          enum:
            - TWITTER
            - INSTAGRAM
            - REDDIT
            - ONLYFANS
            - FANSLY
            - FANVUE
            - TIKTOK
            - REDGIFS
            - THREADS
            - SNAPCHAT
            - BLUESKY
            - YOUTUBE
            - LINKEDIN
            - FACEBOOK
            - PINTEREST
            - MESSENGER
            - SLACK
            - TELEGRAM
            - DISCORD
            - GOOGLE_BUSINESS
            - MASTODON
            - HACKERNEWS
            - SUBSTACK
          description: Platform
          example: TWITTER
        profileImgUrl:
          type:
            - string
            - 'null'
          description: Profile image URL
        platformId:
          type: string
          description: Platform-specific ID
      required:
        - id
        - username
        - displayName
        - platform
        - profileImgUrl
        - platformId
      description: Channel info
    PostApprovedBy:
      type: object
      properties:
        id:
          type: string
          description: Approval ID
        userId:
          type: string
          description: User ID
        user:
          type: object
          properties:
            firstName:
              type: string
              description: First name
              example: Jane
            lastName:
              type: string
              description: Last name
              example: Doe
            profileImage:
              type:
                - string
                - 'null'
              description: Profile image
          required:
            - firstName
            - lastName
            - profileImage
          description: User info
      required:
        - id
        - userId
        - user
    PostAssignedApprover:
      type: object
      properties:
        id:
          type: string
          description: Assignment ID
        userId:
          type: string
          description: Approver user ID
        user:
          type: object
          properties:
            firstName:
              type: string
              description: First name
            lastName:
              type: string
              description: Last name
            profileImage:
              type:
                - string
                - 'null'
              description: Profile image
          required:
            - firstName
            - lastName
            - profileImage
          description: Approver user info
      required:
        - id
        - userId
        - user
  securitySchemes:
    ApiKeyAuth:
      type: http
      scheme: bearer
      description: 'Pass your API key via the Authorization header: `Bearer <api-key>`'

````

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