# 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

## Security:

  - `basicAuth` (unknown)
    http basic

## Query parameters:

  - `States` (array)

  - `Cursor` (string)

  - `Limit` (integer, required)

  - `SortBy` (string)

  - `SortOrder` (string)

  - `Direction` (string)

  - `TextSearch` (string)

## Response 200:

  - `200` (unknown)
    Query executed successfully.

## 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:

  - `400` (unknown)
    Malformed request.

## Response 401:

  - `401` (unknown)
    Authentication failed

