Quickstart
This procedure sends a User Verification v2 request and checks the remaining quota.
Before you begin
Obtain these credentials from Privy:
- Basic authentication username and password.
- Confidential merchant key.
Use the staging environment while you build and test the integration.
1. Prepare the images
Encode the original selfie and identity-card images as base64 strings. Each decoded image must be no larger than 2 MB and must be a JPG, JPEG, or PNG. The selfie must be 135–1080 px wide and 240–1920 px high. The KTP image must be 480–1920 px wide and 270–1080 px high.
Send only the base64 value. Do not include a data-URL prefix such as
data:image/jpeg;base64,.
2. Verify the user
Send the request from the merchant backend:
Code
A verified response has this form:
Code
If userStatus is rejected, the response also contains rejected_code and
the digital certificate is held. See
Verification results.
3. Check the quota
Use the same credentials to read the remaining quota:
Code
The response returns the balance as a string:
Code
