Skip to main content
POST
/
v1
/
documents
/
{document_id}
/
extraction
curl --request POST \
  --url https://api.pardocs.com/v1/documents/{document_id}/extraction \
  --header 'x-api-key: <api-key>'
  --data '{
  "template_ids": [
    "<string>"
  ]
}'
[
  {
    "document_type": "<string>",
    "pages": [
      123
    ],
    "extracted": {}
  }
]
The Split and Extract a Document endpoint allows you to process a document by splitting it according to specified document types and performing extraction on each split section. This is useful for handling complex documents where different parts of the document need to be analyzed or extracted separately based on defined template schemas. Request Body Parameters:
  • template_ids (array of strings): A list of template_ids that dictate how the document should be split and extracted. Each ID corresponds to a specific template schema that defines the rules for processing each section of the document.
curl --request POST \
  --url https://api.pardocs.com/v1/documents/{document_id}/extraction \
  --header 'x-api-key: <api-key>'
  --data '{
  "template_ids": [
    "<string>"
  ]
}'

Authorizations

x-api-key
string
header
required

Path Parameters

document_id
string
required

The ID of document to extract.

Body

application/json
template_ids
string[]

Include all template_id to extract the document.

Response

Successful Response

document_type
string
pages
integer[]
extracted
object