Getting started
Concepts
- Model concepts
- API concepts
- API versions
- Entitlements
- Filters
- Request parameters
- Usage quota
- Error codes
Services
Parameters
- after
- aggregate
- aggregateIncrementFrom
- cursor
- dateFormat
- descending
- entity
- envelope
- fields
- format
- from
- groupBy
- groupById
- groupByIdAndTime
- groupByTo
- includeMetaData
- inline
- inlineLatest
- inlineTimeseries
- limit
- modulus
- nextUrl
- part
- pivot
- rankBy
- requestTimeout
- returnPreSignedUrl
- showMessage
- showStreamCursor
- to
- trace
- verifyLinks
- wait
Deprecated parameters
Datasets
- ECR: timeseries and observations
- ECR: usage patterns
- fiindices: retrieving index data
- Parsing: asset classes
- Parsing: best practices
Samples
Error codes
Error response
A request that fails is answered with an HTTP status code and a JSON body:
{
"errorCode": "INVALID_PARAMETER_VALUE",
"errorMessage": "limit must be smaller or equal to 10000",
"requestId": "A011.1598447117.14"
}
The body is JSON also when another format was requested. For format=HTML the response is an error page, and for CSV the message is returned as text. Log the requestId and quote it when you contact support.
If the error occurs after the server has started to send data, the status is 200 and the response is incomplete. A truncated response ends with a line -- Response truncated due to CODE : message --. Treat a response that does not parse completely as failed.
Important: New error codes can be added at any time. Handle an error code that you do not know on the basis of the HTTP status.
Status codes
| Status | Meaning | Error codes | What to do |
|---|---|---|---|
| 400 | The request is not valid, or the API key is not valid. | INVALID_API_KEY, INVALID_USERNAME_OR_PASSWORD, INVALID_PARAMETER, INVALID_PARAMETER_VALUE, MISSING_PARAMETER, FROM_BIGGER_THAN_TO, INVALID_RANGE_VALUE, INVALID_CURSOR, TOO_MANY_RESULTS, INTERNAL_LIMIT_EXCEEDED, NO_MAPPING_TO_SERVICE, SERVICE_UNSUPPORTED, SERVER_REQUEST_TIMEOUT, CLIENT_REQUEST_TIMEOUT, BAD_REQUEST | For INVALID_API_KEY, obtain a new key and repeat the request once. For other codes, correct the request. Do not repeat it unchanged. For INTERNAL_LIMIT_EXCEEDED and TOO_MANY_RESULTS, use more selective filters. |
| 401 | The user is not valid. | INVALID_USER | Check your credentials and account. |
| 403 | You are not entitled to the data. | NOT_ENTITLED | Contact your account manager. |
| 404 | The namespace, entity, instance or file does not exist. | NAMESPACE_DOES_NOT_EXIST, TYPE_DOES_NOT_EXIST, INSTANCE_DOES_NOT_EXIST, FILE_NOT_FOUND, NOT_FOUND | Correct the request. |
| 429 | A quota or the parallel request limit was exceeded. | TOO_MANY_REQUESTS, QUOTA_EXCEEDED, APIKEY_LIMIT_EXCEEDED, LOGIN_ATTEMPTS_EXCEEDED | Wait, then retry with increasing delays. See Usage quota. |
| 500 | The server failed. | INTERNAL_FAILURE | Retry with a delay. If it persists, contact support with the requestId. |
| 502, 503 | The service is not available. | NOT_SUPPORTED_ON_PARTITION, SERVICE_UNAVAILABLE | Retry with a delay. |
An invalid or expired API key is reported with status 400 and the error code INVALID_API_KEY, not with status 401. In a browser, such a request to a HTML page redirects to the sign-in page.
Retrying
- Retry on 429, 500, 502, 503 and 504, with increasing delays. The server sends
Retry-After: 1with 429, 503 and 504, which is a minimum. AfterQUOTA_EXCEEDEDa longer delay is appropriate because the quota is measured over a minute or an hour. - Retry once with a new API key after
INVALID_API_KEY. - Do not retry other 4xx errors without changing the request.