Skip to Content
docs
API

Ingest batch

POST /v1/batch. The one endpoint every SDK uses.

The key identifies the app and environment. A batch holds 1 to 500 events and at most 1 MB; gzip it with Content-Encoding: gzip if you like.

Try it

Paste a development key (uc_pub_dev_…, from Settings ▸ Apps ▸ your app ▸ Environments & keys) and press Send. If your app is on the onboarding screen, the event shows up there. Production keys are refused here on purpose.

POST
/v1/batch

Authorization

key
headerAuthorizationBearer <uc_pub_dev_…>

A development key (uc_pub_dev_…) from Settings ▸ Keys in the app. The playground only accepts development keys.

Request Body

application/json
  1. body

Body of POST https://ingest.uncorrelate.com/v1/batch. Every SDK (Unity, Flutter, HTTP) sends exactly this. Auth: header Authorization: Bearer <key>. Publishable keys (uc_pub_<env>_…) ship inside game builds and can only write events; secret keys (uc_sec_<env>_…) are for game servers and may also set player properties for any player. The key names the game and environment, so neither appears in the body.

sent_at?string

Device clock when the batch left. The server uses it with received_at to correct device clock skew on every event's time.

Formatdate-time
sdk?
events*array<>
Items1 <= items <= 500

Response Body

Batch processed. Check rejected for per-event problems.

application/json
  1. response
accepted*integer

Events kept (duplicates count as accepted).

rejected*array<>
Example Request
curl -X POST 'https://ingest.uncorrelate.com/v1/batch' \  -H 'Authorization: Bearer ' \  -H 'Content-Type: application/json' \  -d '{  "sdk": {    "name": "http",    "version": "1.0"  },  "events": [    {      "event": "level_complete",      "insert_id": "9b2f6a0e-5d1c-4b7e-9a40-0c2d61b2f0a1",      "time": "2026-12-06T15:33:12Z",      "device_id": "docs-playground",      "properties": {        "level": 42,        "world": "ember",        "attempt": 3,        "stars": 2      },      "context": {        "platform": "ios",        "app_version": "4.12.1"      }    }  ]}'
Example Response
{  "accepted": 1,  "rejected": []}

Partial success

Valid events are kept even when others in the batch are rejected; rejected lists each problem by its position in events.

Don't retry rejected events; fix them. Retry the whole batch only on network errors, 429 and 5xx. See Errors and limits.

JSON Schema

The machine-readable schema is published at event-batch.schema.json and purchase.schema.json.

On this page