Skip to main content
POST
/
sessions
/
{id}
/
documents
curl -X POST \
  "https://verilock.io/api/v1/sessions/ses_a1b2c3d4-e5f6-7890-abcd-ef1234567890/documents" \
  -H "X-API-Key: your_api_key_here" \
  -H "Accept: application/json" \
  -F "front=@/path/to/passport_front.jpg" \
  -F "back=@/path/to/passport_back.jpg" \
  -F "type=passport"
{
  "id": "doc_c3d4e5f6-a7b8-9012-cdef-345678901234",
  "session_id": "ses_a1b2c3d4-e5f6-7890-abcd-ef1234567890",
  "type": "passport",
  "status": "uploaded",
  "files": {
    "front": "passport_front.jpg",
    "back": "passport_back.jpg"
  },
  "created_at": "2026-03-15T10:35:12Z"
}
Multipart form data — This endpoint accepts multipart/form-data, not JSON. Send files using form fields.

Path Parameters

id
string
required
The session ID

Form Parameters

front
file
required
Front side of the identity document (JPEG, PNG, PDF; max 10 MB)
back
file
Back side of the identity document (required for ID cards and driving licenses)
type
string
required
Document type: passport, id_card, driving_license, residence_permit
curl -X POST \
  "https://verilock.io/api/v1/sessions/ses_a1b2c3d4-e5f6-7890-abcd-ef1234567890/documents" \
  -H "X-API-Key: your_api_key_here" \
  -H "Accept: application/json" \
  -F "front=@/path/to/passport_front.jpg" \
  -F "back=@/path/to/passport_back.jpg" \
  -F "type=passport"
{
  "id": "doc_c3d4e5f6-a7b8-9012-cdef-345678901234",
  "session_id": "ses_a1b2c3d4-e5f6-7890-abcd-ef1234567890",
  "type": "passport",
  "status": "uploaded",
  "files": {
    "front": "passport_front.jpg",
    "back": "passport_back.jpg"
  },
  "created_at": "2026-03-15T10:35:12Z"
}