Skip to Content
Integrations

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.

Settings -> API tokens: every token with its permissions, scope, last use and expiry
  • 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:

TemplateFor
Read onlyDashboards and reporting
Deploy hook & CIA pipeline that deploys
MCP & AI agentsAn agent driving the team
App automationA script that creates, configures and ships apps
Agent setupAn agent setting up a new Deplo
Root accessEverything you can do
The templates a new token can start from

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?

On this page