---
title: "Create API token"
method: POST
path: "/api/project/tokens"
tags: ["Project Tokens"]
---

# Create API token

`POST /api/project/tokens`

Generate an API Token for a project to be used to authenticate requests within the project.

#### Permissions

The API token used to authenticate must have the following scope(s) enabled to make a successful request: _Management_.

[Learn more about API scopes](/docs/platform/your-signalwire-api-space).

#### Token Permissions

You must set the functions allowed by this API Token by selecting which types of requests this API Token is allowed to make.

Valid options are: calling, chat, datasphere, fax, management, messaging, numbers, pubsub, storage, tasking, and video

## Request body

- ProjectCreateTokenRequest — Request body for creating a new API Token.
  - `name` string, required — The name representing the API token.
  - `permissions` ProjectTokenPermission[], required — The permissions you would like to enable for this token. Valid permissions are calling, chat, datasphere, fax, management, messaging, numbers, pubsub, storage, tasking, and video
  - `subproject_id` string, uuid — Universal Unique Identifier.

## Response `200`

The request has succeeded.

- ProjectTokenResponse
  - `id` string, uuid, required — Universal Unique Identifier.
  - `name` string, required — The name of the created API Token.
  - `permissions` ProjectTokenPermission[], required — The permissions enabled for this token.
  - `token` string, required — The API token that can be used along with the project ID for basic authentication

## Other responses

- `401` — Access is unauthorized.
- `422` — The request contains invalid parameters. See errors for details.
- `500` — An internal server error occurred.

---

[API](https://skmtc.net/signalwire/apis/signalwire-rest-api.md) · [All operations](https://skmtc.net/signalwire/apis/signalwire-rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/signalwire/signalwire-rest-api/versions/05c5164b85c7/schema)
