/visitors endpoint) or about individual identification events (using the /events endpoint). Server API must be used only from the server side; it was never designed to be and must not be used from the client side (i.e. browsers, mobile devices).
Server API requests are not billed and do not count towards your monthly allowance.
The following Server APIs are available:
-
/events- GET a detailed payload for an identification request.
- PUT an update with
linkedId,tagandsuspectflag to an existing event.
-
/events/search- GET a list of event details using on a wide range of built-in filters (
linkedId,visitorId,timestampandsuspectfields among others).
- GET a list of event details using on a wide range of built-in filters (
-
/visitors- GET the history of visits for a given
visitorId.
- GET the history of visits for a given
See Also
- To identify the browsers that visit your web application, see our documentation for Javascript agent.
- To identify the mobile devices that use your mobile app, see our documentation for Android and iOS.
Regions
The server API is available in the Global, EU and Asia (Mumbai) regions:| Region | Base URL | Server Location |
|---|---|---|
| Global | https://api.fpjs.io | Global |
| EU | https://eu.api.fpjs.io | Frankfurt, Germany |
| Asia (Mumbai) | https://ap.api.fpjs.io | Mumbai, India |
Authentication
There are 2 ways to authenticate with the API: with auth header or with a query parameter. All unauthenticated requests will returnHTTP 403 Forbidden response.
Auth header
This is the recommended way of API authentication. When making an API request, addAuth-API-Key HTTP header with your secret API key.
API key query parameter
This method of authentication is easy to use when you want to test it in the browser. However, we don’t recommend using it in production. Example request with an API key query parameter:HTTP
Server API SDKs
For a smoother developer experience, we offer typed SDKs for these languages: Pick one of them as the Language on the endpoint page’s top right corner to see an example request using that SDK. The SDKs (and this reference) are based on a Server API OpenAPI schema, which is also available on Github:Trying it out
You can try calling the Server API directly from this reference:- You are going to need a Secret API Key. You can create one in your Fingerprint Dashboard > API Keys.
- To make a request, you will need either a
visitorIdorrequestIdof an identification event associated with your workspace. Go to Dashboard > Identification to see your identification events. - Scroll down to one of the endpoints, for example, Get visits by visitorId.
- Set Authentication to your secret API key.
- Set the visitor_id path parameter to some
visitorIdfrom your dashboard (orrequestIdin the case of Get event by requestId). - Make sure the Base URL corresponds to your workspace region.
- Click Try it!