Required Headers
Device Intelligence
To enhance the security and fraud prevention of our API, we require that you include a ratio-device-fingerprint
header in your API calls. This information helps us to protect user accounts by detecting anomalous behaviour.
The ratio-device-fingerprint
header must be a base64 encoding of a stringified JSON object that contains the following fields:
ip
: IP address of the requestBrowser-based implementations:
userAgent
: The user agent of the browser that is interacting with your website.
Mobile-based implementations:
os
: The operating system on which application is running. (e.g. iOS, Android)osVersion
: The operating system version on which application is running. (e.g. 10.3.1, 7.1.1)deviceManufacturer
: The manufacturer of the device on which application is running. (e.g. Samsung, Apple, LG)deviceModel
: The model of the device on which application is running. (e.g. SM-G920x, iPhone8,1)deviceUniqueId
: The unique ID of the device on which application is running. For iOS, send the IFV identifier. For Android, send the Android ID.
For example, a browser-based request from a Windows 10 machine using Chrome would have a header like this:
The stringified JSON object before encoding is:
A device-based request from an Android phone using Samsung Galaxy S21 would have a header like this:
The stringified JSON object before encoding is:
Please note that the stringified JSON object must be valid and well-formed.
Last updated