Blog

API tokens: give a script or an AI tool only the access it needs

How to make an API token in AI Hosting Panel with scopes and a lifetime of 1 to 90 days, what a token can and cannot do, and how its actions are recorded.

API tokens: give a script or an AI tool only the access it needs

2026-11-22

A token lets a script or an AI tool act on the panel with only the scopes you choose. A token cannot approve actions or manage tokens. Every action taken with a token is recorded in the audit log under the token's prefix.

Make a token

  1. Open Security in the sidebar, then API Tokens.
  2. Type a Name you will recognise.
  3. Set the Lifetime in days, from 1 to 90.
  4. Tick only the scopes the script or AI tool needs. Each scope has its own name in brackets, for example server.read or dns.edit.
  5. Press Create token.
API tokens page with the name box, the lifetime in days and the list of scopes with a checkbox for each
The API tokens page: a name, a lifetime from 1 to 90 days, and a checkbox for each scope.

Read the list of tokens

Your tokens show the name, the prefix, the scopes, the expiry date, when the token was last used, and its status. Each token has a Policy button for its grants, and a Revoke button that ends it.

Choose scopes carefully

Request deploys (deploy.create) asks for a deploy, but a person still approves it. Manage hosting accounts and Manage databases change real data, so give them only to a tool that must do that work. Read server status and Read the audit log are the safest starting points.

All posts