curl --request POST \
--url https://api.onlyx.ai/v1/creators/{creatorId}/ai-content/levels \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"collectionId": "col_2b3c4d5e6f7a8b9c0d1e",
"priceCents": 1500
}
'import requests
url = "https://api.onlyx.ai/v1/creators/{creatorId}/ai-content/levels"
payload = {
"collectionId": "col_2b3c4d5e6f7a8b9c0d1e",
"priceCents": 1500
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({collectionId: 'col_2b3c4d5e6f7a8b9c0d1e', priceCents: 1500})
};
fetch('https://api.onlyx.ai/v1/creators/{creatorId}/ai-content/levels', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));Create a level
Adds a level (set) at the end of a ladder. priceCents is required: it is the floor price the AI may sell above but never below, and 0 makes a free level whose media is given away to every fan who reaches it (right for an opener or a thank-you, expensive by mistake). Every field you send is applied on create. Add media with POST …/levels/{levelId}/media. Returns the whole updated content board. Answers 201 with the whole board. Nothing is sent to fans: the AI uses active ladders in its own conversations. AI content writes are limited to 60 a minute per credential.
Scope: requires ai:write.
Rate limits: 60 changes per 60 seconds per credential — on top of the general limit of 120 requests per 60 seconds per credential.
Idempotency: send an Idempotency-Key header to make retries safe: a replay within 24 hours returns the original response with Idempotent-Replayed: true.
curl --request POST \
--url https://api.onlyx.ai/v1/creators/{creatorId}/ai-content/levels \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"collectionId": "col_2b3c4d5e6f7a8b9c0d1e",
"priceCents": 1500
}
'import requests
url = "https://api.onlyx.ai/v1/creators/{creatorId}/ai-content/levels"
payload = {
"collectionId": "col_2b3c4d5e6f7a8b9c0d1e",
"priceCents": 1500
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({collectionId: 'col_2b3c4d5e6f7a8b9c0d1e', priceCents: 1500})
};
fetch('https://api.onlyx.ai/v1/creators/{creatorId}/ai-content/levels', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));Authorizations
An API key (onx_sk_…) created in OnlyX under Settings → API & MCP, or an OAuth access token (onx_at_…) issued to a connected app. Send it as Authorization: Bearer <credential>. API keys may also be sent as X-API-Key: <key>.
Headers
Optional. A unique value (8 to 64 letters, digits, - or _; a UUID is ideal) that makes a retry safe: the same key with the same request within 24 hours returns the stored response, with Idempotent-Replayed: true, instead of doing the work twice. The same key with a different request is 409 IDEMPOTENCY_KEY_REUSED; while the first request still runs it is 409 IDEMPOTENCY_IN_PROGRESS. A malformed key is 400 VALIDATION_ERROR.
8 - 64^[A-Za-z0-9_-]{8,64}$Path Parameters
The creator id (cre_…).
Body
Every field you send is applied on create.
The ladder to add the level to. Levels are appended at the end.
1 - 40The floor price in cents. 0 makes a free level whose media is given away. Required, so a free level is never made by accident.
0 <= x <= 1000000false pauses the level.
true (default) lets the AI sell it in chats.
What is in it, up to 2,000 characters.
2000A hook line, up to 80 characters.
80What your team calls it, up to 120 characters.
120Up to 30 tags of up to 40 characters.
301 - 40Response
Created: the whole content board after the change.
A creator's whole AI content setup. Every AI content write returns the updated board.
Ladders, by position.
Show child attributes
Show child attributes
The creator this board belongs to.
Folders, by position.
Show child attributes
Show child attributes
Every level of every ladder, by ladder and then by rung.
Show child attributes
Show child attributes
How much of the vault the ladders use.
Show child attributes
Show child attributes