Skip to content

Link-in-Bio via API

Create a Link-in-Bio page via the API — useful for automating bio page creation for multiple brands or campaigns.

  1. Create the page

    Terminal window
    curl -X POST https://xqr.co/api/v1/bio/pages \
    -H "Authorization: Bearer $XQR_API_KEY" \
    -H "Content-Type: application/json" \
    -d '{
    "title": "Acme Corp",
    "description": "Official links for Acme Corp",
    "page_data": {
    "bio": "Building the future, one link at a time.",
    "links": [
    {"title": "Website", "url": "https://acme.com", "icon": "globe"},
    {"title": "GitHub", "url": "https://github.com/acme", "icon": "github"},
    {"title": "Twitter", "url": "https://twitter.com/acme", "icon": "twitter"}
    ],
    "theme": "minimal"
    }
    }'
  2. Publish it

    Terminal window
    curl -X POST "https://xqr.co/api/v1/bio/pages/${PAGE_ID}/publish" \
    -H "Authorization: Bearer $XQR_API_KEY"

    The page is now live at https://xqr.bio/{slug}.

  3. Update links anytime

    Terminal window
    curl -X PATCH "https://xqr.co/api/v1/bio/pages/${PAGE_ID}" \
    -H "Authorization: Bearer $XQR_API_KEY" \
    -H "Content-Type: application/json" \
    -d '{
    "page_data": {
    "links": [
    {"title": "Website", "url": "https://acme.com", "icon": "globe"},
    {"title": "New Product", "url": "https://acme.com/new", "icon": "star"},
    {"title": "GitHub", "url": "https://github.com/acme", "icon": "github"}
    ]
    }
    }'
  4. Check stats

    Terminal window
    curl "https://xqr.co/api/v1/bio/pages/${PAGE_ID}/stats" \
    -H "Authorization: Bearer $XQR_API_KEY"

Was this page helpful?