curl --request GET \
--url https://api.fpjs.io/v4/events \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.fpjs.io/v4/events"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.fpjs.io/v4/events', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.fpjs.io/v4/events",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.fpjs.io/v4/events"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.fpjs.io/v4/events")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.fpjs.io/v4/events")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_bodySearch events
Search
The /v4/events endpoint provides a convenient way to search for past events based on specific parameters. Typical use cases and queries include:
- Searching for events associated with a single
visitor_idwithin a time range to get historical behavior of a visitor. - Searching for events associated with a single
linked_idwithin a time range to get all events associated with your internal account identifier. - Excluding all bot traffic from the query (
goodandbadbots)
By default, the API searches events from the last 7 days, sorts them by newest first and returns the last 10 events.
- Use
startandendto specify the time range of the search. - Use
reverse=trueto sort the results oldest first. - Use
limitto specify the number of events to return. - Use
pagination_keyto get the next page of results if there are more thanlimitevents.
Filtering events with the suspect flag
The /v4/events endpoint unlocks a powerful method for fraud protection analytics. The suspect flag is exposed in all events where it was previously set by the update API.
You can also apply the suspect query parameter as a filter to find all potentially fraudulent activity that you previously marked as suspect. This helps identify patterns of fraudulent behavior.
Environment scoping
If you use a secret key that is scoped to an environment, you will only get events associated with the same environment. With a workspace-scoped environment, you will get events from all environments.
Smart Signals not activated for your workspace or are not included in the response.
curl --request GET \
--url https://api.fpjs.io/v4/events \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.fpjs.io/v4/events"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.fpjs.io/v4/events', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.fpjs.io/v4/events",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.fpjs.io/v4/events"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.fpjs.io/v4/events")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.fpjs.io/v4/events")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_bodyGET /v4/events.Authorizations
Query Parameters
Maximum number of events to return. Defaults to 10 when omitted. Results are selected from the time range (start, end), ordered by reverse, then truncated to provided limit size. So reverse=true returns the oldest N=limit events, otherwise the newest N=limit events.
1 <= x <= 10010
Use pagination_key to get the next page of results.
When more results are available (e.g., you requested up to 100 results for your query using limit, but there are more than 100 events total matching your request), the pagination_key field is added to the response. The pagination key is an arbitrary string that should not be interpreted in any way and should be passed as-is. In the following request, use that value in the pagination_key parameter to get the next page of results:
- First request, returning most recent 100 events:
GET api-base-url/events?limit=100 - Use
response.pagination_keyto get the next page of results:GET api-base-url/events?limit=100&pagination_key=S9rgMMUb4z3X5t5pr_tSgoSZlmyF0O8X7kCV2m981-iY1LmRTjraa1rTk3L-hQExnDWCi0RA-zAIjaVSTNO2AN2eqQWgzT0RjbieMxRfSdkM-HmOhdOgdQvYfPG3vqU1DJKh4Q
"S9rgMMUb4z3X5t5pr_tSgoSZlmyF0O8X7kCV2m981-iY1LmRTjraa1rTk3L-hQExnDWCi0RA-zAIjaVSTNO2AN2eqQWgzT0RjbieMxRfSdkM-HmOhdOgdQvYfPG3vqU1DJKh4Q"
Unique visitor identifier issued by Fingerprint Identification and all active Smart Signals.
Filter events by matching Visitor ID (identification.visitor_id property).
"Ibk1527CUFmcnjLwIs4A9"
The High Recall ID is a supplementary browser identifier designed for use cases that require wider coverage over precision. Compared to the standard visitor ID, the High Recall ID strives to match incoming browsers more generously (rather than precisely) with existing browsers and thus identifies fewer browsers as new. The High Recall ID is best suited for use cases that are sensitive to browsers being identified as new and where mismatched browsers are not detrimental.
Filter events by matching High Recall ID (supplementary_id_high_recall.visitor_id property).
"Ibk1527CUFmcnjLwIs4A9"
Filter events by the Bot Detection result, specifically:
all - events where any kind of bot was detected.
good - events where a good bot was detected.
bad - events where a bad bot was detected.
none - events where no bot was detected.
Note: When using this parameter, only events with the
botproperty set to a valid value are returned. Events without abotSmart Signal result are left out of the response.
all, good, bad, none Filter events by their Bot Info Category.
Multiple categories can be provided using the repeated keys syntax. For example, bot_info_category=ai_agent&bot_info_category=ai_assistant, will match events with a Bot Info Category of ai_agent or ai_assistant. Other notations like comma-separated or bracket notation are not supported.
The type and purpose of the bot.
advertising_and_marketing, aggregator, ai_agent, ai_assistant, ai_browser, ai_crawler, ai_search, browser_automation, ecommerce, monitoring_and_analytics, other, scraping, security, search_engine_crawler, search_engine_optimization, unknown Filter events by their Bot Info Identity type.
Multiple identity types can be provided using the repeated keys syntax. For example, bot_info_identity=verified&bot_info_identity=signed, will match events with a Bot Info Identity of verified or signed. Other notations like comma-separated or bracket notation are not supported.
The verification status of the bot's identity:
verified- well-known bot with publicly verifiable identity, directed by the bot provider.signed- bot that signs its platform via Web Bot Auth, directed by the bot provider's customers.spoofed- bot that claims a public identity but fails verification.unknown- bot that does not publish a verifiable identity.
verified, signed, spoofed, unknown Filter events by their Bot Info Confidence.
Multiple confidences can be provided using the repeated keys syntax. For example, bot_info_confidence=high&bot_info_confidence=medium, will match events with a Bot Info Confidence of high or medium. Other notations like comma-separated or bracket notation are not supported.
Confidence level of the bot identification.
low, medium, high Filter events by their Bot Info Provider. The provider must match exactly, partial or wildcard matching is not supported.
Multiple Providers can be provided using the repeated keys syntax. For example, bot_info_provider=OpenAI&bot_info_provider=AWS, will match events with a Bot Info Provider of OpenAI or AWS. Other notations like comma-separated or bracket notation are not supported.
Filter events by their Bot Info Name. The name must match exactly, partial or wildcard matching is not supported.
Multiple Names can be provided using the repeated keys syntax. For example, bot_info_name=ChatGPT%20Agent&bot_info_name=Bedrock%20AgentCore, will match events with a Bot Info Name of ChatGPT Agent or Bedrock AgentCore. Other notations like comma-separated or bracket notation are not supported.
Filter events by your custom identifier.
You can use linked IDs to associate identification requests with your own identifier, for example, session ID, purchase ID, or transaction ID. You can then use this linked_id parameter to retrieve all events associated with your custom identifier.
"somelinkedId"
Filter events by the origin field of the event. This is applicable to web events only (e.g., https://example.com)
"https://example.com"
Include events that happened after the provided start date formatted as an RFC3339 timestamp. For backward compatibility, a Unix milliseconds timestamp is also accepted. Defaults to 7 days ago. Setting start does not change the default end date of now — adjust it separately if needed.
"2026-01-01T00:00:00Z"
Include events that happened before the provided end date formatted as an RFC3339 timestamp. For backward compatibility, a Unix milliseconds timestamp is also accepted. Defaults to now. Setting end does not change the default start date of 7 days ago — adjust it separately if needed.
"2026-01-31T23:59:59Z"
Filter events previously tagged as suspicious via the Update API.
Note: When using this parameter, only events with the
suspectproperty explicitly set totrueorfalseare returned. Events with undefinedsuspectproperty are left out of the response.
Filter events by VPN Detection result confidence level.
high - events with high VPN Detection confidence.
medium - events with medium VPN Detection confidence.
low - events with low VPN Detection confidence.
Note: When using this parameter, only events with the
vpn.confidenceproperty set to a valid value are returned. Events without avpnSmart Signal result are left out of the response.
high, medium, low Filter events with Suspect Score result above a provided minimum threshold.
Note: When using this parameter, only events where the
suspect_scoreproperty set to a value exceeding your threshold are returned. Events without asuspect_scoreSmart Signal result are left out of the response.
7.5
Filter events by Device Rarity detection result.
Note: When using this parameter, only events with the
rare_deviceproperty set totrueorfalseare returned. Events without a Device Rarity Smart Signal result are left out of the response.
This Smart Signal is currently in beta and only available to select customers. If you are interested, please contact our support team.
Filter events by Device Rarity percentile bucket.
<p95 - device configuration is in the bottom 95% (most common).
p95-p99 - device is in the 95th to 99th percentile.
p99-p99.5 - device is in the 99th to 99.5th percentile.
p99.5-p99.9 - device is in the 99.5th to 99.9th percentile.
p99.9+ - device is in the top 0.1% (rarest).
not_seen - device configuration has never been observed before.
This Smart Signal is currently in beta and only available to select customers. If you are interested, please contact our support team.
<p95, p95-p99, p99-p99.5, p99.5-p99.9, p99.9+, not_seen Filter for events by providing one or more environment IDs (environment_id property).
Array syntax
To provide multiple environment IDs, use the repeated keys syntax (environment=env1&environment=env2).
Other notations like comma-separated (environment=env1,env2) or bracket notation (environment[]=env1&environment[]=env2) are not supported.
Selects the source of events to search. When omitted, only traditional identification events generated from devices are returned (the default behavior). When set to edge, only Automation Intelligence (Edge) events are returned.
To retrieve all events regardless of source, you must make two requests. One with the source parameter set to edge, and another with the source parameter omitted.
Note: The Automation Intelligence API is in public preview testing phase. If you encounter any issues, please contact our support team.
1edge Filter events by Compromised Device Integrity result on Android devices.
Note: When using this parameter, only events with the
compromised_device_integrityproperty set totrueorfalseare returned. Events without acompromised_device_integritySmart Signal result are left out of the response.
Response
Events matching the filter(s).
Contains a list of all identification events matching the specified search criteria.
A Device Intelligence or Automation Intelligence event. Check source first, because it determines which properties the event can contain.
Both sources can contain:
- Request metadata like
event_id,timestamp,source,linked_id,environment_id,tags,url. - IP and bot analysis fields like
ip_info,bot_info,proxy,vpn.
Sources:
device- generated by the Fingerprint JavaScript agent or a mobile SDK running on an end-user device. Also contains Identification (visitor_id) and Smart Signals derived from device telemetry. SeeEventDevice.edge- generated by the Automation Intelligence API (/edgeendpoint) for a request intercepted at the edge. Contains only the properties above. SeeEventEdge.
- Option 1
- Option 2
Show child attributes
Show child attributes
Was this page helpful?