create
tokens.create
Create a new API token for the project.
Request
name
The name representing the API token.
permissions
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
project_id
Personal access token only. The project to create the token for. Required with a
Personal access token and must name a project the token holder can reach
(`invalid_project_id`). Ignored with a project API token, which creates the token on
its own project.
subproject_id
The unique identifier of the subproject you would like to create a token for. The subproject passed must be a child of the project used to authenticate the request, or of `project_id` when authenticating with a Personal access token.
Response
id
The ID of the API Token.
name
The name of the API Token.
permissions
The permissions enabled for this token.
token
The API token that can be used along with the project ID for basic authentication. It is returned only in this response and cannot be retrieved again; store it securely.
Response Example
Response