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

# Chat thread send message

> Send a direct message to a chat user. Supports text, pricing options, and uploaded media references.

**Required scope:** `messages:write`



## OpenAPI

````yaml /openapi/v3.json post /v3/access/chats/:userId/messages
openapi: 3.1.0
info:
  title: OFAuth API
  version: 1.0.0
  description: >-
    OFAuth V3 API for linking accounts, making OnlyFans API requests, and
    receiving events.
  contact:
    email: support@ofauth.com
    url: https://ofauth.com/
servers:
  - url: https://api.ofauth.com
security:
  - ExternalOAuth: []
tags:
  - name: Link
    description: Link accounts, get and refresh tokens, and end access.
  - name: Linked accounts
    description: The linked accounts of one authorization, and their settings.
  - name: Access
    description: Make OnlyFans API requests for a linked account.
  - name: Analytics
    description: 'Access: charts, rankings, and performance data.'
  - name: Earnings
    description: 'Access: earnings charts, transactions, and chargebacks.'
  - name: Messages
    description: 'Access: messaging, chats, queue, and mass messaging.'
  - name: Posts
    description: 'Access: create, edit, list, and manage posts.'
  - name: Promotions
    description: 'Access: promotions, trials, and bundles.'
  - name: Users
    description: 'Access: user profiles, subscriptions, and actions.'
  - name: Vault
    description: 'Access: vault folders, media, and management.'
  - name: Upload
    description: 'Access: media upload and processing.'
  - name: Self
    description: 'Access: linked account profile and settings.'
  - name: Stories
    description: 'Access: stories listing and management.'
  - name: Subscriptions
    description: 'Access: subscription offers, discounts, and management.'
  - name: Realtime
    description: Webhook event formats, including OnlyFans activity events.
externalDocs:
  description: OFAuth Developer Documentation
  url: https://docs.ofauth.com
paths:
  /v3/access/chats/:userId/messages:
    post:
      tags:
        - Messages
      summary: Chat thread send message
      description: >-
        Send a direct message to a chat user. Supports text, pricing options,
        and uploaded media references.


        **Required scope:** `messages:write`
      operationId: access.chats.messages.send
      parameters:
        - name: x-linked-account-id
          in: header
          required: true
          description: >-
            The linked account to use. The user must have shared it with your
            app. A missing account returns `linked_account_required`; an account
            outside your access returns `linked_account_not_granted`.
          schema:
            type: string
            example: conn_example123
        - schema:
            type: string
            pattern: ^\d+$
          required: true
          name: userId
          in: path
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                isForwardedMessage:
                  type: boolean
                  default: false
                  description: Whether the message was forwarded
                text:
                  type: string
                  maxLength: 10000
                  default: ''
                  description: >-
                    Plain text with optional formatting marks. HTML is displayed
                    as text. See [Text
                    formatting](/v3/guides/how-to/text-formatting).
                replyToMessageId:
                  type: string
                  nullable: true
                  minLength: 1
                  description: Reply to an existing chat message
                mediaItems:
                  type: array
                  items:
                    anyOf:
                      - type: integer
                        minimum: 0
                        exclusiveMinimum: true
                        description: OnlyFans media ID
                      - type: string
                        minLength: 1
                  default: []
                  description: >-
                    Media references to attach. Accepts vault media IDs, upload
                    references (mediaUploadId), or http(s) URLs. See [mediaItems
                    reference](/v3/guides/media-items).
                isLockedText:
                  type: boolean
                  default: false
                  description: 'Whether users must pay to read the text (default: false).'
                price:
                  type: number
                  nullable: true
                  minimum: 0
                  maximum: 200
                  default: 0
                  description: Price to unlock message content (0 for free)
                previewMediaCount:
                  type: integer
                  nullable: true
                  minimum: 0
                  default: 0
                  description: >-
                    Number of `mediaItems` to show as free previews, starting
                    with the first item.
                releaseForms:
                  type: object
                  properties:
                    users:
                      type: array
                      items:
                        type: integer
                        minimum: 0
                        exclusiveMinimum: true
                        description: OnlyFans user ID
                      default: []
                      description: Users to add to release form
                    partners:
                      type: array
                      items:
                        type: integer
                        minimum: 0
                        exclusiveMinimum: true
                        description: OnlyFans user ID
                      default: []
                      description: Partners to add to release form
                    guests:
                      type: array
                      items:
                        type: integer
                        minimum: 0
                        exclusiveMinimum: true
                        description: OnlyFans user ID
                      default: []
                      description: Guests to add to release form
                  description: Release form participants
                userTags:
                  type: array
                  items:
                    type: integer
                    minimum: 0
                    exclusiveMinimum: true
                    description: OnlyFans user ID
                  default: []
                  description: Users to tag
                isMarkdown:
                  type: boolean
                  default: true
                  description: >-
                    Apply formatting marks (default: true). Set false to keep
                    marks as literal text. HTML is displayed as text in both
                    modes. See [Text
                    formatting](/v3/guides/how-to/text-formatting).
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                type: object
                properties:
                  canBePinned:
                    type: boolean
                  cancelSeconds:
                    type: number
                  canPurchase:
                    type: boolean
                  canPurchaseReason:
                    type: string
                  canReport:
                    type: boolean
                  changedAt:
                    type: string
                  createdAt:
                    type: string
                  fromUser:
                    type: object
                    properties:
                      id:
                        type: number
                    additionalProperties: true
                    required:
                      - id
                  giphyId:
                    type: 'null'
                  id:
                    type: number
                  isCouplePeopleMedia:
                    type: boolean
                  isFree:
                    type: boolean
                  isFromQueue:
                    type: boolean
                  isLiked:
                    type: boolean
                  isMarkdownDisabled:
                    type: boolean
                  isMediaReady:
                    type: boolean
                  isNew:
                    type: boolean
                  isOpened:
                    type: boolean
                  isPinned:
                    type: boolean
                  isReportedByMe:
                    type: boolean
                  isTip:
                    type: boolean
                  lockedText:
                    type: boolean
                  media:
                    type: array
                    items:
                      type: object
                      properties:
                        canView:
                          type: boolean
                        convertedToVideo:
                          type: boolean
                        createdAt:
                          type: string
                        duration:
                          type: number
                        files:
                          type: object
                          properties:
                            full:
                              type: object
                              properties:
                                height:
                                  type: number
                                size:
                                  type: number
                                sources:
                                  type: array
                                  items: {}
                                url:
                                  type: string
                                width:
                                  type: number
                              additionalProperties: true
                              required:
                                - height
                                - size
                                - sources
                                - url
                                - width
                            preview:
                              type: object
                              properties:
                                height:
                                  type: number
                                size:
                                  type: number
                                url:
                                  type: string
                                width:
                                  type: number
                              additionalProperties: true
                              required:
                                - height
                                - size
                                - url
                                - width
                            squarePreview:
                              type: object
                              properties:
                                height:
                                  type: number
                                size:
                                  type: number
                                url:
                                  type: string
                                width:
                                  type: number
                              additionalProperties: true
                              required:
                                - height
                                - size
                                - url
                                - width
                            thumb:
                              type: object
                              properties:
                                height:
                                  type: number
                                size:
                                  type: number
                                url:
                                  type: string
                                width:
                                  type: number
                              additionalProperties: true
                              required:
                                - height
                                - size
                                - url
                                - width
                          additionalProperties: true
                          required:
                            - full
                            - preview
                            - squarePreview
                            - thumb
                        hasCustomPreview:
                          type: boolean
                        hasError:
                          type: boolean
                        id:
                          type: number
                        isReady:
                          type: boolean
                        type:
                          type: string
                        videoSources:
                          type: object
                          properties:
                            '240':
                              type: 'null'
                            '720':
                              type: 'null'
                          additionalProperties: true
                          required:
                            - '240'
                            - '720'
                      additionalProperties: true
                      required:
                        - canView
                        - convertedToVideo
                        - createdAt
                        - duration
                        - files
                        - hasCustomPreview
                        - hasError
                        - id
                        - isReady
                        - type
                        - videoSources
                  mediaCount:
                    type: number
                  previews:
                    type: array
                    items: {}
                  price:
                    type: number
                  queueId:
                    type: number
                  releaseForms:
                    type: array
                    items: {}
                  responseType:
                    type: string
                  story:
                    type: object
                    properties:
                      id:
                        type: number
                      media:
                        type: array
                        items:
                          type: object
                          properties:
                            canView:
                              type: boolean
                            convertedToVideo:
                              type: boolean
                            createdAt:
                              type: 'null'
                            duration:
                              type: number
                            files:
                              type: object
                              properties:
                                full:
                                  type: object
                                  properties:
                                    height:
                                      type: number
                                    size:
                                      type: number
                                    sources:
                                      type: array
                                      items: {}
                                    url:
                                      type: string
                                    width:
                                      type: number
                                  additionalProperties: true
                                  required:
                                    - height
                                    - size
                                    - sources
                                    - url
                                    - width
                                preview:
                                  type: object
                                  properties:
                                    height:
                                      type: number
                                    size:
                                      type: number
                                    sources:
                                      type: object
                                      properties:
                                        w150:
                                          type: string
                                      additionalProperties: true
                                      required:
                                        - w150
                                    url:
                                      type: string
                                    width:
                                      type: number
                                  additionalProperties: true
                                  required:
                                    - height
                                    - size
                                    - sources
                                    - url
                                    - width
                                squarePreview:
                                  type: object
                                  properties:
                                    height:
                                      type: number
                                    size:
                                      type: number
                                    sources:
                                      type: object
                                      properties:
                                        w150:
                                          type: string
                                        w480:
                                          type: string
                                      additionalProperties: true
                                      required:
                                        - w150
                                        - w480
                                    url:
                                      type: string
                                    width:
                                      type: number
                                  additionalProperties: true
                                  required:
                                    - height
                                    - size
                                    - sources
                                    - url
                                    - width
                                thumb:
                                  type: object
                                  properties:
                                    height:
                                      type: number
                                    size:
                                      type: number
                                    url:
                                      type: string
                                    width:
                                      type: number
                                  additionalProperties: true
                                  required:
                                    - height
                                    - size
                                    - url
                                    - width
                              additionalProperties: true
                              required:
                                - full
                                - preview
                                - squarePreview
                                - thumb
                            hasCustomPreview:
                              type: boolean
                            hasError:
                              type: boolean
                            id:
                              type: number
                            isReady:
                              type: boolean
                            type:
                              type: string
                            videoSources:
                              type: object
                              properties:
                                '240':
                                  type: 'null'
                                '720':
                                  type: 'null'
                              additionalProperties: true
                              required:
                                - '240'
                                - '720'
                          additionalProperties: true
                          required:
                            - canView
                            - convertedToVideo
                            - createdAt
                            - duration
                            - files
                            - hasCustomPreview
                            - hasError
                            - id
                            - isReady
                            - type
                            - videoSources
                      question:
                        type: 'null'
                      userId:
                        type: number
                    additionalProperties: true
                    required:
                      - id
                      - media
                      - question
                      - userId
                  text:
                    type: string
                additionalProperties: true
                required:
                  - canBePinned
                  - cancelSeconds
                  - canPurchase
                  - canPurchaseReason
                  - canReport
                  - changedAt
                  - createdAt
                  - fromUser
                  - giphyId
                  - id
                  - isCouplePeopleMedia
                  - isFree
                  - isFromQueue
                  - isLiked
                  - isMarkdownDisabled
                  - isMediaReady
                  - isNew
                  - isOpened
                  - isPinned
                  - isReportedByMe
                  - isTip
                  - lockedText
                  - media
                  - mediaCount
                  - previews
                  - price
                  - queueId
                  - releaseForms
                  - responseType
                  - story
                  - text
        '400':
          description: Bad Request
        '401':
          description: Unauthorized
        '403':
          description: Forbidden
        '429':
          description: Rate Limit Exceeded
        '500':
          description: Internal Server Error
        '502':
          description: Bad Gateway
      deprecated: false
      security:
        - ExternalOAuth: []
          LinkedAccountId: []
components:
  securitySchemes:
    ExternalOAuth:
      type: http
      scheme: bearer
      bearerFormat: opaque
      description: Link access token for one Sandbox, Test, or Live authorization.
    LinkedAccountId:
      type: apiKey
      name: x-linked-account-id
      in: header
      description: >-
        Selects one of the authorization's linked accounts via the
        x-linked-account-id header.

````

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