Skip to main content
POST
Onboard a Moroccan company

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.

Body

multipart/form-data

Multipart form. Files: PDF, JPEG, PNG, WebP or TIFF, up to 30 MB each.

modele_j
file
required

The Modèle J or Modèle 7 (commercial register extract). PDF, JPEG, PNG, WebP or TIFF, up to 30 MB.

cin
file
required

The manager's CIN, front.

attestation_if
file | null

The DGI attestation d'identifiant fiscal. Optional; without it the file goes to manual review (if_format).

cin_back
file | null

The CIN's back (carries the MRZ). Optional; it is billed together with the front as one document.

reference
string | null

Your own id for the company file: 1 to 64 characters of A-Z a-z 0-9 _ . : -. Echoed in the answer and the kyb.completed event. Another value answers 422 invalid_reference.

environment
string | null

sandbox (default) or production.

Response

OK

kyb_id
string<uuid>
required

Id of this call.

environment
enum<string>
required
Available options:
sandbox,
production
company
object
required

What the Modèle J says: raison_sociale, forme_juridique, ice, rc_number, tribunal, siege_social, capital, date_creation, activite and gerants (a list of the gérants read from the document, each with nom, prenom, nom_ar, cin, qualite). A value that could not be read is null.

tax
object
required

if_number: the tax identifier (IF), from the attestation when sent, else from the Modèle J.

manager
object
required

The CIN holder: nom, prenom, nom_ar, cin_number, date_naissance, expiry. Not stored by Sahl.

checks
KybCheck · object[]
required
decision
enum<string>
required

auto_ok only when every required check passed and none failed.

Available options:
auto_ok,
manual_review
reasons
object[]
required

Why the file is in manual_review. Empty for auto_ok.

documents
object[]
required

One entry per document role.

company_record
enum<string>
required

Whether the company's ICE, name and address were kept for later ICE checks. Only an auto_ok file with a valid ICE key that reads the same on both documents is kept; conflict: the ICE is already kept under another name and nothing was overwritten.

Available options:
stored,
updated,
not_stored,
conflict
billing
PartnerBilling · object
required

What this call counted against the workspace.

latency_ms
integer
required
reference
string | null

The reference you sent.

document_kind
string | null

modele_j, modele_7, autre when the first document is something else, or null.

gerant_match
object

Whether the CIN holder is one of the gérants of the Modèle J.

screening
object

Sanctions and PEP screening of the company, the gérants and the CIN holder.

evidence
object

For each output field (company.ice, tax.if_number, manager.cin_number, ...): status (valid, needs_review or missing), confidence, evidence (how the value is backed, for example validator, agreement, model), source (modele_j, attestation_if or cin), plus note when a validation message applies and corroborated_by on the ICE when the IF attestation agrees.

reader_unavailable
boolean

True when a document that was sent could not be read (it is not billed).