---
title: "Send a message to a chat."
method: POST
path: "/api/v0/accounts/{account_id}/chats/{chat_id}/messages"
tags: ["messages"]
---

# Send a message to a chat.

`POST /api/v0/accounts/{account_id}/chats/{chat_id}/messages`

## Request

- Base URL: `https://omapi.onlymonster.ai`
- URL: `https://omapi.onlymonster.ai/api/v0/accounts/{account_id}/chats/{chat_id}/messages`
- Auth: API key in header `x-om-auth-token`

**Rate limit:** 1 request per second

The message text is scanned by the content-moderation service before being enqueued.
Requests whose text matches restricted words or topics return `400` with
`code: "RESTRICTED_WORDS_DETECTED"` and the matching `words` / `topics` in `details`.

**Required permission:** `onlyfans.messages`

## Path parameters

- `account_id` string, required
- `chat_id` string, required

## Request body

- object
  - `text` string, required: The message text content. Required unless a media file is present.
  - `price` union, required: Price for the message (0 or null for free, or between 3-200 for paid content). A paid message (price >= 3) must carry at least one paid item.
    - 0
    - number
  - `locked_text` boolean, required: If true, the text is locked behind the paywall (paid text). Requires price >= 3 and counts as a paid item, so media is not required.
  - `media` object[], required: Media attachments (already uploaded to platform)
    - `id` string, required: Existing platform media ID
    - `type` 'image' | 'video' | 'audio' | 'gif', required
    - `is_paid` boolean: If true, this media is locked behind the paywall and excluded from the preview shown to the recipient before purchase. Only meaningful when price >= 3.

## Response `202`

Default Response

- object
  - `send_id` string, uuid, required: Unique identifier for tracking this send by webhook

## Other responses

- `400`: Default Response
- `403`: The API key lacks the permission this endpoint requires, or the request is outside what the organisation or the API key can access.

## Changes

- **2026-11-03** `20f58411c6c5`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/onlymonster/apis/om-api-service/changes/api/v0/accounts/:account_id/chats/:chat_id/messages/post.md)

---

[API](https://skmtc.dev/onlymonster/apis/om-api-service.md) - [All operations](https://skmtc.dev/onlymonster/apis/om-api-service/llms.txt) - [OpenAPI document](https://skmtc.dev/onlymonster/apis/om-api-service/revisions/0003edb0288a?raw)
