---
title: "Create a new token for ICE servers"
method: POST
path: "/2010-04-01/Accounts/{AccountSid}/Tokens.json"
tags: ["Api20100401Token"]
---

# Create a new token for ICE servers

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

## Request

- Base URL: `https://api.twilio.com`
- URL: `https://api.twilio.com/2010-04-01/Accounts/{AccountSid}/Tokens.json`
- Auth: HTTP basic

Create a new token for ICE servers

## Path parameters

- `AccountSid` string, required

## Request body `application/x-www-form-urlencoded`

- object
  - `Ttl` integer: The duration in seconds for which the generated credentials are valid. The default value is 86400 (24 hours).

## Response `201`

Created

- ApiV2010AccountToken
  - `account_sid` string, nullable: The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Token resource.
  - `date_created` string, date-time-rfc-2822, nullable: The date and time in GMT that the resource was created specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format.
  - `date_updated` string, date-time-rfc-2822, nullable: The date and time in GMT that the resource was last updated specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format.
  - `ice_servers` object[], nullable: An array representing the ephemeral credentials and the STUN and TURN server URIs.
    - `credential` string
    - `username` string
    - `url` string
    - `urls` string
  - `password` string, nullable: The temporary password that the username will use when authenticating with Twilio.
  - `ttl` string, nullable: The duration in seconds for which the username and password are valid.
  - `username` string, nullable: The temporary username that uniquely identifies a Token.

---

[API](https://skmtc.dev/twilio/apis/twilio-api.md) - [All operations](https://skmtc.dev/twilio/apis/twilio-api/llms.txt) - [OpenAPI document](https://skmtc.dev/twilio/apis/twilio-api/revisions/bfdf249a1298?raw)
