Skip to Content
GuidesAPI Reference
Links

Links

Links are the core resource in Brevr. Each link has a short URL that redirects to a destination, with optional tracking, expiration, and customization settings.

{ "id": "clx1abc2def3ghi4", "shortCode": "my-campaign", "url": "https://example.com/landing-page", "title": "Summer Campaign", "domain": "go.mycompany.com", "linkType": "URL", "isActive": true, "clickCount": 1842, "createdAt": "2024-06-01T10:00:00.000Z", "tags": [ { "tag": { "id": "tag_123", "name": "summer", "color": "#3b82f6" } } ], "qrCode": null }

Fields

FieldTypeDescription
idstringUnique identifier for the link
shortCodestringThe slug portion of the short URL
urlstringThe destination URL
titlestring | nullDisplay name for the link
domainstringDomain used for the short URL
linkTypestringOne of URL, MAILTO, TEL, SMS
isActivebooleanWhether the link is accepting clicks
clickCountnumberTotal number of clicks recorded
createdAtstringISO 8601 timestamp
tagsarrayTags attached to this link
qrCodeobject | nullAssociated QR code summary, if any

Returned by Get Link and Create Link. Extends the base link object with:

FieldTypeDescription
descriptionstring | nullMeta description for social previews
imagestring | nullOG image URL
passwordstring | nullPassword protecting the link (hashed — not returned in plaintext)
expiresAtstring | nullISO 8601 expiry timestamp
maxClicksnumber | nullMaximum clicks before the link deactivates
cloakedbooleanWhether the destination URL is hidden
redirectTypestringHTTP redirect type: PERMANENT_301 or TEMPORARY_302
workspaceIdstringID of the owning workspace
updatedAtstringISO 8601 last-updated timestamp
createdByobject{ id, name, email } of the creator
rulesarraySmart routing rules attached to this link
metaPixelIdstring | nullFacebook/Meta Pixel ID
googleTagIdstring | nullGoogle Analytics measurement ID
gtmContainerIdstring | nullGoogle Tag Manager container ID
headTagsstring | nullCustom HTML injected into <head>
bodyTagsstring | nullCustom HTML injected before </body>
forwardParametersbooleanWhether query params from the short URL are appended to the destination
blockBotsbooleanWhether bot traffic is blocked
skipSocialCrawlerTrackingbooleanWhether social media crawler visits count as clicks
hideReferrerbooleanWhether the referring URL is hidden from the destination
webhookUrlsstring | nullComma-separated webhook URLs to notify on click
Last updated on