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

# Message history

> Retrieve the full message history for a specific conversation.



## OpenAPI

````yaml openapi.json POST /api/v1/inbox/message-history
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/inbox/message-history:
    post:
      tags:
        - Inbox
      summary: Get message history
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/GetMessageHistory'
      responses:
        '200':
          description: Message history
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InboxMessageHistoryResponse'
        '401':
          description: Error response
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                required:
                  - error
      security:
        - ApiKeyAuth: []
components:
  schemas:
    GetMessageHistory:
      type: object
      properties:
        platform:
          type: string
          enum:
            - ONLYFANS
            - FANSLY
            - FANVUE
            - MESSENGER
            - FACEBOOK
            - INSTAGRAM
            - MASTODON
            - BLUESKY
            - TWITTER
          description: Social media platform that supports messaging
          example: TWITTER
        channelId:
          type: string
          description: Channel ID
          example: ch_abc123
        platformId:
          type: string
          description: Platform user ID
          example: user_123
        chatId:
          type: string
          description: Chat/Conversation ID
          example: chat_xyz789
        onlyfansFilterArgs:
          type: object
          properties:
            limit:
              type: number
              default: 10
            order:
              type: string
              enum:
                - desc
                - asc
              default: desc
            id:
              type: string
            skip_users:
              type: string
              default: all
          description: OnlyFans filter args
        fanslyFilterArgs:
          type: object
          properties:
            limit:
              type: number
              default: 25
            before:
              type: string
            after:
              type: string
            groupId:
              type: string
            ngsw-bypass:
              type: boolean
              default: true
          description: Fansly filter args
        fanvueFilterArgs:
          type: object
          properties:
            page:
              type: number
            size:
              type: number
          description: Fanvue filter args
        filters:
          type: object
          properties:
            offset:
              type: number
              default: 0
            limit:
              type: number
              maximum: 100
              default: 50
            cursor:
              type: string
            sort:
              type: string
              enum:
                - desc
                - asc
              default: desc
            start:
              type:
                - string
                - 'null'
              format: date-time
            end:
              type:
                - string
                - 'null'
              format: date-time
            channelIds:
              type:
                - array
                - 'null'
              items:
                type: string
          default:
            offset: 0
            limit: 50
            sort: desc
            start: '2026-11-17T06:00:00.000Z'
            end: '2026-11-24T05:59:59.999Z'
          description: Message filters
        cursor:
          type:
            - string
            - 'null'
          description: Pagination cursor
      required:
        - platform
        - channelId
        - platformId
        - chatId
    InboxMessageHistoryResponse:
      type: object
      properties:
        data:
          type: object
          properties:
            messages:
              type: array
              items:
                $ref: '#/components/schemas/InboxMessage'
              description: Message history
            nextCursor:
              type:
                - string
                - 'null'
              description: Pagination cursor
            totalCount:
              type: number
              description: Total messages
          required:
            - messages
        success:
          type: boolean
          description: Success status
        error:
          type: string
          description: Error message
      required:
        - data
        - success
    InboxMessage:
      type: object
      properties:
        id:
          type: string
          description: Message ID
        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
        platformId:
          type: string
          description: Platform-specific ID
        text:
          type:
            - string
            - 'null'
          description: Message text
        media:
          type: array
          items:
            type: object
            properties:
              id:
                type: string
              url:
                type: string
              type:
                type: string
            required:
              - id
              - url
              - type
          description: Media attachments
        sentBy:
          allOf:
            - $ref: '#/components/schemas/InboxUser'
            - description: Sender info
        timestamp:
          type: string
          format: date-time
          description: Message timestamp
        isDeleted:
          type: boolean
          description: Deleted status
      required:
        - id
        - platform
        - platformId
        - text
        - sentBy
        - timestamp
    InboxUser:
      type:
        - object
        - 'null'
      properties:
        data:
          type: object
          properties:
            id:
              type: string
              description: User ID
              example: usr_abc123
            username:
              type: string
              description: Username
              example: johndoe
            displayName:
              type:
                - string
                - 'null'
              description: Display name
              example: John Doe
            profileImageUrl:
              type:
                - string
                - 'null'
              description: Profile image URL
            isVerified:
              type: boolean
              description: Verified status
            followers:
              type: number
              description: Followers count
          required:
            - id
            - username
            - displayName
            - profileImageUrl
          description: User data
        success:
          type: boolean
          description: Success status
        error:
          type: string
          description: Error message
      required:
        - data
        - success
      description: User info
  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.