---
title: "Creates a new API token associated to an account."
method: POST
path: "/v1/accounts/{accountSid}/apiTokens"
tags: ["API Tokens"]
---

# Creates a new API token associated to an account.

`POST /v1/accounts/{accountSid}/apiTokens`

Returns the API token information.

## Path parameters

- `accountSid` string, required — accountSid

## Request body

- Model18
  - `name` string, required — The name of the API token
  - `role` 'ingest' | 'administrator' | 'user', required — The role applied to the API token
  - `environmentSid` string, required — environmentSid

## Response `200`

Successful

- API20Token — unresolved $ref

## Other responses

- `400` — Bad Request

---

[API](https://skmtc.net/apitraffic/apis/apitraffic-api-documentation.md) · [All operations](https://skmtc.net/apitraffic/apis/apitraffic-api-documentation/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/apitraffic/apitraffic-api-documentation/revisions/b2a22a9b5c98/schema)
