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": {
"id": "95b11417-f18f-457f-8804-68e361f9164f",
"rawToken": "dyn_aGLjTe3TUN40vSE75sTtgUx9AjIe0q4n3LFC",
"checksum": "4n3LFC",
"createdBy": {
"id": "95b11417-f18f-457f-8804-68e361f9164f",
"alias": "<string>",
"firstName": "<string>",
"lastName": "<string>",
"email": "jsmith@example.com"
},
"active": true,
"createdAt": "2023-11-07T05:31:56Z",
"note": "<string>",
"projectEnvironmentId": "95b11417-f18f-457f-8804-68e361f9164f",
"projectEnvironment": {
"id": "95b11417-f18f-457f-8804-68e361f9164f"
}
}
}
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": {
"id": "95b11417-f18f-457f-8804-68e361f9164f",
"rawToken": "dyn_aGLjTe3TUN40vSE75sTtgUx9AjIe0q4n3LFC",
"checksum": "4n3LFC",
"createdBy": {
"id": "95b11417-f18f-457f-8804-68e361f9164f",
"alias": "<string>",
"firstName": "<string>",
"lastName": "<string>",
"email": "jsmith@example.com"
},
"active": true,
"createdAt": "2023-11-07T05:31:56Z",
"note": "<string>",
"projectEnvironmentId": "95b11417-f18f-457f-8804-68e361f9164f",
"projectEnvironment": {
"id": "95b11417-f18f-457f-8804-68e361f9164f"
}
}
}
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
ID of the environment
36
"95b11417-f18f-457f-8804-68e361f9164f"
Fields necessary to create a new token
The body is of type object
.
The token that has been created, including the plaintext of the token
The response is of type object
.