Prepare an environment
Last updated: October 28, 2024
This topic describes how to prepare an environment before implementing the iProov REST API.
Select an iProov tentant
The iProov platform is available in the following geographical regions, select the most appropriate to ensure minimum latency and the best user experience:
Platform | API Base URL | SDK URL Android 8.x iOS 10.x Web 4.x |
---|---|---|
Multi-tenant EU | https://eu.rp.secure.iproov.me/api/v2 | wss://eu.rp.secure.iproov.me/ws |
Multi-tenant USA | https://us.rp.secure.iproov.me/api/v2 | wss://us.rp.secure.iproov.me/ws |
Multi-tenant Singapore | https://sg.rp.secure.iproov.me/api/v2 | wss://sg.rp.secure.iproov.me/ws |
Multi-tenant Australia | https://au.rp.secure.iproov.me/api/v2 | wss://au.rp.secure.iproov.me/ws |
Muti-tenant Jakarta | https://jkt.rp.secure.iproov.me/api/v2 | wss://jkt.rp.secure.iproov.me/ws |
Multi-tenant LATAM | https://latam.rp.secure.iproov.me/api/v2 | wss://latam.rp.secure.iproov.me/ws |
The platform you select must match the one specified in the service provider configuration and the client SDK streaming URL. A miss match will result in a HTTP 401 error code with this response message:
{
"error": "invalid_key",
"error_description": "Invalid Public and/or Private Key"
}
Obtain API authentication credentials
The iProov REST API has two groups, each with a different authentication mechanism. API and OAuth 2.0 credentials can be obtained when creating a service provider:
-
Service API
-
Management API
Endpoint group | Authentication mechanism |
---|---|
|
API key and secret |
|
OAuth 2.0 user name and password |
|
OAuth access token |
Generate user IDs
A generated user_id is required to interact with the API. This ID should be unique for each user and stored as part of your user record for:
-
Future reference
-
Result validation
-
Authentication (Verifier use cases) when applicable
-
user_id must conform to this regex: [a-zA-Z0-9'\+_@\.-]{1,256}
-
Do not use any identifiable information such as email addresses.
Store tokens and results
iProov strongly recommends persisting all of the following data elements:
Value | Source | Persistence type | Description |
---|---|---|---|
(enroll and verify) |
|
|
The token provided is used to launch the client SDK. |
|
Generated by your system. |
|
|
Retry count | iProov recommends a maximum of 3 retry attempts. This may be different depending on your contract. |
|
The number of permitted Genuine Presence Assurance® (GPA) and Liveness Assurance™ (LA) user attempts. |
Validated result |
|
|
The verified transaction outcome. For GPA and LA the validate requests are one time transactions and the results must be stored. |
Next step