Links

Endpoints for managing shortened links in Linkbreakers. These endpoints allow you to create, retrieve, list, and delete shortened links for your workspace.

GET
/v1/links/{linkId}/lead-score/{eventId}
Requires auth

#Get the stored lead score for an event

Returns the score exactly as it was recorded when the visitor came through, together with the factor breakdown and the weighting the link was scored on. Nothing is recalculated here.

#Parameters

path parameters

linkId

string
Required
path

The ID of the link (UUID)

eventId

string
Required
path

The ID of the event for which to generate the explanation (UUID)

#Response

200

Everything worked as expected.

breakdown

object

Breakdown of lead scoring factors

leadScore

integer (int32)

The lead score recorded for this event

recurringScans

integer (int32)

Number of recurring scans from this device+link combination

scoringContext

string

How this link was classified when its weighting was derived, for example "b2b_enterprise" or "community_social".

scoringRationale

string

Plain explanation of why the link is weighted the way it is. Empty when the link scores on the deterministic weighting.

#Error response

400-599

All endpoints may return an unexpected error payload when a request cannot be processed.

error

object
Required

Wrapped error response.

POST
/v1/links/qrcode-images:resolve
Requires auth

#Resolve QR code image URLs

Return freshly signed QR code image URLs for the given links. The URLs expire, so callers fetch them when they need to render rather than storing them.

#Parameters

This endpoint does not accept any parameters.

#Request body

linkIds

array<string>
Required

The links to resolve images for. Ids outside the caller's workspace, and links with no generated QR code yet, are simply absent from the response rather than failing the whole batch: a list draws the rows it can.

#Response

200

Everything worked as expected.

qrcodeSignedUrls

object

Signed URL by link id. These expire, so treat them as good for this session and ask again rather than persisting them.

#Error response

400-599

All endpoints may return an unexpected error payload when a request cannot be processed.

error

object
Required

Wrapped error response.