API & Developers
Create and use API tokens
Create a token
You need a Developer or Admin role on at least one project.
Open Settings.
Select API Tokens.
Enter a recognizable Token name, such as
Production deploy hook.Choose the Project.
Select Create token.
Copy the token immediately.
The plain token is displayed only when it is created. DeployMonitor cannot show it again later.
Store the token in a password manager or deployment secret store. Never commit it to source control, place it in client-side code, or print it in logs.
Understand token scope
Every token is assigned to one project and receives these abilities:
project:readto retrieve the assigned project.project_logs:readto list and view the assigned project's logs.project_logs:createto create logs for the assigned project.
The project scope cannot be changed after creation. Create a separate token for another project.
The token owner's current role still applies. The token loses access if its owner loses access to the project. Log creation also stops if the owner no longer has a Developer or Admin role.
Authenticate requests
Send the token as a Bearer token and request JSON responses:
Authorization: Bearer <token>
Accept: application/json
Content-Type: application/jsonUse Content-Type: application/json for requests with a JSON body.
Review and revoke tokens
The API Tokens page lists each token's project, creation time, and last-used time. A token that has not authenticated a request displays Never used.
Select Revoke, review the token name, and confirm Revoke token to disable it immediately.
Update the connected integration before or immediately after revocation to avoid failed requests.
Next, see Get the project assigned to a token.