Skip to main content
DELETE
/
v2
/
access
/
messages
/
:messageId
Unsend chat message
curl --request DELETE \
  --url https://api-next.ofauth.com/v2/access/messages/:messageId \
  --header 'Content-Type: application/json' \
  --header 'apiKey: <api-key>' \
  --data '
{
  "withUserId": "<string>"
}
'
{
  "success": true,
  "queue": {
    "id": 123,
    "text": "<string>",
    "fromUser": {
      "id": 123,
      "name": "<string>"
    },
    "media": [],
    "isMediaReady": true,
    "mediaCount": 123,
    "previews": [],
    "lockedText": true,
    "responseType": "<string>",
    "giphyId": "<string>",
    "isFree": true,
    "isTip": true,
    "isReportedByMe": true,
    "isCouplePeopleMedia": true,
    "queueId": 123,
    "isMarkdownDisabled": true,
    "releaseForms": "<unknown>",
    "isFromQueue": true,
    "canUnsendQueue": true,
    "unsendSecondsQueue": 123,
    "isOpened": true,
    "isNew": true,
    "createdAt": "<string>",
    "changedAt": "<string>",
    "cancelSeconds": 123,
    "isLiked": true,
    "canPurchase": true,
    "canPurchaseReason": "<string>",
    "canReport": true,
    "canBePinned": true,
    "isPinned": true,
    "date": "<string>",
    "textCropped": "<string>",
    "sentCount": 123,
    "viewedCount": 123,
    "canUnsend": true,
    "unsendSeconds": 123,
    "isCanceled": true,
    "mediaTypes": {
      "video": 123,
      "photo": 123,
      "gif": 123,
      "audio": 123
    },
    "hasError": true,
    "price": "<string>",
    "purchasedCount": 123,
    "canSendMessageToBuyers": true
  }
}

Authorizations

apiKey
string
header
required

Headers

x-connection-id
string

Connection ID for managed sessions

x-of-user-id
string

OnlyFans user id for direct sessions (optional override)

OnlyFans cookie header for direct sessions (must include auth_id and fp values)

x-of-bc
string

OnlyFans x-bc header for direct sessions (optional override)

x-of-user-agent
string

User agent to use when proxying requests (required when not using x-connection-id)

Path Parameters

messageId
string
required

Body

application/json
withUserId
required

Response

Successful response

success
boolean
required
queue
object