API reference

One REST API for the whole workspace.

Every request is scoped to a workspace and authenticated with a bearer API key against https://api.public-url.com.

POST/v1/links

Create a short link on a verified domain.

GET/v1/links/:id

Fetch a link's destination, tags, and analytics URL.

PATCH/v1/links/:id

Update a link's destination, routing rules, or expiration.

DELETE/v1/links/:id

Deactivate a short link.

POST/v1/domains

Add a custom domain and begin DNS verification.

GET/v1/campaigns/:id/report

Retrieve clicks, conversions, and revenue for a campaign.

POST/v1/conversions

Publish a conversion event tied to a click ID.

GET/v1/analytics/events

Stream recent click and conversion events for a workspace.

Build the link layer your campaigns need.

Create branded links, route every visitor to the right destination, and keep attribution connected from click to conversion.