All API requests must be authenticated using an API token passed in theDocumentation Index
Fetch the complete documentation index at: https://docs.beta.ontoto.com/llms.txt
Use this file to discover all available pages before exploring further.
x-api-key header.
Generating a token
- In the Ontoto Dashboard sidebar, navigate to Developer → API Tokens.
- Click Create Token.
- Enter a name and optional description for the token.
- Set an expiry date (required).
- Choose an access scope.
- Click Create Token.
Access scopes
Tokens currently grant read-only access. Programmatic write access may be added in the future. When creating a token you choose one of two access modes:All devices, groups, and sites
Grants read access to every device, device group, and site in your organisation.Scoped access
Grants read access only to the specific resources you select. You can mix and match across three resource types:| Resource type | Description |
|---|---|
| Device | A single device, identified by serial number |
| Device group | A named group of devices |
| Site | A site that devices are assigned to |
Managing tokens
| Action | Description |
|---|---|
| Regenerate | Issues a new token value with a new expiry date. The old token is immediately invalidated. |
| Delete | Permanently revokes the token. This cannot be undone. |