Upload File
POST/api/file-uploads
Upload a file. Note that the file must always be the last parameter in the request body.
Example request using curl:
curl 'https://test.immersve.com/api/file-uploads' \
-H 'Content-Type: multipart/form-data' \
-H 'Authorization: Bearer <TOKEN>' \
-F 'purpose="kyc-doc-upload"' \
-F 'accountId="accountId"' \
-F 'file=@"/path/to/file"'
Request
Responses
- 200
- 403
File successfully uploaded.
Subject is not allowed to perform the action with the reason stated in the errorCode
FILE_TOO_LARGE The uploaded file exceeds the maximum size of 10mb.
FILE_TYPE_INVALID The uploaded file does not match the acceptable MIME types.