POST
/
environments
/
{environmentId}
/
tokens
curl --request POST \
  --url https://app.dynamicauth.com/api/v0/environments/{environmentId}/tokens \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "note": "<string>"
}'
{
  "token": {
    "active": true,
    "checksum": "4n3LFC",
    "createdAt": "2023-11-07T05:31:56Z",
    "createdBy": {
      "alias": "<string>",
      "email": "[email protected]",
      "firstName": "<string>",
      "id": "95b11417-f18f-457f-8804-68e361f9164f",
      "lastName": "<string>"
    },
    "id": "95b11417-f18f-457f-8804-68e361f9164f",
    "note": "<string>",
    "projectEnvironment": {
      "id": "95b11417-f18f-457f-8804-68e361f9164f"
    },
    "projectEnvironmentId": "95b11417-f18f-457f-8804-68e361f9164f",
    "rawToken": "dyn_aGLjTe3TUN40vSE75sTtgUx9AjIe0q4n3LFC"
  }
}

Authorizations

Authorization
string
headerrequired

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

environmentId
string
required

ID of the environment

Body

application/json
note
string
required

Response

201 - application/json
token
object
required