v1

latestOpenAPI 3.0.02026-07-13105112106.9 KB
API Tokens

Updates the details of a single API token

put/v1/accounts/{accountSid}/apiTokens/{apiTokenSid}

Path parameters

accountSidstring required

accountSid

accountSid

apiTokenSidstring required

apiTokenSid

apiTokenSid

Request body

namestring required

The name of the API token

role'ingest' | 'administrator' | 'user' required

The role applied to the API token

Response

Successful

sidstring required

The actual API token

accountSidstring required

accountSid

environmentSidstring nullable required

environmentSid

namestring required

Name of the API token

role'ingest' | 'administrator' | 'user' required

Role assigned to the API token

tokenstring

The API token

createdAtstring required
updatedAtstring nullable required
lastUsedAtstring nullable

Example response

{
  "createdAt": "1970-01-01T00:00:00.000Z",
  "updatedAt": "1970-01-01T00:00:00.000Z",
  "lastUsedAt": "1970-01-01T00:00:00.000Z"
}