oslew docs
Console
Menu

BatchaddressoperationId list_batches

GET/v1/batch

The key's tenant's batch jobs, newest first.

From an index of markers whose names carry the creation time, so a listing costs one lookup plus one read per job returned. A cancelled job is still listed; its payloads are gone.

Send Authorization: Bearer sk_live_…. The key's plan must include theaddress product; which plans do.

Explained in Batch jobs.

Example

The tenant's jobs, newest first.

curl
curl "https://api.oslew.com/v1/batch" \
  -H "Authorization: Bearer $GEO_API_KEY"
Python
from oslew import Client

# The key is read from GEO_API_KEY.
client = Client(base_url="https://api.oslew.com")

answer = client.list_batches()
TypeScript
import { Client } from "@oslew/client";

// The key is read from GEO_API_KEY.
const client = new Client({ baseUrl: "https://api.oslew.com" });

const answer = await client.list_batches();
Response
HTTP/1.1 200 OK
content-type: application/json
ratelimit-limit: 20
ratelimit-remaining: 98
ratelimit-reset: 1

{
  "jobs": [
    {
      "created_at": 1795427413,
      "done": 0,
      "found": 0,
      "id": "OnClPC2UT5EwVGsAwNp06sMK",
      "rows": 3,
      "state": "cancelled",
      "updated_at": 1795427413
    },
    {
      "created_at": 1795427402,
      "done": 5,
      "found": 5,
      "id": "KNBDU4TD1RrnARXRKn0jodCf",
      "rows": 5,
      "state": "done",
      "updated_at": 1795427406
    }
  ]
}

A real response, captured from the service at commit b8f4bde-dirty. Timing fields such as took_us differ on every call.

Query

NameTypeDescription
limit
query
integer
≥ 1, ≤ 200
default 50

Responses

200 — Newest first.

  • jobsobject[]required
    • created_atintegerrequired
    • doneintegerrequired
    • foundintegerrequired
    • idstringrequired
    • rowsintegerrequired
    • statestringrequired
      queued | running | done | failed | cancelled
    • updated_atintegerrequired

With RateLimit-Limit, RateLimit-Remaining and RateLimit-Reset(and their X-RateLimit-* aliases); see rate limits.

Refusals

Every refusal is a JSON object with an error string, except where noted.

401No key, or one that is unknown, revoked or suspended.
403The key's plan does not include this route's product, or the request is larger than the plan allows. The body names the plan that does.
429This product's bucket is empty: the key is going faster than its plan's sustained rate. Wait Retry-After seconds; nothing is used up. Carries Retry-After.
503The pod cannot reach the control plane and its entitlements are too old to trust. Retry.

A malformed query string or JSON body is refused by the framework before this route runs, in plain text rather than JSON; see errors.

Rendered from the OpenAPI document at commit b8f4bde-dirty; the same document is served at/v1/openapi.json and generates both clients.