API Reference
Reference for all OnlyFans proxy endpoints. Each entry shows the HTTP method, path, query parameters, credit cost, and a real response example.
Base URL
https://dev-api.onlyfans-api.ai/api. Every request must include the X-API-Key header. Credits are deducted on every successful (2xx) response.Two ways to identify a model
:model_id path parameter accepts either identifier:internal UUID— theidreturned by the Connect Model or List Models API (e.g.16f3d13b-9415-4e6b-babe-e8db6b31bd97)platform_model_id— the OnlyFans numeric user ID returned inplatform_model_idfrom the same endpoints (e.g.523990756). Useful if your integration already has the OF user ID from another source.
Response Envelope
Every successful proxy response is wrapped in a consistent envelope. The raw OnlyFans data is in data; billing metadata is in _meta.
{
"data": { /* raw OnlyFans response */ },
"_meta": {
"_credits": {
"used": 1,
"balance": 4999
},
"_rate_limits": {
"limit_minute": 60,
"remaining_minute": 58
}
}
}| Field | Description |
|---|---|
data | Raw OnlyFans response — same structure as if you called OF directly |
_meta._credits.used | Credits deducted for this request |
_meta._credits.balance | Remaining credit balance after this request |
_meta._rate_limits.limit_minute | Your plan's request limit per minute |
_meta._rate_limits.remaining_minute | Requests remaining in the current 60-second window |
Error responses are not wrapped
_meta envelope. Error responses (4xx, 5xx) return {"error": "...", "code": "...", "trace_id": "..."} directly. A 502 from OnlyFans also says upstream_status (what OnlyFans answered), and upstream_message and retry_after when it sent them. See Error Handling.Every response has an X-Trace-Id header
X-Trace-Id header (the same as trace_id in an error body). A success body is not changed. Log it: with it we can find the request, and what OnlyFans answered, in our logs.Models
Connect and manage OnlyFans model accounts programmatically. These endpoints are also available in the Playground.
curl -X POST "https://dev-api.onlyfans-api.ai/api/organizations/ORG_UUID/models" \
-H "X-API-Key: sk_live_your_key_here" \
-H "Content-Type: application/json" \
-d '{"email": "creator@example.com", "password": "your_password"}'| Parameter | Type | Description |
|---|---|---|
emailrequired | string | OnlyFans account email address. |
passwordrequired | string | OnlyFans account password. A body without email or password is a 400 (Email and password are required). |
Before the job finishes
status: "DISCONNECTED" and no platform_model_id yet. Its link to your organization only turns CONNECTED once the login succeeds. An email already connected to your organization is a 409.{
"message": "Session grant started for new model",
"job_id": "c290f1ee-6c54-4b01-90e6-d701748f0851",
"model": {
"id": "16f3d13b-9415-4e6b-babe-e8db6b31bd97",
"email": "creator@example.com",
"status": "DISCONNECTED",
"platform_model_id": null,
"createdAt": "2026-01-15T10:30:00.000000+00:00"
}
}curl -X POST "https://dev-api.onlyfans-api.ai/api/models/MODEL_UUID/reconnect" \
-H "X-API-Key: sk_live_your_key_here"| Parameter | Type | Description |
|---|---|---|
password | string | New OnlyFans password. If omitted, the gateway uses the credentials stored from the last successful connection; with none stored it is a 400. |
email | string | A new login email for the model. Already used by another model: 409. |
{
"message": "Reconnect started",
"job_id": "c290f1ee-6c54-4b01-90e6-d701748f0851"
}curl "https://dev-api.onlyfans-api.ai/api/models/connect-jobs/JOB_ID" \
-H "X-API-Key: sk_live_your_key_here"{
"job_id": "c290f1ee-6c54-4b01-90e6-d701748f0851",
"status": "SUCCESS",
"error": null,
"model": {
"id": "16f3d13b-9415-4e6b-babe-e8db6b31bd97",
"email": "creator@example.com",
"status": "CONNECTED",
"platform_model_id": "523990756"
}
}{
"job_id": "c290f1ee-6c54-4b01-90e6-d701748f0851",
"status": "queued",
"error": null
}curl "https://dev-api.onlyfans-api.ai/api/models?page=1&per_page=10" \
-H "X-API-Key: sk_live_your_key_here"| Parameter | Type | Description |
|---|---|---|
page | integer | Page numberDefault: 1 |
per_page | integer | Records per page (5-50)Default: 10 |
search | string | Filter by model email (substring match) |
sort_by | string | One of: email, orgLinkStatus, lastSyncAt, createdAt, connectedAt. Any other value sorts by connectedAt, newest first |
sort_dir | string | asc or descDefault: desc |
status | string | Filter by the status of the model's link to your organization (orgLinkStatus), or 'all'Default: all |
include_archived | boolean | true also lists the models your organization archived. Left out, they are hiddenDefault: false |
archived_only | boolean | true lists only the archived modelsDefault: false |
{
"data": [
{
"id": "16f3d13b-9415-4e6b-babe-e8db6b31bd97",
"email": "creator@example.com",
"status": "CONNECTED",
"platform_model_id": "523990756",
"lastSyncAt": "2026-08-10T09:12:03.000000+00:00",
"createdAt": "2026-01-15T10:30:00.000000+00:00",
"connectedAt": "2026-01-15T10:30:00.000000+00:00",
"orgLinkStatus": "CONNECTED",
"isArchived": false,
"archivedAt": null,
"wsStatus": "connected",
"chatsDiscoveredTotal": 128,
"profile": { "name": "molly", "subscribersCount": 108 }
}
],
"pagination": {
"page": 1,
"per_page": 10,
"total": 1,
"total_pages": 1,
"has_next": false,
"has_prev": false
}
}Fields the gateway adds
status is the model's own session status; orgLinkStatus is the status of its link to your organization, the one the status filter reads. isArchived and archivedAt come from Archive Model. wsStatusis the state of the gateway's live listener for the model: connecting, connected, reconnecting, or offline when it is not running. chatsDiscoveredTotalis how many of the model's chats the gateway has found so far (null until it has counted). profile is a cached copy of the OnlyFans profile (abridged here), never a live call.curl -X DELETE "https://dev-api.onlyfans-api.ai/api/organizations/ORG_UUID/models/MODEL_UUID?wipe_session=true&requested_by=Jane" \
-H "X-API-Key: sk_live_your_key_here"| Parameter | Type | Description |
|---|---|---|
wipe_session | boolean | true (or 1, yes) also empties the stored session. It cannot be undone: reconnecting the creator needs her password again. Skipped while another organization is still connected to the model |
requested_by | string | Who runs it, at most 100 characters, kept in the audit log. If omitted, an API key is recorded as its creator's name |
{
"message": "Model disconnected successfully"
}{
"message": "Model disconnected successfully",
"session_wiped": true
}Shared models
curl "https://dev-api.onlyfans-api.ai/api/organizations/ORG_UUID/models?page=1&per_page=10&include_archived=true" \
-H "X-API-Key: sk_live_your_key_here"| Parameter | Type | Description |
|---|---|---|
page | integer | Page numberDefault: 1 |
per_page | integer | Records per page (5-50)Default: 10 |
search | string | Filter by model email (substring match) |
sort_by | string | One of: email, orgLinkStatus, lastSyncAt, createdAt, connectedAt. Any other value sorts by connectedAt, newest first |
sort_dir | string | asc or descDefault: desc |
status | string | Filter by the status of the model's link to your organization (orgLinkStatus), or 'all'Default: all |
include_archived | boolean | true also lists the models your organization archived. Left out, they are hiddenDefault: false |
archived_only | boolean | true lists only the archived modelsDefault: false |
Response
orgLinkStatus (the status of its link to your organization, which the status filter reads), isArchived and archivedAt.curl -X POST "https://dev-api.onlyfans-api.ai/api/organizations/ORG_UUID/models/MODEL_UUID/archive" \
-H "X-API-Key: sk_live_your_key_here"| Parameter | Type | Description |
|---|---|---|
org_idrequired | string | In the path. Your organization id: it must be the organization of your API key, otherwise it is a 403. |
model_idrequired | string | In the path. The model's internal UUID. This route does not take the OnlyFans numeric id: a model not linked to your organization under that UUID is a 404 (Model not found or not connected to this organization). |
Per organization
include_archived=true, or archived_only=true for the archived ones alone. Archiving an archived model again answers 200 and sets a new archivedAt.{
"message": "Model archived successfully",
"isArchived": true,
"archivedAt": "2026-11-08T09:12:03.000000+00:00"
}curl -X POST "https://dev-api.onlyfans-api.ai/api/organizations/ORG_UUID/models/MODEL_UUID/unarchive" \
-H "X-API-Key: sk_live_your_key_here"| Parameter | Type | Description |
|---|---|---|
org_idrequired | string | In the path. Your organization id. |
model_idrequired | string | In the path. The model's internal UUID. |
{
"message": "Model unarchived successfully",
"isArchived": false,
"archivedAt": null
}Campaigns
Manage OnlyFans tracking links (campaigns) for a model.
curl "https://dev-api.onlyfans-api.ai/api/models/MODEL_UUID/campaigns?limit=10&offset=0" \
-H "X-API-Key: sk_live_your_key_here"| Parameter | Type | Description |
|---|---|---|
limit | integer | Number of campaigns to returnDefault: 10 |
offset | integer | Pagination offsetDefault: 0 |
startDate | string | Scope the counts to a window start (YYYY-MM-DD). Absent: all-time. |
endDate | string | Scope the counts to a window end (YYYY-MM-DD). Absent: all-time. |
{
"data": {
"hasMore": false,
"list": [
{
"id": 3927164,
"countSubscribers": 42,
"countTransitions": 310,
"campaignCode": "abc123",
"campaignName": "Instagram bio link",
"createdAt": "2026-02-01T10:00:00+00:00",
"endDate": null,
"user": { "id": 523990756, "username": "mollyy2006" },
"sharedWith": [],
"isDeleted": false
}
]
},
"_meta": { "_credits": { "used": 1, "balance": 4998 }, "_rate_limits": { "limit_minute": 60, "remaining_minute": 55 } }
}curl -X POST "https://dev-api.onlyfans-api.ai/api/models/MODEL_UUID/campaigns" \
-H "X-API-Key: sk_live_your_key_here" \
-H "Content-Type: application/json" \
-d '{"name": "Instagram bio link"}'| Parameter | Type | Description |
|---|---|---|
namerequired | string | Campaign name. |
{
"data": {
"id": 3927164,
"name": "Instagram bio link",
"trialLink": "https://onlyfans.com/action/trial/abc123",
"createdAt": "2026-02-01T10:00:00+00:00"
},
"_meta": { "_credits": { "used": 1, "balance": 4997 }, "_rate_limits": { "limit_minute": 60, "remaining_minute": 54 } }
}curl -X DELETE "https://dev-api.onlyfans-api.ai/api/models/MODEL_UUID/campaigns/CAMPAIGN_ID" \
-H "X-API-Key: sk_live_your_key_here"{
"data": { "id": 3927164, "isDeleted": true },
"_meta": { "_credits": { "used": 1, "balance": 4996 }, "_rate_limits": { "limit_minute": 60, "remaining_minute": 53 } }
}curl "https://dev-api.onlyfans-api.ai/api/models/MODEL_UUID/campaigns/CAMPAIGN_ID/claimers?limit=10&offset=0" \
-H "X-API-Key: sk_live_your_key_here"| Parameter | Type | Description |
|---|---|---|
campaign_idrequired | string | Path param: the tracking link (campaign) ID whose subscribers to list. |
limit | integer | Fans per page. Values above 10 are accepted.Default: 10 |
offset | integer | Fans to skip. Advance by limit while hasMore is true.Default: 0 |
{
"data": {
"hasMore": true,
"marker": "1795420138",
"list": [
{
"id": 359167288,
"username": "u359167288",
"name": "Jane",
"displayName": "Jane",
"isActive": true,
"subscribedOnDuration": "6 months",
"subscribePrice": 9.99
}
]
},
"_meta": { "_credits": { "used": 1, "balance": 4995 }, "_rate_limits": { "limit_minute": 60, "remaining_minute": 52 } }
}curl "https://dev-api.onlyfans-api.ai/api/models/MODEL_UUID/trials/stats?limit=10&offset=0" \
-H "X-API-Key: sk_live_your_key_here"| Parameter | Type | Description |
|---|---|---|
limit | integer | Number of trial links to returnDefault: 10 |
offset | integer | Pagination offsetDefault: 0 |
startDate | string | Scope the counts to a window start (YYYY-MM-DD). Absent: all-time. |
endDate | string | Scope the counts to a window end (YYYY-MM-DD). Absent: all-time. |
{
"data": {
"hasMore": false,
"items": [
{
"id": 11229335,
"trialLinkName": "Reddit free trial",
"url": "https://onlyfans.com/mollyy2006/trial/nh1pg0x6vv9hzksidztga43ngstrvtqj",
"subscribeDays": 30,
"subscribeCounts": 18,
"claimCounts": 25,
"clicksCounts": 140,
"expiredAt": null,
"createdAt": "2026-10-01T09:00:00+00:00"
}
]
},
"_meta": { "_credits": { "used": 1, "balance": 4994 }, "_rate_limits": { "limit_minute": 60, "remaining_minute": 51 } }
}User
Session credentials are not returned
csrf, wsAuthToken, wsUrl). The gateway removes those three fields from the response it gives your API key. Everything else, email included, is OnlyFans' body unchanged. To follow the model's live events, subscribe to the WebSocket bridge.curl "https://dev-api.onlyfans-api.ai/api/models/MODEL_UUID/users/me" \
-H "X-API-Key: sk_live_your_key_here"{
"data": {
"id": 523990756,
"name": "molly",
"username": "mollyy2006",
"email": "creator@onlyfans.com",
"about": "<p>Profile bio text...</p>",
"avatar": "https://public.onlyfans.com/files/.../avatar.jpg",
"header": "https://public.onlyfans.com/files/.../header_image.jpg",
"isPerformer": true,
"isVerified": true,
"subscribersCount": 108,
"postsCount": 75,
"photosCount": 88,
"videosCount": 2,
"subscribePrice": 20,
"performerTop": 3.3,
"joinDate": "2025-09-16T00:00:00+00:00"
},
"_meta": {
"_credits": { "used": 1, "balance": 4999 },
"_rate_limits": { "limit_minute": 60, "remaining_minute": 58 }
}
}Chats
curl "https://dev-api.onlyfans-api.ai/api/models/MODEL_UUID/chats?limit=20&offset=0" \
-H "X-API-Key: sk_live_your_key_here"| Parameter | Type | Description |
|---|---|---|
limit | integer | Number of chats to returnDefault: 10 |
offset | integer | Pagination offsetDefault: 0 |
{
"data": {
"hasMore": true,
"list": [
{
"withUser": { "id": 553393565, "_view": "m" },
"lastMessage": {
"id": 9130375619415,
"text": "<p>I caught a few mins but had to go to sleep :(</p>",
"createdAt": "2026-04-03T15:58:51+00:00",
"isFree": true,
"mediaCount": 0
},
"unreadMessagesCount": 1,
"canSendMessage": true,
"isMutedNotifications": false
}
],
"nextOffset": 1
},
"_meta": {
"_credits": { "used": 1, "balance": 4998 },
"_rate_limits": { "limit_minute": 60, "remaining_minute": 57 }
}
}curl "https://dev-api.onlyfans-api.ai/api/models/MODEL_UUID/chats/FAN_USER_ID/messages?limit=20" \
-H "X-API-Key: sk_live_your_key_here"| Parameter | Type | Description |
|---|---|---|
limit | integer | Number of messages to returnDefault: 10 |
id | integer | Fetch messages before this message ID (cursor). Omit it and OnlyFans returns the newest message and marks the chat as read; pass the id of the newest message you already have to read older messages without that effect. |
{
"data": {
"hasMore": true,
"list": [
{
"id": 9130375619415,
"text": "<p>I caught a few mins but had to go to sleep :(</p>",
"createdAt": "2026-04-03T15:58:51+00:00",
"fromUser": { "id": 553393565, "_view": "s" },
"isFree": true,
"isTip": false,
"media": [],
"mediaCount": 0,
"price": 0,
"isNew": true,
"isOpened": false
},
{
"id": 9130375619420,
"text": "<p>check this out</p>",
"createdAt": "2026-04-03T16:02:10+00:00",
"fromUser": { "id": 553393565, "_view": "s" },
"isFree": true,
"isTip": false,
"media": [
{
"id": 4642003333,
"type": "photo",
"isReady": true,
"files": {
"full": { "url": "https://cdn2.onlyfans.com/.../3024x4032_xxx.jpg?...", "width": 3024, "height": 4032 },
"thumb": { "url": "https://cdn2.onlyfans.com/.../300x300_xxx.jpg?...", "width": 300, "height": 300 }
},
"cursor_id": "gAAAAABmZ...5f3c"
}
],
"mediaCount": 1,
"price": 0,
"isNew": true,
"isOpened": false
}
]
},
"_meta": {
"_credits": { "used": 1, "balance": 4997 },
"_rate_limits": { "limit_minute": 60, "remaining_minute": 56 }
}
}curl -X POST "https://dev-api.onlyfans-api.ai/api/models/MODEL_UUID/chats/FAN_USER_ID/messages" \
-H "X-API-Key: sk_live_your_key_here" \
-H "Content-Type: application/json" \
-d '{"text": "Hey, thanks for subscribing!", "mediaFiles": [], "price": 0, "tags": {"xpromo_key": "summer2026_to_modelB"}}'| Parameter | Type | Description |
|---|---|---|
text | string | Message text (HTML supported). Required if mediaFiles or giphyId not provided. |
mediaFiles | array | Array of media IDs or objects {id, thumbId}. Required if text or giphyId not provided. |
price | integer | Price in cents for paid message. 0 = free. When price > 0, mediaFiles must be objects {id, thumbId}.Default: 0 |
giphyId | string | A Giphy GIF id (from Get GIF Trending / Get GIF Search) to send as a GIF. Required if text or mediaFiles not provided. |
lockedText | boolean | Lock the text itself behind price. Needed for a text-only paid message: OnlyFans rejects price > 0 with no media while this is false.Default: false |
replyToMessageId | string | Quotes an existing message in this chat. Its plain OnlyFans message id (platform_message_id), not its queueId. |
isForward | boolean | Marks the send as a forward. The text is a copy made by your client, not a reference to the original message.Default: false |
tags | object | Your own key/value tags on this send — your names, your values, no reserved vocabulary. Filterable afterward via /api/query on message_tags (see RAG & Search). Gateway never refuses a send over tags — dedup is your policy, not the gateway's. Max 20 keys, 128 chars/key, 512 chars/string value; values must be string, number, or boolean. If the tags could not be saved, the send is still made and the response carries tags_saved: false. |
{
"data": {
"id": 9130375619420,
"text": "<p>Hey, thanks for subscribing!</p>",
"createdAt": "2026-04-04T10:00:00+00:00",
"fromUser": { "id": 523990756, "_view": "s" },
"isFree": true,
"isTip": false,
"media": [],
"mediaCount": 0,
"price": 0
},
"_meta": {
"_credits": { "used": 2, "balance": 4995 },
"_rate_limits": { "limit_minute": 60, "remaining_minute": 55 }
}
}When the response says more than OnlyFans did
tags_saved: false: you senttagsand they were not saved. The message was sent, so the status is still 200. The field appears only then; a send whose tags were saved answers as above. If you rely on tags, check them through/api/queryonmessage_tags.code: "MEDIA_DROPPED"withmedia_dropped_count: OnlyFans accepted the send but dropped some of the media (a WebP did once). The status is still 200, so comparemediaCountwith what you sent.code: "MISSING_MESSAGE_ID": OnlyFans answered without anid, so there is nothing to join your own records or tags to.- Sent again with the same
Idempotency-Key, the answer is the stored one from before the tags were written (headerIdempotency-Replayed: true), so it carries notags_saved.
This reaches every member of every list you name
Idempotency-Key header (a UUID) so a retry after a lost answer cannot send twice. After a 504 the result is unknown: check before sending again (see Troubleshooting, 504 — TIMEOUT).curl -X POST "https://dev-api.onlyfans-api.ai/api/models/MODEL_UUID/chats/mass-message" \
-H "X-API-Key: sk_live_your_key_here" \
-H "Content-Type: application/json" \
-d '{"userLists": ["1318069122"], "text": "Hey everyone!"}'| Parameter | Type | Description |
|---|---|---|
userIds | array | OnlyFans fan ids to send to. At least one of userIds or userLists is required. |
userLists | array | Ids of the model's lists, as strings. The message goes to every member of each list. Custom list ids are numeric strings, for example "1318069122". |
excludedLists | array | Ids of lists to leave out, as strings. A fan who is in an included list and in an excluded one does not get the message. Built-in ids such as "muted" work too. Needs userIds or userLists. |
scheduledDate | string | ISO 8601 time, for example "2026-10-12T08:00:00Z". When present the message is scheduled instead of sent now; leave the key out to send now. A null or empty value is a 400, so a schedule can never turn into an immediate send. |
text | string | Message text. Required if mediaFiles is not provided. |
mediaFiles | array | Array of media IDs or objects {id, thumbId}. When price > 0, mediaFiles must be objects {id, thumbId}. |
price | number | Price of a paid message. 0 = free.Default: 0 |
lockedText | boolean | Lock the text itself behind price.Default: false |
isForward | boolean | Marks the send as a forward: the text is a copy made by your client, not a reference to the original message. It is the only difference between a Forward and a plain list send on onlyfans.com.Default: false |
filters | object | Passed to OnlyFans as-is and unverified. The OnlyFans web app always sends an empty object here. This is not the exclusion: use excludedLists, and do not rely on filters to leave anyone out. |
Scheduled and excluded sends
scheduledDate answers with the same queue object, its id being the queueId, and date the time you asked for. It shows in GET /models/:model_id/schedules as an item with its own id (not the queueId); the item's entity carries queueId, scheduledAt, userLists and excludedLists. When the time comes, OnlyFans sends it about ten seconds late. OnlyFans refuses a second queue created within about ten seconds of another with 400 "Please allow 10 seconds", which comes back here as a 502 with code: "OF_API_ERROR"; wait and send again.After the call returns
total: -1 and isDone: false mean the recipients are still being resolved. Progress arrives on the WebSocket feed as chat_queue_update and chat_queue_finish events carrying the same id. The delivered messages have isFromQueue: true and a queueId equal to that id. OnlyFans sends no per-recipient message event for a mass send, nor for a scheduled message when it fires, so the messages reach /api/query only when the next message arrives in that chat, which can be hours later. Until then, draw the send from this response, read its delivery from chat_queue_finish (match on id; check hasError and isCanceled), and when the stored message arrives replace your own bubble by its queue_id. A message sent from onlyfans.com has no bubble of yours and shows up late.{
"data": {
"id": 47977542779,
"date": "2026-10-03T21:02:05+00:00",
"isReady": true,
"isDone": false,
"total": -1,
"pending": 0,
"canUnsend": true,
"unsendSeconds": 1000000,
"hasError": false,
"isCanceled": false,
"isCouplePeopleMedia": false
},
"_meta": {
"_credits": { "used": 2, "balance": 998 },
"_rate_limits": { "limit_minute": 60, "remaining_minute": 58 }
}
}This removes the message from every recipient
curl -X DELETE "https://dev-api.onlyfans-api.ai/api/models/MODEL_UUID/queues/48427873461" \
-H "X-API-Key: sk_live_your_key_here"| Parameter | Type | Description |
|---|---|---|
queue_idrequired | string | In the path. The numeric id Mass Message returned, which is also the queueId on every message it delivered. It is not the id of an item in the scheduled list, and anything that is not plain digits is a 400. |
What comes back
queue.sentCount (how many fans it had reached) and queue.viewedCount (the number OnlyFans reports as viewed), with isCanceled: true and canUnsend: false. A queue still scheduled answers sentCount: 0and leaves the scheduled list. The window is the queue's unsendSeconds, about 11.6 days from the send, against 24 hours for deleting one message with Delete Message. A queue that is gone or already unsent comes back as a 502 with code: "OF_API_ERROR", upstream_status: 404 and upstream_message: "Queue not found.".{
"data": {
"success": true,
"queue": {
"id": 48427873461,
"date": "2026-10-11T09:25:14+00:00",
"text": "<p>Hey everyone!</p>",
"isFree": true,
"sentCount": 1,
"viewedCount": 0,
"canUnsend": false,
"unsendSeconds": 0,
"isCanceled": true,
"mediaTypes": [],
"hasError": false,
"releaseForms": []
}
},
"_meta": {
"_credits": { "used": 1, "balance": 996 },
"_rate_limits": { "limit_minute": 60, "remaining_minute": 56 }
}
}curl "https://dev-api.onlyfans-api.ai/api/models/MODEL_UUID/queues/48427873461" \
-H "X-API-Key: sk_live_your_key_here"| Parameter | Type | Description |
|---|---|---|
queue_idrequired | string | In the path. The numeric id Mass Message returned. |
Reading it
total is -1 right after the send and the audience size once OnlyFans has counted the recipients (it read 2 for a two-fan send about 45 seconds later, with isDone: true). pending read 0 in every check. A scheduled queue stays at total: -1 and isDone: false until its time. The counts of how many fans received or viewed the message come with Unsend Mass Message, not from here.{
"data": {
"id": 48427873461,
"date": "2026-10-11T09:25:14+00:00",
"isReady": true,
"isDone": true,
"total": 2,
"pending": 0,
"canUnsend": true,
"unsendSeconds": 999320,
"hasError": false,
"isCanceled": false,
"isCouplePeopleMedia": false
},
"_meta": {
"_credits": { "used": 1, "balance": 997 },
"_rate_limits": { "limit_minute": 60, "remaining_minute": 57 }
}
}Note
isReady: false in OnlyFans until transcoding finishes (usually a few seconds).curl -X POST "https://dev-api.onlyfans-api.ai/api/models/MODEL_UUID/media/upload" \
-H "X-API-Key: sk_live_your_key_here" \
-F "file=@/path/to/your/file"| Parameter | Type | Description |
|---|---|---|
filerequired | file | The file to upload, as multipart/form-data. At most 25 MB; larger is a 413. |
{
"data": {
"processId": "0igom5veffr62bz6mw3t5",
"host": "convert3.onlyfans.com",
"name": "photo.jpg",
"extra": "yJG7SVadr+JWcbr3XxN...(opaque token, pass through as-is)"
},
"_meta": {
"_credits": { "used": 2, "balance": 4993 },
"_rate_limits": { "limit_minute": 60, "remaining_minute": 54 }
}
}curl -X POST "https://dev-api.onlyfans-api.ai/api/models/MODEL_UUID/chats/FAN_USER_ID/voice-message" \
-H "X-API-Key: sk_live_your_key_here" \
-F "file=@/path/to/your/file"| Parameter | Type | Description |
|---|---|---|
filerequired | file | The audio file to send as a voice note, as multipart/form-data. At most 25 MB; larger is a 413. |
price | number | Form field. Price of a paid voice note; not a number is a 400 (price must be a valid number).Default: 0 |
Idempotency-Key
Idempotency-Key header (a UUID), as on Send Message, so a retry cannot send the voice note twice.{
"data": {
"id": 9130375619420,
"text": "<p>Hey, thanks for subscribing!</p>",
"createdAt": "2026-04-04T10:00:00+00:00",
"fromUser": { "id": 523990756, "_view": "s" },
"isFree": true,
"isTip": false,
"media": [],
"mediaCount": 0,
"price": 0
},
"_meta": {
"_credits": { "used": 2, "balance": 4995 },
"_rate_limits": { "limit_minute": 60, "remaining_minute": 55 }
}
}curl "https://dev-api.onlyfans-api.ai/api/models/MODEL_UUID/giphy/trending?limit=10&offset=0" \
-H "X-API-Key: sk_live_your_key_here"| Parameter | Type | Description |
|---|---|---|
limit | integer | Number of GIFs to return.Default: 10 |
offset | integer | Number of GIFs to skip for pagination.Default: 0 |
{
"data": [
{
"type": "gif",
"id": "JMNUUrUh1Ymffmct3F",
"title": "Fall Season Illustration GIF by Sophie Potter",
"images": {
"fixed_height": {
"url": "https://media0.giphy.com/media/v1.../200.gif",
"width": "366",
"height": "200"
},
"original": {
"url": "https://media0.giphy.com/media/v1.../giphy.gif",
"width": "480",
"height": "262"
}
}
}
],
"_meta": {
"_credits": { "used": 1, "balance": 4992 },
"_rate_limits": { "limit_minute": 60, "remaining_minute": 53 }
}
}curl "https://dev-api.onlyfans-api.ai/api/models/MODEL_UUID/giphy/search?query=hello&limit=10" \
-H "X-API-Key: sk_live_your_key_here"| Parameter | Type | Description |
|---|---|---|
queryrequired | string | Search term. |
limit | integer | Number of GIFs to return.Default: 10 |
offset | integer | Number of GIFs to skip for pagination.Default: 0 |
{
"data": [
{
"type": "gif",
"id": "JMNUUrUh1Ymffmct3F",
"title": "Fall Season Illustration GIF by Sophie Potter",
"images": {
"fixed_height": {
"url": "https://media0.giphy.com/media/v1.../200.gif",
"width": "366",
"height": "200"
},
"original": {
"url": "https://media0.giphy.com/media/v1.../giphy.gif",
"width": "480",
"height": "262"
}
}
}
],
"_meta": {
"_credits": { "used": 1, "balance": 4992 },
"_rate_limits": { "limit_minute": 60, "remaining_minute": 53 }
}
}curl "https://dev-api.onlyfans-api.ai/api/models/MODEL_UUID/creators/mention?query=anna&limit=10&offset=0" \
-H "X-API-Key: sk_live_your_key_here"| Parameter | Type | Description |
|---|---|---|
queryrequired | string | The name to search. Missing or empty is a 400 (query param 'query' is required). |
limit | integer | Number of creators to return.Default: 10 |
offset | integer | Number of creators to skip for pagination.Default: 0 |
Response
data. It was not captured for these docs, so no example is shown: read it once on a test chat before you rely on its fields.curl -X POST "https://dev-api.onlyfans-api.ai/api/models/MODEL_UUID/chats/CHAT_ID/mark-as-unread" \
-H "X-API-Key: sk_live_your_key_here"curl -X POST "https://dev-api.onlyfans-api.ai/api/models/MODEL_UUID/chats/CHAT_ID/mark-as-read" \
-H "X-API-Key: sk_live_your_key_here"| Parameter | Type | Description |
|---|---|---|
chat_idrequired | string | In the path. The fan's OnlyFans user id (a chat is named by the fan). |
{
"data": { "success": true },
"_meta": {
"_credits": { "used": 1, "balance": 998 },
"_rate_limits": { "limit_minute": 60, "remaining_minute": 58 }
}
}Every chat, every fan
curl -X POST "https://dev-api.onlyfans-api.ai/api/models/MODEL_UUID/chats/mark-as-read" \
-H "X-API-Key: sk_live_your_key_here"Response
data. It was not captured for these docs, so no example is shown: read it once on a test chat before you rely on its fields.curl "https://dev-api.onlyfans-api.ai/api/models/MODEL_UUID/chats/FAN_USER_ID/messages/search?query=photo" \
-H "X-API-Key: sk_live_your_key_here"| Parameter | Type | Description |
|---|---|---|
user_idrequired | string | In the path. The fan's OnlyFans user id. |
queryrequired | string | The text to find. Missing or empty is a 400 (query param 'query' is required). The gateway passes no limit or offset: OnlyFans decides how many matches come back. |
Response
data. It was not captured for these docs, so no example is shown: read it once on a test chat before you rely on its fields.curl "https://dev-api.onlyfans-api.ai/api/models/MODEL_UUID/chats/FAN_USER_ID/comments" \
-H "X-API-Key: sk_live_your_key_here"| Parameter | Type | Description |
|---|---|---|
user_idrequired | string | In the path. The fan's OnlyFans user id. |
Response
curl "https://dev-api.onlyfans-api.ai/api/models/MODEL_UUID/chats/FAN_USER_ID/media?media_type=video&access=purchased&limit=10" \
-H "X-API-Key: sk_live_your_key_here"| Parameter | Type | Description |
|---|---|---|
user_idrequired | string | In the path. The fan's OnlyFans user id. |
limit | integer | Messages per page.Default: 10 |
media_type | string | photo, video or audio. Omit for all types. Anything else is a 400. |
access | string | unlocked (free, preview and opened media; paid media the fan has not opened is left out) or purchased (media the fan paid for). Omit for all. Anything else is a 400. |
last_id | string | The nextLastId of the previous page, while hasMore is true. It must be digits, otherwise it is a 400. |
What the gateway changes
limit and hasMore describe the filtered result. OnlyFans filters by message, so a message with a photo and a video comes back on the videos tab whole: with media_typethe gateway trims each message's media to that type and drops a message left with none. It also adds cursor_idto every media item. Everything else is OnlyFans' own answer.{
"data": {
"list": [
{
"id": 11778149660501,
"text": "<p>Message text</p>",
"isNew": false,
"isTip": false,
"media": [
{
"id": 4109726435,
"type": "photo",
"files": {
"full": { "url": "https://cdn2.onlyfans.com/files/.../full.jpg", "size": 0, "width": 2316, "height": 3088, "sources": [] },
"thumb": { "url": "https://cdn2.onlyfans.com/files/.../thumb.jpg", "size": 0, "width": 300, "height": 300 },
"preview": { "url": "https://cdn2.onlyfans.com/files/.../preview.jpg", "size": 0, "width": 960, "height": 1280 },
"squarePreview": { "url": "https://cdn2.onlyfans.com/files/.../square.jpg", "size": 0, "width": 960, "height": 960 }
},
"canView": true,
"isReady": true,
"duration": 0,
"hasError": false,
"createdAt": "2025-10-24T07:17:53+00:00",
"cursor_id": "gAAAAABq...",
"videoSources": { "240": null, "720": null },
"convertedToVideo": false,
"hasCustomPreview": false
}
],
"price": 0,
"isFree": true,
"giphyId": null,
"isLiked": false,
"queueId": 48609331871,
"fromUser": { "id": 523990756, "_view": "t" },
"isOpened": false,
"isPinned": false,
"previews": [],
"canReport": false,
"changedAt": "2026-10-24T21:38:29+00:00",
"createdAt": "2026-10-24T21:38:29+00:00",
"chatUserId": 111111111,
"lockedText": false,
"mediaCount": 1,
"canBePinned": true,
"canPurchase": false,
"isFromQueue": true,
"isMediaReady": true,
"releaseForms": [],
"responseType": "message",
"cancelSeconds": 23232,
"canUnsendQueue": true,
"isReportedByMe": false,
"canPurchaseReason": "free",
"isAddedToBookmarks": false,
"isMarkdownDisabled": true,
"unsendSecondsQueue": 1000000,
"isCouplePeopleMedia": false
}
],
"hasMore": true,
"nextLastId": "11656299133581"
},
"_meta": {
"_credits": { "used": 1, "balance": 46 },
"_rate_limits": { "limit_minute": 60, "remaining_minute": 58 }
}
}curl -X DELETE "https://dev-api.onlyfans-api.ai/api/models/MODEL_UUID/messages/MESSAGE_ID?user_id=553393565" \
-H "X-API-Key: sk_live_your_key_here"| Parameter | Type | Description |
|---|---|---|
user_idrequired | integer | The OnlyFans fan ID in the conversation. Sent as a query parameter; a JSON body {"user_id": ...} is accepted too, and if both are sent they must match. |
What the gateway does with an unsent message
/api/query only returns it with include_deleted: true, and the WebSocket feed delivers a chat_message_delete event for it.Chat actions
What the chat header and the fan menu on onlyfans.com do to one fan: mute, hide, restrict, block, delete the chat, the private note and nickname, and a free subscription. :user_id is the fan's OnlyFans user id. Each call is relayed to OnlyFans as is and answers with OnlyFans' own body; none of these answers was captured for these docs.
curl -X POST "https://dev-api.onlyfans-api.ai/api/models/MODEL_UUID/chats/FAN_USER_ID/mute" \
-H "X-API-Key: sk_live_your_key_here"Response
data. It was not captured for these docs, so no example is shown: read it once on a test chat before you rely on its fields.curl -X DELETE "https://dev-api.onlyfans-api.ai/api/models/MODEL_UUID/chats/FAN_USER_ID/mute" \
-H "X-API-Key: sk_live_your_key_here"Response
data. It was not captured for these docs, so no example is shown: read it once on a test chat before you rely on its fields.curl -X POST "https://dev-api.onlyfans-api.ai/api/models/MODEL_UUID/chats/FAN_USER_ID/hide" \
-H "X-API-Key: sk_live_your_key_here"There is no unhide
Response
data. It was not captured for these docs, so no example is shown: read it once on a test chat before you rely on its fields.curl -X POST "https://dev-api.onlyfans-api.ai/api/models/MODEL_UUID/chats/FAN_USER_ID/restrict" \
-H "X-API-Key: sk_live_your_key_here"Response
data. It was not captured for these docs, so no example is shown: read it once on a test chat before you rely on its fields.curl -X DELETE "https://dev-api.onlyfans-api.ai/api/models/MODEL_UUID/chats/FAN_USER_ID/restrict" \
-H "X-API-Key: sk_live_your_key_here"Response
data. It was not captured for these docs, so no example is shown: read it once on a test chat before you rely on its fields.Blocking cancels the fan's subscription
block_user event; whether this call sends one was not checked.curl -X POST "https://dev-api.onlyfans-api.ai/api/models/MODEL_UUID/chats/FAN_USER_ID/block" \
-H "X-API-Key: sk_live_your_key_here"Response
data. It was not captured for these docs, so no example is shown: read it once on a test chat before you rely on its fields.curl -X DELETE "https://dev-api.onlyfans-api.ai/api/models/MODEL_UUID/chats/FAN_USER_ID/block" \
-H "X-API-Key: sk_live_your_key_here"Response
data. It was not captured for these docs, so no example is shown: read it once on a test chat before you rely on its fields.Permanent
curl -X DELETE "https://dev-api.onlyfans-api.ai/api/models/MODEL_UUID/chats/FAN_USER_ID" \
-H "X-API-Key: sk_live_your_key_here"Response
data. It was not captured for these docs, so no example is shown: read it once on a test chat before you rely on its fields.curl -X PUT "https://dev-api.onlyfans-api.ai/api/models/MODEL_UUID/chats/FAN_USER_ID/note" \
-H "X-API-Key: sk_live_your_key_here" \
-H "Content-Type: application/json" \
-d '{"note": "Prefers short replies"}'| Parameter | Type | Description |
|---|---|---|
noterequired | string | The note. "" clears it. A body without the note key is a 400 ('note' field is required (pass an empty string to clear it)). |
Response
data. It was not captured for these docs, so no example is shown: read it once on a test chat before you rely on its fields.curl -X PUT "https://dev-api.onlyfans-api.ai/api/models/MODEL_UUID/chats/FAN_USER_ID/nickname" \
-H "X-API-Key: sk_live_your_key_here" \
-H "Content-Type: application/json" \
-d '{"nickname": "Fan Name"}'| Parameter | Type | Description |
|---|---|---|
nicknamerequired | string | The name to show. "" clears it. A body without the nickname key is a 400 ('nickname' field is required (pass an empty string to clear it)). |
Note
Response
data. It was not captured for these docs, so no example is shown: read it once on a test chat before you rely on its fields.curl -X POST "https://dev-api.onlyfans-api.ai/api/models/MODEL_UUID/chats/FAN_USER_ID/subscribe-free" \
-H "X-API-Key: sk_live_your_key_here"Response
data. It was not captured for these docs, so no example is shown: read it once on a test chat before you rely on its fields.Message actions
Pin, like or hide one message in a chat. :user_id is the fan's OnlyFans user id and :message_id the OnlyFans message id (id in Get Chat Messages, platform_message_id in /api/query), not the queueId. No body. Each answer is OnlyFans' own; none was captured for these docs. Bookmarking a message is under Bookmarks.
curl -X POST "https://dev-api.onlyfans-api.ai/api/models/MODEL_UUID/chats/FAN_USER_ID/messages/MESSAGE_ID/pin" \
-H "X-API-Key: sk_live_your_key_here"Note
isPinned on the message in Get Chat Messages.Response
data. It was not captured for these docs, so no example is shown: read it once on a test chat before you rely on its fields.curl -X DELETE "https://dev-api.onlyfans-api.ai/api/models/MODEL_UUID/chats/FAN_USER_ID/messages/MESSAGE_ID/pin" \
-H "X-API-Key: sk_live_your_key_here"Response
data. It was not captured for these docs, so no example is shown: read it once on a test chat before you rely on its fields.curl -X POST "https://dev-api.onlyfans-api.ai/api/models/MODEL_UUID/chats/FAN_USER_ID/messages/MESSAGE_ID/like" \
-H "X-API-Key: sk_live_your_key_here"Note
chat_message_like).Response
data. It was not captured for these docs, so no example is shown: read it once on a test chat before you rely on its fields.curl -X DELETE "https://dev-api.onlyfans-api.ai/api/models/MODEL_UUID/chats/FAN_USER_ID/messages/MESSAGE_ID/like" \
-H "X-API-Key: sk_live_your_key_here"Response
data. It was not captured for these docs, so no example is shown: read it once on a test chat before you rely on its fields.curl -X PUT "https://dev-api.onlyfans-api.ai/api/models/MODEL_UUID/chats/FAN_USER_ID/messages/MESSAGE_ID/hide" \
-H "X-API-Key: sk_live_your_key_here"Note
Response
data. It was not captured for these docs, so no example is shown: read it once on a test chat before you rely on its fields.Scheduling
Schedule a message to one fan, and read the model's scheduled messages. A scheduled message to a list is Mass Message with scheduledDate. These three calls cost 2 credits each.
curl -X POST "https://dev-api.onlyfans-api.ai/api/models/MODEL_UUID/chats/FAN_USER_ID/messages/schedule" \
-H "X-API-Key: sk_live_your_key_here" \
-H "Content-Type: application/json" \
-d '{"text": "Good morning!", "scheduledDate": "2026-11-09T08:00:00Z"}'| Parameter | Type | Description |
|---|---|---|
scheduledDaterequired | string | ISO 8601 time, for example "2026-11-09T08:00:00Z". Missing or empty is a 400 ('scheduledDate' (ISO 8601) is required). The gateway does not read the date; OnlyFans does. |
text | string | Message text. The gateway wraps it in <p>...</p>. Required if mediaFiles is empty (text or mediaFiles is required). |
mediaFiles | array | Media ids, or objects {id, thumbId}. With price > 0, a plain id is sent as {id, thumbId: 1}. |
price | number | Price of a paid message. 0 = free. Not a number is a 400 (price must be a valid number).Default: 0 |
lockedText | boolean | Lock the text itself behind price.Default: false |
previews | array | Passed to OnlyFans as is. Not an array is a 400 (previews must be an array).Default: [] |
Idempotency-Key
Idempotency-Key header (a UUID), as on Send Message: a retry with the same key and body answers the stored response (header Idempotency-Replayed: true) instead of scheduling a second message.After the call
id is the queueId, date the time you asked for, and total: -1until it is sent. The message then shows in List Scheduled Messages under an item id of its own; the item's entity.queueId is this id. The WebSocket feed sends a chat_queue_update when it is created and chat_queue_finish when it has been sent. Cancelling a scheduled queue with DELETE /models/:model_id/queues/:queue_id is documented for mass messages; for this call it was not tested.{
"data": {
"id": 49284721214,
"date": "2026-10-25T16:41:00+00:00",
"total": -1,
"isDone": false,
"isReady": true,
"pending": 0,
"hasError": false,
"canUnsend": true,
"isCanceled": false,
"unsendSeconds": 1000000,
"isCouplePeopleMedia": false
},
"_meta": {
"_credits": { "used": 2, "balance": 33 },
"_rate_limits": { "limit_minute": 60, "remaining_minute": 58 }
}
}curl "https://dev-api.onlyfans-api.ai/api/models/MODEL_UUID/schedules?publishDate=2026-11-08T00:00:00.000Z&publishDateEnd=2026-11-09T00:00:00.000Z&limit=20" \
-H "X-API-Key: sk_live_your_key_here"| Parameter | Type | Description |
|---|---|---|
publishDate | string | Start of the window, ISO 8601. Sent to OnlyFans only when given. |
publishDateEnd | string | End of the window, ISO 8601. Sent to OnlyFans only when given. |
timeZone | string | Sent to OnlyFans only when given. Its format was not checked. |
limit | integer | Number of items to return.Default: 20 |
Reading it
id (not the queueId), type, publishDateTime, and the message in entity: queueId, scheduledAt, and either userIds (one fan) or userLists and excludedLists (a list send). Whether a call without a window works was not tested: the call on record sent both dates.{
"data": {
"list": [
{
"id": 1782098354,
"type": "chat",
"entity": {
"id": 49284721214,
"text": "<p>Scheduled message text</p>",
"isNew": true,
"isTip": false,
"media": [],
"price": 0,
"isFree": true,
"giphyId": null,
"isLiked": false,
"queueId": 49284721214,
"rawText": "Scheduled message text",
"userIds": ["111111111"],
"isOpened": false,
"previews": [],
"changedAt": "2026-10-25T16:37:10+00:00",
"createdAt": "2026-10-25T16:37:10+00:00",
"lockedText": false,
"mediaCount": 0,
"canPurchase": false,
"isFromQueue": true,
"scheduledAt": "2026-10-25T16:41:00+00:00",
"isMediaReady": true,
"releaseForms": [],
"responseType": "message",
"cancelSeconds": 1000000,
"sentRulesType": "user",
"canUnsendQueue": true,
"sentRulesExtra": "u111111111",
"isMarkdownDisabled": true,
"unsendSecondsQueue": 1000000
},
"createdDateTime": "2026-10-25T16:37:11+00:00",
"publishDateTime": "2026-10-25T16:41:00+00:00"
},
{
"id": 1773796332,
"type": "chat",
"entity": {
"id": 49042145745,
"text": "<p>List message text</p>",
"media": [],
"price": 0,
"isFree": true,
"queueId": 49042145745,
"rawText": "List message text",
"userLists": ["fans", "following"],
"excludedLists": ["muted", "1228687696"],
"mediaCount": 1,
"isFromQueue": true,
"scheduledAt": "2026-10-25T21:39:00+00:00",
"sentRulesType": "custom",
"sentRulesExtra": "Custom list",
"canUnsendQueue": true,
"unsendSecondsQueue": 1000000
},
"createdDateTime": "2026-10-21T10:39:41+00:00",
"publishDateTime": "2026-10-25T21:39:00+00:00"
}
],
"syncInProcess": false
},
"_meta": {
"_credits": { "used": 2, "balance": 30 },
"_rate_limits": { "limit_minute": 60, "remaining_minute": 58 }
}
}curl "https://dev-api.onlyfans-api.ai/api/models/MODEL_UUID/schedules/counters?publishDate=2026-11-08T00:00:00.000Z&publishDateEnd=2026-11-09T00:00:00.000Z" \
-H "X-API-Key: sk_live_your_key_here"| Parameter | Type | Description |
|---|---|---|
publishDate | string | Start of the window, ISO 8601. |
publishDateEnd | string | End of the window, ISO 8601. |
timeZone | string | Sent to OnlyFans only when given. |
Response
data. It was not captured for these docs, so no example is shown: read it once on a test chat before you rely on its fields.Lists
The lists on a model's OnlyFans account: list them, create one, pin lists to the chat filter bar and sort it, see and change which lists one fan is on, and manage a custom list (rename, delete, add several fans at once, clear, read the members). Rename, delete, add and clear take custom lists (numeric ids) only; the members read also takes the built-in lists (fans, following, friends, muted, purchased, recent, tagged). The limits (fans per call, fans per list, lists per account, calls per day) were not measured.
curl "https://dev-api.onlyfans-api.ai/api/models/MODEL_UUID/lists?limit=10&offset=0" \
-H "X-API-Key: sk_live_your_key_here"| Parameter | Type | Description |
|---|---|---|
limit | integer | Lists per page.Default: 10 |
offset | integer | Lists to skip.Default: 0 |
query | string | Search the list names, on OnlyFans. Not with view=queue: that is a 400 ('query' cannot be combined with view=queue). |
view | string | queue, or leave it out. Any other value is a 400 ('view' must be 'queue' when given). |
The two views
sort and order of that bar (see Sort Pinned Lists). view=queueis the call OnlyFans' New Message screen makes for its recipient picker: it adds the built-in lists (fans, recent, following, muted, tagged) to the custom ones, each with id, type, name, usersCount and a preview of three fans, and pages with hasMore. Both answers are OnlyFans' own; neither was captured for these docs.curl -X POST "https://dev-api.onlyfans-api.ai/api/models/MODEL_UUID/lists" \
-H "X-API-Key: sk_live_your_key_here" \
-H "Content-Type: application/json" \
-d '{"name": "Cross-promo wave 1"}'| Parameter | Type | Description |
|---|---|---|
namerequired | string | The list name. Missing or empty is a 400 (name is required). |
Response
usersCount: 0, postsCount: 0 and users: [], as the list is empty. Keep its id: every other list call takes it. A full example was not captured for these docs; the list object of Rename List shows the fields a list has.curl -X PATCH "https://dev-api.onlyfans-api.ai/api/models/MODEL_UUID/lists/1320546743/pin" \
-H "X-API-Key: sk_live_your_key_here" \
-H "Content-Type: application/json" \
-d '{"pinned": true}'| Parameter | Type | Description |
|---|---|---|
list_idrequired | string | In the path. The id of one of the model's lists. |
pinnedrequired | boolean | true pins, false unpins. A body without it is a 400 ('pinned' field (boolean) is required). Send a JSON boolean: the gateway reads the value as true or false the way Python does, so the string "false" counts as true. |
Note
isPinnedToChat of Get Lists.Response
data. It was not captured for these docs, so no example is shown: read it once on a test chat before you rely on its fields.This is an account setting
sort and order. OnlyFans' drag-to-reorder (Customize order) is not supported.curl -X POST "https://dev-api.onlyfans-api.ai/api/models/MODEL_UUID/lists/sort" \
-H "X-API-Key: sk_live_your_key_here" \
-H "Content-Type: application/json" \
-d '{"sort": "name", "order": "asc"}'| Parameter | Type | Description |
|---|---|---|
sortrequired | string | One of recent, name, people or custom. Anything else is a 400. |
orderrequired | string | asc or desc. Anything else is a 400. |
Response
data. It was not captured for these docs, so no example is shown: read it once on a test chat before you rely on its fields.curl "https://dev-api.onlyfans-api.ai/api/models/MODEL_UUID/chats/FAN_USER_ID/lists?limit=10&offset=0" \
-H "X-API-Key: sk_live_your_key_here"| Parameter | Type | Description |
|---|---|---|
user_idrequired | string | In the path. The fan's OnlyFans user id. |
limit | integer | Lists per page.Default: 10 |
offset | integer | Lists to skip. Lists further out (muted, purchased, recent, tagged and more custom lists) come on the next pages.Default: 0 |
query | string | Search the list names, on OnlyFans. |
Response
data. It was not captured for these docs, so no example is shown: read it once on a test chat before you rely on its fields.curl -X POST "https://dev-api.onlyfans-api.ai/api/models/MODEL_UUID/chats/FAN_USER_ID/lists/1320546743" \
-H "X-API-Key: sk_live_your_key_here"| Parameter | Type | Description |
|---|---|---|
user_idrequired | string | In the path. The fan's OnlyFans user id. |
list_idrequired | string | In the path. A custom list's numeric id, or a built-in list id. The gateway passes it to OnlyFans unchecked. |
Response
data. It was not captured for these docs, so no example is shown: read it once on a test chat before you rely on its fields.curl -X DELETE "https://dev-api.onlyfans-api.ai/api/models/MODEL_UUID/chats/FAN_USER_ID/lists/1320546743" \
-H "X-API-Key: sk_live_your_key_here"| Parameter | Type | Description |
|---|---|---|
user_idrequired | string | In the path. The fan's OnlyFans user id. |
list_idrequired | string | In the path. The list's id. |
Response
data. It was not captured for these docs, so no example is shown: read it once on a test chat before you rely on its fields.curl -X PATCH "https://dev-api.onlyfans-api.ai/api/models/MODEL_UUID/lists/1320546743" \
-H "X-API-Key: sk_live_your_key_here" \
-H "Content-Type: application/json" \
-d '{"name": "Cross-promo wave 1 - renamed"}'| Parameter | Type | Description |
|---|---|---|
list_idrequired | string | In the path. The numeric id of a custom list. A built-in list (fans, muted, ...) or anything that is not plain digits is a 400. |
namerequired | string | The new name. Blank is a 400. |
{
"data": {
"id": "1320546743",
"type": "custom",
"name": "Cross-promo wave 1 - renamed",
"usersCount": 2,
"postsCount": 0,
"order": "default",
"direction": "asc",
"canUpdate": true,
"canDelete": true,
"canManageUsers": true,
"canAddUsers": true,
"canPinnedToFeed": true,
"isPinnedToFeed": false,
"canPinnedToChat": true,
"isPinnedToChat": false,
"sortList": [],
"users": [
{
"view": "t",
"id": 111111111,
"name": "Fan One",
"username": "u111111111",
"isVerified": false,
"isDeleted": false,
"isActive": true,
"avatar": null,
"avatarThumbs": null,
"displayName": "Fan One"
},
{
"view": "t",
"id": 111111112,
"name": "Fan Two",
"username": "u111111112",
"isVerified": false,
"isDeleted": false,
"isActive": true,
"avatar": null,
"avatarThumbs": null,
"displayName": "Fan Two"
}
]
},
"_meta": {
"_credits": { "used": 1, "balance": 995 },
"_rate_limits": { "limit_minute": 60, "remaining_minute": 55 }
}
}The list is gone for good
{"success": true}. Reading the members of a deleted list comes back as a 502 with upstream_status: 404 and upstream_message: "User list not found".curl -X DELETE "https://dev-api.onlyfans-api.ai/api/models/MODEL_UUID/lists/1320546743" \
-H "X-API-Key: sk_live_your_key_here"| Parameter | Type | Description |
|---|---|---|
list_idrequired | string | In the path. The numeric id of a custom list. |
{
"data": { "success": true },
"_meta": {
"_credits": { "used": 1, "balance": 998 },
"_rate_limits": { "limit_minute": 60, "remaining_minute": 58 }
}
}All or nothing
400 "Unable to add <username> to <list>", which comes back here as a 502 with code: "OF_API_ERROR". A call with one fan already in the list and one new fan added neither. Send only fans that are not in the list yet, or clear the list first. Repeated ids inside one call are dropped by the gateway before it asks OnlyFans.curl -X POST "https://dev-api.onlyfans-api.ai/api/models/MODEL_UUID/lists/1320546743/users" \
-H "X-API-Key: sk_live_your_key_here" \
-H "Content-Type: application/json" \
-d '{"userIds": [111111111, 111111112]}'| Parameter | Type | Description |
|---|---|---|
list_idrequired | string | In the path. The numeric id of a custom list. |
userIdsrequired | array | OnlyFans fan ids, as numbers or digit strings; at least one. The gateway sets no maximum: how many OnlyFans takes in one call was not measured. |
What comes back
{
"data": { "1320546743": [111111111, 111111112] },
"_meta": {
"_credits": { "used": 1, "balance": 993 },
"_rate_limits": { "limit_minute": 60, "remaining_minute": 53 }
}
}This removes everyone
DELETE /models/:model_id/chats/:user_id/lists/:list_id. To rebuild a list: clear it, then add the fans in one call.curl -X DELETE "https://dev-api.onlyfans-api.ai/api/models/MODEL_UUID/lists/1320546743/users" \
-H "X-API-Key: sk_live_your_key_here"| Parameter | Type | Description |
|---|---|---|
list_idrequired | string | In the path. The numeric id of a custom list. |
{
"data": {
"id": "1320546743",
"type": "custom",
"name": "Cross-promo wave 1 - renamed",
"usersCount": 0,
"postsCount": 0,
"order": "default",
"direction": "asc",
"canUpdate": true,
"canDelete": true,
"canManageUsers": true,
"canAddUsers": true,
"canPinnedToFeed": true,
"isPinnedToFeed": false,
"canPinnedToChat": true,
"isPinnedToChat": false,
"sortList": [],
"users": []
},
"_meta": {
"_credits": { "used": 1, "balance": 994 },
"_rate_limits": { "limit_minute": 60, "remaining_minute": 54 }
}
}curl "https://dev-api.onlyfans-api.ai/api/models/MODEL_UUID/lists/1320546743/users?offset=0&limit=10&fields=slim" \
-H "X-API-Key: sk_live_your_key_here"| Parameter | Type | Description |
|---|---|---|
list_idrequired | string | In the path. The numeric id of a custom list, or one of the built-in lists: fans, following, friends, muted, purchased, recent, tagged. |
offset | number | Where to start. Use nextOffset from the previous page.Default: 0 |
limit | number | Fans per page. OnlyFans' own list screen asks for 10; 100 was tried on following and returned 100 fans (about 415 kB, 8 seconds). Larger values were not tried.Default: 10 |
fields | string | v3 extension, off unless you ask. raw (the default) is OnlyFans' own fan objects, unchanged: the lists a fan is on, the subscription state and the lifetime spend are in them. slim shortens each fan to id, username, name, displayName, isActive and lastSeen and nothing else: no spend, no subscription state, no lists. Same convention as Stats > Fans.Default: raw |
Following and the other built-in lists
- Every built-in list answered in a read-only check on one creator.
friendsandpurchasedwere empty there, so what their fan objects hold was not seen. Only the members read takes these ids; rename, delete, add and clear refuse them. - The list is the list, not the chats: a fan with no chat is on it. In the check on
following, every fan of the first ten came withlistsStates(every list the fan is on, custom ones included) andsubscribedByData, and 8 of the 10 had a number insubscribedOnData.totalSumm(what the fan has spent with the creator). The other 2 had nosubscribedOnDatavalues. - That is the raw answer, the default.
fields=slimleaves all of it out, so do not use slim when you need spend, state or lists.
Paging
offset set to the nextOffset of the page you have, while hasMore is true. Do not compute it as offset plus the number of fans: OnlyFans skips some rows, so a page that started at 13 returned 10 fans and a nextOffset of 25. A raw fan object is several kilobytes (three test fans came to 12.8 kB raw and 0.5 kB slim), so use fields=slim for a membership check. The OnlyFans web app pages by 10.{
"data": {
"list": [
{
"view": "x",
"id": 111111111,
"name": "Fan One",
"username": "u111111111",
"displayName": "Fan One",
"isActive": true,
"lastSeen": "2026-10-11T04:17:21+00:00",
"subscribedBy": false,
"subscribedOn": true,
"listsStates": [
{
"id": "fans",
"type": "fans",
"name": "Fans",
"hasUser": true,
"canAddUser": false,
"cannotAddUserReason": "ALREADY_EXISTS"
}
],
"subscribedOnData": {
"price": 0,
"subscribeAt": "2026-10-05T12:57:27+00:00",
"expiredAt": "2026-11-04T12:57:27+00:00",
"totalSumm": 4.8
}
}
],
"nextOffset": 2,
"hasMore": true
},
"_meta": {
"_credits": { "used": 1, "balance": 992 },
"_rate_limits": { "limit_minute": 60, "remaining_minute": 52 }
}
}{
"data": {
"list": [
{
"id": 111111111,
"username": "u111111111",
"name": "Fan One",
"displayName": "Fan One",
"isActive": true,
"lastSeen": "2026-10-11T04:17:21+00:00"
}
],
"nextOffset": 2,
"hasMore": true
},
"_meta": {
"_credits": { "used": 1, "balance": 991 },
"_rate_limits": { "limit_minute": 60, "remaining_minute": 51 }
}
}Bookmarks
Bookmark messages and file them in bookmark categories: the Add to collection dialog on onlyfans.com.
chatGroupId is the message's own queueId
chatGroupId in the body: the message's own queueId (queue_id in /api/query, when named in fields; queueId in a live message), not the chat or fan id.queueId is accepted as an alternative name, and OnlyFans takes the value as a string or a number. The stored is_added_to_bookmarksflag is a snapshot from when the message was first synced; read a message's current state from isAddedToBookmarks in the live Get Chat Messages response.curl -X POST "https://dev-api.onlyfans-api.ai/api/models/MODEL_UUID/chats/FAN_USER_ID/messages/MESSAGE_ID/bookmark" \
-H "X-API-Key: sk_live_your_key_here" \
-H "Content-Type: application/json" \
-d '{"chatGroupId": "47969407551"}'| Parameter | Type | Description |
|---|---|---|
chatGroupIdrequired | string | The message's own queueId. |
{
"data": { "success": true },
"_meta": {
"_credits": { "used": 1, "balance": 998 },
"_rate_limits": { "limit_minute": 60, "remaining_minute": 58 }
}
}curl -X DELETE "https://dev-api.onlyfans-api.ai/api/models/MODEL_UUID/chats/FAN_USER_ID/messages/MESSAGE_ID/bookmark" \
-H "X-API-Key: sk_live_your_key_here" \
-H "Content-Type: application/json" \
-d '{"chatGroupId": "47969407551"}'| Parameter | Type | Description |
|---|---|---|
chatGroupIdrequired | string | The message's own queueId. |
{
"data": { "success": true },
"_meta": {
"_credits": { "used": 1, "balance": 998 },
"_rate_limits": { "limit_minute": 60, "remaining_minute": 58 }
}
}curl "https://dev-api.onlyfans-api.ai/api/models/MODEL_UUID/bookmarks/categories?messageId=11486645186108&chatGroupId=47969407551" \
-H "X-API-Key: sk_live_your_key_here"| Parameter | Type | Description |
|---|---|---|
limit | integer | Number of categories to return.Default: 10 |
offset | integer | Number of categories to skip for pagination.Default: 0 |
messageId | string | The message the dialog was opened on (its OnlyFans message id). Send it together with chatGroupId, or neither. |
chatGroupId | string | That message's own queueId. Send it together with messageId, or neither. |
Note
sort and order.{
"data": {
"list": [
{
"id": "4027583",
"name": "Favorites",
"postCount": 0,
"messageCount": 1,
"lastActivity": "2026-10-03T20:26:29+00:00",
"posts": [{ "type": "text", "canViewMedia": true, "postId": "11486645186108" }],
"hasPost": true
}
],
"hasMore": false,
"order": "asc",
"sort": "name",
"all": {
"postCount": 0,
"messageCount": 1,
"posts": [{ "type": "text", "canViewMedia": true, "postId": "11486645186108" }]
}
},
"_meta": {
"_credits": { "used": 1, "balance": 998 },
"_rate_limits": { "limit_minute": 60, "remaining_minute": 58 }
}
}curl -X POST "https://dev-api.onlyfans-api.ai/api/models/MODEL_UUID/bookmarks/categories" \
-H "X-API-Key: sk_live_your_key_here" \
-H "Content-Type: application/json" \
-d '{"name": "Favorites"}'| Parameter | Type | Description |
|---|---|---|
namerequired | string | The category name. |
{
"data": {
"id": "4027509",
"name": "Favorites",
"postCount": 0,
"messageCount": 0,
"lastActivity": "2026-10-03T20:05:49+00:00",
"posts": []
},
"_meta": {
"_credits": { "used": 1, "balance": 998 },
"_rate_limits": { "limit_minute": 60, "remaining_minute": 58 }
}
}This is an account setting
curl -X POST "https://dev-api.onlyfans-api.ai/api/models/MODEL_UUID/bookmarks/categories/sort" \
-H "X-API-Key: sk_live_your_key_here" \
-H "Content-Type: application/json" \
-d '{"sort": "name", "order": "asc"}'| Parameter | Type | Description |
|---|---|---|
sortrequired | string | One of recent, name, bookmarks_count or custom. |
orderrequired | string | asc or desc. |
{
"data": { "success": true },
"_meta": {
"_credits": { "used": 1, "balance": 998 },
"_rate_limits": { "limit_minute": 60, "remaining_minute": 58 }
}
}curl -X POST "https://dev-api.onlyfans-api.ai/api/models/MODEL_UUID/bookmarks/categories/CATEGORY_ID/messages/MESSAGE_ID" \
-H "X-API-Key: sk_live_your_key_here" \
-H "Content-Type: application/json" \
-d '{"chatGroupId": "47969407551"}'| Parameter | Type | Description |
|---|---|---|
chatGroupIdrequired | string | The message's own queueId. |
{
"data": {
"bookmarkCategory": {
"id": "4027509",
"name": "Favorites",
"postCount": 0,
"messageCount": 1,
"lastActivity": "2026-10-03T20:06:00+00:00",
"posts": [{ "type": "text", "canViewMedia": true, "postId": "11486645186108" }]
},
"bookmarkCategoryPost": {
"id": "64213909",
"categoryId": "4027509",
"userId": 523990756,
"postId": null,
"messageId": "11486645186108",
"postUserId": 566432805,
"publishDate": "2026-10-03T17:50:37+00:00"
},
"success": true
},
"_meta": {
"_credits": { "used": 1, "balance": 998 },
"_rate_limits": { "limit_minute": 60, "remaining_minute": 58 }
}
}curl -X DELETE "https://dev-api.onlyfans-api.ai/api/models/MODEL_UUID/bookmarks/categories/CATEGORY_ID/messages/MESSAGE_ID" \
-H "X-API-Key: sk_live_your_key_here" \
-H "Content-Type: application/json" \
-d '{"chatGroupId": "47969407551"}'| Parameter | Type | Description |
|---|---|---|
chatGroupIdrequired | string | The message's own queueId. |
{
"data": {
"id": "4027509",
"name": "Favorites",
"postCount": 0,
"messageCount": 0,
"lastActivity": "2026-10-03T20:05:49+00:00",
"posts": []
},
"_meta": {
"_credits": { "used": 1, "balance": 998 },
"_rate_limits": { "limit_minute": 60, "remaining_minute": 58 }
}
}curl "https://dev-api.onlyfans-api.ai/api/models/MODEL_UUID/bookmarks?type=all&entityType=messages&filter=date_last_1_week" \
-H "X-API-Key: sk_live_your_key_here"| Parameter | Type | Description |
|---|---|---|
type | string | Media type: all, photos, videos or audios. The Other and Locked chips are not supported yet.Default: all |
entityType | string | all, posts or messages.Default: all |
filter | string | Date filter: date_last_1_week, date_last_1_month or date_last_3_months. Omit for all time. |
order | string | publish_date_asc for oldest first. Omit for newest first. |
limit | integer | Number of bookmarks to return.Default: 10 |
offset | integer | Number of bookmarks to skip for pagination.Default: 0 |
Note
entityType=messages each item is the full OnlyFans message object, so keep limit small.{
"data": {
"list": [
{
"responseType": "message",
"id": 11486645186108,
"text": "<p>hi molly 2</p>",
"queueId": 47969407551,
"createdAt": "2026-10-03T17:50:37+00:00",
"fromUser": { "id": 566432805, "displayName": "Patrick//" },
"isAddedToBookmarks": true,
"isPinned": true,
"chatUserId": 566432805
}
],
"hasMore": false
},
"_meta": {
"_credits": { "used": 1, "balance": 998 },
"_rate_limits": { "limit_minute": 60, "remaining_minute": 58 }
}
}Stats
Analytics endpoints. All stats endpoints require startDate and endDate query parameters in YYYY-MM-DD format.
curl "https://dev-api.onlyfans-api.ai/api/models/MODEL_UUID/stats/overview?startDate=2026-03-01&endDate=2026-03-31" \
-H "X-API-Key: sk_live_your_key_here"| Parameter | Type | Description |
|---|---|---|
startDaterequired | string | Start date in YYYY-MM-DD format |
endDaterequired | string | End date in YYYY-MM-DD format |
curl "https://dev-api.onlyfans-api.ai/api/models/MODEL_UUID/stats/reach?startDate=2026-03-01&endDate=2026-03-31" \
-H "X-API-Key: sk_live_your_key_here"| Parameter | Type | Description |
|---|---|---|
startDaterequired | string | Start date in YYYY-MM-DD format |
endDaterequired | string | End date in YYYY-MM-DD format |
curl "https://dev-api.onlyfans-api.ai/api/models/MODEL_UUID/stats/reach/by-country?startDate=2026-03-01&endDate=2026-03-31&limit=3" \
-H "X-API-Key: sk_live_your_key_here"| Parameter | Type | Description |
|---|---|---|
startDaterequired | string | Start date in YYYY-MM-DD format |
endDaterequired | string | End date in YYYY-MM-DD format |
limit | integer | Number of countries to returnDefault: 3 |
curl "https://dev-api.onlyfans-api.ai/api/models/MODEL_UUID/stats/fans?startDate=2026-10-04%2010:30:00&endDate=2026-10-04%2011:10:00&by=new" \
-H "X-API-Key: sk_live_your_key_here"| Parameter | Type | Description |
|---|---|---|
startDaterequired | string | Start, UTC, YYYY-MM-DD HH:MM:SS (for example 2026-10-04 10:30:00). The time of day is honoured to the second and the start is inclusive |
endDaterequired | string | End, UTC, YYYY-MM-DD HH:MM:SS. The end is inclusive |
by | string | OnlyFans' own filter, passed through: total (all subscriptions), new (first-time subscribers) or renew (renewals)Default: total |
offset | integer | Pagination offset, a multiple of 10. Go up by 10 for every page while hasMore is trueDefault: 0 |
fields | string | v3 extension. raw: OnlyFans' own fan objects, unchanged. slim: id, username, subscribeAt, expiredAt, price and subscribes (date, action, type, price) per fan. subscribeAt is the ORIGINAL subscribe date; for a renewal or return the time of the event is subscribes[].dateDefault: raw |
Exact times, UTC
- Both ends are inclusive and the time of day is honoured to the second.
- The response is OnlyFans' own: one page of 10, as its Statistics > Fans list returns it (
users,offset,hasMore).byis OnlyFans' own filter, passed through.fields=slimis a v3 extension. - A call is one call to OnlyFans and costs 1 credit. For more than one page, call again with
offsetup by 10 whilehasMoreis true (see below). subscribeAtis the fan's original subscribe date. For a renewal (prolong) or a return, the time of the event issubscribes[].date, next to itsaction(subscribe, prolong, return),type(trial, promo, regular) and price.by=newis OnlyFans' own set: it also holds free trials, promos and returning fans (actionreturn). To count paying new subscribers, keep the entries whosesubscribes[]has a price above 0, or use the payouts transactions.- Deleted accounts are not listed, so a count can run a little under the total OnlyFans shows for the same range. OnlyFans' own daily summary chart cannot count a window shorter than a day.
- Only
startDate,endDate,offset,byandfieldsare forwarded; other parameters are ignored.
Reading a whole window
- Go up by 10 for every page, not by the number of fans in the answer: OnlyFans leaves deleted accounts out of a page, so a page can hold fewer than 10 and still be followed by another.
- Stop when
hasMoreis false. - Keep a fan once by
id. New subscribers arriving while you page shift the list; anendDatein the past gives a list that does not move. - On 429 or 502, wait a few seconds and ask for the same
offsetagain.
import time
import requests
def fans_in_window(model_id, start, end, by="new", key="YOUR_API_KEY"):
seen, offset, retries = {}, 0, 0
while True:
r = requests.get(
f"https://api.onlyfans-api.ai/api/models/{model_id}/stats/fans",
params={"startDate": start, "endDate": end, "by": by, "offset": offset},
headers={"X-API-Key": key},
)
if r.status_code in (429, 502) and retries < 5: # slow down, same offset again
retries += 1
time.sleep(5)
continue
r.raise_for_status()
retries = 0
page = r.json()["data"]
for fan in page["users"]:
seen[fan["id"]] = fan # a fan seen twice counts once
if not page["hasMore"]:
return list(seen.values())
offset += 10 # always 10, not len(page["users"])async function fansInWindow(modelId, start, end, by = "new", key = "YOUR_API_KEY") {
const seen = new Map()
let offset = 0
let retries = 0
for (;;) {
const qs = new URLSearchParams({ startDate: start, endDate: end, by, offset })
const res = await fetch(
"https://api.onlyfans-api.ai/api/models/" + modelId + "/stats/fans?" + qs,
{ headers: { "X-API-Key": key } },
)
if ((res.status === 429 || res.status === 502) && retries < 5) { // slow down, same offset again
retries++
await new Promise((resolve) => setTimeout(resolve, 5000))
continue
}
if (!res.ok) throw new Error("HTTP " + res.status)
retries = 0
const page = (await res.json()).data
for (const fan of page.users) seen.set(fan.id, fan) // a fan seen twice counts once
if (!page.hasMore) return [...seen.values()]
offset += 10 // always 10, not page.users.length
}
}{
"data": {
"users": [
{
"id": 333276012,
"name": "Fan Name",
"username": "u333276012",
"subscribedOn": true,
"subscribedOnData": {
"price": 0,
"subscribeAt": "2026-10-04T10:35:41+00:00",
"expiredAt": "2036-10-04T10:35:41+00:00",
"subscribes": [
{ "id": 15424842457, "date": "2026-10-04T10:35:41+00:00", "action": "subscribe", "type": "trial", "price": 0 }
]
}
}
],
"offset": 0,
"hasMore": false
},
"_meta": {
"_credits": { "used": 1, "balance": 4990 },
"_rate_limits": { "limit_minute": 60, "remaining_minute": 51 }
}
}{
"data": {
"users": [
{
"id": 333276012, "username": "u333276012", "subscribeAt": "2026-10-04T10:35:41+00:00", "expiredAt": "2036-10-04T10:35:41+00:00", "price": 0,
"subscribes": [{ "date": "2026-10-04T10:35:41+00:00", "action": "subscribe", "type": "trial", "price": 0 }]
},
{
"id": 333276013, "username": "u333276013", "subscribeAt": "2025-03-16T21:41:12+00:00", "expiredAt": "2026-11-03T10:38:32+00:00", "price": 20,
"subscribes": [{ "date": "2026-10-04T10:38:32+00:00", "action": "prolong", "type": "regular", "price": 20 }]
}
],
"offset": 0,
"hasMore": false
},
"_meta": {
"_credits": { "used": 1, "balance": 4990 },
"_rate_limits": { "limit_minute": 60, "remaining_minute": 51 }
}
}curl "https://dev-api.onlyfans-api.ai/api/models/MODEL_UUID/stats/mass-messages?startDate=2026-10-11%2000:00:00&endDate=2026-10-12%2000:00:00&limit=10" \
-H "X-API-Key: sk_live_your_key_here"| Parameter | Type | Description |
|---|---|---|
startDaterequired | string | Start, UTC, YYYY-MM-DD HH:MM:SS (for example 2026-10-11 00:00:00). |
endDaterequired | string | End, UTC, YYYY-MM-DD HH:MM:SS. For the next page, set it to the date of the last item you got. |
limit | number | Queues per page. OnlyFans' own screen asks for 10; larger values were not tried.Default: 10 |
fields | string | v3 extension, off unless you ask. raw (the default) is OnlyFans' own items, unchanged, media and signed CDN urls included. slim keeps id, date, rawText, isFree, price, mediaCount, sentCount, viewedCount, purchasedCount, canSendMessageToBuyers, isCanceled, canUnsend and unsendSeconds and drops the media. price, purchasedCount and canSendMessageToBuyers are missing from a free queue's raw item and null in slim.Default: raw |
Reading it
- The response is OnlyFans' own:
{hasMore, items}, one item per queue. An item'sidis the queueId that Mass Message answered with, so it also works with Unsend Mass Message and Mass Message Status. sentCountis how many fans it reached,viewedCounthow many viewed it. In the one test, a paid message whose recipient only opened the chat, with the message still locked, readviewedCount: 0; after one fan bought it and another opened the chat it read1. Which of the two counted was not separated.- A paid queue also has
price,purchasedCountandcanSendMessageToBuyers. A $3 queue to two fans readpurchasedCount: 0before one fan bought it and1after. A free queue has none of the three. - A queue that was unsent or cancelled stays in the list with
isCanceled: true; itssentCountis how many fans it had reached. - A call is one call to OnlyFans and costs 1 credit. Only
startDate,endDate,limitandfieldsare forwarded.
Paging
- There is no offset. Call again with
endDateset to thedateof the last item, whilehasMoreis true. - In the test the item with that exact date was not repeated on the next page. Two queues with the same second at a page boundary were not tried.
- Raw items carry the media with signed CDN urls, about 10 kB for one photo;
fields=slimis the small version for counting.
import requests
def mass_messages_in_window(model_id, start, end, key="YOUR_API_KEY"):
queues = []
while True:
r = requests.get(
f"https://api.onlyfans-api.ai/api/models/{model_id}/stats/mass-messages",
params={"startDate": start, "endDate": end, "limit": 10, "fields": "slim"},
headers={"X-API-Key": key},
)
r.raise_for_status()
page = r.json()["data"]
queues += page["items"]
if not page["hasMore"] or not page["items"]:
return queues
# next page: the same call, endDate = the date of the last item (UTC)
end = page["items"][-1]["date"][:19].replace("T", " "){
"data": {
"hasMore": true,
"items": [
{
"id": 48449804475,
"date": "2026-10-11T18:08:48+00:00",
"responseType": "message",
"text": "<p>ofa-43 ppv test ($3), ignore</p>",
"rawText": "ofa-43 ppv test ($3), ignore",
"giphyId": null,
"isFree": false,
"isMediaReady": true,
"mediaCount": 1,
"media": [
{
"id": 4736868567,
"type": "photo",
"canView": true,
"isReady": true,
"files": {
"full": { "url": "https://cdn2.onlyfans.com/files/.../800x1000_....jpg?Tag=2&Policy=...&Signature=...", "width": 800, "height": 1000 }
}
}
],
"previews": [],
"isTip": false,
"isReportedByMe": false,
"viewedCount": 1,
"sentCount": 2,
"isCanceled": false,
"template": "group",
"canUnsend": true,
"unsendSeconds": 1000000,
"price": "3.00",
"purchasedCount": 1,
"canSendMessageToBuyers": true
},
{
"id": 48436521037,
"date": "2026-10-11T13:09:43+00:00",
"responseType": "message",
"text": "<p>Hey everyone!</p>",
"rawText": "Hey everyone!",
"giphyId": null,
"isFree": true,
"isMediaReady": true,
"mediaCount": 0,
"media": [],
"previews": [],
"isTip": false,
"isReportedByMe": false,
"viewedCount": 0,
"sentCount": 2,
"isCanceled": true,
"template": "group",
"canUnsend": false,
"unsendSeconds": 0
}
]
},
"_meta": {
"_credits": { "used": 1, "balance": 990 },
"_rate_limits": { "limit_minute": 60, "remaining_minute": 50 }
}
}{
"data": {
"hasMore": true,
"items": [
{
"id": 48449804475,
"date": "2026-10-11T18:08:48+00:00",
"rawText": "ofa-43 ppv test ($3), ignore",
"isFree": false,
"price": "3.00",
"mediaCount": 1,
"sentCount": 2,
"viewedCount": 1,
"purchasedCount": 1,
"canSendMessageToBuyers": true,
"isCanceled": false,
"canUnsend": true,
"unsendSeconds": 1000000
},
{
"id": 48436521037,
"date": "2026-10-11T13:09:43+00:00",
"rawText": "Hey everyone!",
"isFree": true,
"price": null,
"mediaCount": 0,
"sentCount": 2,
"viewedCount": 0,
"purchasedCount": null,
"canSendMessageToBuyers": null,
"isCanceled": true,
"canUnsend": false,
"unsendSeconds": 0
}
]
},
"_meta": {
"_credits": { "used": 1, "balance": 989 },
"_rate_limits": { "limit_minute": 60, "remaining_minute": 49 }
}
}curl "https://dev-api.onlyfans-api.ai/api/models/MODEL_UUID/stats/fans/top?startDate=2026-03-01&endDate=2026-03-31&offset=0" \
-H "X-API-Key: sk_live_your_key_here"| Parameter | Type | Description |
|---|---|---|
startDaterequired | string | Start date in YYYY-MM-DD format |
endDaterequired | string | End date in YYYY-MM-DD format |
offset | integer | Pagination offsetDefault: 0 |
Vault
Access the model's OnlyFans vault — organized media collections and individual media files.
curl "https://dev-api.onlyfans-api.ai/api/models/MODEL_UUID/vault/lists?limit=10&offset=0&view=main" \
-H "X-API-Key: sk_live_your_key_here"| Parameter | Type | Description |
|---|---|---|
limit | integer | Number of lists to returnDefault: 10 |
offset | integer | Pagination offsetDefault: 0 |
view | string | View typeDefault: main |
{
"data": {
"all": {
"audiosCount": 9,
"gifsCount": 0,
"photosCount": 711,
"videosCount": 207,
"medias": [
{ "type": "photo", "url": "https://cdn2.onlyfans.com/files/.../300x300_xxx.jpg?..." }
]
},
"canCreateVaultLists": true,
"hasMore": true,
"order": "asc",
"sort": "custom",
"list": [
{
"id": 25744825,
"name": "MM to schedule",
"type": "custom",
"canDelete": true,
"canUpdate": true,
"hasMedia": true,
"audiosCount": 0,
"gifsCount": 0,
"photosCount": 56,
"videosCount": 0,
"medias": [
{ "type": "photo", "url": "https://cdn2.onlyfans.com/files/.../300x300_xxx.jpg?..." }
]
}
]
},
"_meta": {
"_credits": { "used": 1, "balance": 95 },
"_rate_limits": { "limit_minute": 10, "remaining_minute": 9 }
}
}curl "https://dev-api.onlyfans-api.ai/api/models/MODEL_UUID/vault/media?limit=10&offset=0&field=recent&sort=desc&list=all" \
-H "X-API-Key: sk_live_your_key_here"| Parameter | Type | Description |
|---|---|---|
limit | integer | Number of items to returnDefault: 10 |
offset | integer | Pagination offsetDefault: 0 |
field | string | Sort field: recent or topDefault: recent |
sort | string | Sort direction: desc or ascDefault: desc |
list | string | Vault list ID or 'all'Default: all |
{
"data": {
"hasMore": true,
"list": [
{
"id": 4395928356,
"type": "photo",
"createdAt": "2026-04-11T05:53:01+00:00",
"isReady": true,
"canView": true,
"hasError": false,
"hasPosts": false,
"hasCustomPreview": false,
"convertedToVideo": false,
"duration": 0,
"counters": { "likesCount": 0, "tipsSumm": 0 },
"files": {
"full": { "url": "https://cdn2.onlyfans.com/.../3024x4032_xxx.jpg?...", "width": 3024, "height": 4032, "size": 0, "sources": [] },
"preview": { "url": "https://cdn2.onlyfans.com/.../960x1280_xxx.jpg?...", "width": 960, "height": 1280, "size": 0 },
"squarePreview": { "url": "https://cdn2.onlyfans.com/.../960x960_xxx.jpg?...", "width": 960, "height": 960, "size": 0 },
"thumb": { "url": "https://cdn2.onlyfans.com/.../300x300_xxx.jpg?...", "width": 300, "height": 300, "size": 0 }
},
"cursor_id": "gAAAAABmZ...5f3c",
"listStates": [
{ "id": 25740545, "name": "Posts", "type": "posts", "canAddMedia": false, "hasMedia": false },
{ "id": 25740546, "name": "Messages", "type": "messages", "canAddMedia": false, "hasMedia": true },
{ "id": 25744825, "name": "MM to schedule", "type": "custom", "canAddMedia": true, "hasMedia": false }
]
}
]
},
"_meta": {
"_credits": { "used": 1, "balance": 93 },
"_rate_limits": { "limit_minute": 10, "remaining_minute": 8 }
}
}curl -X POST "https://dev-api.onlyfans-api.ai/api/models/MODEL_UUID/vault/media/search" \
-H "X-API-Key: sk_live_your_key_here" \
-H "Content-Type: application/json" \
-d '{"query": "beach sunset", "limit": 5, "max_distance": 0.6}'| Parameter | Type | Description |
|---|---|---|
queryrequired | string | What to find, in plain words. Missing or blank is a 400 with code MISSING_QUERY. |
limit | integer | Results to return, at most 50 (a larger value is cut to 50). Not a whole number is a 400 with code INVALID_PARAM.Default: 10 |
list_ids | array | Only search media in these vault lists (OnlyFans vault list ids). Not an array is a 400 (INVALID_PARAM). |
list_names | array | Only search media in the vault lists with these names. With list_ids too, a medium in either matches. Not an array is a 400 (INVALID_PARAM). |
exclude_ids | array | Result ids (the id field of a result) to leave out, for example media already sent. Anything but an array of UUIDs is a 400 (INVALID_PARAM). |
max_distance | number | Drop results farther than this. Without it every described medium is a candidate, however weak the match. Not a number is a 400 (INVALID_PARAM). |
Reading the results
distance is the cosine distance between your query and the description: lower is closer. id is the gateway's own id of the vault medium, not the OnlyFans media id. explicitness is one of safe, suggestive, topless, nude or explicit. list_ids are the vault lists the medium is in. To fetch the file, send full_url (or another url) with its cursor_id to Download Media.Only described media can be found
results list, not an error. The urls are the ones stored when the vault was last synced, so an old url may have expired.{
"data": {
"results": [
{
"id": "ce9f1100-a9c6-42fb-88ae-f07551243fa9",
"media_type": "photo",
"preview_url": "https://cdn2.onlyfans.com/files/.../preview.jpg",
"thumb_url": "https://cdn2.onlyfans.com/files/.../thumb.jpg",
"square_preview_url": "https://cdn2.onlyfans.com/files/.../square.jpg",
"full_url": "https://cdn2.onlyfans.com/files/.../full.jpg",
"cursor_id": "gAAAAABq...",
"summary": "A short description of the picture.",
"explicitness": "safe",
"clothing": "red dress",
"setting": "beach at sunset",
"action": "walking along the water",
"mood": ["relaxed", "playful"],
"retrieval_tags": ["beach", "sunset", "red dress"],
"mentionable_details": ["red dress", "sunset over the sea"],
"list_ids": ["1228687696"],
"distance": 0.5342716330413377
}
],
"query": "beach sunset",
"model_id": "16f3d13b-9415-4e6b-babe-e8db6b31bd97"
},
"_meta": {
"_credits": { "used": 1, "balance": 4999 },
"_rate_limits": { "limit_minute": 60, "remaining_minute": 58 }
}
}Media
Download media: OnlyFans CDN files and our stored copies.
curl -X POST "https://dev-api.onlyfans-api.ai/api/models/MODEL_UUID/media/download" \
-H "X-API-Key: sk_live_your_key_here" \
-H "Content-Type: application/json" \
-d '{"url": "https://cdn2.onlyfans.com/files/.../filename.jpg", "cursor_id": "gAAAAABmZ...5f3c"}'| Parameter | Type | Description |
|---|---|---|
urlrequired | string | A media item's files.*.url, unchanged: an https OnlyFans CDN url (https://cdnN.onlyfans.com/...) or our stored copy (/api/models/{model_id}/media/atlas/{asset_id}, same model as this request) |
cursor_id | string | Required with a CDN url: the opaque routing token returned alongside it by the vault/message media endpoint that produced it — pass back exactly as received. Not needed for a stored copy |
Stored copies
Streaming response
cursor_id is required for CDN urls
curl "https://dev-api.onlyfans-api.ai/api/models/MODEL_UUID/media/atlas/ASSET_UUID" \
-H "X-API-Key: sk_live_your_key_here"| Parameter | Type | Description |
|---|---|---|
media_asset_idrequired | string | The asset id at the end of the stored-copy path in files.*.url |
Not found
Streaming response
Fans
curl "https://dev-api.onlyfans-api.ai/api/models/MODEL_UUID/fans/info?user_id=553393565" \
-H "X-API-Key: sk_live_your_key_here"| Parameter | Type | Description |
|---|---|---|
user_idrequired | integer | The OnlyFans user ID of the fan |
{
"data": {
"id": 553393565,
"name": "Marvin",
"displayName": "✨Marvin//30",
"username": "u553393565",
"isPerformer": false,
"isActive": true,
"lastSeen": "2026-04-03T17:17:28+00:00",
"subscribedOn": true,
"subscribedOnData": {
"price": 20,
"expiredAt": "2026-04-28T05:59:14+00:00",
"messagesSumm": 297.2,
"totalSumm": 315.6
},
"listsStates": [
{ "id": "fans", "name": "Fans", "hasUser": true },
{ "id": "muted", "name": "Muted", "hasUser": false }
]
},
"_meta": {
"_credits": { "used": 1, "balance": 4994 },
"_rate_limits": { "limit_minute": 60, "remaining_minute": 54 }
}
}curl "https://dev-api.onlyfans-api.ai/api/models/MODEL_UUID/fans/batch?ids=111111111,111111112" \
-H "X-API-Key: sk_live_your_key_here"| Parameter | Type | Description |
|---|---|---|
idsrequired | string | Fan ids, comma-separated (ids=1,2,3) or repeated (ids=1&ids=2). Missing or empty is a 400 (query param 'ids' is required (comma-separated fan IDs)). |
20 fans per call
Response
Payouts
curl "https://dev-api.onlyfans-api.ai/api/models/MODEL_UUID/payouts/balances" \
-H "X-API-Key: sk_live_your_key_here"{
"data": {
"currency": "USD",
"payoutAvailable": 1532.03,
"payoutPending": 1134.45,
"maxPayoutSumm": 1532.03,
"minPayoutSumm": 100,
"withdrawalPeriod": "manual",
"withdrawalPeriodOptions": [
{ "code": "manual", "name": "Manual payouts" },
{ "code": "weekly", "name": "Weekly payouts" },
{ "code": "monthly", "name": "Monthly payouts" }
]
},
"_meta": {
"_credits": { "used": 1, "balance": 4993 },
"_rate_limits": { "limit_minute": 60, "remaining_minute": 53 }
}
}curl "https://dev-api.onlyfans-api.ai/api/models/MODEL_UUID/payouts/requests?limit=10&offset=0" \
-H "X-API-Key: sk_live_your_key_here"| Parameter | Type | Description |
|---|---|---|
limit | integer | Number of requests to returnDefault: 10 |
offset | integer | Pagination offsetDefault: 0 |
curl "https://dev-api.onlyfans-api.ai/api/models/MODEL_UUID/payouts/requests/referral?limit=10&offset=0" \
-H "X-API-Key: sk_live_your_key_here"| Parameter | Type | Description |
|---|---|---|
limit | integer | Number of requests to returnDefault: 10 |
offset | integer | Pagination offsetDefault: 0 |
curl "https://dev-api.onlyfans-api.ai/api/models/MODEL_UUID/payouts/transactions?limit=10" \
-H "X-API-Key: sk_live_your_key_here"| Parameter | Type | Description |
|---|---|---|
limit | integer | Number of transactions to returnDefault: 10 |
marker | integer | Cursor for the next page (from previous nextMarker) |
{
"data": {
"hasMore": true,
"list": [
{
"id": "335a47e7c139e5ed3e079b960f7ebb2a",
"amount": 200,
"fee": 40,
"net": 160,
"currency": "USD",
"status": "loading",
"createdAt": "2026-04-03T10:56:26+00:00",
"payoutPendingDays": 7,
"user": { "id": 333276012, "displayName": "Fan Name", "username": "u333276012" }
}
],
"marker": 1775236642,
"nextMarker": 1775212716
},
"_meta": {
"_credits": { "used": 1, "balance": 4990 },
"_rate_limits": { "limit_minute": 60, "remaining_minute": 51 }
}
}curl "https://dev-api.onlyfans-api.ai/api/models/MODEL_UUID/payouts/stats?startDate=2026-03-01&endDate=2026-03-31" \
-H "X-API-Key: sk_live_your_key_here"| Parameter | Type | Description |
|---|---|---|
startDaterequired | string | Start date in YYYY-MM-DD format |
endDaterequired | string | End date in YYYY-MM-DD format |
{
"data": {
"list": {
"months": {
"1775088000": {
"chat_messages": [{ "gross": 37, "net": 29.6, "time": 1775001600 }],
"subscribes": [{ "gross": 15, "net": 12, "time": 1775001600 }],
"tips": [{ "gross": 10, "net": 8, "time": 1775001600 }],
"total_gross": 62,
"total_net": 49.6
}
},
"total": {
"all": { "total_gross": 62, "total_net": 49.6 },
"chat_messages": { "total_gross": 37, "total_net": 29.6 },
"subscribes": { "total_gross": 15, "total_net": 12 },
"tips": { "total_gross": 10, "total_net": 8 }
}
}
},
"_meta": {
"_credits": { "used": 2, "balance": 4991 },
"_rate_limits": { "limit_minute": 60, "remaining_minute": 52 }
}
}