cURL
curl --request POST \ --url https://app.sandbox.rio.trade/api/users/{id}/documents \ --header 'Content-Type: multipart/form-data' \ --header 'x-api-key: <api-key>' \ --form document='@example-file' \ --form 'documentType=<string>'
"OK"
ID of the user.
"66562bc04fe8bf83c577c178"
Document file (PDF, JPG, PNG, max 10 MB)
Type of document being uploaded
Document uploaded successfully
The response is of type string.
string