Skip to main content

Permissions & scopes

Every token grants a specific, explicit set of scopes chosen at creation. A token with no scopes authenticates and can do nothing; there is no "full access" token.

The scope set​

ScopeGrants
links:readRead short links and their metadata
links:writeCreate and edit short links
links:deleteDelete short links
profile:readRead profile and account metadata
profile:writeUpdate the profile
campaigns:readRead campaigns and participants
campaigns:writeCreate and edit campaigns
campaigns:deleteDelete campaigns
choices:readRead Choice Pages and their store buttons
choices:writeCreate and edit Choice Pages
choices:deleteDelete Choice Pages
products:readRead products, offers, and catalog metadata
products:writeCreate and edit products and offers
conversions:writeImport affiliate conversions
affiliates:readRead affiliate reports and webhook deliveries
affiliates:writeManage affiliate programs, defaults, and webhooks
commerce:readRead the creator's own store orders and revenue (read-only)
pages:readRead the bio page and its sub-pages
pages:writeEdit pages and their blocks
analytics:readRead account-wide click totals
booking:readRead event types and bookings
forms:readRead forms and response metadata
domains:readRead custom domains
domains:writeAdd custom domains

Scopes are resource:action strings. New scopes arrive as new resources ship; a token only ever holds what was explicitly granted at creation, so new capabilities never silently widen an existing token.

campaigns:write is accepted by exactly one route today — POST /campaigns/{id}/status, the lifecycle transition. Building a campaign (actions, prizes, draws) remains dashboard-only, so a write scope that can open or pause a giveaway cannot silently restructure its rules.

commerce:* has no write half on purpose. lsg.bio is not the merchant of record: orders arrive from the creator's own Shopify/WooCommerce store, and no API caller can create, refund, or pay an order.

campaigns:* covers giveaways of both shapes. A competition and an instant win — a coupon pool, a shared code, a download or a link behind a gate — are the same resource with a different kind, so there is no rewards:* scope to grant and none is coming; campaigns:write is what creates and edits both.

How enforcement works​

Each endpoint names exactly one required scope. The check runs after authentication:

// 403 — authenticated, but the token lacks links:write
{
"error": {
"code": "insufficient_scope",
"message": "This request requires the links:write scope."
}
}

Read actions require read scopes even when they are triggered by a write-shaped flow. When an endpoint ships, its docs state the scope it needs.

Choosing scopes well​

  • Read-only by default. Most integrations — dashboards, exports, monitors — need only *:read.
  • Write is not delete. An automation that creates and edits links needs links:write; nothing in normal operation needs links:delete.
  • Separate tokens for separate jobs beat one powerful token: when the newsletter tool no longer needs campaign access, you revoke one token, not reconfigure three.

Plan gating​

API access itself requires the Pro plan, independent of scopes:

  • Creating tokens on another plan fails in the dashboard (the panel shows the upgrade prompt instead of the form).
  • Requests from existing tokens fail with 403 / plan_required if the plan lapses, and resume when it is active again.