Skip to main content
GET
/
v1
/
openclaw
/
draft-roa
/
status
/
{job_id}
Poll Draft Status
curl --request GET \
  --url https://api.abigail.app/v1/openclaw/draft-roa/status/{job_id} \
  --header 'X-API-Key: <api-key>'
{
  "job_id": "roa_abc123def456",
  "status": "in_progress",
  "progress": 45,
  "current_step": "Drafting claim amendments"
}
Poll this endpoint to check the progress of an ROA drafting job.

Status values

StatusMeaningdownload_url present?
queuedJob is waiting for a workerNo
in_progressJob is actively generating the documentNo
completeDocument is ready for downloadYes
failedJob failed (see error_message)No

Polling strategy

Poll every 5 seconds. Typical drafting jobs complete in 30-120 seconds.
import time
import httpx

def wait_for_draft(base_url, job_id, api_key, timeout=300):
    headers = {"X-API-Key": api_key}
    start = time.time()
    while time.time() - start < timeout:
        resp = httpx.get(
            f"{base_url}/v1/openclaw/draft-roa/status/{job_id}",
            headers=headers,
        )
        data = resp.json()
        if data["status"] == "complete":
            return data["download_url"]
        if data["status"] == "failed":
            raise Exception(f"Draft failed: {data.get('error_message')}")
        time.sleep(5)
    raise TimeoutError("Draft did not complete within timeout")

Download URL

The download_url is a signed URL that includes a JWT token. It expires after 1 hour. If it expires, re-poll this endpoint to get a fresh URL.
Polling this endpoint is free and not billed.

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

Path Parameters

job_id
string
required

Response

200 - application/json

Job status

job_id
string
status
enum<string>
Available options:
queued,
in_progress,
complete,
failed
progress
integer
Required range: 0 <= x <= 100
current_step
string | null
download_url
string | null

Signed download URL. Only present when status is complete. Valid for 1 hour.