Skip to main content
POST
/
prompts
/
create
Create AI analysis prompt
curl --request POST \
  --url https://ai.platform.arb.inc/prompts/create \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "documentID": "statementOfClaim",
  "ruleSet": "small-claims-v1",
  "prompt": "Analyze the statement of claim and extract key facts, legal arguments, and relief requested. Identify any procedural issues or missing information.",
  "active": true,
  "triggerOnDocket": true,
  "triggerOnDraft": false,
  "includeEvidence": true,
  "includeFullCase": false
}
'
{
  "ok": true
}

Authorizations

Authorization
string
header
required

access token

Body

application/json
documentID
string
required

Document type identifier

Required string length: 1 - 50
Example:

"statementOfClaim"

ruleSet
string
required

Rule set identifier for case type

Required string length: 1 - 50
Example:

"small-claims-v1"

prompt
string
required

AI prompt text for document analysis

Required string length: 1 - 50000
Example:

"Analyze the statement of claim and extract key facts, legal arguments, and relief requested. Identify any procedural issues or missing information."

active
boolean

Whether this prompt is active

Example:

true

triggerOnDocket
boolean

Trigger analysis when document is docketed

Example:

true

triggerOnDraft
boolean

Trigger analysis when document is drafted

Example:

false

includeEvidence
boolean

Include case evidence in analysis context

Example:

true

includeFullCase
boolean

Include full case docket in analysis context

Example:

false

Response

Prompt created successfully

ok
boolean
Example:

true