Reorder buttons in a segment
Set the display order of the buttons within one segment. The id list must exactly match the segment's current button set. Requires a write-scoped key.
Authorization
bearerAuth Your al_live_<prefix>_<secret> API key. Mint and manage keys in the dashboard.
In: header
Path Parameters
The domain hostname.
The segment id.
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
application/json
curl -X PUT "https://example.com/api/admin/buttons/string/string/order" \ -H "Content-Type: application/json" \ -d '{ "order": [ "b_9f8e7d6c", "b_1122aabb" ] }'{ "tier": "s_1a2b3c4d", "domain": "links.creator.com", "items": [ { "button_id": "b_9f8e7d6c", "domain": "links.creator.com", "tier": "s_1a2b3c4d", "position": 0, "label": "Free trial", "url": "https://onlyfans.com/creator/trial", "icon": "of.svg", "text_filename": "label_42_a1b2c3d4.svg", "text_value": "Free trial", "hidden": false, "match": null, "variants": null } ]}{ "detail": { "code": "order_mismatch", "message": "Список id в запросе должен совпадать с текущим набором кнопок тира" }}{ "detail": "auth required"}{ "detail": { "code": "domain_not_found", "message": "Domain not found" }}Upload a teaser-popup photo
Uploads the photo for one button's teaser popup. The image (max 5 MB) is cover-cropped to a 480×360 WebP card and stored under the domain's assets; the response returns the stored filename to reference as `popup.photo` when you PATCH the button. Re-uploading identical bytes is idempotent. Requires a write-scoped key.
List icon library
List the icons available for buttons: your own uploads plus the shared built-in set. Requires a read-scoped key.