Skip to main content
POST
/
filings
/
generate
Generate a document from evidence using AI
curl --request POST \
  --url https://cases.platform.arb.inc/filings/generate \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "caseId": "2025-11-00123",
  "documentType": "statementOfClaim",
  "context": "The dispute is about unpaid invoices for construction work completed in January 2025.",
  "referenceDocumentTypes": [
    "statementOfClaim"
  ]
}
'
{
  "caseId": "2025-11-00123",
  "filingId": "42",
  "documentType": "statementOfClaim",
  "fields": {}
}

Authorizations

Authorization
string
header
required

access token

Body

application/json
caseId
string
required

Case identifier (1–36 characters).

Example:

"2025-11-00123"

documentType
string
required

The document type to generate (1–100 characters). Must be a valid document type with AI generation support.

Example:

"statementOfClaim"

context
string

Optional additional context to guide AI generation (max 10000 characters).

Example:

"The dispute is about unpaid invoices for construction work completed in January 2025."

referenceDocumentTypes
string[]

Document types to include as reference context (e.g., statementOfClaim for generating statementOfResponse).

Example:
["statementOfClaim"]

Response

Document successfully generated and draft filing created.

caseId
string

The case identifier.

Example:

"2025-11-00123"

filingId
string

The draft filing identifier.

Example:

"42"

documentType
string

The document type that was generated.

Example:

"statementOfClaim"

fields
object

Generated field values keyed by field ID.