Skip to main content

Upload Document

During document upload, document's pages and type is required.

curl -X 'POST' \
'<base_url>/api/v2/document' \
-H 'Authorization: Bearer <profile_token>' \
-H 'Content-Type: multipart/form-data' \
-F 'stream=false' \
-F 'pages=data:content/type;base64,iVBORw0KGgoAAA...' \
-F 'pages=data:content/type;base64,iVBORw0KGgoAAA...' \
-F 'rotated=true' \
-F 'nfc={"mrz": "I<<<<<<<<<", "photo": {"width": 200, "base64": "data:image/jpeg;base64,...", "height": 300}}' \
-F 'attempt=1' \
-F 'device_data={"id":"device_id","os":"ios","brand":"brand_name","carrier":"carrier_name","sdkVersion":"1.0.0"}' \
-F 'location={"speed":"0.0","heading":"0.0","accuracy":"0.0","altitude":"0.0","latitude":"0.0","longitude":"0.0"}' \
-F 'videos=@path/to/video.mp4' \
-F 'upload_source=KYC' \
-F 'videocall=uuid_value' \
-F 'type=ID' \
-F 'check_mrz=true' \
-F 'cropped=true'

Status codes:

201: Success

400: Failure