Corestream API Engine
Connect your state-wide clinical databases, asynchronous learning applications, or IoT telemetry nodes directly to the Corestream cloud infrastructure.
Authentication
The Corestream API uses Bearer Tokens to authorize all API requests. You can generate tokens inside your administrator profile dashboard. All requests must utilize HTTPS, carrying the header credentials below:
POST Telemetry Event
Upload IoT sensor parameters or temperature check logs dynamically.
Request Parameters:
-
node_id(string, required)Unique identifier of the sending telemetry sensor hardware.
-
reading(float, required)Numeric reading logs gathered at edge checkpoints (e.g. moisture level, temperature).
curl -X POST https://corestream.ng/api/v1/telemetry \
-H "Authorization: Bearer SECRET_KEY" \
-H "Content-Type: application/json" \
-d '{
"node_id": "sensor_08_plateau",
"reading": 24.85
}'
POST Create Patient (CoreHealth)
Register clinic patients securely in the regional EHR cloud ledger.
Request Parameters:
-
name(string, required)Full name of the clinic patient.
-
medical_id(string, required)State-issued health insurance code or unique medical record index.
curl -X POST https://corestream.ng/api/v1/patients \
-H "Authorization: Bearer SECRET_KEY" \
-H "Content-Type: application/json" \
-d '{
"name": "Ibrahim Adamu",
"medical_id": "NHIS-9824-A"
}'