Ingest API
Send account data to Storm Logs from your own reporter over HTTP.
If you'd rather write your own reporter than use the one Install Storm Cloud sets up, you can send data to Storm Logs over plain HTTP. There are two requests: one to send reports and one to fetch a game's fields.
All requests go to https://production.cartier.gg/api/stormx/v1. The examples use a made-up key.
The Basics
Authenticate with your account's Reporter Key as a bearer token. Never use a Storm key.
Authorization: Bearer sci_test0000000000000000000000000000Send and expect JSON with Content-Type: application/json. When something goes wrong, the response looks like this; check code, since the message wording can change:
{ "error": { "code": "invalid_ingest_key", "message": "That ingest key isn't valid." } }Every response has an X-Request-Id header. Include it if you ask for help.
Sending Reports
POST /logs/ingest sends up to 50 accounts for one game from one PC.
{
"v": 1,
"universeId": 6765805766,
"placeId": 104715542330896,
"jobId": "00000000-0000-0000-0000-000000000000",
"pc": "XEON V4",
"records": [
{
"username": "ExamplePlayer1",
"userId": 123456789,
"fields": { "wallet": 45000, "bank": 230000, "netWorth": 275000, "atmLevel": 22 }
}
]
}| Key | Required | What it is |
|---|---|---|
v | Yes | Always 1. |
universeId | Yes | The game's universe ID (game.GameId). BlockSpin is 6765805766. |
placeId | No | The place ID (game.PlaceId). |
jobId | No | The server's job ID (game.JobId), used for sightings panels. |
pc | Yes | The PC name, 1 to 64 characters. Accounts are grouped by it in the console. |
records | Yes | 1 to 50 accounts. |
Each account in records has:
| Key | Required | What it is |
|---|---|---|
username | Yes | The Roblox username. |
userId | No | The Roblox user ID. |
fields | Yes | The game's values, using the field names in Game Fields. |
credentials | No | password and cookie, but only as the encrypted values Storm Manager x writes to the credentials file, passed on exactly as they are. Plain text is always refused. |
Keep the whole request under 64 KB. Values for fields the game doesn't have are left out, not refused. If you send the same account several times in quick succession, Storm Logs keeps the latest one.
The Response
You get a 200 whenever the request itself is valid, even if some accounts were refused:
{
"accepted": 1,
"rejected": [
{
"index": 1,
"username": "ExamplePlayer2",
"errors": [{ "path": "fields.atmLevel", "code": "min", "message": "Below the minimum" }]
}
],
"dropped": [{ "index": 0, "fields": ["unknownKey"] }],
"schemaVersion": 3,
"nextIntervalSec": 10
}acceptedis how many accounts were saved.rejectedlists refused accounts by their position inrecords, with what was wrong.droppedlists values that were left out because the game doesn't track them.schemaVersionchanges when the game's fields change. When it does, fetch the fields again.nextIntervalSecis how many seconds to wait before your next send. Always follow it.
Common reasons an account is refused: a value is the wrong kind or out of range, a value looks like a password or cookie, the username isn't valid, your plan's account limit is full, or the account was deleted on the website a moment ago.
Games You Haven't Added
You can report a supported game the account doesn't track yet. Storm Logs adds it on the first request and saves the reports as usual. A game that isn't supported gets 404 game_not_configured.
Fetching a Game's Fields
GET /logs/ingest/schema?universeId=6765805766 returns the fields for a game, so you can check values before sending and skip ones nobody needs.
{
"schema": {
"version": 1,
"fields": [
{ "key": "wallet", "label": "Pocket", "type": "money" },
{ "key": "atmLevel", "label": "ATM", "type": "int", "min": 0 }
]
},
"schemaVersion": 3,
"unknownFields": "drop",
"minIntervalSec": 5
}Errors
| Status | Code | What to do |
|---|---|---|
| 401 | invalid_ingest_key | The key is wrong or was regenerated. Stop and ask the user for their current Reporter Key. |
| 402 | entitlement_expired, entitlement_required | The account's plan isn't active. Pause and try again much later. |
| 402 | entitlement_limit | The game couldn't be added because the plan's game limit is full. Stop reporting this game. |
| 403 | account_suspended | The account is suspended. Stop. |
| 404 | game_not_configured | The game isn't supported. Stop reporting this game. |
| 413 | payload_too_large | Send fewer accounts per request. |
| 422 | validation_failed | The request itself is malformed; details says how. Fix your reporter. |
| 429 | rate_limited | You're sending too much. Wait the number of seconds in the Retry-After header. |
| 503 | unavailable | Try again shortly, waiting longer each time. |
When requests fail, wait before retrying and wait longer each time (for example 1, 2, 4 seconds and so on, up to a minute).
Example
curl https://production.cartier.gg/api/stormx/v1/logs/ingest \
-H "Authorization: Bearer sci_test0000000000000000000000000000" \
-H "Content-Type: application/json" \
-d '{"v":1,"universeId":6765805766,"pc":"XEON V4","records":[{"username":"ExamplePlayer1","fields":{"wallet":4800}}]}'