cURL
curl --request POST \ --url https://api.lucidtech.ai/{basePath}/documents \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: <content-type>' \ --data '"<any>"'
{ "updatedTime": "<string>", "contentMD5": "<string>", "metadata": {}, "retentionInDays": 2, "updatedBy": "<string>", "description": "<string>", "agentRunId": "<string>", "content": "<string>", "groundTruth": [ { "pages": [ 123 ], "confidence": 0.5, "label": "<string>", "value": "<string>" } ], "consentId": "<string>", "createdBy": "<string>", "name": "<string>", "createdTime": "<string>", "datasetId": "<string>", "documentId": "<string>", "fileUrl": "<string>", "contentType": "application/pdf", "annotationFileUrl": "<string>" }
Create a new document.
The access token received from the authorization server in the OAuth 2.0 flow.
The body is of type any.
any
200 response
The response is of type object.
object