Skip to main content
Start a Nafath identity check

Authorizations

token
string
query
required

Standard authorization for most API calls. This token identifies the logged-in user and their permissions. It is obtained either as a temporary token after a successful login or as a long-term API key.

Query Parameters

tenant
string

Tenant the check is recorded against. It does not decide whether Nafath is available - that comes from the caller's own settings when they are signed in, and from the address the request arrived on when they are not.

Pattern: ^[a-z0-9]+$
Example:

"default"

token
string

Token of the caller, where they are already signed in. Sending it turns a plain identity check into attaching that national identity to their account.

Pattern: ^[A-Za-z0-9._-]+$
Example:

"cir_a11b868cbba3c.WBv2Jc8lXo3pQ9rT5uYhZaEwSdFgHjKmNbVcXzLqRt0"

Body

application/json
id
integer
required

The person's Saudi national identity number.

Required range: 1000000000 <= x <= 9999999999
documentId
string | null

Document a signature is being authorized for. It belongs only with isSign, and only when signing a document reached directly rather than through a share.

Pattern: ^[A-Za-z0-9_-]+$
Example:

"a0d01c9d-f72f-4c57-af11-e26bda19cc59"

isSign
boolean
default:false

Marks the check as authorizing a signature rather than signing somebody in or verifying a recipient. Exactly one of documentId and shareToken has to come with it.

Example:

false

shareToken
string | null

Share the check concerns - the one whose recipient is proving who they are, or the one a signature is being authorized through.

Pattern: ^[A-Za-z0-9._-]+$
Example:

"cir_82c5fa30d26bc.WBv2Jc8lXo3pQ9rT5uYhZaEwSdFgHjKmNbVcXzLqRt0"

Response

The check was started. Returns its identifier and the number the person has to pick in their Nafath app.

random
string

The number the person has to pick in their Nafath app out of the several it offers them. Show it to them, or they cannot tell which prompt is yours.

Example:

"42"

transId
string

Identifier of the check, to follow it with GET /nafath/status.

Example:

"b3f0a1c2-7d4e-4a11-9f3b-2c8e5d6a7b90"