API reference
Job status
Draft
GET https://paperpurr.com/v1/jobs/{id}
Check a rewriting job and get the drafts and usage when it’s done.
Path parameters
idstring · required- The
job_idyou got when submitting
Status values
| status | Meaning |
|---|---|
queued | Queued. May take a few minutes while the inference service cold-starts |
running | Rewriting |
completed | Done. Drafts are in result |
failed | Failed. The reason is in error |
cancelled | Cancelled |
Examples
curl
curl "https://paperpurr.com/v1/jobs/job_7Qm2xK" \
-H "Authorization: Bearer $PAPERPURR_API_KEY"Python
import os
import requests
r = requests.get(
"https://paperpurr.com/v1/jobs/job_7Qm2xK",
headers={"Authorization": f"Bearer {os.environ['PAPERPURR_API_KEY']}"},
)
print(r.json())JS
const r = await fetch("https://paperpurr.com/v1/jobs/job_7Qm2xK", {
headers: {
Authorization: `Bearer ${process.env.PAPERPURR_API_KEY}`,
},
});
console.log(await r.json());Response
{
"job_id": "job_7Qm2xK",
"status": "completed",
"result": {
"drafts": [
"Thoreau went to the woods because he wanted to live with intention.",
"Thoreau withdrew to the woods out of a wish to live deliberately."
]
},
"usage": {
"input_words": 11,
"charged_words": 11,
"remaining_words": 18188
},
"expires_at": "2026-12-02T10:00:00Z",
"request_id": "req_3b7e05c2f8a14d96b0e3c5a7"
}job_idstring · required- Job ID
statusstring · required- See above
result.draftsstring[]- Drafts. As many as
variants usageobject- Present when completed
input_wordsinteger · required- Input words
charged_wordsinteger · required- Words charged
remaining_wordsinteger · required- Words left after this job
expires_atstring- When the result expires (ISO 8601). After that, this returns
404 errorobject- Only on
failed. Format as in Errors
Polling
- Poll every 3–5 seconds. If the response has
Retry-After, wait that long. completed,failedandcancelledare final. Stop polling when you see one.- Set
webhook_urlwhen submitting if you’d rather not poll.
Possible errors
| Status | code | Cause | What to do |
|---|---|---|---|
404 | not_found | The endpoint or resource doesn’t exist. | Check the path and the /v1 prefix. The MCP address is /mcp. |
429 | rate_limit_exceeded | A rate limit was hit (per IP, per key or per account). message says which. | Wait the number of seconds in Retry-After, then retry. Queue requests if several processes share one key. |
503 | coming_soon | The API isn’t open yet. Every /v1 and /mcp call returns this for now. | Join the waitlist. We’ll announce the launch on Discord. |
503 | maintenance | Under maintenance. | Retry later. |
503 | busy | The service is busy. Billable calls also return this when usage can’t be recorded, and nothing is charged. | Retry with backoff. |
503 | not_configured | The service is temporarily unavailable. | Retry later. |
Metering
- Free, but counts toward your rate limit.