Error API¶
The client libraries send errors with one HTTP call. You can call it yourself from any language or engine.
There is no player token. The game proves itself with its id and token (the same pair you pass to setUpGame). Browsers can call it from any site.
{
"game_id": 12,
"game_token": "your game token",
"events": [
{
"level": "exception",
"type": "TypeError",
"message": "Cannot read properties of undefined (reading 'x')",
"stack": "TypeError: Cannot read ...\n at update (game.js:10:5)",
"handled": false,
"platform": "js",
"sdk": "my-engine 1.0",
"release": "1.0.3",
"os": "Windows 11",
"device": "Chrome 131",
"user_id": 4512,
"occurred_at": "2026-12-01T18:03:11.402Z",
"from_last_session": false,
"context": { "scene": "Level2" }
}
]
}
| Field | Needed | What it is |
|---|---|---|
message |
yes | Up to 1,000 characters; longer is cut. An event with no message is skipped. |
level |
no | error (default), exception or crash. |
type |
no | The exception's class, such as TypeError or NullReferenceException. |
stack |
no | The stack as text, up to 16,000 characters. |
handled |
no | true when your game sent it on purpose. |
platform |
no | A short word: js, unity, unreal, or your own. |
sdk, release, os, device |
no | Short text. release is your game's version; the dashboard filters by it. |
user_id |
no | The signed-in GameFuse player's id. Ignored if it is not a player of this game. |
occurred_at |
no | ISO 8601. GameFuse uses its own clock when this is missing, in the future or older than 30 days. |
from_last_session |
no | true when the error was saved last run and is only being sent now. |
context |
no | A JSON object of details you want to see with the error, up to 4 KB. |
fingerprint |
no | Your own grouping key. Events with the same fingerprint are one error on the dashboard. |
Up to 25 events per request.
Answers¶
| Status | Body | What to do |
|---|---|---|
202 |
{"accepted": 1, "dropped": 0} |
Done. dropped counts events over the game's daily limit of 10,000. |
400 |
{"error": "..."} |
No events in the body. Do not send it again. |
401 |
{"error": "..."} |
Wrong game_id or game_token. Stop sending. |
429 |
text | Over 60 requests a minute from one address. Try again later. |