# `Twilio.Verify.V2.AttemptService`
[🔗](https://github.com/jeffhuen/twilio_elixir/blob/main/lib/twilio/verify/v2/attempt_service.ex#L2)

Service for Attempt API operations.

Operations: `list`, `fetch`

# `fetch`

```elixir
@spec fetch(Twilio.Client.t(), String.t(), keyword()) ::
  {:ok, Twilio.Resources.Verify.V2.Attempt.t()}
  | {:ok, map(), map()}
  | :ok
  | {:error, Twilio.Error.t()}
```

Fetch a specific verification attempt.

Operation: `FetchVerificationAttempt` | Tags: VerifyV2VerificationAttempt

# `list`

```elixir
@spec list(Twilio.Client.t(), map(), keyword()) ::
  {:ok, Twilio.Page.t()}
  | {:ok, map(), map()}
  | :ok
  | {:error, Twilio.Error.t()}
```

List all the verification attempts for a given Account.

Operation: `ListVerificationAttempt` | Tags: VerifyV2VerificationAttempt

## Query Parameters

| Parameter | Type | Description |
|-----------|------|-------------|
# credo:disable-for-next-line Credo.Check.Readability.MaxLineLength
| `DateCreatedAfter` | string (date-time) | Datetime filter used to consider only Verification Attempts created after this datetime on the summary aggregation. Given as GMT in ISO 8601 formatted datetime string: yyyy-MM-dd'T'HH:mm:ss'Z. |
# credo:disable-for-next-line Credo.Check.Readability.MaxLineLength
| `DateCreatedBefore` | string (date-time) | Datetime filter used to consider only Verification Attempts created before this datetime on the summary aggregation. Given as GMT in ISO 8601 formatted datetime string: yyyy-MM-dd'T'HH:mm:ss'Z. |
| `ChannelData.To` | string | Destination of a verification. It is phone number in E.164 format. |
# credo:disable-for-next-line Credo.Check.Readability.MaxLineLength
| `Country` | string (iso-country-code) | Filter used to query Verification Attempts sent to the specified destination country. |
| `Channel` | string | Filter used to query Verification Attempts by communication channel. |
# credo:disable-for-next-line Credo.Check.Readability.MaxLineLength
| `VerifyServiceSid` | string | Filter used to query Verification Attempts by verify service. Only attempts of the provided SID will be returned. |
# credo:disable-for-next-line Credo.Check.Readability.MaxLineLength
| `VerificationSid` | string | Filter used to return all the Verification Attempts of a single verification. Only attempts of the provided verification SID will be returned. |
# credo:disable-for-next-line Credo.Check.Readability.MaxLineLength
| `Status` | string | Filter used to query Verification Attempts by conversion status. Valid values are `UNCONVERTED`, for attempts that were not converted, and `CONVERTED`, for attempts that were confirmed. |

# `stream`

```elixir
@spec stream(Twilio.Client.t(), map(), keyword()) :: Enumerable.t()
```

Stream: List all the verification attempts for a given Account. (lazy auto-pagination).

---

*Consult [api-reference.md](api-reference.md) for complete listing*
