Skip to main content
This schema documents the of.websocket.event.received|api2_chat_message payload family.

A live upstream chat message envelope from the OnlyFans websocket stream.

connection
object
required

Connection context for the source upstream websocket payload.

environment
enum<string>
required

OFAuth environment for the source connection.

Available options:
live,
test,
sandbox
receivedAt
string<date-time>
required

When OFAuth received the upstream websocket payload.

messageType
string
required

Transport-level websocket frame classification from the relay.

payloadKey
enum<string>
required

Stable OFAuth shape key for this payload.

Available options:
of.websocket.event.received|api2_chat_message
truncated
boolean
required

Whether OFAuth truncated the upstream payload before forwarding it.

json
object
required
Example:
{
  "api2_chat_message": {
    "id": 9372017685098,
    "queueId": 39092614938,
    "responseType": "message",
    "text": "<p>test197</p>",
    "price": 0,
    "isFree": true,
    "isTip": false,
    "isNew": true,
    "isOpened": false,
    "isFromQueue": false,
    "isMediaReady": true,
    "mediaCount": 0,
    "createdAt": "2026-04-23T14:30:14+00:00",
    "changedAt": "2026-04-23T14:30:14+00:00",
    "cancelSeconds": 120,
    "fromUser": {
      "id": 562630475,
      "name": "Jose Rana",
      "username": "jose.rana",
      "isVerified": false,
      "lastSeen": "2026-04-23T14:30:14+00:00"
    },
    "media": [],
    "previews": []
  }
}
shapeSubtype
enum<string> | null

Curated subtype label for this payload family.

Available options:
chat.message.created.live,
null
rawText
string | null

Raw upstream payload text, present when the frame was text-based.

rawBase64
string | null

Raw upstream payload bytes as base64 when the frame was binary.