Skip to Content
PalpableDocs
For developers

Saved readings API

Fetch a Palpable project's saved sensor readings over REST as JSON or CSV — GET /api/projects/{projectId}/readings with a pk_ project key. Parameters, columns, limits and errors.

A project saves its readings over time. This API returns them, for a chart of last week, a spreadsheet or a report. For readings as they happen, use the project API.

How often a reading is saved, and for how long, is set in the project's saving settings in the app.

Request

GET https://palpable.technology/api/projects/{projectId}/readings
Authorization: Bearer pk_…

The key is a project key from the project's Manage API. A key that can only view is enough. An account key works on projects its person owns. A view's share link is refused.

Any website can call this straight from the browser. Use a view-only key there: anyone who opens the page can read the key. More in API keys.

ParameterDefault
from7 days before toISO 8601 time, for example 2026-11-15T00:00:00Z. Included.
tonowISO 8601 time. Not included. Must be later than from.
capabilityallComma-separated capability names, for example temperature,humidity. Up to 20.
formatjsonjson or csv.

Rows come oldest first, then by module id and capability.

Response

curl -sS -H "Authorization: Bearer $PALPABLE_KEY" \
  "https://palpable.technology/api/projects/$PALPABLE_PROJECT_ID/readings?capability=temperature"
200 OK
{
  "projectId": "3f9c…e21",
  "from": "2026-11-16T09:00:00.000Z",
  "to": "2026-11-23T09:00:00.000Z",
  "count": 2,
  "rows": [
    { "time_utc": "2026-11-16T09:00:00.000Z", "module_id": "modulino-thermo", "capability": "temperature", "value": 21.4, "unit": "°C" },
    { "time_utc": "2026-11-16T09:05:00.000Z", "module_id": "modulino-thermo", "capability": "temperature", "value": 21.6, "unit": "°C" }
  ]
}
FieldType
time_utcstringStart of the saved interval, ISO 8601, UTC.
module_idstringThe part, by catalogue id.
capabilitystringWhat was measured, for example temperature.
valuenumberThe saved value for that interval.
unitstring or nullThe unit, when there is one.

Limits and errors

One response holds at most 100,000 rows. A request that matches more is refused, never cut short:

413
{
  "error": "Too many readings",
  "reason": "More than 100000 readings match. Narrow from and to, or ask for fewer capabilities.",
  "maxRows": 100000
}

Ask for a shorter range, or one capability at a time.

Errors are JSON with error and reason; a 400 also names the field.

StatusWhen
400projectId is not a UUID; from, to, capability or format is malformed; from is not earlier than to.
401No Authorization: Bearer header, or the token is not a key.
403The key can't open this project (API key is not valid for this project), or the token is a view's share link.
413More than 100,000 rows match.
429More than 30 requests a minute from one IP address. Retry-After says how many seconds to wait.
500Palpable could not read the saved data. reason says why.

On this page