curl --request POST \
--url https://api.onlyx.ai/v1/conversations/{conversationId}/messages \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'Idempotency-Key: <idempotency-key>' \
--data '
{
"text": "Thinking of you 😘"
}
'import requests
url = "https://api.onlyx.ai/v1/conversations/{conversationId}/messages"
payload = { "text": "Thinking of you 😘" }
headers = {
"Idempotency-Key": "<idempotency-key>",
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
'Idempotency-Key': '<idempotency-key>',
Authorization: 'Bearer <token>',
'Content-Type': 'application/json'
},
body: JSON.stringify({text: 'Thinking of you 😘'})
};
fetch('https://api.onlyx.ai/v1/conversations/{conversationId}/messages', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"conversationId": "cnv_3d9e7b1a5c2f4e8d6a0b",
"createdAt": "2026-09-26T10:02:11.000Z",
"delivery": {
"reason": null,
"status": "queued"
},
"direction": "out",
"id": "msg_1a2b3c4d5e6f7a8b9c0d",
"media": [
{
"id": "4012345678",
"preview": true,
"type": "photo"
},
{
"id": "4012345679",
"preview": false,
"type": "photo"
}
],
"paid": {
"priceCents": 1500,
"purchased": false,
"purchasedAt": null
},
"sender": "team",
"text": "Made this one just for you 😘",
"tipCents": null
}Send a message
Sends a message to the fan on OnlyFans: text, free vault media (previewMediaIds), or a paid message (mediaIds locked behind priceCents, optionally with free teasers). This reaches a real fan and cannot be taken back through the API: when an automation or an AI assistant composes it, show a person the exact text, media and price first. The answer is 202 with the message; follow it with GET …/messages/{messageId} until delivery.status is sent, failed, unconfirmed or not_sent, and never resend an unconfirmed message. Side effects: the conversation moves to team (the AI pauses on it) for 12 hours, and the AI’s pending follow-ups in it are cancelled.
Errors: 409 SALES_OPTED_OUT for a price when the fan asked not to be sold to; 400 SEND_REFUSED when OnlyFans or Onlyx refuses this particular send (the message says why; the same send gets the same answer); 409 CREATOR_NOT_CONNECTED when her account is not connected; 503 SEND_UNAVAILABLE when sending is briefly unavailable (retry with the same key); 503 SENDING_DISABLED when sending through the API is switched off.
Limits: 30 sends per 60 seconds per credential and 300 per hour per creator (all credentials together). An Idempotency-Key header is required: a retry with the same key returns the original message with Idempotent-Replayed: true, and the fan never gets it twice.
Scope: requires messages:send.
Rate limits: 30 requests per 60 seconds per credential; 300 messages per hour per creator, across all credentials — on top of the general limit of 120 requests per 60 seconds per credential.
Idempotency: an Idempotency-Key header is required. Retry a failed or timed-out request with the same key: a replay returns the original response with Idempotent-Replayed: true, and nothing is done twice.
Reaches fans: this operation can reach a real fan or change the live OnlyFans account. Confirm it with a person before calling it on their behalf.
curl --request POST \
--url https://api.onlyx.ai/v1/conversations/{conversationId}/messages \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'Idempotency-Key: <idempotency-key>' \
--data '
{
"text": "Thinking of you 😘"
}
'import requests
url = "https://api.onlyx.ai/v1/conversations/{conversationId}/messages"
payload = { "text": "Thinking of you 😘" }
headers = {
"Idempotency-Key": "<idempotency-key>",
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
'Idempotency-Key': '<idempotency-key>',
Authorization: 'Bearer <token>',
'Content-Type': 'application/json'
},
body: JSON.stringify({text: 'Thinking of you 😘'})
};
fetch('https://api.onlyx.ai/v1/conversations/{conversationId}/messages', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"conversationId": "cnv_3d9e7b1a5c2f4e8d6a0b",
"createdAt": "2026-09-26T10:02:11.000Z",
"delivery": {
"reason": null,
"status": "queued"
},
"direction": "out",
"id": "msg_1a2b3c4d5e6f7a8b9c0d",
"media": [
{
"id": "4012345678",
"preview": true,
"type": "photo"
},
{
"id": "4012345679",
"preview": false,
"type": "photo"
}
],
"paid": {
"priceCents": 1500,
"purchased": false,
"purchasedAt": null
},
"sender": "team",
"text": "Made this one just for you 😘",
"tipCents": null
}Authorizations
Headers
Required. A new unique value per new request (8 to 64 letters, digits, - or _; a UUID is ideal). If the request times out or fails with a 5xx, retry with the SAME key: you get the original response (with Idempotent-Replayed: true) and nothing is done twice. Keys are kept for 24 hours. Without it the answer is 400 IDEMPOTENCY_KEY_REQUIRED.
8 - 64^[A-Za-z0-9_-]{8,64}$Path Parameters
Body
The message text, up to 4,000 characters. Optional when media is attached.
4000Response
Accepted: the message, with its delivery status.