Manage documents by APIs
Last updated
Was this helpful?
Last updated
Was this helpful?
nCore platform’s document management feature enables you to upload and manage user identification documents (passport, visa, national ID etc.) for identity verification.
You can create and manage user’s supporting identification documents by using our following APIs available as nCore platform.
Create a user identification
Get a user identification
Get a specific user identification
Update a user identification
Upload a user identification
Upload a single image of a user identification
Return a file metadata
Return a file
Download a file
Delete a file
You can create a user identification by sending a POST request to /users/{user_id}/identifications endpoint as shown below.
You can retrieve a list of user identifications by sending a GET request to /users/{user_id}/identifications endpoint as shown below.
You can retrieve a specific user identification info by sending a GET request to /users/{user_id}/identifications/{identification_id} endpoint as shown below.
You can update any user identification by sending a PUT request /users/{user_id}/identifications/{identification_id} endpoint as shown below.
You can upload more than one identification files by sending a PUT request to /users/{user_id}/identifications/{identification_id} endpoint as shown below.
Please note:
Using this API, you can upload maximum 5 files at a time.
The maximum size of the file is 128 Mb.
Allowed extensions are .pdf, .jpg, .jpeg, .png, .bmp, .doc, and .docx.
A single user identification can have maximum 10 files.
You can upload a single user identification file by sending a PUT request to /users/{user_id}/identifications/{identification_id}/files endpoint as shown below.
Please note:
Using this API, you can upload a single file at a time.
The maximum size of the file is 128 Mb.
Allowed extensions are .pdf, .jpg, .jpeg, .png, .bmp, .doc, and .docx.
A single user identification can have maximum 10 files.
You can retrieve a specific file metadata info by sending a GET request to /users/{user_id}/identifications/{identification_id}/files/{file_id} endpoint as shown below.
You can browse a specific user identification file by sending a GET request to /users/{user_id}/identifications/{identification_id}/files/{file_id}:browse endpoint as shown below.
You can download a specific file by sending a GET request to /users/{user_id}/identifications/{identification_id}/files/{file_id}:download endpoint as shown below.
You can delete a specific user identification file by sending a DELETE request to /users/{user_id}/identifications/{identification_id}/files/{file_id} endpoint as shown below.