API tokens
Create a token for a script or CI, use it with curl, reroll it when it leaks and revoke it.
A token lets a script, a CI pipeline or an API client use Deplo without a browser. Tokens live in Settings -> API tokens, under Account. For an AI agent, use MCP server instead: it creates the token for you.
- A token is yours. Only you can see, edit or revoke it.
- It does at most what you can do. Lose a permission and your tokens lose it too.
Create a token
Pick a template
Settings -> API tokens -> New token, then a template or Start from scratch:
| Template | For |
|---|---|
| Read only | Dashboards and reporting |
| Deploy hook & CI | A pipeline that deploys |
| MCP & AI agents | An agent driving the team |
| App automation | A script that creates, configures and ships apps |
| Agent setup | An agent setting up a new Deplo |
| Root access | Everything you can do |

Set the expiry and the scope
- Expires: In 30 days, In 90 days (the default), In a year or Never.
- Scope: tick teams, projects, folders or single apps. Nothing ticked reaches all your teams, including ones you join later.
Check the permissions
The template ticks them. Change any you need; sensitive ones are marked.
Copy it
Click Create token and copy it. It is shown once.
Use it
Send it as a bearer token, and name the team by its slug:
curl -s https://deplo.example.com/api/graphql \
-H "Authorization: Bearer <token>" \
-H "X-Deplo-Team: acme" \
-H "Content-Type: application/json" \
-d '{"query":"{ apps { id name status } }"}'In CI, the deploy hook takes a token too. Everything a token can call is in the API reference.
Reroll a token
When a token leaked, got lost or expired:
Open it
Settings -> API tokens, open the token, then Reroll token.
Pick the new expiry
It counts from now. Click Reroll.
Copy the new secret
It is shown once, under Token rerolled. Name, permissions and scope stay the same.
The old secret stops working at once
There is no overlap: update every place that uses it right away.
Revoke a token
Open it and click Revoke token. It stops working at once, everywhere.
Good to know
- An expired token stays in the list, marked Expired. Reroll it to bring it back.
- Scoped to a project, folder or app? It cannot do team-wide things like managing members. Scope it to the whole team for that.
- A team decides where your tokens work. They reach a team only while you have Use API tokens there.
Something wrong? See Sign-in and access.
Did this page help you?