---
title: "Visitors API Reference | Linkbreakers"
description: "The people who scan your QR codes or open your links: identify them with your own data ($email, $phone, any key), read, search, update and delete them."
canonical: "https://linkbreakers.com/help/api/visitors"
---

# Visitors

The people who scan your QR codes or open your links: identify them with your own data ($email, $phone, any key), read, search, update and delete them.

10 entries on this page

## The visitor object

Someone who scanned or clicked the workspace's links, across all of them. Combines their reserved identity fields, devices, events and the custom traits gathered from forms.

`attributes` array of object

Arbitrary attributes provided without "$" prefix, with the type each value was captured as.

6 child attributes

`boolValue` boolean

`dateValue` string (date-time)

`key` string

Attribute key, for example "rating"

`numberValue` number (double)

Set only when the value parses as a number. Absent when it does not, so a value that contradicts its type is still readable but not aggregatable.

`type` enum

What the value was captured as.

What a value was captured as. It decides how the value is parsed and which analytics the key can support, which the value alone cannot tell you: "8" from a rating field and "8" typed into a text box are different facts.

Allowed values

* `VISITOR_ATTRIBUTE_TYPE_STRING`
* `VISITOR_ATTRIBUTE_TYPE_NUMBER`
* `VISITOR_ATTRIBUTE_TYPE_BOOLEAN`
* `VISITOR_ATTRIBUTE_TYPE_DATE`
* `VISITOR_ATTRIBUTE_TYPE_ENUM`

`value` string

The raw value as captured. Always populated, whatever the type.

`createdAt` string (date-time)

Timestamps

`deviceCount` integer (int64)

Number of devices attributed to this visitor

`devices` array of object

Device information collected during visitor interactions

37 child attributes

`asn` integer (int64)

Autonomous System Number (ASN) - unique identifier for the network routing entity

`browserLanguage` string

Preferred language/locale from the browser (BCP-47)

`browserName` string

Browser family (e.g. "Safari", "Chrome")

`browserVersion` string

Browser version string

`city` string

City derived from IP geolocation

`country` string

Country inferred from IP geolocation (ISO 3166-1 alpha-2)

`createdAt` string (date-time)

Timestamp when the device fingerprint was first seen

`deviceActor` enum

Who or what is operating this device: HUMAN (real visitor), BOT (crawler like Googlebot), AGENT (AI/LLM like GPTBot, ClaudeBot), or UNKNOWN.

Allowed values

* `DEVICE_ACTOR_HUMAN` Human visitor using a browser (covers MOBILE, TABLET, DESKTOP device types)
* `DEVICE_ACTOR_BOT` Automated crawler or scraper bot (e.g. Googlebot, BingBot, Applebot)
* `DEVICE_ACTOR_AGENT` AI/LLM agent that names itself in its user agent (e.g. GPTBot, Claude-User, Perplexity-User, Gemini, Grok)
* `DEVICE_ACTOR_UNKNOWN` Unable to classify the actor: the request sent no user agent
* `DEVICE_ACTOR_AUTOMATED` A browser driven by software, whoever is behind it: an AI agent operating a browser, a test, a scraper or a monitor. Headless Chrome is recognized from its request ("Headless Chrome"); a visible browser under automation reports it (navigator.webdriver) on a link collecting data at the Advanced level, and is recognized from its next visit on ("Automated browser")
* `DEVICE_ACTOR_UNSPECIFIED` Actor not specified or not yet detected

`deviceActorName` string

Specific actor or crawler name for non-human traffic (e.g. "Googlebot", "GPTBot", "ClaudeBot"). Only populated when deviceActor is BOT or AGENT. Null/empty for HUMAN visitors.

`deviceActorOrigin` string

Company or organization behind the actor (e.g. "Google", "OpenAI", "Anthropic"). Only populated when deviceActor is BOT or AGENT. Null/empty for HUMAN visitors.

`deviceBrand` string

Hardware brand where available (e.g. "Apple")

`deviceConcurrency` integer (int32)

Number of logical CPU cores available to the browser

`deviceMemory` number (double)

Approximate browser-reported RAM in gigabytes

`deviceName` string

Marketing name exposed by the browser (e.g. "iPhone", "Pixel 7")

`deviceType` enum

Physical form factor of the device (MOBILE, TABLET, DESKTOP, NATIVE, UNKNOWN). Does NOT indicate whether the visitor is human or a bot — see deviceActor for that.

Allowed values

* `DEVICE_TYPE_NATIVE` Native QR scanner (no browser capabilities reported)
* `DEVICE_TYPE_MOBILE` Mobile handset browser
* `DEVICE_TYPE_TABLET` Tablet browser
* `DEVICE_TYPE_DESKTOP` Desktop or laptop browser
* `DEVICE_TYPE_UNKNOWN` Unable to classify the device
* `DEVICE_TYPE_UNSPECIFIED` Device type not specified or not yet detected

`gpu` string

GPU renderer reported by WebGL

`id` string

Unique identifier for the device fingerprint (UUID)

`inAppBrowser` enum

The app whose in-app browser (webview) opened the link, read from the user agent. Apps open links in their own browser, often without a referrer, so the user agent is the only sign of where a click came from.

Allowed values

* `IN_APP_BROWSER_NONE` A regular browser (Safari, Chrome...), not an app's in-app browser
* `IN_APP_BROWSER_INSTAGRAM` Instagram
* `IN_APP_BROWSER_FACEBOOK` Facebook
* `IN_APP_BROWSER_MESSENGER` Messenger
* `IN_APP_BROWSER_THREADS` Threads
* `IN_APP_BROWSER_TIKTOK` TikTok
* `IN_APP_BROWSER_SNAPCHAT` Snapchat
* `IN_APP_BROWSER_LINKEDIN` LinkedIn
* `IN_APP_BROWSER_PINTEREST` Pinterest
* `IN_APP_BROWSER_X` X (Twitter)
* `IN_APP_BROWSER_WECHAT` WeChat
* `IN_APP_BROWSER_LINE` LINE
* `IN_APP_BROWSER_GOOGLE_APP` The Google app (Google Search app, GSA)
* `IN_APP_BROWSER_OTHER` Another app's in-app browser that does not name the app (an Android webview, marked "; wv)")
* `IN_APP_BROWSER_UNSPECIFIED` Not read: the device is a bot or an agent, or no device details were collected (data collection level None)

`inAppBrowserDetails` object

What else the app writes about itself and the phone (locale, hardware model, network, carrier, screen)

9 child attributes

`appBuild` string

App build number (Instagram, Threads, Facebook, Messenger)

`carrier` string

Mobile carrier (Facebook, Messenger, when the app sends it)

`hardwareModel` string

Exact hardware model (Instagram, Threads, Facebook, Messenger, Snapchat on Android)

`locale` string

App language and region as the app writes it (Instagram, Threads, Facebook, Messenger, TikTok, WeChat)

`manufacturer` string

Hardware manufacturer (Instagram and Threads on Android, Facebook, Messenger)

`networkType` string

Network the app reports, such as WIFI, 4G or 5G (WeChat, TikTok)

`region` string

Region the app reports (TikTok)

`screenDensity` string

Screen scale or density (Instagram, Threads, Facebook and Messenger on Android)

`screenResolution` string

Screen size in physical pixels (Instagram, Threads, Facebook and Messenger on Android)

`inAppBrowserVersion` string

Version of the app whose in-app browser opened the link, when the app writes it (every app but Pinterest)

`ipAddress` string

Last IP address observed for this device (IPv4 or IPv6 format depending on availability)

`isp` string

Internet Service Provider (ISP) name or organization from IP geolocation

`lastUsedAt` string (date-time)

Last time this device was associated with an event

`networkBandwidth` number (double)

Estimated downlink bandwidth in megabits/second

`networkConnection` string

Effective network connection type (e.g. "4g", "wifi")

`networkRtt` number (double)

Estimated round-trip time in milliseconds

`platformName` string

Operating system family (e.g. "iOS", "Windows")

`platformVersion` string

Operating system version string

`region` string

Region or state from IP geolocation

`screenHeight` number (double)

Viewport height in CSS pixels

`screenRatio` number (double)

Aspect ratio derived from width/height

`screenWidth` number (double)

Viewport width in CSS pixels

`state` string

State/Province when available (normalized string)

`timezone` string

IANA timezone reported by the browser

`touchScreen` boolean

Whether the device reports touch capabilities

`updatedAt` string (date-time)

Timestamp of the latest device metadata update

`userAgent` string

Raw user-agent string

`email` string

System fields derived from $-prefixed inputs.

from "$email"

`events` array of object

Events associated with this visitor

6 child attributes

`action` string

Event action (e.g. SCAN, CLICK)

`createdAt` string (date-time)

Timestamp when the event record was created

`id` string

Unique identifier of the event (UUID)

`linkId` string

Link associated with the event (UUID)

`scannedAt` string (date-time)

When the scan occurred (visitor timezone aware)

`visitType` string

Visit type (e.g. FIRST, RETURNING)

`firstName` string

from "$firstName" (optional)

`id` string

Unique ID (UUID)

`lastName` string

from "$lastName" (optional)

`links` array of object

Links associated with this visitor via events (included only on demand)

7 child attributes

`entrypoint` string

Canonical short URL entrypoint

`eventCount` integer (int64)

Number of events generated by this visitor for the link

`firstVisitedAt` string (date-time)

First time the visitor interacted with the link

`id` string

Link identifier (UUID)

`lastVisitedAt` string (date-time)

Most recent interaction timestamp

`name` string

Friendly link name configured in the dashboard

`shortlink` string

Shortlink slug used in public URLs

`phone` string

from "$phone"

`qrcodeCount` integer (int64)

Number of distinct QR codes / links this visitor has interacted with

`updatedAt` string (date-time)

`visitCount` integer (int64)

Total number of events (visits) recorded for this visitor

`workspaceId` string

Workspace that owns this visitor (UUID)

Example visitor

```json
{
  "attributes": [
    {
      "boolValue": true,
      "dateValue": "2026-03-21T12:47:13Z",
      "key": "rating",
      "numberValue": 8,
      "type": "VISITOR_ATTRIBUTE_TYPE_NUMBER",
      "value": "8"
    }
  ],
  "createdAt": "2026-03-15T19:02:41Z",
  "deviceCount": 2,
  "devices": [
    {
      "asn": 7922,
      "browserLanguage": "en-US,en;q=0.9",
      "browserName": "Chrome",
      "browserVersion": "99.0.4844.51",
      "city": "New York",
      "country": "US",
      "createdAt": "2026-03-15T19:02:41Z",
      "deviceActor": "DEVICE_ACTOR_HUMAN",
      "deviceActorName": "GPTBot",
      "deviceActorOrigin": "OpenAI",
      "deviceBrand": "Apple",
      "deviceConcurrency": 4,
      "deviceMemory": 6,
      "deviceName": "iPhone 14 Pro",
      "deviceType": "DEVICE_TYPE_MOBILE",
      "gpu": "Apple GPU",
      "id": "6f1b2e90-1234-4c8f-91e1-63cd927bf908",
      "inAppBrowser": "IN_APP_BROWSER_INSTAGRAM",
      "inAppBrowserDetails": {
        "appBuild": "1065993616",
        "carrier": "T-Mobile",
        "hardwareModel": "iPhone17,3",
        "locale": "en_GB",
        "manufacturer": "samsung",
        "networkType": "WIFI",
        "region": "NG",
        "screenDensity": "3.00",
        "screenResolution": "1170x2532"
      },
      "inAppBrowserVersion": "447.0.0.34.80",
      "ipAddress": "203.0.113.42",
      "isp": "Comcast Cable Communications",
      "lastUsedAt": "2026-03-21T12:47:13Z",
      "networkBandwidth": 10,
      "networkConnection": "4g",
      "networkRtt": 50,
      "platformName": "macOS",
      "platformVersion": "10.15.7",
      "region": "CRF",
      "screenHeight": 1117,
      "screenRatio": 1.55,
      "screenWidth": 1728,
      "state": "NY",
      "timezone": "Europe/London",
      "touchScreen": true,
      "updatedAt": "2026-03-21T12:47:13Z",
      "userAgent": "Mozilla/5.0 (iPhone; CPU iPhone OS 16_4 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.4 Mobile/15E148 Safari/604.1"
    }
  ],
  "email": "sam.visitor@example.com",
  "events": [
    {
      "action": "SCAN",
      "createdAt": "2026-03-21T12:47:13Z",
      "id": "8b6e1a2c-7d4f-4fd2-8b35-9a4c1f2d993a",
      "linkId": "1b9d6bcd-bbfd-4b2d-9b5d-ab8dfbbd4bed",
      "scannedAt": "2026-03-21T12:47:13Z",
      "visitType": "FIRST"
    }
  ],
  "firstName": "Sam",
  "id": "4da3e6a2-2d54-4b0f-9e17-4b6c2af7e9c5",
  "lastName": "Rivera",
  "links": [
    {
      "entrypoint": "https://linkbreak.ing/4BnH-R19p",
      "eventCount": 12,
      "firstVisitedAt": "2026-03-15T19:02:41Z",
      "id": "1b9d6bcd-bbfd-4b2d-9b5d-ab8dfbbd4bed",
      "lastVisitedAt": "2026-03-21T12:47:13Z",
      "name": "Spring Launch Campaign",
      "shortlink": "4BnH-R19p"
    }
  ],
  "phone": "+15551234567",
  "qrcodeCount": 3,
  "updatedAt": "2026-03-21T12:47:13Z",
  "visitCount": 42,
  "workspaceId": "c0d3cafe-5b1e-4d42-a6fd-0c5f5c3962d0"
}
```

### Parameters

`pageSize` integer (int64) 

query

Maximum number of visitors to return (default 50, max 200)

`pageToken` string 

query

Cursor token to retrieve the next page of results

`email` string 

query

optional exact match filter

`search` string 

query

optional fuzzy search across known fields

`include` array of string 

query

`linkId` string 

query

optional filter by link ID (UUID; visitors who have interacted with this link)

`responseFormat` string 

query

* RESPONSE\_FORMAT\_UNSPECIFIED: Response format not specified
* RESPONSE\_FORMAT\_JSON: Response format JSON
* RESPONSE\_FORMAT\_CSV: Response format CSV

`sortField` string 

query

Field to sort by. Defaults to createdAt (newest first).

* VISITOR\_SORT\_FIELD\_UNSPECIFIED: Sort field not specified (defaults to createdAt)
* VISITOR\_SORT\_FIELD\_CREATED\_AT: Sort by the date the visitor was first seen
* VISITOR\_SORT\_FIELD\_VISIT\_COUNT: Sort by total number of visits (events)
* VISITOR\_SORT\_FIELD\_DEVICE\_COUNT: Sort by number of attributed devices
* VISITOR\_SORT\_FIELD\_QRCODE\_COUNT: Sort by number of distinct QR codes interacted with

`sortDirection` string 

query

Sort direction. Defaults to descending.

* SORT\_DIRECTION\_UNSPECIFIED: Sort direction not specified (defaults to descending)
* SORT\_DIRECTION\_ASC: Sort in ascending order
* SORT\_DIRECTION\_DESC: Sort in descending order

`cursor` string 

query

Opaque cursor from the previous page's nextPageToken. Same as pageToken; when both are sent, pageToken wins.

### Response

200

`csv` object

CSV payload when requested

2 child attributes

`contentType` string

MIME type associated with the payload (e.g. text/csv)

`csvData` string

CSV payload encoded as UTF-8

`json` object

Standard JSON payload

4 child attributes

`hasMore` boolean

`nextPageToken` string

Cursor token returned when another page is available

`totalCount` integer (int64)

Total number of visitors matching the current filters

`visitors` array of object

Fields: [The visitor object](#visitors-object).

Errors answer 4xx or 5xx with the [error object](https://linkbreakers.com/help/api#errors), and `429` past the [rate limit](https://linkbreakers.com/help/api#rate-limits).

Request

```bash
curl -X GET "https://api.linkbreakers.com/v1/visitors" \
  -H "Authorization: Bearer $LINKBREAKERS_TOKEN"
```

Response 200

```json
{
  "csv": {
    "contentType": "text/csv",
    "csvData": "id,email,first_name,last_name,visit_count\n5a8f2e1c-9b3d-4c7a-a6e0-3f1d8b2c4e96,jules.martin@example.com,Jules,Martin,42\n"
  },
  "json": {
    "hasMore": true,
    "nextPageToken": "eyJ2aXNpdG9ySWQiOiI0ZGEzIn0=",
    "totalCount": 128,
    "visitors": [
      {
        "attributes": [
          {
            "boolValue": true,
            "dateValue": "2026-03-21T12:47:13Z",
            "key": "rating",
            "numberValue": 8,
            "type": "VISITOR_ATTRIBUTE_TYPE_NUMBER",
            "value": "8"
          }
        ],
        "createdAt": "2026-03-15T19:02:41Z",
        "deviceCount": 2,
        "devices": [
          {
            "asn": 7922,
            "browserLanguage": "en-US,en;q=0.9",
            "browserName": "Chrome",
            "browserVersion": "99.0.4844.51",
            "city": "New York",
            "country": "US",
            "createdAt": "2026-03-15T19:02:41Z",
            "deviceActor": "DEVICE_ACTOR_HUMAN",
            "deviceActorName": "GPTBot",
            "deviceActorOrigin": "OpenAI",
            "deviceBrand": "Apple",
            "deviceConcurrency": 4,
            "deviceMemory": 6,
            "deviceName": "iPhone 14 Pro",
            "deviceType": "DEVICE_TYPE_MOBILE",
            "gpu": "Apple GPU",
            "id": "6f1b2e90-1234-4c8f-91e1-63cd927bf908",
            "inAppBrowser": "IN_APP_BROWSER_INSTAGRAM",
            "inAppBrowserDetails": {
              "appBuild": "1065993616",
              "carrier": "T-Mobile",
              "hardwareModel": "iPhone17,3",
              "locale": "en_GB",
              "manufacturer": "samsung",
              "networkType": "WIFI",
              "region": "NG",
              "screenDensity": "3.00",
              "screenResolution": "1170x2532"
            },
            "inAppBrowserVersion": "447.0.0.34.80",
            "ipAddress": "203.0.113.42",
            "isp": "Comcast Cable Communications",
            "lastUsedAt": "2026-03-21T12:47:13Z",
            "networkBandwidth": 10,
            "networkConnection": "4g",
            "networkRtt": 50,
            "platformName": "macOS",
            "platformVersion": "10.15.7",
            "region": "CRF",
            "screenHeight": 1117,
            "screenRatio": 1.55,
            "screenWidth": 1728,
            "state": "NY",
            "timezone": "Europe/London",
            "touchScreen": true,
            "updatedAt": "2026-03-21T12:47:13Z",
            "userAgent": "Mozilla/5.0 (iPhone; CPU iPhone OS 16_4 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.4 Mobile/15E148 Safari/604.1"
          }
        ],
        "email": "sam.visitor@example.com",
        "events": [
          {
            "action": "SCAN",
            "createdAt": "2026-03-21T12:47:13Z",
            "id": "8b6e1a2c-7d4f-4fd2-8b35-9a4c1f2d993a",
            "linkId": "1b9d6bcd-bbfd-4b2d-9b5d-ab8dfbbd4bed",
            "scannedAt": "2026-03-21T12:47:13Z",
            "visitType": "FIRST"
          }
        ],
        "firstName": "Sam",
        "id": "4da3e6a2-2d54-4b0f-9e17-4b6c2af7e9c5",
        "lastName": "Rivera",
        "links": [
          {
            "entrypoint": "https://linkbreak.ing/4BnH-R19p",
            "eventCount": 12,
            "firstVisitedAt": "2026-03-15T19:02:41Z",
            "id": "1b9d6bcd-bbfd-4b2d-9b5d-ab8dfbbd4bed",
            "lastVisitedAt": "2026-03-21T12:47:13Z",
            "name": "Spring Launch Campaign",
            "shortlink": "4BnH-R19p"
          }
        ],
        "phone": "+15551234567",
        "qrcodeCount": 3,
        "updatedAt": "2026-03-21T12:47:13Z",
        "visitCount": 42,
        "workspaceId": "c0d3cafe-5b1e-4d42-a6fd-0c5f5c3962d0"
      }
    ]
  }
}
```

### Parameters

`id` string 

path

Required

Visitor identifier (UUID)

`include` array of string 

query

Optional relationships to hydrate ("devices", "events", "links")

### Response

200

Returns [the visitor object](#visitors-object).

Errors answer 4xx or 5xx with the [error object](https://linkbreakers.com/help/api#errors), and `429` past the [rate limit](https://linkbreakers.com/help/api#rate-limits).

Request

```bash
curl -X GET "https://api.linkbreakers.com/v1/visitors/{id}" \
  -H "Authorization: Bearer $LINKBREAKERS_TOKEN"
```

### Parameters

`id` string 

path

Required

The visitor's ID.

### Response

200

`consents` array of object

The visitor's consents, newest first: the first is their consent now.

9 child attributes

`channel` string

The one way of reaching them it is limited to, empty for what the wording says.

`eventId` string

`granted` boolean

Whether the visitor agreed.

`linkId` string

The link, step and visit it was given on.

`method` string

How it was given: FORM or CHAT\_BOT.

`purpose` string

What it is for: marketing.

`recordedAt` string (date-time)

When it was given.

`wording` string

The exact wording the visitor was shown. For a chat bot, the question the agent asked and the visitor's reply: Q: "..." A: "...".

`workflowStepId` string

Errors answer 4xx or 5xx with the [error object](https://linkbreakers.com/help/api#errors), and `429` past the [rate limit](https://linkbreakers.com/help/api#rate-limits).

Request

```bash
curl -X GET "https://api.linkbreakers.com/v1/visitors/{id}/consents" \
  -H "Authorization: Bearer $LINKBREAKERS_TOKEN"
```

Response 200

```json
{
  "consents": [
    {
      "channel": "email",
      "eventId": "8b6e1a2c-7d4f-4fd2-8b35-9a4c1f2d993a",
      "granted": true,
      "linkId": "1b9d6bcd-bbfd-4b2d-9b5d-ab8dfbbd4bed",
      "method": "FORM",
      "purpose": "marketing",
      "recordedAt": "2026-03-21T12:47:13Z",
      "wording": "I agree to receive news and offers from Hotel Lumiere by email.",
      "workflowStepId": "987fcdeb-a321-45e6-b789-123456789012"
    }
  ]
}
```

### Parameters

`linkId` string 

query

Optional link identifier (UUID). When set, returns keys observed on visitors who interacted with this link.

`directoryId` string 

query

Optional directory filter (UUID): the links of this directory and of every directory below it. Send linkId or directoryId, not both; when both are omitted aggregates workspace-wide

`tagId` string 

query

Optional tag filter (UUID): every link carrying this tag. Send at most one of linkId, directoryId and tagId

`countries` array of string 

query

Optional country filter: visits from any of these countries (ISO 3166-1 alpha-2 codes, e.g. "FR"). Combines with the link, directory or tag filter

### Response

200

`attributeKeys` array of string

Distinct selectable visitor attribute keys, including reserved system fields such as $email and $phone.

`attributes` array of object

The same keys with the type their values were captured as, so a client can offer the filter operators that fit each one.

2 child attributes

`key` string

Attribute key, for example "budget" or "$email"

`type` enum

The type most of the key's values were captured as. Reserved fields are STRING.

Allowed values

* `VISITOR_ATTRIBUTE_TYPE_STRING`
* `VISITOR_ATTRIBUTE_TYPE_NUMBER`
* `VISITOR_ATTRIBUTE_TYPE_BOOLEAN`
* `VISITOR_ATTRIBUTE_TYPE_DATE`
* `VISITOR_ATTRIBUTE_TYPE_ENUM`

Errors answer 4xx or 5xx with the [error object](https://linkbreakers.com/help/api#errors), and `429` past the [rate limit](https://linkbreakers.com/help/api#rate-limits).

Request

```bash
curl -X GET "https://api.linkbreakers.com/v1/visitors/attributes" \
  -H "Authorization: Bearer $LINKBREAKERS_TOKEN"
```

Response 200

```json
{
  "attributeKeys": [
    "$email",
    "$phone",
    "$firstName",
    "$lastName",
    "company",
    "plan"
  ],
  "attributes": [
    {
      "key": "budget",
      "type": "VISITOR_ATTRIBUTE_TYPE_NUMBER"
    }
  ]
}
```

### Parameters

`Idempotency-Key` string 

header

A unique value per request, such as a UUID, that makes retrying it safe: a retry with the same key and body returns the first response instead of acting twice.

### Request body

`lbid` string

LBID (base64 encoded event ID) that initiated the visit (click/scan)

`setOnce` boolean

If true, only set fields that are empty (set-once semantics); defaults to false (merge/overwrite)

`visitor` object

Payload with reserved and custom fields

1 child attribute

`data` object

Free-form attributes map including $-prefixed reserved keys

### Response

200

`created` boolean

Indicates whether a new visitor profile was created as part of the identification

`visitor` object

Visitor profile after merging incoming attributes

Fields: [The visitor object](#visitors-object).

Errors answer 4xx or 5xx with the [error object](https://linkbreakers.com/help/api#errors), and `429` past the [rate limit](https://linkbreakers.com/help/api#rate-limits).

Request

```bash
curl -X POST "https://api.linkbreakers.com/v1/visitors:identify" \
  -H "Authorization: Bearer $LINKBREAKERS_TOKEN" \
  -H "Content-Type: application/json" \
  --data '{
  "lbid": "i24aLH1PT9KLNZpMHy2ZOg",
  "setOnce": false,
  "visitor": {
    "data": {
      "$email": "jules.martin@example.com",
      "$firstName": "Jules",
      "table": "12"
    }
  }
}'
```

Response 200

```json
{
  "created": true,
  "visitor": {
    "attributes": [
      {
        "boolValue": true,
        "dateValue": "2026-03-21T12:47:13Z",
        "key": "rating",
        "numberValue": 8,
        "type": "VISITOR_ATTRIBUTE_TYPE_NUMBER",
        "value": "8"
      }
    ],
    "createdAt": "2026-03-15T19:02:41Z",
    "deviceCount": 2,
    "devices": [
      {
        "asn": 7922,
        "browserLanguage": "en-US,en;q=0.9",
        "browserName": "Chrome",
        "browserVersion": "99.0.4844.51",
        "city": "New York",
        "country": "US",
        "createdAt": "2026-03-15T19:02:41Z",
        "deviceActor": "DEVICE_ACTOR_HUMAN",
        "deviceActorName": "GPTBot",
        "deviceActorOrigin": "OpenAI",
        "deviceBrand": "Apple",
        "deviceConcurrency": 4,
        "deviceMemory": 6,
        "deviceName": "iPhone 14 Pro",
        "deviceType": "DEVICE_TYPE_MOBILE",
        "gpu": "Apple GPU",
        "id": "6f1b2e90-1234-4c8f-91e1-63cd927bf908",
        "inAppBrowser": "IN_APP_BROWSER_INSTAGRAM",
        "inAppBrowserDetails": {
          "appBuild": "1065993616",
          "carrier": "T-Mobile",
          "hardwareModel": "iPhone17,3",
          "locale": "en_GB",
          "manufacturer": "samsung",
          "networkType": "WIFI",
          "region": "NG",
          "screenDensity": "3.00",
          "screenResolution": "1170x2532"
        },
        "inAppBrowserVersion": "447.0.0.34.80",
        "ipAddress": "203.0.113.42",
        "isp": "Comcast Cable Communications",
        "lastUsedAt": "2026-03-21T12:47:13Z",
        "networkBandwidth": 10,
        "networkConnection": "4g",
        "networkRtt": 50,
        "platformName": "macOS",
        "platformVersion": "10.15.7",
        "region": "CRF",
        "screenHeight": 1117,
        "screenRatio": 1.55,
        "screenWidth": 1728,
        "state": "NY",
        "timezone": "Europe/London",
        "touchScreen": true,
        "updatedAt": "2026-03-21T12:47:13Z",
        "userAgent": "Mozilla/5.0 (iPhone; CPU iPhone OS 16_4 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.4 Mobile/15E148 Safari/604.1"
      }
    ],
    "email": "sam.visitor@example.com",
    "events": [
      {
        "action": "SCAN",
        "createdAt": "2026-03-21T12:47:13Z",
        "id": "8b6e1a2c-7d4f-4fd2-8b35-9a4c1f2d993a",
        "linkId": "1b9d6bcd-bbfd-4b2d-9b5d-ab8dfbbd4bed",
        "scannedAt": "2026-03-21T12:47:13Z",
        "visitType": "FIRST"
      }
    ],
    "firstName": "Sam",
    "id": "4da3e6a2-2d54-4b0f-9e17-4b6c2af7e9c5",
    "lastName": "Rivera",
    "links": [
      {
        "entrypoint": "https://linkbreak.ing/4BnH-R19p",
        "eventCount": 12,
        "firstVisitedAt": "2026-03-15T19:02:41Z",
        "id": "1b9d6bcd-bbfd-4b2d-9b5d-ab8dfbbd4bed",
        "lastVisitedAt": "2026-03-21T12:47:13Z",
        "name": "Spring Launch Campaign",
        "shortlink": "4BnH-R19p"
      }
    ],
    "phone": "+15551234567",
    "qrcodeCount": 3,
    "updatedAt": "2026-03-21T12:47:13Z",
    "visitCount": 42,
    "workspaceId": "c0d3cafe-5b1e-4d42-a6fd-0c5f5c3962d0"
  }
}
```

### Parameters

`Idempotency-Key` string 

header

A unique value per request, such as a UUID, that makes retrying it safe: a retry with the same key and body returns the first response instead of acting twice.

### Request body

`attributeFilters` array of object

Only return visitors matching every filter, for example budget >= 800000 and timeline = "under\_6\_months". At most 20\. Over REST, use POST /v1/visitors/search: a query string cannot carry them.

3 child attributes

`key` string

Attribute key, for example "budget". Reserved fields ($email, $phone, $firstName, $lastName) can be filtered with the STRING\_\*, EXISTS and NOT\_EXISTS operators, and so can $marketingConsent ("granted" or "denied", the visitor's latest consent to marketing).

`operator` enum

How the attribute is compared with value

Allowed values

* `VISITOR_ATTRIBUTE_FILTER_OPERATOR_STRING_EQUALS` The attribute equals the value
* `VISITOR_ATTRIBUTE_FILTER_OPERATOR_STRING_NOT_EQUALS` The attribute differs from the value, or is absent
* `VISITOR_ATTRIBUTE_FILTER_OPERATOR_STRING_CONTAINS` The attribute contains the value
* `VISITOR_ATTRIBUTE_FILTER_OPERATOR_STRING_NOT_CONTAINS` The attribute does not contain the value, or is absent
* `VISITOR_ATTRIBUTE_FILTER_OPERATOR_STRING_STARTS_WITH` The attribute starts with the value
* `VISITOR_ATTRIBUTE_FILTER_OPERATOR_STRING_ENDS_WITH` The attribute ends with the value
* `VISITOR_ATTRIBUTE_FILTER_OPERATOR_STRING_IS_EMPTY` The attribute is empty or absent. No value needed.
* `VISITOR_ATTRIBUTE_FILTER_OPERATOR_STRING_IS_NOT_EMPTY` The attribute is set to a non-empty value. No value needed.
* `VISITOR_ATTRIBUTE_FILTER_OPERATOR_NUMBER_EQUALS` The number equals the value
* `VISITOR_ATTRIBUTE_FILTER_OPERATOR_NUMBER_NOT_EQUALS` The number differs from the value
* `VISITOR_ATTRIBUTE_FILTER_OPERATOR_NUMBER_GREATER_THAN` The number is greater than the value
* `VISITOR_ATTRIBUTE_FILTER_OPERATOR_NUMBER_LESS_THAN` The number is less than the value
* `VISITOR_ATTRIBUTE_FILTER_OPERATOR_NUMBER_GREATER_OR_EQUAL` The number is greater than or equal to the value
* `VISITOR_ATTRIBUTE_FILTER_OPERATOR_NUMBER_LESS_OR_EQUAL` The number is less than or equal to the value
* `VISITOR_ATTRIBUTE_FILTER_OPERATOR_DATE_EQUALS` The date equals the value
* `VISITOR_ATTRIBUTE_FILTER_OPERATOR_DATE_BEFORE` The date is before the value
* `VISITOR_ATTRIBUTE_FILTER_OPERATOR_DATE_AFTER` The date is after the value
* `VISITOR_ATTRIBUTE_FILTER_OPERATOR_DATE_BEFORE_OR_EQUAL` The date is on or before the value
* `VISITOR_ATTRIBUTE_FILTER_OPERATOR_DATE_AFTER_OR_EQUAL` The date is on or after the value
* `VISITOR_ATTRIBUTE_FILTER_OPERATOR_BOOLEAN_IS_TRUE` The attribute is true. No value needed.
* `VISITOR_ATTRIBUTE_FILTER_OPERATOR_BOOLEAN_IS_FALSE` The attribute is not true, including absent. No value needed.
* `VISITOR_ATTRIBUTE_FILTER_OPERATOR_EXISTS` The visitor has the attribute, whatever its value. No value needed.
* `VISITOR_ATTRIBUTE_FILTER_OPERATOR_NOT_EXISTS` The visitor does not have the attribute. No value needed.

`value` string

Value to compare with: a number for NUMBER\_\* operators, a date such as 2026-03-01 or an RFC 3339 timestamp for DATE\_\* operators. Ignored by operators that need no value.

`email` string

optional exact match filter

`include` array of string

`linkId` string

optional filter by link ID (UUID; visitors who have interacted with this link)

`pageSize` integer (int64)

Maximum number of visitors to return (default 50, max 200)

`pageToken` string

Cursor token to retrieve the next page of results

`responseFormat` enum

Defines the transport format the API should return for list-style endpoints.

Allowed values

* `RESPONSE_FORMAT_JSON` Response format JSON
* `RESPONSE_FORMAT_CSV` Response format CSV

`search` string

optional fuzzy search across known fields

`sortDirection` enum

Sort direction. Defaults to descending.

Allowed values

* `SORT_DIRECTION_ASC` Sort in ascending order
* `SORT_DIRECTION_DESC` Sort in descending order
* `SORT_DIRECTION_UNSPECIFIED` Sort direction not specified (defaults to descending)

`sortField` enum

Field to sort by. Defaults to createdAt (newest first).

Allowed values

* `VISITOR_SORT_FIELD_CREATED_AT` Sort by the date the visitor was first seen
* `VISITOR_SORT_FIELD_VISIT_COUNT` Sort by total number of visits (events)
* `VISITOR_SORT_FIELD_DEVICE_COUNT` Sort by number of attributed devices
* `VISITOR_SORT_FIELD_QRCODE_COUNT` Sort by number of distinct QR codes interacted with
* `VISITOR_SORT_FIELD_UNSPECIFIED` Sort field not specified (defaults to createdAt)

### Response

200

`csv` object

CSV payload when requested

2 child attributes

`contentType` string

MIME type associated with the payload (e.g. text/csv)

`csvData` string

CSV payload encoded as UTF-8

`json` object

Standard JSON payload

4 child attributes

`hasMore` boolean

`nextPageToken` string

Cursor token returned when another page is available

`totalCount` integer (int64)

Total number of visitors matching the current filters

`visitors` array of object

Fields: [The visitor object](#visitors-object).

Errors answer 4xx or 5xx with the [error object](https://linkbreakers.com/help/api#errors), and `429` past the [rate limit](https://linkbreakers.com/help/api#rate-limits).

Request

```bash
curl -X POST "https://api.linkbreakers.com/v1/visitors/search" \
  -H "Authorization: Bearer $LINKBREAKERS_TOKEN" \
  -H "Content-Type: application/json" \
  --data '{
  "attributeFilters": [
    {
      "key": "budget",
      "operator": "VISITOR_ATTRIBUTE_FILTER_OPERATOR_NUMBER_GREATER_OR_EQUAL",
      "value": "800000"
    }
  ],
  "email": "jules.martin@example.com",
  "include": [
    "devices",
    "events",
    "links"
  ],
  "linkId": "1b9d6bcd-bbfd-4b2d-9b5d-ab8dfbbd4bed",
  "pageSize": 25,
  "pageToken": "eyJ2aXNpdG9ySWQiOiI0ZGEzIn0=",
  "responseFormat": "RESPONSE_FORMAT_JSON",
  "search": "jules",
  "sortDirection": "SORT_DIRECTION_DESC",
  "sortField": "VISITOR_SORT_FIELD_VISIT_COUNT"
}'
```

Response 200

```json
{
  "csv": {
    "contentType": "text/csv",
    "csvData": "id,email,first_name,last_name,visit_count\n5a8f2e1c-9b3d-4c7a-a6e0-3f1d8b2c4e96,jules.martin@example.com,Jules,Martin,42\n"
  },
  "json": {
    "hasMore": true,
    "nextPageToken": "eyJ2aXNpdG9ySWQiOiI0ZGEzIn0=",
    "totalCount": 128,
    "visitors": [
      {
        "attributes": [
          {
            "boolValue": true,
            "dateValue": "2026-03-21T12:47:13Z",
            "key": "rating",
            "numberValue": 8,
            "type": "VISITOR_ATTRIBUTE_TYPE_NUMBER",
            "value": "8"
          }
        ],
        "createdAt": "2026-03-15T19:02:41Z",
        "deviceCount": 2,
        "devices": [
          {
            "asn": 7922,
            "browserLanguage": "en-US,en;q=0.9",
            "browserName": "Chrome",
            "browserVersion": "99.0.4844.51",
            "city": "New York",
            "country": "US",
            "createdAt": "2026-03-15T19:02:41Z",
            "deviceActor": "DEVICE_ACTOR_HUMAN",
            "deviceActorName": "GPTBot",
            "deviceActorOrigin": "OpenAI",
            "deviceBrand": "Apple",
            "deviceConcurrency": 4,
            "deviceMemory": 6,
            "deviceName": "iPhone 14 Pro",
            "deviceType": "DEVICE_TYPE_MOBILE",
            "gpu": "Apple GPU",
            "id": "6f1b2e90-1234-4c8f-91e1-63cd927bf908",
            "inAppBrowser": "IN_APP_BROWSER_INSTAGRAM",
            "inAppBrowserDetails": {
              "appBuild": "1065993616",
              "carrier": "T-Mobile",
              "hardwareModel": "iPhone17,3",
              "locale": "en_GB",
              "manufacturer": "samsung",
              "networkType": "WIFI",
              "region": "NG",
              "screenDensity": "3.00",
              "screenResolution": "1170x2532"
            },
            "inAppBrowserVersion": "447.0.0.34.80",
            "ipAddress": "203.0.113.42",
            "isp": "Comcast Cable Communications",
            "lastUsedAt": "2026-03-21T12:47:13Z",
            "networkBandwidth": 10,
            "networkConnection": "4g",
            "networkRtt": 50,
            "platformName": "macOS",
            "platformVersion": "10.15.7",
            "region": "CRF",
            "screenHeight": 1117,
            "screenRatio": 1.55,
            "screenWidth": 1728,
            "state": "NY",
            "timezone": "Europe/London",
            "touchScreen": true,
            "updatedAt": "2026-03-21T12:47:13Z",
            "userAgent": "Mozilla/5.0 (iPhone; CPU iPhone OS 16_4 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.4 Mobile/15E148 Safari/604.1"
          }
        ],
        "email": "sam.visitor@example.com",
        "events": [
          {
            "action": "SCAN",
            "createdAt": "2026-03-21T12:47:13Z",
            "id": "8b6e1a2c-7d4f-4fd2-8b35-9a4c1f2d993a",
            "linkId": "1b9d6bcd-bbfd-4b2d-9b5d-ab8dfbbd4bed",
            "scannedAt": "2026-03-21T12:47:13Z",
            "visitType": "FIRST"
          }
        ],
        "firstName": "Sam",
        "id": "4da3e6a2-2d54-4b0f-9e17-4b6c2af7e9c5",
        "lastName": "Rivera",
        "links": [
          {
            "entrypoint": "https://linkbreak.ing/4BnH-R19p",
            "eventCount": 12,
            "firstVisitedAt": "2026-03-15T19:02:41Z",
            "id": "1b9d6bcd-bbfd-4b2d-9b5d-ab8dfbbd4bed",
            "lastVisitedAt": "2026-03-21T12:47:13Z",
            "name": "Spring Launch Campaign",
            "shortlink": "4BnH-R19p"
          }
        ],
        "phone": "+15551234567",
        "qrcodeCount": 3,
        "updatedAt": "2026-03-21T12:47:13Z",
        "visitCount": 42,
        "workspaceId": "c0d3cafe-5b1e-4d42-a6fd-0c5f5c3962d0"
      }
    ]
  }
}
```

### Parameters

`id` string 

path

Required

Visitor identifier (UUID)

`Idempotency-Key` string 

header

A unique value per request, such as a UUID, that makes retrying it safe: a retry with the same key and body returns the first response instead of acting twice.

### Request body

`visitor` object

Partial attributes to merge into the visitor profile

1 child attribute

`data` object

Free-form attributes map including $-prefixed reserved keys

### Response

200

Returns [the visitor object](#visitors-object).

Errors answer 4xx or 5xx with the [error object](https://linkbreakers.com/help/api#errors), and `429` past the [rate limit](https://linkbreakers.com/help/api#rate-limits).

Request

```bash
curl -X PATCH "https://api.linkbreakers.com/v1/visitors/{id}" \
  -H "Authorization: Bearer $LINKBREAKERS_TOKEN" \
  -H "Content-Type: application/json" \
  --data '{
  "visitor": {
    "data": {
      "$email": "jules.martin@example.com",
      "$firstName": "Jules",
      "table": "12"
    }
  }
}'
```

### Parameters

`id` string 

path

Required

Visitor identifier to remove (UUID)

### Response

200

`success` boolean

Indicates whether the visitor record was deleted

Errors answer 4xx or 5xx with the [error object](https://linkbreakers.com/help/api#errors), and `429` past the [rate limit](https://linkbreakers.com/help/api#rate-limits).

Request

```bash
curl -X DELETE "https://api.linkbreakers.com/v1/visitors/{id}" \
  -H "Authorization: Bearer $LINKBREAKERS_TOKEN"
```

Response 200

```json
{
  "success": true
}
```

### Parameters

`id` string 

path

Required

Visitor identifier whose attribute should be removed (UUID)

`attributeKey` string 

path

Required

Attribute key to delete (without "$" prefix)

### Response

200

`success` boolean

Indicates whether the attribute was removed

Errors answer 4xx or 5xx with the [error object](https://linkbreakers.com/help/api#errors), and `429` past the [rate limit](https://linkbreakers.com/help/api#rate-limits).

Request

```bash
curl -X DELETE "https://api.linkbreakers.com/v1/visitors/{id}/attributes/{attributeKey}" \
  -H "Authorization: Bearer $LINKBREAKERS_TOKEN"
```

Response 200

```json
{
  "success": true
}
```

---

Source: https://linkbreakers.com/help/api/visitors
