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"
}
}
'import requests
url = "https://api.abigail.app/v1/openclaw/draft-roa"
payload = {
"application_number": "17200011",
"analysis_id": "ana_a1b2c3d4e5f6",
"strategy_selections": {
"claim_1": "amend_narrow",
"claim_2": "argue_distinction"
}
}
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
application_number: '17200011',
analysis_id: 'ana_a1b2c3d4e5f6',
strategy_selections: {claim_1: 'amend_narrow', claim_2: 'argue_distinction'}
})
};
fetch('https://api.abigail.app/v1/openclaw/draft-roa', 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.abigail.app/v1/openclaw/draft-roa",
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([
'application_number' => '17200011',
'analysis_id' => 'ana_a1b2c3d4e5f6',
'strategy_selections' => [
'claim_1' => 'amend_narrow',
'claim_2' => 'argue_distinction'
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-API-Key: <api-key>"
],
]);
$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://api.abigail.app/v1/openclaw/draft-roa"
payload := strings.NewReader("{\n \"application_number\": \"17200011\",\n \"analysis_id\": \"ana_a1b2c3d4e5f6\",\n \"strategy_selections\": {\n \"claim_1\": \"amend_narrow\",\n \"claim_2\": \"argue_distinction\"\n }\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-API-Key", "<api-key>")
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://api.abigail.app/v1/openclaw/draft-roa")
.header("X-API-Key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"application_number\": \"17200011\",\n \"analysis_id\": \"ana_a1b2c3d4e5f6\",\n \"strategy_selections\": {\n \"claim_1\": \"amend_narrow\",\n \"claim_2\": \"argue_distinction\"\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.abigail.app/v1/openclaw/draft-roa")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-API-Key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"application_number\": \"17200011\",\n \"analysis_id\": \"ana_a1b2c3d4e5f6\",\n \"strategy_selections\": {\n \"claim_1\": \"amend_narrow\",\n \"claim_2\": \"argue_distinction\"\n }\n}"
response = http.request(request)
puts response.read_body{
"job_id": "roa_abc123def456",
"status": "queued",
"poll_url": "/v1/openclaw/draft-roa/status/roa_abc123def456"
}{
"error": true,
"error_code": "<string>",
"message": "<string>",
"agent_suggestion": "<string>"
}Paid Endpoints
Draft Response Document
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"
}
}
'import requests
url = "https://api.abigail.app/v1/openclaw/draft-roa"
payload = {
"application_number": "17200011",
"analysis_id": "ana_a1b2c3d4e5f6",
"strategy_selections": {
"claim_1": "amend_narrow",
"claim_2": "argue_distinction"
}
}
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
application_number: '17200011',
analysis_id: 'ana_a1b2c3d4e5f6',
strategy_selections: {claim_1: 'amend_narrow', claim_2: 'argue_distinction'}
})
};
fetch('https://api.abigail.app/v1/openclaw/draft-roa', 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.abigail.app/v1/openclaw/draft-roa",
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([
'application_number' => '17200011',
'analysis_id' => 'ana_a1b2c3d4e5f6',
'strategy_selections' => [
'claim_1' => 'amend_narrow',
'claim_2' => 'argue_distinction'
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-API-Key: <api-key>"
],
]);
$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://api.abigail.app/v1/openclaw/draft-roa"
payload := strings.NewReader("{\n \"application_number\": \"17200011\",\n \"analysis_id\": \"ana_a1b2c3d4e5f6\",\n \"strategy_selections\": {\n \"claim_1\": \"amend_narrow\",\n \"claim_2\": \"argue_distinction\"\n }\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-API-Key", "<api-key>")
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://api.abigail.app/v1/openclaw/draft-roa")
.header("X-API-Key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"application_number\": \"17200011\",\n \"analysis_id\": \"ana_a1b2c3d4e5f6\",\n \"strategy_selections\": {\n \"claim_1\": \"amend_narrow\",\n \"claim_2\": \"argue_distinction\"\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.abigail.app/v1/openclaw/draft-roa")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-API-Key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"application_number\": \"17200011\",\n \"analysis_id\": \"ana_a1b2c3d4e5f6\",\n \"strategy_selections\": {\n \"claim_1\": \"amend_narrow\",\n \"claim_2\": \"argue_distinction\"\n }\n}"
response = http.request(request)
puts response.read_body{
"job_id": "roa_abc123def456",
"status": "queued",
"poll_url": "/v1/openclaw/draft-roa/status/roa_abc123def456"
}{
"error": true,
"error_code": "<string>",
"message": "<string>",
"agent_suggestion": "<string>"
}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.
If
Async workflow
- Submit this endpoint — returns a
job_idimmediately - Poll
/draft-roa/status/{job_id}untilstatusiscomplete - 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"
}
}
| Strategy | Meaning |
|---|---|
amend_narrow | Narrow the claim with additional limitations |
argue_distinction | Argue that the claim is already distinct from prior art |
cancel | Cancel the claim |
argue_unexpected_results | Argue unexpected results (for 103 rejections) |
strategy_selections is empty or omitted, the AI recommendations from the
analysis are used.Authorizations
API key for paid endpoints. Create in your account Settings at https://abigail.app
Headers
Body
application/json
⌘I
