Generate a new API Token
Creates a project API token for server-side REST authentication within the project. It remains usable until you delete it or remove required permissions. Client applications should receive a service-specific Chat, PubSub, Room, or Subscriber Token instead.
For the SignalWire REST API's project route, use Create API token.
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.
Path parameters
Universal Unique Identifier.
The unique identifier for the project you want to use to authenticate this request.
Response
The request has succeeded.
Example response
{
"name": "John Doe's Token",
"permissions": [
"calling",
"fax",
"messaging"
],
"token": "PT037258e533e87ac63174ee136ed0798dc85d4f4f9e6d7191"
}Changes
Changed in 6 of the 40 revisions of this API.18219
- ▲
added
uuidto thesubproject_idrequest propertyallOflistrequest-property-all-of-added
- ▲
the
idresponse's property type/format changed fromstring/uuidto/for status200response-property-type-changed
- ○
the
subproject_idrequest property type/format was generalized fromstring/uuidto/request-property-type-generalized
- ○
added
uuidto theidresponse propertyallOflist for the response status200response-property-all-of-added
- ▲
- ▲
added 'unevaluatedProperties' constraint to the request body
request-body-unevaluated-properties-added
- ○
added 'unevaluatedProperties' constraint to the response body for the status
200response-body-unevaluated-properties-added
- ○
added 'unevaluatedProperties' constraint to the response body for the status
400response-body-unevaluated-properties-added
- ○
added 'unevaluatedProperties' constraint to the response body for the status
401response-body-unevaluated-properties-added
- ○
added 'unevaluatedProperties' constraint to the response body for the status
422response-body-unevaluated-properties-added
- ▲
- ▲
the
permissionsrequest property's minItems was increased to1request-property-min-items-increased
- ▲
the
namerequest property's minLength was increased from0to1request-property-min-length-increased
- ▲
the
subproject_idrequest property type/format changed fromstring/tostring/uuidrequest-property-type-changed
- ○
added the non-success response with the status
400response-non-success-status-added
- ○
the response property
idbecame required for the status200response-property-became-required
- ○
the response property
namebecame required for the status200response-property-became-required
- ○
the response property
permissionsbecame required for the status200response-property-became-required
- ○
the response property
tokenbecame required for the status200response-property-became-required
This revision also has 11 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ▲
- ▲
the response property
codebecame optional for the status422response-property-became-optional
- ▲
the response property
messagebecame optional for the status422response-property-became-optional
- ▲
the
coderesponse's property type/format changed frominteger/int32tostring/for status422response-property-type-changed
- ▲
removed the required property
more_infofrom the response with the422statusresponse-required-property-removed
- ▲
removed the required property
statusfrom the response with the422statusresponse-required-property-removed
- ○
added the optional property
attributeto the response with the422statusresponse-optional-property-added
- ○
added the optional property
typeto the response with the422statusresponse-optional-property-added
- ○
added the optional property
urlto the response with the422statusresponse-optional-property-added
- ▲
- ▲
removed the media type
application/jsonfrom the request bodyrequest-body-media-type-removed
- ○
added the media type
application/x-www-form-urlencodedto the request bodyrequest-body-media-type-added
This revision also has 1 change that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ▲
- ▲
added the new required request property
namenew-required-request-property
- ▲
added the new required request property
permissionsnew-required-request-property
- ▲
the request's body type/format changed from
/toobject/request-body-type-changed
- ▲
the
coderesponse's property type/format changed fromstring/tointeger/int32for status422response-property-type-changed
- ▲
removed the required property
typefrom the response with the422statusresponse-required-property-removed
- ▲
removed the required property
urlfrom the response with the422statusresponse-required-property-removed
- ●
removed
subschema #1subschema #2subschema #3from the request bodyallOflistrequest-body-all-of-removed
- ●
removed the optional property
attributefrom the response with the422statusresponse-optional-property-removed
- ○
added the new optional request property
subproject_idnew-optional-request-property
- ○
added the non-success response with the status
401response-non-success-status-added
- ○
added the required property
more_infoto the response with the422statusresponse-required-property-added
- ○
added the required property
statusto the response with the422statusresponse-required-property-added
This revision also has 14 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ▲