Capabilities

API tokens and integrations.

Everything the Octotor web pages do, they do through the same API. A token lets your own tools — a monitoring display, an inventory script, an AI client — use that API with exactly the access you grant, under a named owner, from the addresses you allow, with every call recorded.

What it does

Who it is for

Anyone who wants Octotor's data somewhere else, or wants to drive Octotor from another tool: a wall display that shows open alerts, a nightly script that exports the inventory, a ticketing system that opens a case for each alert, or an AI assistant on your own desk that answers questions from your own estate.

What you need

Octotor v3.3.13.1 or later. API tokens are part of the Pro and Enterprise plans; the self-description, the API description and the outside tool server come with them at no extra charge. The tool server for AI clients needs Node.js 18 or newer on the machine that runs the client.

Creating a token

1Open the form

Open Settings, then API Tokens, and click + Create Token. Type a Token Name that says what the token is for, such as alerts-dashboard.

2Choose the owner

In Owner, pick the user the token should act as. Only administrators see this field; anyone else is always the owner of the tokens they create. To give an outside tool access to one customer only, make the token for a user who is limited to that customer, not for an administrator.

3Tick what the token may do

Tick the Scopes the tool needs — see the table below — and set an Expiration. A box marked read and write also allows reading.

4Restrict and record

Optionally fill Allowed IPs with the address or range the tool calls from, and set Activity Logging to all requests if you want every call recorded.

5Create and copy

Click Create. The token is shown once; copy it now. Octotor stores only a hash of it and cannot show it again. Deleting the row revokes the token at once.

What a token can be allowed to do

AreaReadRead and writeWhat it reaches
AssetsyesyesComputers, devices, accounts, their attributes and relations. Writing also approves or rejects discovered items and suggested user assignments, starts identity checks and protocol runs on an asset, acknowledges items, pins tiles and changes custom tiles on the Dashboard, and, when the token's owner is an administrator, changes customer network-mapping rules. Grant it only to something you would trust with all of those.
Scripts and jobsyesyesThe script library and run history; writing runs a script on an asset. Protocol runs are started with the Assets write permission instead.
Events and logsyes—Collected events, the activity log and job output.
Scheduled tasksyesyesTasks, their schedules and their last results.
AlertsyesyesOpen and past alerts and their rules; writing acknowledges, resolves and reopens.
Customersyes—The customer list and each customer's settings.
Credentialsyes—Credential names and which assets use them. Never the passwords or keys — those are stripped from every response.
Settingsyes—Product settings, the update check and support-bundle status.
System statusyes—Service health and the status page — what a monitoring dashboard needs. From v3.3.14 a token with this permission is answered whatever the role of its owner, so it can belong to a service account with the viewer role.
AssistantyesyesAssistant conversations and actions awaiting approval; writing asks a question or approves an action.
Use the assistant on text—yesAsk the assistant to analyse or summarise a piece of text.
All accesseverything the owner can reachIncluding the three areas below. Grant it only when nothing narrower will do.

Three areas are deliberately not offered as tick boxes and are reachable only with all access: permission groups (the permission model itself), administration (it includes a request that streams a complete database backup, and covers licensing, directory synchronisation and connector set-up) and API tokens (a token must never be able to read, create or revoke tokens — that is how one leaked token becomes permanent access). If a request is refused, the message names the exact permission it wanted. A token's permissions cannot be changed afterwards: revoke it and create a replacement.

A token can ask what it may do

A tool holding a token sends it to GET /api/tokens/self and receives the token's name, its expiry, its request-per-minute limit, every permission it holds with a plain-English description, and whether it sees all customers or only some. It receives nothing about the owner's account or other tokens. A tool can therefore tell in advance that it will only ever see part of the estate, and pace itself to its limit.

A description of the whole API

GET /api/description returns an OpenAPI 3.0.3 document listing every address a token can be granted access to, the method, the permission that method requires, the parameters and the status codes to expect. It is generated from the product's own routing, so it cannot fall out of step with the software, and it carries nothing about your installation — no customers, no computers, no counts. Add ?download=1 to save it as a file. Any tool that reads OpenAPI — including an AI assistant you hand the file to — knows the whole surface from it.

Connect an outside AI tool

The Octotor tool server runs on your own machine next to the AI client. It listens on no network port and stores nothing: the client starts it and talks to it through its input and output, and the server talks to your installation over HTTPS with the token you give it. Certificate checking is on.

1Get the tool server

Download it from the Octotor download site and unpack it. Inside the folder run npm ci --omit=dev, which installs exactly the versions we tested.

2Create a token for it

Tick only what the client needs, set an expiry, and restrict the token to the client's address if it has a fixed one.

3Point the client at it

Give the client the path to server.js and two settings: OCTOPUS_URL (your installation's address) and OCTOPUS_TOKEN (the token). If your installation uses a certificate from your own authority, add OCTOPUS_CA_CERT pointing at that authority's file.

4Check what it can do

On start the server prints which permissions the token holds, how many customers it can see, when it expires and its request limit. Ask the client to run get_my_permissions at any time for the same answer.

Worked example

The situation. Northwind's IT team wants a wall display in the office that shows open alerts, and nothing else, and wants to be sure the display can never change anything.

The token. Token Name = alerts-dashboard, Owner = the viewer account wall-display, scopes Alerts — Read and Customers — Read (the second only so the display can print customer names), Expiration 90 days, Allowed IPs = the display's address, Activity Logging = all requests.

What happens. The display reads GET /api/alerts?status=open every minute and shows the open alerts with their customer names. When a colleague tries the same token to list credentials, the answer is a refusal naming the missing permission, and Investigate shows the attempt under the token's name. When the display is moved to another desk and its address changes, every call is refused until the token is replaced with one carrying the new address. After 90 days the token expires and the display goes dark until a new one is created — which is the point.