Get Result
curl --request GET \
--url https://api.raydocs.com/extractions/results/{resultId} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.raydocs.com/extractions/results/{resultId}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.raydocs.com/extractions/results/{resultId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.raydocs.com/extractions/results/{resultId}",
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 := "https://api.raydocs.com/extractions/results/{resultId}"
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("https://api.raydocs.com/extractions/results/{resultId}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.raydocs.com/extractions/results/{resultId}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"extraction_session_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"config_hash": "<string>",
"document_refs": [
{
"kind": "documentRef",
"documentId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"workspaceId": 123,
"filename": "<string>",
"mime": "<string>",
"size": 123,
"sha256": "<string>",
"source": {
"url": "<string>"
},
"createdAt": "2023-11-07T05:31:56Z"
}
],
"data": {},
"audit_data": {},
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}Results
Get Result
Get one extraction run result with data, audit information, and input document refs.
GET
/
extractions
/
results
/
{resultId}
Get Result
curl --request GET \
--url https://api.raydocs.com/extractions/results/{resultId} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.raydocs.com/extractions/results/{resultId}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.raydocs.com/extractions/results/{resultId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.raydocs.com/extractions/results/{resultId}",
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 := "https://api.raydocs.com/extractions/results/{resultId}"
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("https://api.raydocs.com/extractions/results/{resultId}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.raydocs.com/extractions/results/{resultId}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"extraction_session_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"config_hash": "<string>",
"document_refs": [
{
"kind": "documentRef",
"documentId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"workspaceId": 123,
"filename": "<string>",
"mime": "<string>",
"size": 123,
"sha256": "<string>",
"source": {
"url": "<string>"
},
"createdAt": "2023-11-07T05:31:56Z"
}
],
"data": {},
"audit_data": {},
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}Authentication & Scope
Requires thesessions-read ability.
Request
GET /extractions/results/990e8400-e29b-41d4-a716-446655440000 HTTP/1.1
Host: api.raydocs.com
Authorization: Bearer <token>
Path Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
resultId | uuid | Yes | The result ID |
Response
200 OK – Result with extracted data and audit trail.
{
"id": "990e8400-e29b-41d4-a716-446655440000",
"extraction_session_id": "770e8400-e29b-41d4-a716-446655440000",
"status": "completed",
"config_hash": "cfg_9eeae65063f17f55",
"document_refs": [
{
"kind": "documentRef",
"documentId": "880e8400-e29b-41d4-a716-446655440000",
"workspaceId": "660e8400-e29b-41d4-a716-446655440000",
"filename": "invoice.pdf",
"sha256": "6de7f6f5894c9f3fd1f6f8a4d1b3115d0d9b4b19d7a8a661f9fe90f9c2d80c3b"
}
],
"title": "Invoice #INV-2024-001",
"data": {
"invoice_details": {
"invoice_number": "INV-2024-001",
"date": "2024-01-15",
"total_amount": 8800
}
},
"audit_data": {
"invoice_details": {
"invoice_number": {
"reasoning": "Found invoice number in header section, formatted as 'Invoice Number: INV-2024-001'",
"sources": [
{
"chunk_id": "aa0e8400-e29b-41d4-a716-446655440000",
"text": "Invoice Number: INV-2024-001",
"page": 1
}
]
},
"total_amount": {
"reasoning": "Calculated from subtotal $8,000 plus 10% tax ($800) = $8,800",
"sources": [
{
"chunk_id": "aa0e8400-e29b-41d4-a716-446655440001",
"text": "Total: $8,800",
"page": 2
}
]
}
}
},
"created_at": "2024-01-15T10:30:00Z",
"completed_at": "2024-01-15T10:32:00Z"
}
Response Structure
| Property | Description |
|---|---|
document_refs | Document snapshot used as run inputs |
config_hash | Parsing/extraction config fingerprint used for cacheability and re-runs |
data | Clean extracted values organized by group |
audit_data | Reasoning and source references for each field |
The
audit_data is only populated when reasoning_enabled: true in the template config.404 Not Found – Result does not exist or you don’t have access.Authorizations
Path Parameters
Response
Successful
Available options:
created, parsing_pending, processing, completed, failed Show child attributes
Show child attributes
Extracted data matching the template schema
Verification/reasoning traces and run audit payload
⌘I
