API Errors
The API returns a standard GraphQL response: data for successful execution and an errors array when the request cannot be completed fully.
Error Format
Bad request
POST /graphql
POST /graphql HTTP/1.1
Accept-Language: en
Content-Type: application/json
X-Project-Context: <project-context-token>
X-Request-Id: optional-request-id
{
"documentId": "me",
"variables": {}
}
API response
401 Unauthorized
{
"errors": [
{
"message": "Authentication required",
"extensions": {
"category": "authentication"
}
}
],
"data": null
}
Common Categories
| Category | Cause | Check |
|---|---|---|
authentication | Missing or expired session | Authorization, repeat login |
validation | Invalid operation variables | Field names and types in variables |
authorization | Insufficient permissions | User status, PIN, server access |
not_found | Entity was not found | Project, server, shop item, account IDs |
internal | Platform error | Retry later or contact support |
Common Causes
documentIdis misspelled or not listed in the API reference.X-Project-Contextis missing, invalid, or outdated.- The operation requires
Authorization: Bearer <sessionId>, but the user is not authenticated. variables.gameServerIdis malformed or points to a server outside the current project.- An explicit
variables.gameServerIddoes not belong to the current project.
Logging
PROJECT_UNAVAILABLE means the project is temporarily unavailable. Show a notice instead of resubmitting the action. Check again later with projectAvailable.
Log documentId, HTTP status, errors[].message, and errors[].extensions.category. Do not log passwords, PIN codes, tokens, secret keys, or personal data without masking.