messages
List Batches
List all batch runs.
get/v1/messages/batches
Query parameters
beforestring nullable
Job ID cursor for pagination. Returns jobs that come before this job ID in the specified sort order
Job ID cursor for pagination. Returns jobs that come before this job ID in the specified sort order
afterstring nullable
Job ID cursor for pagination. Returns jobs that come after this job ID in the specified sort order
Job ID cursor for pagination. Returns jobs that come after this job ID in the specified sort order
limitinteger nullable
Maximum number of jobs to return
Maximum number of jobs to return
order'asc' | 'desc'
Sort order for jobs by creation time. 'asc' for oldest first, 'desc' for newest first
Sort order for jobs by creation time. 'asc' for oldest first, 'desc' for newest first
order_by'created_at'
Field to sort by
Field to sort by
Response
Successful Response
Example response
[
{
"id": "job-123e4567-e89b-12d3-a456-426614174000"
}
]