API Reference
Dashboard
  1. API Reference
  2. Box API
  3. API keys

List the API keys of the box

Use this to see which API keys exist, when they expire and when each was last used. It returns only the masked form of each key, never the full key. Newest key first. Available from XProxy v21.3.61.

  • Read only
  • Basic auth
  • Panel API · since v21.3.61
  • Hub: blocked by the Hub
  • listApiKeys
GET/v2/api_keys

Authentication

Needs the admin login (HTTP Basic, or the panel session). An API key cannot manage API keys: any key sent here, even a valid Full access key, is refused with HTTP 401 invalid_token, also from the LAN. A browser request whose Origin is not the panel's own address is refused with HTTP 403 cross_origin; requests without an Origin header (curl, scripts) are not affected.

How authentication works: login, API keys, LAN and 401 answers →

Responses

The keys.

statusbooleanrequired
dataobjectrequired
data.itemsobject[]required

All keys, newest first.

data.items[].idintegerrequired

Key number. Use it to regenerate or delete the key.

data.items[].namestringrequired

Label given when the key was created (1-40 characters).

data.items[].typestringrequired

full is a Full access key (xpf_…), rotate is a Rotate only key (xpr_…).

One of full, rotate
data.items[].maskedstringrequired

The key prefix and its last 4 characters, for example xpr_…ab12.

data.items[].created_atintegerrequired

Creation time as UTC epoch milliseconds.

data.items[].expires_atinteger | nullrequired

Expiry time as UTC epoch milliseconds, or null when the key never expires.

data.items[].last_used_atinteger | nullrequired

Last time the key was accepted as UTC epoch milliseconds (updated at most once a minute), or null when it was never used.

data.items[].expiredbooleanrequired

True when the expiry time has passed. An expired key is refused; it can be deleted but not regenerated.

data.maxintegerrequired

Most keys a box can hold.

Errors returned in msg

msgMeaningWhat to do
invalid_tokenAn API key was sent. Keys cannot manage keys (HTTP 401).Call this with the admin login and no key.
cross_originThe request came from a browser page on another origin (HTTP 403, in the code field).Open the panel itself
Verified against XProxy v21.3.61 on Dec 4, 2026