Skip to main content
A recipient without a Circularo account can be required to prove who they are before the document opens — with a one-time code, a password, or a verified identity document. This guide sends an agreement behind an SMS code and then raises the requirement to a checked passport. It takes two calls.

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) and share_kyc_otp. Asking for a method you do not hold the right for returns 403.
  • Sending to people outside your organization must be enabled for your account. Check settings.canShareWithExternalUsers in GET /me — when it is off, a recipient without a Circularo account is rejected with 403.
  • Identity checks need a provider. GET /me lists the KYC provider names you can use in settings.allowedKycProviders; the examples use identomat.

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 password you 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 a kyc check where a provider inspects a real identity document.
Whichever you pick, the recipient meets it the moment they open the document — from the email invitation or from a link you handed them yourself.

Step 1: Send the document behind an SMS code

Configure the method on the recipient when you send:
Request
Response
The recipient’s 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
The new method replaces the old one: 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