Skip to content

List sources

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

List your sources — where documents arrive from: the built-in REST API, a LangParse-managed inbox, your own S3 bucket, or email. Each source routes arriving files to a model or router.

Your sources (incl. the built-in REST API source).

Media typeapplication/json
object
data
required
Array<object>

A source. 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": "rest-api",
"kind": "rest-api",
"name": "REST API",
"builtin": true,
"enabled": true
}
]

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"
}