Skip to main content
GET
/
data_streams
/
{key}
/
health
Get data stream ingestion health
curl --request GET \
  --url https://api.endclose.com/v1/data_streams/{key}/health \
  --header 'X-API-KEY: <api-key>'
{
  "records_count": 123,
  "import_batches_count": 123,
  "import_batches_record_sum": 123,
  "orphan_records_count": 123,
  "bulk_requests": {
    "pending": 123,
    "processing": 123,
    "completed": 123,
    "failed": 123,
    "cancelled": 123,
    "stuck": 123
  },
  "last_ingestion_at": "2023-11-07T05:31:56Z"
}

Documentation Index

Fetch the complete documentation index at: https://endclose.com/docs/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

X-API-KEY
string
header
required

Path Parameters

key
string
required

The immutable data stream key

Response

Health snapshot

Ingestion health snapshot for a data stream. All counts are indexed lookups; safe to poll.

records_count
integer
import_batches_count
integer
import_batches_record_sum
integer

Sum of record_count across all import batches. Drift from records_count indicates orphaned or extra records.

orphan_records_count
integer

Records on this stream with no import_batch_id (typically created via POST /records or POST /records/bulk)

bulk_requests
object
last_ingestion_at
string<date-time> | null

Most recent record created_at on this stream