POST
/
documents
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>"
}

Authorizations

Authorization
string
header
required

The access token received from the authorization server in the OAuth 2.0 flow.

Headers

Content-Type
string
required

Body

application/json · any

The body is of type any.

Response

200 response

updatedTime
string | null
required
metadata
object | null
required
retentionInDays
integer
required
Required range: x >= 1
updatedBy
string | null
required
Maximum length: 4096
description
string | null
required
Maximum length: 4096
createdBy
string
required
Maximum length: 4096
name
string | null
required
Maximum length: 4096
createdTime
string
required
documentId
string
required
contentMD5
string | null
Maximum length: 4096
agentRunId
string | null
content
string | null
Required string length: 1 - 6250000
groundTruth
object[]
datasetId
string
fileUrl
string | null
contentType
enum<string> | null
Available options:
application/pdf,
image/jpeg,
image/png,
image/tiff,
image/webp,
message/rfc822
annotationFileUrl
string | null