Quickstart
Step-by-step guide to your first Ours Privacy Ingest API requests, with curl examples for tracking events, identifying visitors, and backfilling data.
Make your first Ingest API calls. You'll need a source API key. See Authentication if you haven't created one yet.
All examples use curl. Replace YOUR_API_KEY with your actual key, and include at least one of userId, externalId, or email to identify the visitor.
Prefer an SDK? See SDKs. The Ingest API is wrapped for Node.js, Python, Go, Ruby, PHP, C#, and Kotlin. Everything below maps one-to-one to an SDK method.
Track an Event
Send a single event with POST /track:
curl -X POST https://api.oursprivacy.com/api/v1/track \
-H "Content-Type: application/json" \
-d '{
"event": "Purchase",
"userId": "user123",
"token": "YOUR_API_KEY",
"properties": {
"amount": 99.99,
"product": "Premium Plan"
}
}'Identify a Visitor
Set or update visitor properties without firing an event with POST /identify:
curl -X POST https://api.oursprivacy.com/api/v1/identify \
-H "Content-Type: application/json" \
-d '{
"userId": "user123",
"token": "YOUR_API_KEY",
"userProperties": {
"email": "user@example.com",
"firstName": "John",
"lastName": "Doe",
"plan": "premium"
}
}'To both identify a visitor and record an event in one call, use /track and include the visitor properties there.
Backfill a Past Event
Set the time field (milliseconds since the UTC epoch) to record an event with its original timestamp. You can send events up to one year old.
curl -X POST https://api.oursprivacy.com/api/v1/track \
-H "Content-Type: application/json" \
-d '{
"event": "Purchase",
"userId": "user123",
"token": "YOUR_API_KEY",
"time": 1754874909594
}'Backfilled events appear in Recent Events ordered by their time value, not when they were sent.
Send Many Events at Once
For replay, backfill, or high-volume sends, POST /batch accepts one top-level token plus an events[] array of /track-shaped rows. Review the response results array row by row and retry only the rows that failed. See the Batch Events reference for the full response format.
Verify in the Dashboard
Confirm events are arriving in Recent Events. Use your Test Mode key first to validate the integration without dispatching to destinations.
Error Handling
| Status | Meaning |
|---|---|
200 | Event accepted |
400 | Missing required fields or malformed JSON |
401 | Missing or invalid API key |
413 | Event is larger than 1 MiB; shrink it before resending |
500 | Event not accepted; retry with backoff (the Node, Python, Go and Kotlin SDKs do this for you) |
OpenAPI Specification
The full OpenAPI spec is available at:
GET https://api.oursprivacy.com/api/v1/openapiUse it to generate clients, explore the schema, or import into tools like Postman. See OpenAPI Schema for the rendered reference.
Next Steps
- Authentication: source keys, Test Mode, and rotation.
- SDKs: language wrappers around this API.
- Track Events API reference: the full request and response schema.
How is this guide?

