Guides
Errors
The API describes errors as RFC 9457 application/problem+json. Two schemas in the document match that shape: ProblemDetail and ErrorSchema.
| Field | Meaning |
|---|---|
type | URI that identifies the problem type. The schema example is about:blank. |
title | Short summary, such as "Bad Request". |
status | HTTP status code. |
detail | Explanation of this occurrence. The field can be omitted. |
instance | URI for this occurrence. The schema example is /error. |
properties | Extra fields. Present on ProblemDetail only. |
Not every error has a body. Read status from the HTTP response first, then title and detail when a body is present. A 204 has no body.
Status codes
| Status | When the reference uses it |
|---|---|
200 | Success, with a body. |
201 | A resource was created, such as a bulk message. |
202 | Accepted. The large tracking-message export returns a job id to poll. |
204 | Success, with an empty body. Typical of deletes. |
400 | The body is invalid, or a required field is missing. |
401 | The API key is missing or invalid. See Authentication. |
403 | Not allowed: no permission, or this operation isn't available with an API key. |
404 | The requested resource was not found. |
409 | The resource conflicts with current state, such as a duplicate name or a social account that is already connected. |
429 | Too many requests. See the rate limit below. |
502 | OnlyFans is unavailable or returned an error. |
403 is the status you will handle most often after 200. The description on the operation says which check failed.
Rate limit
The limit is 50 requests per 60 seconds per user. Over the limit, the response is 429. Wait and retry. Do not retry a 400 or a 403 without changing the request.
OnlyFans failures
Some operations call OnlyFans for you. When OnlyFans is unavailable or fails the request, the response is 502.
Last modified on
