Get sample

Get sample

Get a sample.

GEThttps://studio.edgeimpulse.com/v1/api/{projectId}/raw-data/{sampleId}
Path parameters
projectId*integer

Project ID

sampleId*integer

Sample ID

Query parameters
Response

OK

Body
success*boolean

Whether the operation succeeded

errorstring

Optional error description (set if 'success' was false)

sample*Sample (object)
payload*RawSamplePayload (object)

Sensor readings and metadata

totalPayloadLength*integer

Total number of payload values

Request
const response = await fetch('https://studio.edgeimpulse.com/v1/api/{projectId}/raw-data/{sampleId}', {
    method: 'GET',
    headers: {},
});
const data = await response.json();
Response
{
  "success": false,
  "error": "text",
  "sample": {
    "id": 2,
    "filename": "idle01.d8Ae",
    "signatureValidate": true,
    "signatureMethod": "HS256",
    "signatureKey": "text",
    "created": "2024-07-14T08:11:01.159Z",
    "lastModified": "2024-07-14T08:11:01.159Z",
    "category": "training",
    "coldstorageFilename": "text",
    "label": "healthy-machine",
    "intervalMs": 16,
    "frequency": 62.5,
    "originalIntervalMs": 16,
    "originalFrequency": 62.5,
    "deviceName": "text",
    "deviceType": "text",
    "sensors": [
      {
        "name": "accX",
        "units": "text"
      }
    ],
    "totalLengthMs": 0,
    "added"