Developers

Short links from your own code

Make, change and measure links with a JSON API, and hear about every click as it happens. Each call meets the same checks, permissions and plan limits as everything else in Brevily.

What the API can do

Analytics

Each link’s clicks day by day, its unique visitors and QR scans, and where they came from: countries, devices, browsers, systems and referrers. On paid plans, single clicks export as CSV.

Tags

Tag links by person, team, campaign, channel, product or region, and read the numbers by tag.

Domains and routing

Read your domains, send a link’s visitors to different pages by device, country, region or time, split them between destinations, and open your app with a deep link.

Webhooks

A signed JSON POST to your server when something happens. Each webhook picks the events it receives; a delivery your server misses is tried again, 6 tries in all over about 7 hours.

Signed, so you can check it. Every delivery carries a signature made with the webhook’s own secret, its time included, so your server can refuse anything that did not come from Brevily, or that is more than 5 minutes old. Or straight to Google Analytics. Send each click to a Google Analytics 4 property as well, or instead, as an event with its link, country, device and referrer.

Keys, signatures and limits

Every call with its fields and answers, the webhook body and every error is in the reference.

Open the API referenceRequest access