# `Twilio.Tokens`

API calls: `create`.

# `create`

```elixir
@spec create(map() | keyword(), keyword()) ::
  {:ok, Twilio.Schemas.Token.t()} | {:error, Infusion.Runtime.Error.t()}
```

Create a new token for ICE servers

`POST /2010-04-01/Accounts/{AccountSid}/Tokens.json`

`{AccountSid}` in the path is the `:account_sid` setting; pass `account_sid: "..."` as an option to use another.

## Parameters

  * `ttl` - The duration in seconds for which the generated credentials are valid. The default value is 86400 (24 hours).

# `create!`

```elixir
@spec create!(map() | keyword(), keyword()) :: Twilio.Schemas.Token.t()
```

Like `create/2`, but returns the result or raises `Infusion.Runtime.Error`.

---

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