Skip to content

Fetch a parse result

GET
/api/v1/documents/{documentId}
curl --request GET \
--url 'https://api.langparse.dev/api/v1/documents/example?expand=model&fields%5Bmodel%5D=id%2Cname%2Cversion' \
--header 'X-Api-Key: <X-Api-Key>'
documentId
required
string
expand
string

Expand relations. model replaces the top-level model id string with {id,name}; documents.model expands split sub-documents. Shallow (one hop).

Example
model
fields[model]
string

Fields to return for an expanded model (allowed: id, name, version, geometry). Default: id,name.

Example
id,name,version

Document status and (when processed) structured result

Media typeapplication/json
object
id
string
model

Model id string, or { id, name } when ?expand=model.

string
nullable
status
string
Allowed values: queued processing processed failed
debugId
string
pageCount
integer
data
object
key
additional properties
any
fields
Array<object>
nullable
object
name
string
value
confidence
string
Allowed values: high medium low flagged
boxes
Array<object>
object
left
number
top
number
width
number
height
number
page
integer
Example
{
"status": "queued",
"fields": [
{
"confidence": "high"
}
]
}

Missing or invalid API key

Document not found