Example Usage
import { ListBatchesRequest } from "@openrouter/sdk/models/operations";
let value: ListBatchesRequest = {};
Fields
| Field | Type | Required | Description | Example |
|---|---|---|---|---|
httpReferer | string | :heavy_minus_sign: | The app identifier should be your app’s URL and is used as the primary identifier for rankings. This is used to track API usage per application. | |
appTitle | string | :heavy_minus_sign: | The app display name allows you to customize how your app appears in OpenRouter’s dashboard. | |
appCategories | string | :heavy_minus_sign: | Comma-separated list of app categories (e.g. “cli-agent,cloud-agent”). Used for marketplace rankings. | |
limit | number | :heavy_minus_sign: | Maximum number of batches to return, from 1 through 100. | 20 |
after | string | :heavy_minus_sign: | Batch id from the previous page’s last_id. | batch_7a4b02 |
status | models.BatchListStatus[] | :heavy_minus_sign: | Repeat this parameter to include more than one status. | [ “completed”, “failed” ] |
createdAfter | models.BatchListTimestamp | :heavy_minus_sign: | Only include batches created strictly after this timestamp. | 2026-08-20T00:00:00Z |
createdBefore | models.BatchListTimestamp | :heavy_minus_sign: | Only include batches created strictly before this timestamp. | 2026-08-20T00:00:00Z |