Generate document field values from evidence
curl --request POST \
--url https://ai.platform.arb.inc/generate-document \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"documents": [
{
"gsUrl": "gs://platform-evidence/2025/invoice-2025-001.pdf",
"contentType": "application/pdf",
"description": "Invoice showing unpaid parking fees"
}
],
"documentType": "statementOfClaim",
"context": "Focus on extracting party information and claim amounts",
"referenceDocuments": [
{
"documentType": "statementOfClaim",
"gsUrl": "gs://platform-cases/2025/case-123/statement-of-claim.pdf"
}
]
}
'import requests
url = "https://ai.platform.arb.inc/generate-document"
payload = {
"documents": [
{
"gsUrl": "gs://platform-evidence/2025/invoice-2025-001.pdf",
"contentType": "application/pdf",
"description": "Invoice showing unpaid parking fees"
}
],
"documentType": "statementOfClaim",
"context": "Focus on extracting party information and claim amounts",
"referenceDocuments": [
{
"documentType": "statementOfClaim",
"gsUrl": "gs://platform-cases/2025/case-123/statement-of-claim.pdf"
}
]
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
documents: [
{
gsUrl: 'gs://platform-evidence/2025/invoice-2025-001.pdf',
contentType: 'application/pdf',
description: 'Invoice showing unpaid parking fees'
}
],
documentType: 'statementOfClaim',
context: 'Focus on extracting party information and claim amounts',
referenceDocuments: [
{
documentType: 'statementOfClaim',
gsUrl: 'gs://platform-cases/2025/case-123/statement-of-claim.pdf'
}
]
})
};
fetch('https://ai.platform.arb.inc/generate-document', 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://ai.platform.arb.inc/generate-document",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'documents' => [
[
'gsUrl' => 'gs://platform-evidence/2025/invoice-2025-001.pdf',
'contentType' => 'application/pdf',
'description' => 'Invoice showing unpaid parking fees'
]
],
'documentType' => 'statementOfClaim',
'context' => 'Focus on extracting party information and claim amounts',
'referenceDocuments' => [
[
'documentType' => 'statementOfClaim',
'gsUrl' => 'gs://platform-cases/2025/case-123/statement-of-claim.pdf'
]
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://ai.platform.arb.inc/generate-document"
payload := strings.NewReader("{\n \"documents\": [\n {\n \"gsUrl\": \"gs://platform-evidence/2025/invoice-2025-001.pdf\",\n \"contentType\": \"application/pdf\",\n \"description\": \"Invoice showing unpaid parking fees\"\n }\n ],\n \"documentType\": \"statementOfClaim\",\n \"context\": \"Focus on extracting party information and claim amounts\",\n \"referenceDocuments\": [\n {\n \"documentType\": \"statementOfClaim\",\n \"gsUrl\": \"gs://platform-cases/2025/case-123/statement-of-claim.pdf\"\n }\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://ai.platform.arb.inc/generate-document")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"documents\": [\n {\n \"gsUrl\": \"gs://platform-evidence/2025/invoice-2025-001.pdf\",\n \"contentType\": \"application/pdf\",\n \"description\": \"Invoice showing unpaid parking fees\"\n }\n ],\n \"documentType\": \"statementOfClaim\",\n \"context\": \"Focus on extracting party information and claim amounts\",\n \"referenceDocuments\": [\n {\n \"documentType\": \"statementOfClaim\",\n \"gsUrl\": \"gs://platform-cases/2025/case-123/statement-of-claim.pdf\"\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://ai.platform.arb.inc/generate-document")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"documents\": [\n {\n \"gsUrl\": \"gs://platform-evidence/2025/invoice-2025-001.pdf\",\n \"contentType\": \"application/pdf\",\n \"description\": \"Invoice showing unpaid parking fees\"\n }\n ],\n \"documentType\": \"statementOfClaim\",\n \"context\": \"Focus on extracting party information and claim amounts\",\n \"referenceDocuments\": [\n {\n \"documentType\": \"statementOfClaim\",\n \"gsUrl\": \"gs://platform-cases/2025/case-123/statement-of-claim.pdf\"\n }\n ]\n}"
response = http.request(request)
puts response.read_body{
"documentType": "statementOfClaim",
"fields": {
"claimantName": "Vanguard Parking Solutions",
"claimantAddress": "3389 SHERIDAN ST BOX",
"claimantCity": "HOLLYWOOD",
"claimantState": "FL",
"claimantZipcode": "33021"
}
}generate-document
Generate document field values from evidence
Extracts and generates document field values from provided evidence files using AI and document type schemas. Supports optional reference documents for context and can populate complex document structures based on evidence analysis.
POST
/
generate-document
Generate document field values from evidence
curl --request POST \
--url https://ai.platform.arb.inc/generate-document \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"documents": [
{
"gsUrl": "gs://platform-evidence/2025/invoice-2025-001.pdf",
"contentType": "application/pdf",
"description": "Invoice showing unpaid parking fees"
}
],
"documentType": "statementOfClaim",
"context": "Focus on extracting party information and claim amounts",
"referenceDocuments": [
{
"documentType": "statementOfClaim",
"gsUrl": "gs://platform-cases/2025/case-123/statement-of-claim.pdf"
}
]
}
'import requests
url = "https://ai.platform.arb.inc/generate-document"
payload = {
"documents": [
{
"gsUrl": "gs://platform-evidence/2025/invoice-2025-001.pdf",
"contentType": "application/pdf",
"description": "Invoice showing unpaid parking fees"
}
],
"documentType": "statementOfClaim",
"context": "Focus on extracting party information and claim amounts",
"referenceDocuments": [
{
"documentType": "statementOfClaim",
"gsUrl": "gs://platform-cases/2025/case-123/statement-of-claim.pdf"
}
]
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
documents: [
{
gsUrl: 'gs://platform-evidence/2025/invoice-2025-001.pdf',
contentType: 'application/pdf',
description: 'Invoice showing unpaid parking fees'
}
],
documentType: 'statementOfClaim',
context: 'Focus on extracting party information and claim amounts',
referenceDocuments: [
{
documentType: 'statementOfClaim',
gsUrl: 'gs://platform-cases/2025/case-123/statement-of-claim.pdf'
}
]
})
};
fetch('https://ai.platform.arb.inc/generate-document', 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://ai.platform.arb.inc/generate-document",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'documents' => [
[
'gsUrl' => 'gs://platform-evidence/2025/invoice-2025-001.pdf',
'contentType' => 'application/pdf',
'description' => 'Invoice showing unpaid parking fees'
]
],
'documentType' => 'statementOfClaim',
'context' => 'Focus on extracting party information and claim amounts',
'referenceDocuments' => [
[
'documentType' => 'statementOfClaim',
'gsUrl' => 'gs://platform-cases/2025/case-123/statement-of-claim.pdf'
]
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://ai.platform.arb.inc/generate-document"
payload := strings.NewReader("{\n \"documents\": [\n {\n \"gsUrl\": \"gs://platform-evidence/2025/invoice-2025-001.pdf\",\n \"contentType\": \"application/pdf\",\n \"description\": \"Invoice showing unpaid parking fees\"\n }\n ],\n \"documentType\": \"statementOfClaim\",\n \"context\": \"Focus on extracting party information and claim amounts\",\n \"referenceDocuments\": [\n {\n \"documentType\": \"statementOfClaim\",\n \"gsUrl\": \"gs://platform-cases/2025/case-123/statement-of-claim.pdf\"\n }\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://ai.platform.arb.inc/generate-document")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"documents\": [\n {\n \"gsUrl\": \"gs://platform-evidence/2025/invoice-2025-001.pdf\",\n \"contentType\": \"application/pdf\",\n \"description\": \"Invoice showing unpaid parking fees\"\n }\n ],\n \"documentType\": \"statementOfClaim\",\n \"context\": \"Focus on extracting party information and claim amounts\",\n \"referenceDocuments\": [\n {\n \"documentType\": \"statementOfClaim\",\n \"gsUrl\": \"gs://platform-cases/2025/case-123/statement-of-claim.pdf\"\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://ai.platform.arb.inc/generate-document")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"documents\": [\n {\n \"gsUrl\": \"gs://platform-evidence/2025/invoice-2025-001.pdf\",\n \"contentType\": \"application/pdf\",\n \"description\": \"Invoice showing unpaid parking fees\"\n }\n ],\n \"documentType\": \"statementOfClaim\",\n \"context\": \"Focus on extracting party information and claim amounts\",\n \"referenceDocuments\": [\n {\n \"documentType\": \"statementOfClaim\",\n \"gsUrl\": \"gs://platform-cases/2025/case-123/statement-of-claim.pdf\"\n }\n ]\n}"
response = http.request(request)
puts response.read_body{
"documentType": "statementOfClaim",
"fields": {
"claimantName": "Vanguard Parking Solutions",
"claimantAddress": "3389 SHERIDAN ST BOX",
"claimantCity": "HOLLYWOOD",
"claimantState": "FL",
"claimantZipcode": "33021"
}
}Authorizations
access token
Body
application/json
Evidence or source documents to analyze
Minimum array length:
1Show child attributes
Show child attributes
Document type identifier matching platform document schema
Required string length:
1 - 100Example:
"statementOfClaim"
Optional user-provided context to guide document generation
Maximum string length:
10000Example:
"Focus on extracting party information and claim amounts"
Previously filed documents to reference for context
Maximum array length:
5Show child attributes
Show child attributes
Response
200 - application/json
Generated document fields
⌘I