POST
/
v1
/
documents
/
{document_id}
/
split
curl --request POST \
  --url https://api.pardocs.com/v1/documents/{document_id}/split \
  --header 'x-api-key: <api-key>'
  --data '{
  "template_ids": [
    "<string>"
  ]
}'
[
  {
    "document_type": "<string>",
    "pages": [
      123
    ]
  }
]
The Split a Document by Document Type endpoint allows you to split an existing document into multiple documents based on the specified document types. This operation is useful for processing documents with different types of content or sections, ensuring that each part is categorized and handled according to its document type. Request Body Parameters:
  • template_ids (array of strings): A list of template_ids that specify how the document should be split. Each ID corresponds to a predefined template schema.
curl --request POST \
  --url https://api.pardocs.com/v1/documents/{document_id}/split \
  --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 split.

Body

application/json

Response

200
application/json

Successful Response

The response is of type object[].