Skip to main content
POST
/
v1
/
openclaw
/
draft-roa
Draft Response Document
curl --request POST \
  --url https://api.abigail.app/v1/openclaw/draft-roa \
  --header 'Content-Type: application/json' \
  --header 'X-API-Key: <api-key>' \
  --data '
{
  "application_number": "17200011",
  "analysis_id": "ana_a1b2c3d4e5f6",
  "strategy_selections": {
    "claim_1": "amend_narrow",
    "claim_2": "argue_distinction"
  }
}
'
{
  "job_id": "roa_abc123def456",
  "status": "queued",
  "poll_url": "/v1/openclaw/draft-roa/status/roa_abc123def456"
}
Submits an asynchronous job to generate a Response to Office Action (ROA) document in DOCX format. The job runs in the background via Celery workers.

Async workflow

  1. Submit this endpoint — returns a job_id immediately
  2. Poll /draft-roa/status/{job_id} until status is complete
  3. Download the DOCX via the signed URL in the status response

Strategy selections

Override the AI-recommended strategy for specific claims:
{
  "strategy_selections": {
    "claim_1": "amend_narrow",
    "claim_2": "argue_distinction",
    "claim_5": "cancel"
  }
}
StrategyMeaning
amend_narrowNarrow the claim with additional limitations
argue_distinctionArgue that the claim is already distinct from prior art
cancelCancel the claim
argue_unexpected_resultsArgue unexpected results (for 103 rejections)
If strategy_selections is empty or omitted, the AI recommendations from the analysis are used.

Authorizations

X-API-Key
string
header
required

API key for paid endpoints. Create in your account Settings at https://abigail.app

Headers

X-API-Key
string
required

Body

application/json
application_number
string
required
analysis_id
string
required

Analysis ID from a prior /analyze call.

strategy_selections
object

Per-claim strategy overrides. Keys: claim numbers, values: strategy codes (amend_narrow, argue_distinction, cancel).

Response

Job submitted

job_id
string
status
enum<string>
Available options:
queued
poll_url
string

URL to poll for job status.