Documentation menu

Errors

Status codes the API returns and what to do about each one.

View as Markdown

A successful request returns status 200 and a JSON body. When the window holds no records, the body is {"data": []}; that is not an error. Errors return a JSON body with an error message.

StatusBodyCause
400{"error": "Missing required parameters"}table_name or id is missing.
400{"error": "Invalid time parameters"}start_time or end_time is missing or not a whole number.
400{"error": "'ascending=false' is supported for 'data', 'env' and 'connected' tables only."}ascending=false was sent for acc, gyr, ain or fft.
400{"error": "'timestamps_only' is currently supported for 'data' table only."}timestamps_only=true was sent for a table other than data or env.
403{"message": "Forbidden"}The x-api-key header is missing or the key is not valid.
500{"error": "Internal Server Error: ..."}The request could not be completed, for example because table_name is not one of the listed tables.

If a 500 error repeats for a request that looks correct, send us the full URL (without your key) through the contact page.