Routing Rules

Create a document routing rule

Create an automatic document routing rule for a destination table in the active project.

post/routing-rules

Request

  • Base URL: https://api.pdfparse.net/v1
  • URL: https://api.pdfparse.net/v1/routing-rules
  • Auth: HTTP bearer

Headers

Idempotency-Keystring

Scopes replay protection to the authenticated project, method, and route for 24 hours.

Request body

namestring required
promptstring required
confidenceThresholdinteger
tableIdstring required
enabledboolean

Response

Created

idstring required
namestring required
promptstring required
confidenceThresholdinteger required
enabledboolean required
tableIdstring required
tableNamestring required
tableSlugstring required
createdAtstring nullable required
updatedAtstring nullable required

Example response

{
  "id": "01J9X6VJ7BRQ8M5ACN3T2K4F0P",
  "name": "Invoice routing",
  "prompt": "Invoices containing a vendor, invoice number, and total",
  "confidenceThreshold": 70
}

Changes

No recorded changes to this operation across all 1 revision of this API.