Server-Side SDK Guide
Learn more about the details of the server-side SDK for Identity Manager
Installation
Install the server-side SDK of your choice by running a command in your terminal, or by using a dependency management tool specific to your project.
Authentication
Identity Manager uses OAuth 2.0 client credentials authentication. You’ll need to obtain an access token before making API calls.
The OAuth token expires after 60 minutes, requiring you to get another token. The SDK handles token refresh automatically.
API Functions
Identity Manager provides eight core functions for comprehensive identity management. Refer to the API reference documentation for detailed information on each endpoint.
Enroll Identity
Enrolls a single identity for monitoring.
Parameters:
phoneNumber
: The number of the consumer being enrolled.
Optional Parameters:
clientCustomerId
: A client-generated unique ID for a specific customer.clientRequestId
: A client-generated unique ID for a specific session.deviceId
: A string that is the unique identifier for the Prove Key on the device. Only applicable if you are leveraging Prove Unify.
Returns:
identityId
: A unique Prove-generated identifier for the enrolled identity.success
: If true, the request was successful and the identity was created.
Batch Enroll Identities
Enrolls multiple customers in a single request for efficient bulk operations (up to 100).
Parameters:
clientRequestId
: A client-generated unique ID for a specific session.items
: Represents a list of identities that you wish to enroll.
Returns:
results
: Represents a list of identities that were either successfully enrolled or an error message.
Batch Get Identities
Return a list of all identities you have enrolled in Identity Manager with pagination support.
Parameters:
limit
: The maximum number of identities to return per call.
Returns:
lastKey
: A pagination token for callers that have more identities left to return.results
: The list of identity IDs associated with the client.
Get Identity
Return details of an identity given the identity ID.
Parameters:
identityId
: A unique Prove-generated identifier for the enrolled identity.
Returns:
- Complete identity object with all associated data.
Get Identities By Phone Number
Return list of all identities you have enrolled that are associated with this phone number.
Parameters:
mobileNumber
: The phone number to retrieve identities for.
Returns:
items
: The list of identities associated with the given phone number.
Activate Identity
Sets an identity as active for monitoring.
Parameters:
identityId
: A Prove-generated unique ID for a specific identity.
Returns:
success
: Boolean indicating if activation was successful
Deactivate Identity
Sets an identity as inactive, stopping webhook notifications.
Parameters:
identityId
(required): The unique identifier of the identity
Returns:
success
: If true, the deactivate operation was successful.
Deactivated identities remain in the system and can be reactivated later. Use this instead of disenroll for temporary monitoring suspension.
Disenroll Identity
Disenrolls an identity from Identity Manager. If you wish to monitor in future, re-enrollment of that identity is required.
Parameters:
identityId
(required): The unique identifier of the identity
Returns:
success
: If true, the disenroll operation was successful.
Disenrolled identities cannot be recovered through the API. Consider using deactivate instead for temporary suspension.
Always test your implementation thoroughly in the sandbox environment before moving to production.