Before you begin
- Each verification method needs a right of its own, on top of the right to start a transaction:
share_mail_otp,share_sms_otp,share_password,share_oauth_otp(which also covers Nafath) andshare_kyc_otp. Asking for a method you do not hold the right for returns403. - Sending to people outside your organization must be enabled for your account. Check
settings.canShareWithExternalUsersinGET /me— when it is off, a recipient without a Circularo account is rejected with403. - Identity checks need a provider.
GET /melists the KYC provider names you can use insettings.allowedKycProviders; the examples useidentomat.
What verification asks of a recipient
Verification is set per recipient, and one recipient can be asked for exactly one thing. A recipient who holds a Circularo account signs in instead; verification set on them is ignored. The methods differ in what the recipient has to produce:- Something they receive — a one-time code sent to their phone (
sms) or their email (email). The quickest to set up, and enough for most agreements. - Something they know — a
passwordyou agree with them through your own channel. Circularo never sends it for you. - Who they are — a sign-in with an identity provider (
oauth), the Saudi national identity service (nafath), or akyccheck where a provider inspects a real identity document.
Step 1: Send the document behind an SMS code
Configure the method on the recipient when you send:Request
Response
verification reports the configured method with the phone number anonymized — Circularo keeps the number to send the code to, and never returns it. Every method the recipient was not asked for is null.
Step 2: Raise the requirement to a verified identity document
Verification can be changed while the recipient has not acted yet. For an agreement that warrants it, ask for a checked identity document instead:Request
Response
kyc is now set and sms is back to null. documentTypes limits what the recipient may identify themselves with — a passport here, since the passport number is the number expectedData pins down. The response confirms which details must match under requiredMatches, and never repeats the values you sent.
Once you hand out a direct link, the recipient’s verification can still be switched or corrected, but no longer removed or replaced with a password — see Hand out signing links yourself.
The outcome of an identity check is recorded in your organization’s audit log: the provider, the session, the kind of identity document presented and which of the expected details matched.
Complete example
Sending behind a one-time code, and asking for an identity check when the agreement warrants it, as a Node.js script. Error handling is minimal for brevity — in production, inspect the error envelope of non-2xx responses.Next steps
- Deliver the signing link through your own application — Hand out signing links yourself.
- Monitor a running transaction, remind recipients, or replace one — Manage a running transaction.