Skip to main content
A bio page is a public list of links at www.trackrev.io/<slug>. Pages made through the API belong to the workspace of the key that made them; they never appear in (or can be edited from) the dashboard’s free link-in-bio builder. Scope: secret key (lk_). Any plan, except /stats, which needs a paid plan.

Tracked buttons

Each link button is given a TrackRev short link on the bio channel, and the public page sends visitors through it. That is what counts a click, and, with the pixel on the destination, the revenue it earned. Sections (headings) have no link.
  • A button keeps its short link, and its history, while its id stays the same, even if you change its url or label. Send back the ids you received.
  • A button you leave out of a links update is removed, and its short link and click history with it.
  • Tracking never blocks a save. If a short link can’t be made (a free workspace at its link cap, for example) the button is saved and links straight to its URL; tracked_link_id and short_url are null. Save again to retry.

Endpoints

Body

string
required
Create only; can’t change later. 3–40 characters, lowercase letters, digits and hyphens (spaces and capitals are normalised). Reserved names, and names used by another page, a short link or a program code, are refused: 400 for reserved, 409 for taken.
string
Up to 60 characters.
string
Up to 280 characters.
string | null
An http(s) image URL.
Up to 50 blocks, replacing the whole list. Each: id (optional, 1–64 of A-Z a-z 0-9 _ -; one is generated if omitted), type, label (up to 80), url (http(s), for links), emoji, image_url. A tracked field is ignored. See Blocks for the other types and the per-button options.
Up to 20 { platform, url } icons: instagram, tiktok, x, youtube, spotify, apple-music, facebook, linkedin, github, twitch, discord, email, threads, bluesky, pinterest, reddit, substack, telegram, mastodon, dribbble, tumblr, snapchat, whatsapp, website.
object
Colours, fonts and button style (canvasMode, canvasValue, cardMode, cardBg, textColor, buttonStyle, buttonColor, buttonTextColor, buttonRadius, buttonShadow, buttonShadowColor, font, footerImage). buttonStyle is filled, outlined, soft or glass; buttonRadius is none, sm, md, lg or full; buttonShadow is none, soft or hard. Optional: canvasBase (a hex colour under a gradient canvas), canvasSize (a CSS background-size for tiled patterns), titleFont, titleSize (sm or lg) and titleWeight (300–800). font and titleFont take one of 22 ids, among them sans, serif, mono, display, elegant, manrope, inter, poppins, epilogue, red-hat, outfit, jost, oxanium, playfair, lora, dm-serif, space-mono, bowlby, chango, gasoek, unbounded, viaoda, dm-sans and sora. On update it is merged onto the current theme. A value outside its allowed set falls back to the default. See Design for the keys of the 2026 layout (themeVersion: 2), premium backgrounds and gradients.
object | null
{ title, description, image_url }: the page’s <title>, description and share preview. Each falls back to the title, bio and avatar. Up to 60 / 160 characters.
object | null
Your own pixels on the public page: meta_pixel_id, google_analytics_id (G-…), google_ads_id (AW-…), tiktok_pixel_id, linkedin_partner_id. Each id is checked against its provider’s format; only the provider’s own loader is ever added. utm_tags is stored for your reference (tracked buttons already carry utm_source=bio).
object
sensitive (visitors confirm they are 18+ first), noindex (hide from search engines), cookie_notice (pixels load only after the visitor accepts) and passcode (a code visitors must enter to see the page; null removes it). The passcode is stored hashed and never returned; the response says has_passcode.
object | null
{ name, url, logo_url } for the “Made with …” footer and the brand mark. Default: TrackRev.
boolean
default:"true"
Unpublished pages return 404 publicly.
boolean
default:"true"
Show the “Made with TrackRev” footer.
string
Create only. Your own id for the page (1–200 characters), unique per workspace. A create with a known external_id returns that page with 200 and changes nothing, so a retry never makes a second page.
object
A JSON object of up to 4 KB, stored with the page.
Create also honours an Idempotency-Key header, as POST /links does.

Response

Blocks

type is one of link, section, heading, collection, product, form or video. Links, products, videos and every link in a collection get a tracked short link; ids are one namespace per page, collection links included. Options on links, products and videos:
  • visible (false hides it), icon, highlight (none, buzz, wobble, pop, swap) and spotlight (bigger, with its image).
  • schedule: { starts_at, ends_at, countdown }. Outside the window the button isn’t on the page; with countdown it shows, disabled, until it starts. Its short link expires at ends_at.
  • lock: { type, passcode } with type passcode, sensitive (18+) or subscribe (join the list first). The page never contains a locked button’s link: the visitor gets it once they pass the lock. passcode is write-only and stored hashed; omit it on update to keep the current one. The response says lock.has_passcode.
Every block in a response has every field; ones that don’t apply are null. status is live, hidden, scheduled or expired.

Design

themeVersion: 2 switches the page to the 2026 layout. Other optional theme keys: canvasMode premium (with canvasValue a background id from /backgrounds), blur and video; gradient ({ type, angle, stops }, from which the server builds canvasValue); titleColor; headerLayout (classic, hero, banner) with bannerUrl; titleStyle (text, logo) with logoUrl; socialPosition (top, bottom); socialStyle (colour, mono, outline); footerText; joinButton; buttonFillOpacity (0–1) and buttonBorderColor; buttonShadow strong. Pages without them look exactly as before.

Stats

GET /api/v1/bio-pages/:id/stats returns { window, totals, links, daily, sources, countries, devices }. Each entry in links is { id, label, url, tracked_link_id, clicks, visitors, conversions, revenue, type, collection_id, click_rate }, bots excluded; products, videos and collection links are included. totals adds views, unique_views, sign_ups and click_rate (clicks ÷ views). totals.visitors adds the per-button counts, so someone who clicked two buttons counts twice. daily is [{ date, views, clicks }]; sources, countries and devices break views down as [{ key, views }]. Views are counted from real browsers on the public page (known bots are dropped), once per page load. No IP address is stored.

Limits

  • A custom domain serves the page at its root once its DNS checks out; connecting one follows the same plan allowance as POST /api/v1/domains (see Custom domains).
  • Sign-ups are stored, not emailed. Forward them to your newsletter tool from /submissions.
  • The workspace’s link cap applies to buttons (one link each). A free workspace past its cap saves untracked buttons.