# Job status

> Draft

`GET https://paperpurr.com/v1/jobs/{id}`

Check a rewriting job and get the drafts and usage when it’s done.

> **Note:** Opens together with rewriting and returns `503 coming_soon` until then.

## Path parameters

- `id` (string, required) — The `job_id` you 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:

```bash
curl "https://paperpurr.com/v1/jobs/job_7Qm2xK" \
  -H "Authorization: Bearer $PAPERPURR_API_KEY"
```

Python:

```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:

```javascript
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

```json
{
  "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_id` (string, required) — Job ID
- `status` (string, required) — See above
- `result.drafts` (string[]) — Drafts. As many as `variants`
- `usage` (object) — Present when completed
  - `input_words` (integer, required) — Input words
  - `charged_words` (integer, required) — Words charged
  - `remaining_words` (integer, required) — Words left after this job
- `expires_at` (string) — When the result expires (ISO 8601). After that, this returns `404`
- `error` (object) — Only on `failed`. Format as in [Errors](https://paperpurr.com/en/docs/errors)

## Polling

- Poll every 3–5 seconds. If the response has `Retry-After`, wait that long.
- `completed`, `failed` and `cancelled` are final. Stop polling when you see one.
- Set `webhook_url` when 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](https://paperpurr.com/#api). 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.

Next: [MCP](https://paperpurr.com/en/docs/mcp.md)
