API referenceTimeseries
POST /api/Timeseries/GetValuesCsv
Gets timeseries values by ID with an offset specified in the request, as a CSV file. MCP endpoint: same semantics as GetValues, but returns compact CSV ("timestamp,value" rows) instead of a JSON array, to reduce token usage in LLM tool responses. Not intended for the timeseries UI/API consumers — use GetValues there.
POST
/api/Timeseries/GetValuesCsvcurl -X POST "/api/Timeseries/GetValuesCsv" \
-H "Authorization: $ATLAS_ETRM_API_DOCUMENTATION_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"data": {
"dateFrom": "2022-01-01T00:00:00",
"dateTo": "2022-01-02T00:00:00",
"id": 1,
"timezone": 0,
"fill": false,
"openLeft": false,
"openRight": true
}
}'Authorization
AuthorizationstringheaderrequiredJWT Authorization header using the Bearer scheme. Enter your token including the 'Bearer ' prefix (e.g. 'Bearer eyJ...').
Body
application/json
dataEtrmApiGateway.DTOs.Timeseries.DateRangeTimeseriesExternalRequest
Response
application/json
Returns a CSV file with "timestamp,value" rows, including potential null values if no data exists for the specified range.
string<binary>
"string"