Skip to main content
With your API key created in the environment that fits you, this is the only call you need to get started. The example uses pre-official-integration (sandbox-api.fraudeg.com). In production, change the host to https://api.fraudeg.com/api; the path is the same. There is no /verifications/sandbox.

Request

The call requires the KYC_WRITE scope. Always send customer_ref. Without it we generate one, and then the verification cannot be linked to your own record. It is also what makes retrying cheap: while there is a verification in progress for that reference, a second call returns the same one, does not charge again, and gives you a url to pick up where the person left off.

Response

With this response you do exactly two things:
  1. Store id in your record.
  2. Send the person to url, or hand it to your page so it opens it.
session_token is a credential. Do not write it to logs, do not store it, and do not put it in a URL the person can share. If your framework serializes entire responses to the logs, exclude this one.

While the person is being verified

You do not need to ask anything: the decision reaches your backend by webhook. If you want to check the status anyway —for an internal screen, or to reconcile— use:
That read requires the KYC_READ scope. A key with only that scope cannot create anything, which is what you want to give a process that only reconciles.

Testing from your machine

The two URLs you give us are reached by different things, and only one needs a tunnel.

Next step

Identity decisions: what each status means and what to do with it.