v2

latestOpenAPI 3.0.12026-07-26334612609.5 KB
UserApiTokens

Create a new API Token for Dashboard User

post/user/tokens

Request body

notestring required

Name or note to help identify this token and its use.

scopesTokenScopes[]

Scopes assigned to an API token which they will have access to.

Response

The newly created token, with the plaintext of the token. This is the only time when this plaintext will be revealed.

Example response

{
  "token": {
    "id": "95b11417-f18f-457f-8804-68e361f9164f",
    "rawToken": "dyn_aGLjTe3TUN40vSE75sTtgUx9AjIe0q4n3LFC",
    "checksum": "4n3LFC",
    "createdBy": {
      "id": "95b11417-f18f-457f-8804-68e361f9164f"
    },
    "active": true,
    "projectEnvironmentId": "95b11417-f18f-457f-8804-68e361f9164f",
    "projectEnvironment": {
      "id": "95b11417-f18f-457f-8804-68e361f9164f"
    }
  }
}