---
title: "Quote a bulk Cloud-telemetry activation. Sends nothing."
method: POST
path: "/otel/cloud-telemetry/bulk-jobs/estimate"
tags: ["OTel"]
---

# Quote a bulk Cloud-telemetry activation. Sends nothing.

`POST /otel/cloud-telemetry/bulk-jobs/estimate`

## Request

- Base URL: `/api` (relative, and the document was published on a file host, not at the API’s origin)
- URL: `/api/otel/cloud-telemetry/bulk-jobs/estimate`
- Auth: HTTP bearer

## Request body

- EstimateBulkActivationRequest: What to quote. Exactly one of `all_eligible_projects` and a non-empty `project_ids` must be given. Defaulting an omitted scope to "everything" would make a typo cost money; defaulting it to "nothing" would make the endpoint silently useless.
  - `all_eligible_projects` boolean: Quote every project that still writes its spans to this instance.
  - `project_ids` integer[], nullable: Quote exactly these projects. Projects that are already Cloud-primary are accepted here — re-shipping a window is the retry path — but are never picked up by `all_eligible_projects`.
  - `window_from` string, date-time, nullable: Start of the window to ship. Defaults to the oldest span local retention can still be holding.
  - `window_to` string, date-time, nullable: End of the window to ship. Defaults to now.

## Response `200`

Per-project and total estimate, plus a plan token

- BulkActivationEstimateResponse: The quote.
  - `active_batch_id` string, nullable: A job already running. Submitting would be refused with `409`, so the client can offer "watch the running job" instead of a button that fails.
  - `configured` boolean, required: Whether a bulk activation could run at all right now. `false` is the normal state on an unlinked instance and must render as onboarding, not as an error.
  - `eligible_projects` integer, required
  - `estimated_bytes` integer, required
  - `estimated_spans` integer, required: Totals over the **eligible** projects only — what confirming this quote would actually send.
  - `plan_expires_at` string, date-time, nullable
  - `plan_hash` string, nullable: Stable identity of the project set and windows, recorded on the job.
  - `plan_token` string, nullable: The handle to send back to `POST /bulk-jobs`. `None` when nothing is eligible: there is no bill to confirm, and handing back a token that would be refused on submit would be a dead end with no explanation attached.
  - `projects` BulkActivationProjectEstimateResponse[], required: Every project considered, eligible or not, ascending by id.
    - `average_span_bytes` number, double, required
    - `eligible` boolean, required: Whether this project is part of the plan the token covers.
    - `estimated_bytes` integer, required: `average_span_bytes * estimated_spans`, rounded up. Temps Cloud's own acknowledgement is authoritative; this is what this instance can know before sending.
    - `estimated_spans` integer, required: Exact count of local spans in the window. Zero for a skipped project — nothing was counted, because nothing would be sent.
    - `fidelity` 'metered' | 'queryable', required: Per-project fidelity tier for the optional Temps Cloud telemetry mirror.
    - `project_id` integer, required
    - `sampled_spans` integer, required: How many spans were actually projected to derive the average.
    - `setup_path` string, nullable: Where the operator goes to unblock it, when anywhere.
    - `skip_detail` string, nullable: The same reason as a sentence, so no client has to map an enum to prose.
    - `skip_reason` string, nullable: Machine-readable reason it is not, e.g. `fidelity_not_queryable`.
    - `window_from` string, date-time, required
    - `window_to` string, date-time, required
  - `reason` string, nullable
  - `setup_path` string, nullable
  - `skipped_projects` integer, required
  - `total_projects` integer, required
  - `window_from` string, date-time, required
  - `window_to` string, date-time, required

## Other responses

- `400`: Neither or both scopes given, or an invalid window
- `401`: Unauthorized
- `403`: Insufficient permissions
- `409`: Temps Cloud is not ready for telemetry
- `500`: Internal server error

## Changes

- **2026-11-09** `12896146b193`: 5 breaking
  - removed the required property `extensions` from the response with the `400` status
  - removed the required property `extensions` from the response with the `401` status
  - removed the required property `extensions` from the response with the `403` status
  - removed the required property `extensions` from the response with the `409` status
  - …1 more
- **2026-10-05** `4b228ebed583`: 5 info
  - added the optional property `status` to the response with the `400` status
  - added the optional property `status` to the response with the `401` status
  - added the optional property `status` to the response with the `403` status
  - added the optional property `status` to the response with the `409` status
  - …1 more
- **2026-10-05** `63a80791dc58`: 5 warning
  - removed the optional property `status` from the response with the `400` status
  - removed the optional property `status` from the response with the `401` status
  - removed the optional property `status` from the response with the `403` status
  - removed the optional property `status` from the response with the `409` status
  - …1 more
- …earlier changes not shown

[Operation history](https://skmtc.dev/gotempsh/apis/temps/changes/otel/cloud-telemetry/bulk-jobs/estimate/post.md)

---

[API](https://skmtc.dev/gotempsh/apis/temps.md) - [All operations](https://skmtc.dev/gotempsh/apis/temps/llms.txt) - [OpenAPI document](https://skmtc.dev/gotempsh/apis/temps/revisions/3b040526eb43?raw)
