Upload one ECG data frame
const url = 'https://api.cardio.ai/v3/streams/1/frames?timestamp=1';const options = { method: 'POST', headers: {'X-Api-Token': '<X-Api-Token>', 'Content-Type': 'application/octet-stream'}, body: 'binary'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url 'https://api.cardio.ai/v3/streams/1/frames?timestamp=1' \ --header 'Content-Type: application/octet-stream' \ --header 'X-Api-Token: <X-Api-Token>' \ --data binaryAppends a single compressed data frame to an already started ECG stream.
Frames may arrive out of order. The timestamp query parameter, measured in microseconds from stream start, is treated as the primary key. If a frame with the same timestamp already exists, the call returns 409 Conflict.
The frame must use the same frame_format, sample_rate, and lead/channel order that were specified when the stream was started with /v3/streams/start.
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ”Stream identifier.
Query Parameters
Section titled “Query Parameters ”Frame start time in microseconds from stream start.
Request Body required
Section titled “Request Body required ”COMPRESSED_DELTA frame payload.
Responses
Section titled “ Responses ”Operation completed successfully.
Bad Request - missing or invalid parameters.
Example generated
exampleUnauthorized - missing, expired, or invalid token.
Example generated
exampleForbidden - the provided token is not authorized to call this endpoint.
Example generated
exampleNot Found - requested resource does not exist or is unavailable.
Example generated
exampleConflict - current resource state does not allow the operation.
Example generated
exampleToo Many Requests - rate limit exceeded.
Example generated
example