Creates a session for one of your customers and returns it with a start_url. Send your customer to that URL to verify. The URL is for one verification and lasts 24 hours; once your customer has started on a phone, it stays with that phone.
edit_note
One open session per reference
If the reference already has a session that hasn't finished (created, handed_off, capturing, submitted or processing), you get that session back with a new start_url, and the earlier link stops working. Calling again, after a page refresh or a double click, never makes a second one. Once a session has finished, the next call makes a new one.
Your ID for the customer, 1 to 200 characters, such as a user or account ID. Sessions with the same reference are grouped together in the dashboard.
Don't use names or email addresses.
redirect_urlstring
An absolute http or https URL, up to 500 characters. When your customer finishes, they get a button back to it. Arriving at it proves nothing: read the session to find out what happened.
documentsobject[]
The documents your customer may choose from. Each one must be accepted in the workspace's settings. Omit to offer all of them.
addShow properties
typestringrequired
passport, driving_licence, id_card or residence_permit.
countrystring
The issuing country, as an ISO 3166-1 alpha-3 code such as GBR. Omit for every country. A passport is any country's: its MRZ says which, and document_country on the session reports it once the document is checked.