v2

latestOpenAPI 3.0.12026-07-26334612609.5 KB
Tokens

Create a new API Token

post/environments/{environmentId}/tokens

Path parameters

environmentIdstring required
Example:95b11417-f18f-457f-8804-68e361f9164f

ID of the environment

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 token that has been created, including the plaintext of the token

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"
    }
  }
}