> ## 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 Fansly chat messages

> Fetches the message history of a chat group with cursor pagination via Posttu's Fansly REST API (POST /api/v1/fansly/conversations/message) and MCP server.

> [!NOTE]
>
> Looking for a unified API across all platforms? Posttu also provides a centralized [Inbox API](https://docs.posttu.com/api-reference/inbox/overview.md) (`/api/v1/inbox/*`) supporting comments, direct messages, replies, likes, and moderation in a single endpoint.


## OpenAPI

````yaml openapi.json POST /api/v1/fansly/conversations/message
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/fansly/conversations/message:
    post:
      tags:
        - Fansly
      summary: Get Fansly chat messages
      description: |-
        Fetches the message history of a chat group with cursor pagination.
        Requires API key scope: `fansly:read`.
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/FanslyMessagesUnreadApiInput'
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/FanslyChatMessagesResponse'
        '401':
          description: Error response
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                required:
                  - error
      security:
        - ApiKeyAuth: []
components:
  schemas:
    FanslyMessagesUnreadApiInput:
      type: object
      properties:
        channelId:
          type: string
          description: Fansly channel ID
          example: ch_fansly123
        limit:
          type: number
          default: 25
        before:
          type: string
        after:
          type: string
        groupId:
          type: string
        ngsw-bypass:
          type: boolean
          default: true
      required:
        - channelId
    FanslyChatMessagesResponse:
      type: object
      properties:
        success:
          type: boolean
          description: Success status
        data:
          $ref: '#/components/schemas/FanslyGetMessage'
      required:
        - success
        - data
    FanslyGetMessage:
      type:
        - object
        - 'null'
      properties:
        messages:
          type: array
          items:
            $ref: '#/components/schemas/FanslyMessage'
        accountMedia:
          type: array
          items:
            type: object
            properties:
              id:
                type: string
              accountId:
                type: string
              mediaId:
                type: string
              previewId: {}
              permissionFlags:
                type: number
              price:
                type: number
              createdAt:
                type: number
              deletedAt: {}
              deleted:
                type: boolean
              permissions:
                type: object
                properties:
                  permissionFlags:
                    type: array
                    items:
                      type: object
                      properties:
                        id:
                          type: string
                        flags:
                          type: number
                        verificationFlags:
                          type:
                            - number
                            - 'null'
                        metadata:
                          type:
                            - string
                            - 'null'
                        validAfter:
                          type:
                            - number
                            - 'null'
                        validBefore:
                          type:
                            - number
                            - 'null'
                        price:
                          type: number
                          default: 0
                        type:
                          type: number
                          default: 0
                      required:
                        - flags
                  accountPermissionFlags:
                    type:
                      - object
                      - 'null'
                    properties:
                      flags:
                        type: number
                      metadata:
                        type: string
                    required:
                      - flags
                required:
                  - permissionFlags
              likeCount:
                type: number
              whitelist:
                type: array
                items:
                  type: object
                  properties:
                    accountId:
                      type: string
                    permissionFlags:
                      type: number
                  required:
                    - accountId
                    - permissionFlags
              media:
                type: object
                properties:
                  id:
                    type: string
                  type:
                    type: number
                  status:
                    type: number
                  accountId:
                    type: string
                  mimetype:
                    type: string
                  flags:
                    type: number
                  filename:
                    type: string
                  location:
                    type: string
                  width:
                    type: number
                  height:
                    type: number
                  metadata:
                    type: string
                  updatedAt:
                    type: number
                  createdAt:
                    type: number
                  variants:
                    type: array
                    items:
                      type: object
                      properties:
                        id:
                          type: string
                        type:
                          type: number
                        status:
                          type: number
                        mimetype:
                          type: string
                        flags:
                          type: number
                        filename:
                          type: string
                        location:
                          type: string
                        width:
                          type: number
                        height:
                          type: number
                        metadata:
                          type: string
                        updatedAt:
                          type: number
                        locations:
                          type: array
                          items:
                            type: object
                            properties:
                              locationId:
                                type: string
                              location:
                                type: string
                            required:
                              - locationId
                              - location
                      required:
                        - id
                        - type
                        - status
                        - mimetype
                        - flags
                        - filename
                        - location
                        - width
                        - height
                        - metadata
                        - updatedAt
                        - locations
                  variantHash:
                    type: object
                    properties: {}
                  locations:
                    type: array
                    items:
                      type: object
                      properties:
                        locationId:
                          type: string
                        location:
                          type: string
                      required:
                        - locationId
                        - location
                required:
                  - id
                  - type
                  - status
                  - accountId
                  - mimetype
                  - flags
                  - filename
                  - location
                  - width
                  - height
                  - metadata
                  - updatedAt
                  - createdAt
                  - variants
                  - variantHash
                  - locations
              purchased:
                type: boolean
              whitelisted:
                type: boolean
              accountPermissionFlags:
                type: number
              access:
                type: boolean
            required:
              - id
              - accountId
              - mediaId
              - permissionFlags
              - price
              - createdAt
              - deleted
              - permissions
              - likeCount
              - whitelist
              - media
              - purchased
              - whitelisted
              - accountPermissionFlags
              - access
        accountMediaBundles:
          type: array
          items:
            type: object
            properties:
              id:
                type: string
              accountId:
                type: string
              previewId: {}
              permissionFlags:
                type: number
              price:
                type: number
                default: 0
              createdAt:
                type: number
              deletedAt: {}
              deleted:
                type: boolean
              accountMediaIds:
                type: array
                items:
                  type: string
              bundleContent:
                type: array
                items:
                  type: object
                  properties:
                    accountMediaId:
                      type: string
                    pos:
                      type: number
                  required:
                    - accountMediaId
                    - pos
              permissions:
                type: object
                properties:
                  permissionFlags:
                    type: array
                    items:
                      type: object
                      properties:
                        id:
                          type: string
                        flags:
                          type: number
                        verificationFlags:
                          type:
                            - number
                            - 'null'
                        metadata:
                          type:
                            - string
                            - 'null'
                        validAfter:
                          type:
                            - number
                            - 'null'
                        validBefore:
                          type:
                            - number
                            - 'null'
                        price:
                          type: number
                          default: 0
                        type:
                          type: number
                          default: 0
                      required:
                        - flags
                  accountPermissionFlags:
                    type:
                      - object
                      - 'null'
                    properties:
                      flags:
                        type: number
                      metadata:
                        type: string
                    required:
                      - flags
                required:
                  - permissionFlags
              whitelist:
                type: array
                items:
                  type: object
                  properties:
                    accountId:
                      type: string
                    permissionFlags:
                      type: number
                  required:
                    - accountId
                    - permissionFlags
              purchased:
                type: boolean
              whitelisted:
                type: boolean
              accountPermissionFlags:
                type: number
              access:
                type: boolean
            required:
              - id
              - accountId
              - permissionFlags
              - createdAt
              - deleted
              - accountMediaIds
              - bundleContent
              - permissions
              - whitelist
              - purchased
              - whitelisted
              - accountPermissionFlags
              - access
        tips:
          type: array
          items: {}
        tipGoals:
          type: array
          items: {}
        accountMediaOrders:
          type: array
          items: {}
        stories:
          type: array
          items:
            type: object
            properties:
              id:
                type: string
              authorId:
                type: string
              title:
                type: string
              description:
                type: string
              content:
                type: string
              createdAt:
                type: number
              updatedAt:
                type: number
              permissions:
                type: object
                properties:
                  permissionFlags:
                    type: array
                    items:
                      type: object
                      properties:
                        id:
                          type: string
                        flags:
                          type: number
                        verificationFlags:
                          type:
                            - number
                            - 'null'
                        metadata:
                          type:
                            - string
                            - 'null'
                        validAfter:
                          type:
                            - number
                            - 'null'
                        validBefore:
                          type:
                            - number
                            - 'null'
                        price:
                          type: number
                          default: 0
                        type:
                          type: number
                          default: 0
                      required:
                        - flags
                  accountPermissionFlags:
                    type:
                      - object
                      - 'null'
                    properties:
                      flags:
                        type: number
                      metadata:
                        type: string
                    required:
                      - flags
                required:
                  - permissionFlags
              purchased:
                type: boolean
              whitelisted:
                type: boolean
              accountPermissionFlags:
                type: number
              access:
                type: boolean
            required:
              - id
              - authorId
              - title
              - description
              - content
              - createdAt
              - updatedAt
              - permissions
              - purchased
              - whitelisted
              - accountPermissionFlags
              - access
        storyOrders:
          type: array
          items: {}
      required:
        - messages
        - accountMedia
        - accountMediaBundles
        - tips
        - tipGoals
        - accountMediaOrders
        - stories
        - storyOrders
      description: The FanslyGetMessage.
    FanslyMessage:
      type: object
      properties:
        id:
          type: string
        accountId:
          type: string
        createdAt:
          type: number
        inReplyToMessage:
          $ref: '#/components/schemas/FanslyMessage'
        likes:
          type: array
          items:
            type: object
            properties:
              id:
                type: string
              messageId:
                type: string
              userId:
                type: string
              type:
                type: number
            required:
              - id
              - messageId
              - userId
              - type
        type:
          type: number
        dataVersion:
          type: number
        content:
          type: string
        groupId:
          type: string
        senderId:
          type: string
        correlationId:
          type: string
        inReplyTo:
          type: string
        inReplyToRoot:
          type: string
        attachments:
          type: array
          items:
            type: object
            properties:
              contentId:
                type: string
              contentType:
                type: number
              messageId:
                type:
                  - string
                  - 'null'
                default: null
              pos:
                type: number
            required:
              - contentId
              - contentType
              - pos
        embeds:
          type: array
          items: {}
        interactions:
          type: array
          items:
            type: object
            properties:
              userId:
                type: string
              readAt:
                type: number
              deliveredAt:
                type: number
            required:
              - userId
              - readAt
              - deliveredAt
        totalTipAmount:
          type: number
      required:
        - id
        - accountId
        - createdAt
        - likes
        - type
        - dataVersion
        - content
        - groupId
        - senderId
        - correlationId
        - attachments
        - embeds
        - interactions
        - totalTipAmount
  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.