*.labels
file, with or without the need to go through the uploader (as long as it’s in the same batch). See Labels acquisition formatsPOST /api/training/files
- for gathering training data.POST /api/testing/files
- for gathering testing data. If you have the ‘Live classification’ page open in your browser the file will automatically be classified against the current impulse.POST /api/anomaly/files
- for anomaly data from deployed devices.files
endpoints expect Content-Type
to be multipart/form-data
, there are also available legacy endpoints that require simpler requests:
POST /api/training/data
POST /api/testing/data
POST /api/anomaly/data
x-api-key
- API Key (required).x-label
- Label (optional). If this header is not provided a label is automatically inferred from the filename through the following regex: ^[a-zA-Z0-9\s-_]+
- For example: idle.01 will yield the label idle. If you don’t want to assign the label nor derive it from the file name, provide an x-no-label
header with the value 1
.x-disallow-duplicates
- When set, the server checks the hash of the message against your current dataset (optional). We’d recommend setting this header but haven’t enabled it by default for backward compatibility.x-add-date-id
: 1 - to add a date ID to the filename. For example: if you upload with filename test.wav the file name will be test - set this option and we’ll add a unique ID to the end (this is what we use on the daemon to create unique names).Content-type
- format of data used. Can be application/cbor
, application/json
, multipart/form-data
.text/plain
. The following response codes may be returned:
200
- Stored the file, file name is in the body.400
- Invalid message, e.g. fields are missing, or are invalid. See body for more information.401
- Missing x-api-key
header, or invalid API key.421
- Missing header, see body for more information.500
- Internal server error, see body for more information.data
endpointapi/training/data
endpoint is the following:
files
endpointapi/training/files
endpoint is the following: