POST
/
documents
/
v2
/
datasets
/
{dataset_id}
/
parse
cURL
curl --request POST \
  --url https://api.tensorlake.ai/documents/v2/datasets/{dataset_id}/parse \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "file_id": "<string>",
  "file_url": "https://pub-226479de18b2493f96b64c6674705dd8.r2.dev/real-estate-purchase-all-signed.pdf",
  "raw_text": "<string>",
  "page_range": "1",
  "mime_type": null
}'
{
  "parse_id": "parse_id-12345",
  "created_at": "2023-10-01T12:00:00Z"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

dataset_id
string
required

The ID of the dataset to parse

Body

application/json

Response

200
application/json

Dataset file parsed successfully

The response is of type object.