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

Service for AccessToken API operations.

Operations: `create`, `fetch`

# `create`

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

Create a new enrollment Access Token for the Entity

Operation: `CreateAccessToken` | Tags: VerifyV2AccessToken

## Required Parameters

| Parameter | Type | Description |
|-----------|------|-------------|
| `FactorType` | string |  Values: `push` |
# credo:disable-for-next-line Credo.Check.Readability.MaxLineLength
| `Identity` | string | The unique external identifier for the Entity of the Service. This identifier should be immutable, not PII, and generated by your external system, such as your user's UUID, GUID, or SID. |
## Optional Parameters

| Parameter | Type | Description |
|-----------|------|-------------|
| `FactorFriendlyName` | string | The friendly name of the factor that is going to be created with this access token |
# credo:disable-for-next-line Credo.Check.Readability.MaxLineLength
| `Ttl` | integer | How long, in seconds, the access token is valid. Can be an integer between 60 and 300. Default is 60. |

# `fetch`

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

Fetch an Access Token for the Entity

Operation: `FetchAccessToken` | Tags: VerifyV2AccessToken

---

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