Trustfull Login (Score)

Trustfull Login (Score)

To use this API, you must first follow the prerequisites as described HERE

What is Trustfull Login score?

The Login Score API evaluates user login events by analyzing behavioral and device data, returning a risk-based score and cluster to help determine the appropriate authentication action.

Request

following an example of a Trustfull Login score

curl --request POST \
     --url POST http://api.fido.id/1.0/track/results?session_id={session_id} \
     --header 'Accept: application/json' \
     --header 'Content-Type: application/json' \
     --header 'x-api-key: [your_app_key]' 

Response

Following an example of the response:

{
    "transaction_id": "158db860-67e6-4ef7-8162-1a23a5e16cf5",
    "username": "johndoe",
    "app_key": "TFB-abc",
    "session_id": "session-123",
    "browser_battery_charging": true,
    "browser_battery_level": 85,
    "browser_device_operating_system": "Android",
    "browser_device_type": "desktop",
    "browser_has_privacy_related_plugins": true,
    "browser_name": "Chrome",
    "browser_language": "en-US",
    "browser_timezone": "America/New_York",
    "browser_version": "114.0.1",
    "browser_cpu_class": "x86",
    "browser_cpu_cores": "12",
    "browser_video_card_vendor": "google inc. (intel)",
    "browser_video_card_renderer": "angle (intel, mesa intel(r) graphics (rpl-u), opengl 4.6)",
    "browser_media_devices_count": "3",
    "browser_media_devices_list": "audioinput,videoinput,audiooutput",
    "browser_screen_resolution": "1920x1080",
    "browser_viewport": "1193x1327",
    "browser_color_depth": "24",
    "browser_cookies_enabled": true,
    "browser_incognito_mode": true,
    "device_request_time": "2024-12-12T10:00:00Z",
    "ip": "192.168.0.1",
    "ip_black_list_count": 5,
    "ip_city": "New York",
    "ip_company_domain": "google.com",
    "ip_connection_speed": "company/T1",
    "ip_connection_type": "Reserved",
    "ip_country": "United States",
    "ip_country_code": "US",
    "ip_css_count": 3,
    "ip_css_in_days": 7,
    "ip_is_hosting": true,
    "ip_is_mobile": false,
    "ip_isp": "Comcast",
    "ip_is_proxy": false,
    "ip_is_relay": false,
    "ip_is_tor": false,
    "ip_is_valid_format": true,
    "ip_is_vpn": false,
    "ip_lat": "40.7128",
    "ip_lon": "-74.0060",
    "ip_proxy_name": "ProxyXYZ",
    "ip_proxy_type": "datacenter",
    "ip_timezone": "CET",
    "ip_timezone_request_time": "night",
    "ip_xbl_count": 2,
    "ip_xbl_in_days": 2,
    "ip_zip": "10001",
    "browser_device_model": "Galaxy S7 Edge",
    "browser_device_brand": "Samsung",
    "ip_vpn_name": "NordVPN",
    "score": 649,
    "score_cluster": "high"
}
nametype
transaction_idstring

Unique identifier for the transaction

Ex: 158db860-67e6-4ef7-8162-1a23a5e16cf5
usernamestring

The username associated with the session or transaction

Ex: johndoe
app_keystring

The application key associated with the request

Ex: TFB-abc
session_idstring

Session identifier for the login interaction

Ex: session-123
browser_battery_chargingboolean

Indicates whether the battery is charging

Ex: true
browser_battery_levelinteger

Current battery level as a percentage

Ex: 85
browser_device_operating_systemstring

Operating system of the device running the browser

Ex: Android
browser_device_typestring

Type of device running the browser (e.g., desktop, mobile)

Ex: desktop
browser_has_privacy_related_pluginsboolean

Indicates whether the browser has privacy-related plugins installed

Ex: true
browser_namestring

Name of the browser being used

Ex: Chrome
browser_languagestring

Language of the browser, in the standard RFC 9110

Ex: en-US
browser_timezonestring

Timezon of the browser, in the standard IANA Time Zone Database

Ex: America/New_York
browser_versionstring

Version of the browser being used

Ex: 114.0.1
browser_cpu_classstring

CPU Architecture

Ex: x86
browser_cpu_coresinteger

Number of the cores of the CPU

Ex: 12
browser_video_card_vendorstring

The vendor of the CPU

Ex: google inc. (intel)
browser_video_card_rendererstring

The CPU render engine

Ex: angle (intel, mesa intel(r) graphics (rpl-u), opengl 4.6)
browser_media_devices_countinteger

The count of media device

Ex: 3
browser_media_devices_liststring

The list of media device

Ex: audioinput,videoinput,audiooutput
browser_screen_resolutionstring

The resolution of the browser

Ex: 1920x1080
browser_viewportstring

The viewport of the browser

Ex: 1193x1327
browser_color_depthinteger

The browser color depth

Ex: 24
browser_cookies_enabledboolean

Indicates if the browser has cookies enabled

Ex: true
browser_incognito_modeboolean

Indicates if the browser is in incognito mode

Ex: true
device_request_timestring

The timestamp of the request from the device

Ex: 2024-12-12T10:00:00Z
ipstring

IP address of the login event

Ex: 192.168.0.1
ip_black_list_countinteger

The number of providers that have flagged this IP as spam

Ex: 5
ip_citystring

City associated with the IP address

Ex: New York
ip_company_domainstring

The name of the domain of the company that owns the domain, if found

Ex: google.com
ip_connection_speedstring

Internet connection speed associated to the ip address:
- company/T1
- broadband/cable/fiber
- mobile


Ex: company/T1

Enum: company/T1,broadband/cable/fiber,mobile
ip_connection_typestring

Usage type classification of ISP or company:
- Commercial
- Content Delivery Network
- Fixed Line
- Mobile ISP
- Reserved
- University / College / School


Ex: Reserved

Enum: Commercial,Content Delivery Network,Fixed Line,Mobile ISP,Reserved,University / College / School
ip_countrystring

Country name associated with the IP address

Ex: United States
ip_country_codestring

Country associated with the IP address, ISO 3166 alpha-2

Ex: US
ip_css_countinteger

The number of times this IP address has been reported in a Combined Spam Sources (CSS)

Ex: 3
ip_css_in_daysinteger

The how many days has passed since the most recent report in a Exploits Blocklist (XBL). Recency indicates more accurate data.

Ex: 7
ip_is_hostingboolean

Indicates if the IP address is an hosting provider

Ex: true
ip_is_mobileboolean

Indicates if the IP address is associated with a mobile connection

Ex: false
ip_ispstring

Internet service provider associated with the IP address

Ex: Comcast
ip_is_proxyboolean

Indicates if the IP address is a proxy

Ex: false
ip_is_relayboolean

Indicates if the IP address is a relay

Ex: false
ip_is_torboolean

Indicates if the IP address is part of the Tor network

Ex: false
ip_is_valid_formatboolean

Indicates if the IP address is in a valid format

Ex: true
ip_is_vpnboolean

Indicates if the IP address is associated with a VPN

Ex: false
ip_latstring

Latitude of the location associated with the IP address

Ex: 40.7128
ip_lonstring

Longitude of the location associated with the IP address

Ex: -74.0060
ip_proxy_namestring

Name of the proxy associated with the IP address, if any

Ex: ProxyXYZ
ip_proxy_typestring

When the IP address is a Proxy, indicates the type of Proxy

Ex: datacenter

Enum: datacenter,residential
ip_timezonestring

The Timezone the IP address belongs to

Ex: CET
ip_timezone_request_timestring

Time of the day the user is requesting your service

Ex: night

Enum: morning,afternoon,evening,night
ip_xbl_countinteger

The number of times this IP address has been reported in a Exploits Blocklist (XBL)

Ex: 2
ip_xbl_in_daysinteger

The how many days has passed since the most recent report in a Exploits Blocklist (XBL). Recency indicates more accurate data.

Ex: 2
ip_zipstring

ZIP code associated with the IP address

Ex: 10001
browser_device_modelstring

Device model running the browser

Ex: Galaxy S7 Edge
browser_device_brandstring

Brand of the device running the browser

Ex: Samsung
ip_vpn_namestring

Name of the VPN associated with the IP address, if any

Ex: NordVPN
scoreinteger

A number ranging from 0 to 1000 that represents the quality score of the login

Ex: 649
score_clusterstring

A cluster categorization that summarizes the quality score of the login

Ex: high

Enum: very_low,low,review,high,very_high
Language
URL
Click Try It! to start a request and see the response here!