Skip to main content
Tracked links are short links to pages of your store (https://<your-store>/go/<slug>). Each click is counted, then the buyer is sent to the destination with UTM parameters and a pf_link parameter. The store keeps pf_link for 30 days and a purchase in that window is credited to the last link the buyer clicked. How it works for creators: Tracked links. Base URL https://api.pocketsflow.com, API key in the Authorization header, like every other endpoint.
Needs the Starter plan or above. Below it, POST and editing PATCH calls answer 403 with code: "FEATURE_LOCKED"; reads still list your links (they keep redirecting) but stats, totals, channels and daily are null and statsLocked is true. Archiving (PATCH with only archived) always works.
Check a slug first with GET /tracked-links/slug-available?slug=ig-bio: { "slug": "ig-bio", "valid": true, "available": false, "suggestion": "ig-bio-k3x" }.

Read the stats

GET /tracked-links returns every link with its stats over the range, plus totals, a channels breakdown and a daily series. GET /tracked-links/{id} returns one link with its daily series and the top 20 countries of its visitors.
  • clicks leave out bots, link previews, prefetches and repeat clicks by the same visitor within 30 minutes.
  • sales and revenue (account currency) leave out refunded and test-mode orders; free claims count as sales.

Edit or archive

PATCH /tracked-links/{id} with any of label, destination, channel, utm (needs the plan) or archived (always allowed). Sending a different slug answers 400: posted links never break.

MCP

The same operations are MCP tools: list_tracked_links, create_tracked_link, get_tracked_link_stats and update_tracked_link. See MCP server.