Client API #423

Closed
opened 2026-02-05 17:34:46 +03:00 by OVERLORD · 2 comments
Owner

Originally created by @HyperGaming99 on GitHub (Sep 8, 2025).

Current Behavior

When using an API key created in the user profile (prefix pacc_) with the Client API (/api/client/...), the request always returns the following error:

{
"errors": [
{
"code": "AuthenticationException",
"status": "401",
"detail": "Unauthenticated."
}
]
}

Expected Behavior

The API should authenticate the client correctly and return the account’s API keys.

Steps to Reproduce

Create an API key in the user profile (key starts with pacc_...).

Use this key in the Authorization header for a Client API request:

const axios = require("axios");

async function getApiKeys() {
try {
const response = await axios.get(
"https:///api/client/account/api-keys",
{
headers: {
Accept: "application/json",
Authorization: "Bearer pacc_xxxxxxxxxxxx",
},
}
);
console.log(response.data);
} catch (error) {
console.error(error.response?.data || error.message);
}
}

getApiKeys();

Send the request.

Panel Version

1.0.0-beta25

Wings Version

v1.0.0-beta17

Games and/or Eggs Affected

No response

Docker Image

No response

Error Logs


Is there an existing issue for this?

  • I have searched the existing issues before opening this issue.
  • I have provided all relevant details, including the specific game and Docker images I am using if this issue is related to running a server.
  • I have checked in the Discord server and believe this is a bug with the software, and not a configuration issue with my specific system.
Originally created by @HyperGaming99 on GitHub (Sep 8, 2025). ### Current Behavior When using an API key created in the user profile (prefix pacc_) with the Client API (/api/client/...), the request always returns the following error: { "errors": [ { "code": "AuthenticationException", "status": "401", "detail": "Unauthenticated." } ] } ### Expected Behavior The API should authenticate the client correctly and return the account’s API keys. ### Steps to Reproduce Create an API key in the user profile (key starts with pacc_...). Use this key in the Authorization header for a Client API request: const axios = require("axios"); async function getApiKeys() { try { const response = await axios.get( "https://<domain>/api/client/account/api-keys", { headers: { Accept: "application/json", Authorization: "Bearer pacc_xxxxxxxxxxxx", }, } ); console.log(response.data); } catch (error) { console.error(error.response?.data || error.message); } } getApiKeys(); Send the request. ### Panel Version 1.0.0-beta25 ### Wings Version v1.0.0-beta17 ### Games and/or Eggs Affected _No response_ ### Docker Image _No response_ ### Error Logs ```bash ``` ### Is there an existing issue for this? - [x] I have searched the existing issues before opening this issue. - [x] I have provided all relevant details, including the specific game and Docker images I am using if this issue is related to running a server. - [x] I have checked in the Discord server and believe this is a bug with the software, and not a configuration issue with my specific system.
Author
Owner

@Boy132 commented on GitHub (Sep 8, 2025):

You only used the identifier, not the full key. You can only see the full api key in the notification after the creation.
Next time please actually visit the Discord first.

@Boy132 commented on GitHub (Sep 8, 2025): You only used the identifier, not the full key. You can only see the _full_ api key in the notification after the creation. Next time please actually visit the Discord first.
Author
Owner

@lps-rocks commented on GitHub (Oct 18, 2025):

This should be a modal that can get dismissed. This bit me too. Horrible UI/UX decision.

@lps-rocks commented on GitHub (Oct 18, 2025): This should be a modal that can get dismissed. This bit me too. Horrible UI/UX decision.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/panel-pelican-dev#423