Skip to main content

Generate a new API Token

POST 

/Accounts/:AccountSid/tokens

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

Request

Path Parameters

    AccountSid uuidrequired

    The unique identifier for the project you want to use to authenticate this request.

Body

required

    name stringrequired

    The name representing the project API token.

    permissions string[]required

    The permissions you would like to enable for this project API token. Valid permissions are calling, chat, fax, management, messaging, numbers, pubsub, storage, tasking, and video

    subproject_id string

    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.

Responses

OK

Schema

    id string

    The ID of the created API Token.

    name string

    The name of the created API Token.

    permissions string[]

    The permissions enabled for this token.

    token string

    The API token that can be used along with the project ID for basic authentication

Loading...