curl --request GET \
--url http://localhost:8000/v1/documents/{document_id}/data \
--header 'Authorization: Bearer <token>'import requests
url = "http://localhost:8000/v1/documents/{document_id}/data"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('http://localhost:8000/v1/documents/{document_id}/data', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_PORT => "8000",
CURLOPT_URL => "http://localhost:8000/v1/documents/{document_id}/data",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "http://localhost:8000/v1/documents/{document_id}/data"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("http://localhost:8000/v1/documents/{document_id}/data")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("http://localhost:8000/v1/documents/{document_id}/data")
http = Net::HTTP.new(url.host, url.port)
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"data": {
"bank_name": "Silicon Valley Bank",
"call_amount_lp": {
"currency": "USD",
"raw_text": "$4,500,000.00",
"value": 4500000
},
"due_date": "2025-01-15",
"fund_name": "ABC Partners Fund IV, L.P."
},
"document_id": "550e8400-e29b-41d4-a716-446655440000",
"document_type": "capital_call",
"view": "accounting"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Get extracted document data
Get extracted data from a document, filtered by view.
Returns the extracted field values from the latest successful extraction job.
Use the view parameter to specify which fields to include. If no view is
specified, the default view for the document type is used, or all fields
are returned if no default exists.
The document must have a completed extraction (status=‘completed’).
Args: document_id: Document ID view: View name to apply for field filtering include_metadata: If true, includes per-field metadata (confidence, page, etc.)
Returns: DocumentDataResponse with extracted field values.
Raises: HTTPException 404: Document not found HTTPException 400: Document not ready (extraction not completed) HTTPException 404: View not found
curl --request GET \
--url http://localhost:8000/v1/documents/{document_id}/data \
--header 'Authorization: Bearer <token>'import requests
url = "http://localhost:8000/v1/documents/{document_id}/data"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('http://localhost:8000/v1/documents/{document_id}/data', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_PORT => "8000",
CURLOPT_URL => "http://localhost:8000/v1/documents/{document_id}/data",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "http://localhost:8000/v1/documents/{document_id}/data"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("http://localhost:8000/v1/documents/{document_id}/data")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("http://localhost:8000/v1/documents/{document_id}/data")
http = Net::HTTP.new(url.host, url.port)
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"data": {
"bank_name": "Silicon Valley Bank",
"call_amount_lp": {
"currency": "USD",
"raw_text": "$4,500,000.00",
"value": 4500000
},
"due_date": "2025-01-15",
"fund_name": "ABC Partners Fund IV, L.P."
},
"document_id": "550e8400-e29b-41d4-a716-446655440000",
"document_type": "capital_call",
"view": "accounting"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Query Parameters
Response
Extracted data filtered by view
Response for extracted document data (GET /v1/documents/{id}/data).
Returns extracted data filtered by the specified view.