Skip to navigation

List batches

View as Markdown
Retrieves a paginated list of batches for a specific agent. Customer ID is automatically determined from the API key.

Authentication

X-API-Keystring

API key for authentication. Example: raya_ABCD1234567890abcdef

Query parameters

agent_idstringRequiredformat: "uuid"
The UUID of the agent
offsetintegerOptional>=0Defaults to 0

Number of records to skip (default: 0)

limitintegerOptional1-100Defaults to 10

Maximum number of records to return (default: 10, max: 100)

sortenumOptionalDefaults to desc

Sort order by created_at time (default: desc)

Allowed values:

Response

Batches retrieved successfully
batcheslist of objectsOptional
totalintegerOptional
offsetintegerOptional
limitintegerOptional

Errors

401
Unauthorized Error