mirror of
https://github.com/pelican-dev/panel.git
synced 2026-05-04 18:00:48 +03:00
Client API #423
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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?
@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.
@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.