TEASEDocs
API ReferenceLandings

Copy buttons and segments from another domain

Replace the target domain's draft buttons AND segments with copies from a source domain (full draft funnel clone). Draft state only. 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

Path Parameters

hostname*string

The target domain that receives the copy.

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Names the source domain to copy draft content from; the target is the URL's hostname.

Response Body

application/json

application/json

application/json

application/json

POST
/api/admin/domains/{hostname}/copy-from
curl -X POST "https://example.com/api/admin/domains/string/copy-from" \  -H "Content-Type: application/json" \  -d '{    "source": "promo.creator.com"  }'
{  "hostname": "links.creator.com",  "display_name": "FB Agency",  "created_at": 1719772800,  "button_count": 6,  "infra_state": "active",  "provisioning_error": null,  "infra_attempted_at": 1719772830}
{  "detail": {    "code": "copy_same_domain",    "message": "Источник и цель — один и тот же домен"  }}
{  "detail": "auth required"}
{  "detail": {    "code": "domain_not_found",    "message": "Domain not found"  }}