Upload Document
Upload Document to Workspace
Upload Document
POST https://app.sagexglobal.ai/api/document/upload
This is HTTPS Post method to upload the pdf document to be uploaded to your Account Workspace
Authorization
Bearer Token : <API key>
The client must send this API Key in the Authorization header when making requests to protected resources
Request Body
Name
Type
Description
file*
file
/path/file.pdf
realm_guid*
Text
Your account realm id
workspace_guid*
Text
Your account workspace id
document_name*
Text
Name of the document
document_fields
JSON Object
Refer below for details on JSON Object
//Sample Response Body
{
"data": {
"realm_guid": "NN",
"workspace_guid": "xxxxxx-c160-11ed-xxxxx-xxxxxxx",
"document_guid": "xxxx-068f-xxxx-xxxx-xxxxxxx"
},
"message": "success",
"status": "success",
"code": 200
}Take a look at how you might call this method using curl:
Last updated