Call theDocumentation Index
Fetch the complete documentation index at: https://docs.fingerprint.com/llms.txt
Use this file to discover all available pages before exploring further.
get() function to send identification requests to Fingerprint and get the browser’s visitor ID.
If you are just getting started with Fingerprint, we recommend reading the following guides first:
get() options
linkedId
Required: no Default:undefinedType:stringConstraint: the number of characters must not exceed 256
linkedId is a way of linking the current analysis event with a custom identifier. This will allow you to filter visit information when using the Server API.
linkedId is not available on the client when the event happens, it is possible to set it through our Update Event Server API.
To learn more about tag and linkedId use cases, see Linking and tagging information.
tag
Required: no Default: undefined Type: any simple value or an object (not arrays) Constraint: the size must not exceed 16KB
tag is a customer-provided value or an object that is saved with the identification event and returned back to you in a webhook message or Server API response. You can use tag to associate the visit event with other information you have about the visitor.
You can use any simple value (string, number, boolean) or an object. An object is saved as provided. A simple value (for example 123) is returned wrapped in an object like this: { "tag": 123 }.
Examples of using the tag option:
tag is not available on the client when the event happens, it is possible to set it through our Update Event Server API.
To learn more about tag and linkedId use cases, see Linking and tagging information.
timeout
Required: no Default:Client timeout controls the total time (both client-side and server-side) that any analysis event can run. It doesn’t include the time when the page is in the background (not visible) because the browser may suspend the analysis process during that time. By default, it’s 10 seconds. You can set the client-side timeout in milliseconds using the10000Type:number
timeout option. Example usage:
get() response
fp.get() returns a promise that resolves to a result object. Only event_id and sealed_result are always present. Every other field is conditional on either workspace configuration or the options passed to start() (see the field reference below). The format summary:
get() response fields
event_id
Required: yes Type: string
The request identifier is unique for every request. Use it to request information about a specific identification request from the Server API.
visitor_id
Required: no Type: string
The browser identifier (or device identifier for mobile platforms).
In most configurations the field is always present. It contains an empty string if the visitor can’t be identified (for example, a search bot). If the identification product is disabled, a dummy value is used.
The field is omitted from the response (undefined) when the workspace has Zero Trust mode enabled. In that case the backend does not return a visitor identifier to the client and you should retrieve it from the Server API using event_id.
sealed_result
Required: yes Type: BinaryOutput | null
The field is always present in the response. It carries a BinaryOutput wrapper around the sealed payload when Sealed Client Results are enabled for the workspace, and null otherwise. See the Sealed Client Results guide for setup details.
BinaryOutput has three serialization methods:
base64(): stringbyteArray(): Uint8Arrayblob(): Blob
The
BinaryOutput interface is referenced inside the public GetResult type but is not exported as a top-level name from the package. If you need it for typing your own code, access it via NonNullable<GetResult['sealed_result']> (since GetResult['sealed_result'] itself is BinaryOutput | null).cache_hit
Required: no Type: boolean
The value is included if the cache configuration was used during the start() call and is:
trueif theget()response was retrieved from the cache.falseif theget()response came directly from the Fingerprint backend.
undefined when the cache option was not set in start().
suspect_score
Required: no Type: number
Shows the Suspect Score value of the event when the workspace has Smart Signals enabled. The field is undefined otherwise.