KB-1764653

Set up a least-privilege API credential

Prepare a named administrator account and use its key safely without putting it into a command example or ticket.

9 views

Begin with the endpoint and intended scope

Open API Docs and identify the specific read the integration needs. Grant the named service administrator only the corresponding module and applicable tenant membership. Administrators → + Add Administrator or Edit exposes Read-Only, Read & Write and Enabled Modules. For a profile reader, select Read-Only and Users & Profiles, explicitly clear other preset modules, and leave Platform super administrator unselected. Coordinate any account creation or key change through your access process, not as a troubleshooting shortcut.

RadiusStack authenticates protected REST requests with X-API-Key. The administrator MFA challenge protects the interactive login, not each API request made with that key. Treat it as a credential and keep it in the approved secret store. In Administrators, the Gen API Key action generates a replacement, not a readback. Plan the consumer cutover and verify the replacement with an authorized read before closing the change. The old key is replaced, so uncoordinated regeneration can break clients and require reauthentication.

Worked example: prove a read without sending raw output to a ticket

For a dedicated staging profile reader, select the permitted tenant in Active tenant, open API Docs → API Tester, and issue GET /api/profiles with the request body blank. The browser uses the currently signed-in administrator’s key; sign in as the intended reader for this check. Expect HTTP 200 and a JSON array, which can be empty in a fresh tenant. Compare the scope and a known profile against Profiles. A separate client should use the service credential over HTTPS and send the tenant ID in X-Tenant-ID when multi-tenancy is enabled.

Read failures before changing permissions

An HTTP 401 with API Key missing points to header delivery; Invalid API Key points to the credential or deployment. A 403 instead directs you to module rights or scope. Stop and compare the grant record before requesting more privilege. A login HTML page is not an API response; check the approved base URL and proxy route. Do not enable debug to obtain a forgotten key. Keep only method, path family, status, expected scope alias and the next action. Never disclose the request header, login response, browser storage or full response data.

References

  1. RadiusStack official wiki
  2. curl command line manual
  3. RFC 9110: HTTP Semantics
  4. RadiusStack administrator controls
  5. RadiusStack application API and RADIUS statistics