Skip to content

List routers

GET
/api/routers
curl --request GET \
--url https://api.langparse.dev/api/routers \
--header 'X-Api-Key: <X-Api-Key>'

List your routers. A router classifies an incoming document to one of its candidate models before parsing (and can split a multi-doc file into per-document parts), so a single source can handle mixed document types.

Your routers.

Media typeapplication/json
object
data
required
Array<object>

A router. Own key id.

object
key
additional properties
any
meta
required
object
pagination

List pagination. Bounded collections return real totals; large (cursor-backed) collections may leave totals null and set cursor.

object
page
integer
pageSize
integer
totalItems
integer
nullable
totalPages
integer
nullable
hasNext
boolean
hasPrevious
boolean
cursor
string
nullable
Example
[
{
"id": "rtr_ap01",
"name": "Accounts Payable",
"enabled": true,
"candidates": [
{
"modelId": "mdl_inv01",
"name": "Invoice",
"keywords": [
"invoice",
"tax"
]
}
]
}
]

Missing or invalid API key.

Media typeapplication/json

Error response. statusCode mirrors the HTTP status; statusMessage is human-readable.

object
statusCode
integer
statusMessage
string
Example
{
"statusCode": 404,
"statusMessage": "Document not found"
}