Manage Panel API tokens

This guide explains Panel API tokens in Herne 3.55.43.

This guide explains Panel API tokens in Herne 3.55.43. English screens contain fictional Northstar Studio data and invalid demonstration labels. Narration is synthetic English. We review the real interface without creating credentials, submitting account changes or sending authenticated API requests. Use a separate, narrowly scoped token for each integration so access can be reviewed and withdrawn independently.

Demonstration: English interface and synthetic English voice, fictional accounts and invalid DEMO token labels. No real token or API operation is submitted. Full text and subtitles are available in six languages.

Watch the walkthrough

English audio · 7 min 44 sec · Subtitles in all six site languages.

1. Choose the account and scope

This guide explains Panel API tokens in Herne 3.55.43. English screens contain fictional Northstar Studio data and invalid demonstration labels. Narration is synthetic English. We review the real interface without creating credentials, submitting account changes or sending authenticated API requests. Use a separate, narrowly scoped token for each integration so access can be reviewed and withdrawn independently.

Open My account and choose API tokens. The screen manages tokens belonging to the signed-in user; it is not an inventory of everyone’s credentials. Review API discovery quick start and the installation’s displayed base URL. A coexisting content management system has its own API address and credentials. Do not copy a URL or token from a different product or installation.

A token acts as its owner. Selected capabilities still pass through ownership, plan and current-role checks. This form has no site selector: sites.read can cover the sites that owner is permitted to read, rather than one selected site. An administrator’s token may reach more sites. Choose the owner and permissions with that actual scope in mind before creating any real token.

API tokens page with API discovery quick start, empty creation form and no tokens.

2. Review individual permissions

In Create token, give the integration a recognizable name, such as Inventory reader. The name is required and limited to one hundred characters. At least one capability must be selected. A name describes your intended use but does not restrict the token technically. For a read-only inventory example, review sites.read and me.read individually; do not enable a whole group merely to avoid deciding.

Expand a capability group to inspect its exact dotted names. The selected counters and group checkbox help review the form. Default contains reads and everyday automation, including deploy.run; the group is not entirely read-only. Advanced includes writes and sensitive reads such as env.read. Destructive includes deletion, database restoration and shell.run. Add only operations the integration really needs.

Administrators also see the Admin group. Non-administrators cannot grant admin capabilities or domains.read, domains.write and domains.delete. These permissions are checked against the owner’s live administrator role on each API request. Previously granted strings do not preserve administrative access after that role is removed. Do not treat selecting a capability as an independent elevation of the account.

Group Review before selection
Default Reads and everyday automation; deploy.run executes deployments
Advanced Writes and sensitive reads, including env.read
Destructive Deletes, database restore and shell.run
Admin and domains.* Grantable only by administrators; live role checked
Synthetic Inventory reader form with only sites.read and me.read selected in the expanded Default group.
Super-admin fixture showing the additional Admin capability group with no permissions selected.

3. Create and protect the secret

On a real account, submitting Create token issues a usable bearer credential with the selected capabilities. Review the intended panel, owner, name and complete selection first. This version offers no expiry-date or site-restriction field in the form. Plan an explicit review and revocation date outside it. Our demonstration never submits the form and does not issue a real secret.

After real creation, Herne displays a one-time client block with HERNE_API_URL and HERNE_API_TOKEN. Copy keys & token includes both values; Copy token only includes the secret. Store the credential in your client’s protected secret storage before leaving the page. Later visits show only a short preview, never the full token. The DEMO label shown here is deliberately invalid and cannot authenticate.

Configure the client with the displayed API base URL and send the token in the Authorization Bearer header over trusted HTTPS. It does not go in the address, query string or a screenshot. Panel browser cookies are not an API authentication fallback. Keep credentials out of repositories, shared logs and support tickets. Limit secret access in the client and rotate by replacement when exposure is suspected.

One-time client configuration layout containing only DEMO NOT A VALID TOKEN, never a usable credential.

4. Verify discovery and activity

The first suggested request is GET at the base API address. Without a valid token, discovery still returns a public-safe bootstrap response, so a successful HTTP response alone does not prove authentication. Check authenticated, then inspect the granted capabilities and effective can map. Follow returned links to the installed OpenAPI document and documentation; review the required capability before calling another operation.

The token list shows name, Active or Revoked state, a short token preview, capability count and last-used time. Open the name or edit action to inspect the full permission selection. A short preview cannot recover the original secret. Never used means no successful authentication has been recorded for that token; it does not prove the integration was configured correctly or that a task completed.

Expand Recent activity when entries are available. Herne retains the latest ten authenticated requests per token, with method, path, permission result, required capability, IP address and time. Request bodies, query strings, responses and token material are not stored there. Allowed describes the capability decision, not the final business outcome. Check the client response and the target resource before repeating an uncertain write.

Synthetic Active and Revoked token rows with an expanded two-entry activity table and documentation IP address.

5. Edit, replace or revoke

Edit token lets you change its name and capability selection. Save changes updates those settings without changing or revealing the secret. Removing a capability can break a client’s later requests; adding one expands what that existing credential can do. Review both effects before saving. Editing a revoked token does not reactivate it, and there is no secret-rotation control in this dialog.

If the one-time secret was lost, create a replacement with deliberately reviewed permissions; the old secret cannot be displayed again. Update the intended client’s protected configuration, verify authenticated discovery and a permitted read, then revoke the old credential. If compromise is suspected, revoke the exposed token promptly rather than preserving access for convenience. A renamed token is not a replacement credential.

Revoke opens a confirmation showing the token name and preview. Confirming rejects subsequent requests using that credential and keeps its row and activity for review. Cancel closes without revoking. Check the intended integration before confirming, because its next requests will stop working. This is different from deleting the record, and changing the name or capabilities later will not undo revocation.

Edit dialog with name, two selected capabilities and the warning that the secret cannot be changed or shown again.
Unsubmitted Revoke dialog showing the fictional token name and invalid preview; the audit row is retained.

6. Delete deliberately and diagnose failures

Delete opens a separate permanent-deletion confirmation. Confirming removes the token record and its activity history, so preserve any required review evidence securely first. Deleting an active token also removes its ability to authenticate. Prefer revocation when you need to stop access and retain the record. This walkthrough opens illustrative dialogs only and never confirms a real revocation or deletion.

On protected endpoints, missing, unknown or revoked tokens share the invalid_api_token response with HTTP 401. Missing capability produces HTTP 403 with missing_capability. Ownership, current role, plan restrictions and validation can still block a request that has the named capability. Read the structured response and linked documentation rather than granting every permission. Do not blindly retry a write whose outcome is uncertain.

Finish by matching each active token to a known integration, checking its current permissions and reviewing recent use without exposing the secret. Remove unnecessary capabilities deliberately and revoke retired integrations. Verify client behavior separately; last use and Allowed entries are not proof that its intended task finished. The guide ends with synthetic models only: no real token was created, modified, revoked, deleted or used.

Operation Secret, access and record
Edit Name and capabilities change; secret and revocation state do not
Replace New credential; update client and revoke old token
Revoke Subsequent authentication rejected; row and activity retained
Delete Permanent removal of token row and activity history
Unsubmitted Delete dialog warning that permanent deletion also removes token activity history.
Herne documentation