OneTablet API Documentation

Get one report

POST/management/reports/fetchReport

Get one report. When it is ready, each entry in files carries a signed downloadUrl that works for 24 hours (expiresAt) with no credentials — treat it as a secret. Every call mints a fresh URL, so an expired one never requires regenerating the report: call this again.

404 when reportId does not exist or belongs to another organization — the two are indistinguishable by design.

Safe to retry: this operation is read-only and idempotent.

Request

application/json
required
  • reportIdstring

    The reportId returned by createReport or listed by fetchReports. Required.

Responses

200 — The report — with `files` and fresh download URLs once it is `ready`.

Headers

  • x-mealco-tx-idstringoptional

    The correlation id for this call, echoed on every response — a 200 exactly as much as a 400, 401 or 500. Quote it when reporting a problem and we can find every log line for the request, in every service it touched. You may also send your own x-mealco-tx-id on the request and we adopt it, so your correlation id becomes ours. Not marked required for one reason: a request whose JSON body is malformed is rejected before it reaches an operation, so no id exists yet and that single response carries neither this header nor the txId field of the error body. Everything that reaches an operation carries it.

  • reportReport

    The report. When status is ready it carries files, each with a fresh download URL.

About Reports

Partner reporting. Coverage and every report are tenant-scoped and never global: the organization is the one the API key authenticates, and no request field can name another.

createReport is a write — a read-only API key is refused with 403.

Idempotency-Key is accepted on createReport and IGNORED today, so a retried createReport requests a second report with a new reportId. That wastes platform budget but corrupts nothing — each report is an independent file. Treat a timeout as "may have succeeded" and check fetchReports before retrying.