Skip to main content

Update an API Token

PATCH 

/tokens/:token_id

Update an API Token's name or permissions.

Permissions

You can modify 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, fax, management, messaging, numbers, pubsub, storage, tasking, and video

Request

Path Parameters

    token_id anyrequired

    The unique identifier of the token that you want to update.

Body

required

    name string

    The name representing the API token.

    permissions array

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

Responses

OK

Schema

    id string

    The ID of the created API Token.

    name string

    The name of the created API Token.

    permissions array

    The permissions enabled for this token.

    token string

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

Loading...