Legacy document upload endpoint - redirects to attachments/upload
cURL
curl --request POST \ --url https://api.superdocs.app/v1/documents/upload \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: multipart/form-data' \ --form 'session_id=<string>' \ --form file='@example-file'
{ "detail": [ { "loc": [ "<string>" ], "msg": "<string>", "type": "<string>" } ] }
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
Successful Response