Skip to main content
POST
Ingest sensor events

Authorizations

Authorization
string
header
required

An InsightChain API key: ic_live_... for your organization, ic_test_... for its sandbox

Headers

Idempotency-Key
string

Makes a retry safe for 24 hours: the same key and body replays the first answer (Idempotency-Replayed: true), another body is 422 idempotency_key_reused, a request still running is 409 idempotency_key_in_use

Required string length: 1 - 128
Pattern: ^[\x21-\x7E]{1,128}$

Body

application/json
events
object[]
required
Required array length: 1 - 1000 elements
connection
string

A name for where the reads come from (default 'sensing')

Maximum string length: 100

Response

OK

run_id
string<uuid>
required

The ingest run this push was recorded as

connection
string
required

The connection the events were filed under

status
enum<string>
required

success: no event was rejected; partial: some were rejected and some new ones stored; failed: some were rejected and no new one stored

Available options:
success,
partial,
failed
results
object
required
error_count
integer
required
errors
object[]
required
duration_ms
integer
required

Milliseconds the request took

request_id
string
required

Quote this when asking about the request; also the X-Request-ID header