1. Web SDK
RSID docs
English
  • English
  • Russian
  • Uzbek
  • Integration Overview
  • Web SDK
    • Usage guide
    • sign-in
      POST
    • refresh
      POST
    • create-session
      POST
    • user-info
      GET
  • Mobile SDK
    • Usage guide
    • sign-in
      POST
    • refresh
      POST
    • create-session
      POST
    • user
      GET
  • Backend with information
    • Usage guide
    • sign-in
      POST
    • refresh
      POST
    • Option 1 — compare photo with passport photo
      POST
    • Option 2 — compare two photos with citizen data
      POST
    • Option 3 — compare two photos without citizen data
      POST
    • Get result
      GET
  • Backend without information
    • Usage guide
    • sign-in
      POST
    • refresh
      POST
    • Option 1 — compare photo with passport photo
      POST
    • Option 2 — compare two photos with citizen data
      POST
    • Option 3 — compare two photos without citizen data
      POST
  • Auth and Qr identification
    • Sign with RS-ID (Oauth2 style)
    • Qr Sign/Identification process
    • Get user info by code
      POST
    • sign-in
      POST
    • refresh
      POST
    • Create a QR token
      POST
    • Get QR token status by qr_id
      GET
    • Get QR token status by external_id
      GET
  • Schemas
    • ErrorResponse
    • AuthCodeRequest
    • ClientCredentials
    • Token
    • UserInfo
    • TokenResponseEnvelope
    • DocumentInfo
    • Signer
    • StringResponseEnvelope
    • ContactInfo
    • CallbackEvent
    • UserProfile
    • QrTokenCreateRequest
    • PhotoItem
    • Address
    • UserProfileResponseEnvelope
    • AdditionalParams
    • WebSessionCreateRequest
    • QrToken
    • UserProfileResponse
    • CompareFaceRequest
    • UserResponseEnvelope
    • CompareImagesWithInfoRequest
    • QrTokenResponseEnvelope
    • CompareImagesRequest
    • SignCallback
    • ComparisonResult
    • MobileSessionCreateRequest
    • ComparisonResultEnvelope
  1. Web SDK

create-session

POST
{{base_url}}/v1/sessions
Creates an identification session for one user and returns its session_id.
Call it from the client backend when the user starts identification, then open the RS-ID page: https://sdk.rsid.uz/?session_id={session_id} (stage: https://sdk.stage.rsid.uz/?session_id={session_id}).
Modes
With user_info — you already know the user's data; the RS-ID page only opens the camera.
Without user_info — the RS-ID page asks the user to enter their data, then opens the camera.
Rules
client_type must be WEB.
ip_address is the user's public IP; the session works only from it (-1028).
In user_info send either pinfl or id_number, plus birth_date (dd.MM.yyyy). The user must be 16+.
additional_params accepts only redirect_url, lang, theme, primary_color.
threshold: default 0.5; recommended above 0.5, above 0.7 for strict identification.
The session has a limited lifetime and retry_count attempts.
Authorization: Bearer {access_token}.

Request

Authorization
or
Body Params application/jsonRequired

Examples

Responses

🟢200
application/json
Session created.
Bodyapplication/json

🟠400
🟠401
🔴500
Request Request Example
Shell
JavaScript
Java
Swift
cURL
curl --location --globoff '{{base_url}}/v1/sessions' \
--header 'Content-Type: application/json' \
--data '{
    "client_type": "WEB",
    "ip_address": "84.54.70.12",
    "external_id": "9b1d2c7e-4f3a-4b8e-a1c5-6d2f0e9a7b31",
    "retry_count": 3,
    "threshold": 0.7,
    "locale": "UZ",
    "user_info": {
        "pinfl": "31205901234567",
        "birth_date": "12.05.1990"
    },
    "additional_params": {
        "redirect_url": "https://shop.example.uz/kyc/done?order=ORDER-123",
        "lang": "uz",
        "theme": "light",
        "primary_color": "#1A73E8"
    }
}'
Response Response Example
200 - Success
{
    "data": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
    "code": 0,
    "message": "Success"
}
Modified at 2026-11-10 07:03:10
Previous
refresh
Next
user-info
Built with