Skip to main content
POST

Authorizations

Authorization
string
header
required

API key created in the console. Scopes: kyc:extract, kyc:verify, kyc:eid; kyb:onboard, kyb:ice; statements:read; webhooks:manage; requests:read, requests:write; bank:read, bank:write (Growth plan, enabled per workspace by Sahl); registry:read; cases:read; scoring:read, scoring:write; policy:read, policy:write; usage:read. The Sandbox specimen routes, GET /v1/partner/me and GET /v1/partner/errors need any valid key.

Headers

X-Sahl-Environment
string | null

sandbox (default) or production. Same meaning as the environment field or parameter; if both are sent they must agree.

Query Parameters

environment
string | null

sandbox (default) or production. Same meaning as the X-Sahl-Environment header; if both are sent they must agree.

Body

application/json
reference
string
required

Your own id for the client, 1 to 64 characters of A-Z a-z 0-9 _ . : -. It names the case the documents are filed on.

Required string length: 1 - 64
Pattern: ^[A-Za-z0-9_.:-]+$
documents
string[]
required

Document type keys to ask for, 1 to 12, repeats ignored: bank_statement, payslip, national_id, passport, proof_of_address, employment_attestation, salary_certificate, tax_clearance, cnss_attestation, rib_certificate, company_registration, invoice. Another key is refused.

Required array length: 1 - 12 elements
applicant
Applicant · object

Who is asked. Unknown keys are refused.

reason
string | null

Shown to the applicant. Up to 500 characters; control characters are removed.

Maximum string length: 500
locale
enum<string>
default:en

Language of the page and the email: en, fr or ar.

Available options:
en,
fr,
ar
expires_in_days
integer
default:7

1 to 30. Default 7.

Required range: 1 <= x <= 30
send_email
boolean
default:false

Email the link to applicant.email. Default false.

channel
enum<string>
default:link

link (a page you send) or embed (a page you frame in your own app; allow your origin in the workspace's widget frame origins).

Available options:
link,
embed
metadata
Metadata · object | null

Your own small JSON object, returned as is. Size and shape are checked; an invalid value answers 422.

force_new
boolean
default:false

When an open request exists for the reference, revoke it and create a new one. Default false: the open one is returned.

Response

An open request already exists for this reference: returned as is, without a url. Send force_new: true to replace it.

id
string<uuid>
required

Request id.

reference
string
required

Your id for the client.

status
enum<string>
required
Available options:
pending,
opened,
submitted,
completed,
expired,
revoked
environment
enum<string>
required
Available options:
sandbox,
production
applicant
object
required

Contact details are masked.

documents
DocumentRequestDocument · object[]
required
channel
enum<string>
required
Available options:
link,
embed
locale
enum<string>
required
Available options:
en,
fr,
ar
resend_count
integer
required

Times the link was sent again (maximum 3).

case_id
string<uuid> | null

The case the documents are filed on.

url
string | null

The applicant's link. Only in the response of create (201) and resend; null everywhere else.

expires_at
string<date-time> | null
created_at
string<date-time> | null
opened_at
string<date-time> | null
submitted_at
string<date-time> | null
completed_at
string<date-time> | null
reason
string | null

Why the documents are asked for.

email_sent_at
string<date-time> | null
metadata
object | null

What you sent in metadata.

email_sent
boolean

Only on create and resend: whether the email left.

existing
boolean

Only on a create that returned the open request for the reference (200).

result
object

Only on GET /v1/requests/{request_id} once completed.