# Query SMS batches (HTTP QUERY method)

Lists SMS batches owned by the caller (or the caller's site), with cursor pagination.

This endpoint uses the HTTP QUERY method, not GET. OpenAPI cannot express the QUERY method, so it is shown here as a GET with the filter fields as query parameters. In practice, send an HTTP QUERY request with the fields in a JSON body (States, Cursor, Limit, SortBy, SortOrder, Direction, TextSearch).

Endpoint: GET /v2/EviSms/Batches
Version: 1.0
Security: basicAuth

## Query parameters:

  - `States` (array)
    Enum: "Draft", "Submitted", "Scheduled", "Processing", "Processed", "Invalid", "Failed"

  - `Cursor` (string)

  - `Limit` (integer, required)

  - `SortBy` (string)
    Enum: "None", "LastUpdated", "ScheduledFor", "StartedOn"

  - `SortOrder` (string)
    Enum: "None", "Ascending", "Descending"

  - `Direction` (string)
    Enum: "None", "Forward", "Backward"

  - `TextSearch` (string)

## Response 200 fields (application/json):

  - `Cursor` (string)

  - `HasMoreResults` (boolean)

  - `Results` (array)

  - `Results.Id` (string)

  - `Results.State` (string)
    Enum: "Draft", "Submitted", "Scheduled", "Processing", "Processed", "Invalid", "Failed"

  - `Results.Submitter` (string)

  - `Results.SubmitterId` (string)

  - `Results.SiteId` (string)

  - `Results.SiteName` (string)

  - `Results.Description` (string)

  - `Results.CreationDate` (string)

  - `Results.ScheduledFor` (string)
    Scheduled execution date and time in UTC.

  - `Results.StartedOn` (string)

  - `Results.ProcessedOn` (string)

  - `Results.LastUpdated` (string)

  - `Results.TotalCount` (integer)

  - `Results.TotalSent` (integer)

  - `Results.TotalFailed` (integer)


## Response 400 fields

## Response 401 fields
