The API Keys pages (routes /api-key-overview and /api-key-new) manage the credentials that automated clients use to access resources or the Agilicus API without an interactive login.

Purpose

An API key is a credential used to access resources or the Agilicus API without needing an explicit login. Use API keys when the client supports basic (username and password) authentication but not an OpenID Connect login, or when you need to run a process unattended and cannot use a service account. Treat an API key like a password: when using it, the username is the identity (the email address) of the user to whom the key belongs, and the password is the secret value returned when the key was created.

Why use it

  • Authenticate scripts, integrations, and command-line tooling (see API and automation).
  • Mount shares and access resources from clients that only support basic authentication.
  • Give each automated client a named, revocable credential with a defined set of scopes and an expiry.
  • Review and revoke keys you no longer use.

When to use it

  • When a tool supports basic authentication but not a full single sign-on login.
  • When you need unattended access and a service account is not appropriate.
  • When a legacy client needs to reach a resource or API.

Prerequisite: permission to administer API keys (an owner or administrator role).

How to use it

Overview

  1. Open Access > API Keys > Overview from the left navigation.
  2. Review the table. Each row shows the User the key belongs to, the key Name, its Scopes, and its Expiry date. The Key Status filter can hide expired keys.
  1. To revoke keys, tick the rows and select DELETE API KEYS. To create a key, select ADD API KEY, which takes you to the New API Key wizard.

Creating an API key

  1. API key name: give the key a name that tells you what it is for.
  1. Choose API Key for: select Self (the signed-in user’s identity) or Service Account.
  1. Scopes: choose API Scope or Resource Scope, then add scopes with ADD SCOPE and the scope table.

Type a scope such as urn:agilicus:app:erx:* into the new row and click away to add it as a chip.

  1. Expiry Date: choose when the key expires. This is required.
  1. Apply: review the summary, then select APPLY.
  1. Done: the wizard shows the key once, with the Username and Password (the secret) and copy buttons.

Copy and store the secret now: the message warns that the key will not be retrievable later.

Fields and controls reference

ControlPurposeRequiredDefaultValid valuesNotes
UserThe identity the key belongs toRead-onlyn/an/a
NameThe key’s nameYesn/aAny textShown in the overview list
ScopesWhat the key may accessYesn/aScope URNs such as urn:agilicus:app:erx:*Freeform chip entries
Expiry dateWhen the key stops workingYesn/aA dateRequired for creation
API Scope / Resource ScopeThe kind of scopes to addNon/aAPI or resource scopes
ADD API KEYOpens the creation wizardn/an/an/a
DELETE API KEYSDeletes the selected keysn/an/an/aRevocation is permanent
Key StatusFilters the listNoHide expired keysHide expired keysClear to show expired keys

Dialogs and popups

  • Confirmation dialogs: deleting API keys confirms before acting. The secret shown at the end of the wizard appears only once; there is no dialog to recover it later.

Configuration versus diagnostics versus confirmation

  • Configuration: key names, scopes, and expiry dates.
  • Diagnostics: the overview list shows each key’s user, scopes, and expiry; expired keys are identifiable and can be filtered.
  • Confirmation: deleting a key immediately breaks anything using it. The secret shown at creation is shown once only, so save it before continuing.

Pagination and async behaviour

  • The overview table pages at 25 rows per page. Expired keys are hidden by default; clear the Key Status filter to see them.
  • Key creation applies asynchronously; the wizard advances only after the key is created. After deleting keys, wait a few seconds and reload to confirm.

Troubleshooting

  • A client cannot authenticate: confirm the key has not expired and still exists in the overview. Check the scopes cover the resources being accessed. The username is the identity email, and the password is the secret shown at creation; it cannot be recovered.
  • The key is not in the overview: expired keys are hidden by the default filter. Clear Key Status to show them.
  • I need to revoke a key: tick the row in the overview and select DELETE API KEYS. Deleting also ends any sessions using the key.

See also

Web guide