Batches
List batches
GET
Retrieve batches for an organization with pagination and optional search by name.
Returns a paginated list of batch jobs with their metadata including batch ID, creation timestamp, and job counts. If 'query' is provided, only batches whose name matches (case-insensitive, substring) will be returned.
HTTPBearerheader
AuthorizationBearer <token>limit?LimitNumber of batches to return per page
Range
1 <= value <= 500Default
10offset?OffsetNumber of batches to skip
Range
0 <= valueDefault
0query?|Optional search string to filter batches by name (case-insensitive)
apiKey?string|nullList of all batches for the organization with pagination
application/json- response
batches*array<>total*Totallimit*Limitoffset*OffsetExample Request
curl -X GET 'https://api.repromptai.com/v1/reprompt/place_enrichment/batches'Example Response
{ "batches": [ { "id": "batch_2025_03_10_123456", "name": "NYC Restaurants March 2025", "created_at": "2025-03-10T15:30:00Z", "organization_id": "org-abc123", "job_count": 150, "completed_count": 142, "failed_count": 3, "pending_count": 0, "in_progress_count": 5 } ], "total": 42, "limit": 10, "offset": 0}