TEASEDocs
API ReferenceLandings

Commit imported buttons

Persist a (possibly edited) import preview as draft buttons on one of your domains. The target domain must belong to your account. Requires a write-scoped key.

Authorization

bearerAuth
AuthorizationBearer <token>

Your al_live_<prefix>_<secret> API key. Mint and manage keys in the dashboard.

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

POST
/api/admin/import/commit
curl -X POST "https://example.com/api/admin/import/commit" \  -H "Content-Type: application/json" \  -d '{    "domain": "links.creator.com",    "buttons": [      {        "text_value": "OnlyFans",        "url": "https://onlyfans.com/somecreator",        "icon": "of.svg",        "segment_name": null,        "price_hint": null,        "source_index": 0      }    ],    "headers": [      "My links"    ]  }'
{  "domain": "links.creator.com",  "created_ids": [    101,    102  ]}
{  "detail": {    "code": "domain_not_owned",    "message": "Домен не найден или принадлежит другому аккаунту"  }}
{  "detail": "auth required"}
{  "detail": {    "code": "commit_conflict",    "message": "Не удалось сохранить: конфликт данных (возможно, дубликат)."  }}