---
title: "Read how far the exploration of the app's rules has come"
method: GET
path: "/v1/apps/{id}/mining/campaign"
tags: ["Apps"]
---

# Read how far the exploration of the app's rules has come

`GET /v1/apps/{id}/mining/campaign`

## Request

- Base URL: `https://api.talonic.com`
- URL: `https://api.talonic.com/v1/apps/{id}/mining/campaign`
- Auth: HTTP bearer

The exploration depth, the rounds planned, used and in flight per phase for the active version's current generation, the next phase, the size of the record cohort, and the spend so far against the app's caps. Requires the `read` access tier on the app.

## Path parameters

- `id` string, uuid, required

## Response `200`

The campaign and its spend.

- object
  - `campaign` AppRulesCampaign
    - `depth` 'light' | 'standard' | 'deep'
    - `generation` integer
    - `app_version` integer
    - `discovery` AppRulesCampaignPhase
      - `planned` integer
      - `used` integer: Rounds that ended having taken at least one step.
      - `in_flight` integer: Rounds running now; they reserve a slot.
    - `hypothesis` AppRulesCampaignPhase
      - `planned` integer
      - `used` integer: Rounds that ended having taken at least one step.
      - `in_flight` integer: Rounds running now; they reserve a slot.
    - `next_phase` 'discovery' | 'hypothesis' | 'null', nullable: The phase of the next live round; null once the campaign is complete.
    - `complete` boolean
    - `external_rounds` object: Rounds driven by an external agent, counted apart from the plan.
      - `ended` integer
      - `open` integer
    - `cohort` object, nullable: The records the rules are checked against, by label; null before the first refresh.
      - `total` integer
      - `positive` integer
      - `censored` integer
      - `refreshed_at` string, date-time
  - `spend` AppRulesSpend: The rounds' own spend estimates; today and this month in UTC.
    - `tokens` object: Usage in tokens.
      - `today` AppRulesTokenTotals
        - `input` integer
        - `output` integer
        - `cache_read` integer
        - `cache_write` integer
        - `total` integer
      - `month` AppRulesTokenTotals
        - `input` integer
        - `output` integer
        - `cache_read` integer
        - `cache_write` integer
        - `total` integer
      - `generation` AppRulesTokenTotals
        - `input` integer
        - `output` integer
        - `cache_read` integer
        - `cache_write` integer
        - `total` integer
    - `today_usd` number
    - `month_usd` number
    - `generation_usd` number
    - `live_rounds_total` integer
    - `dry_rounds_total` integer
    - `max_cost_usd_per_round` number: The effective per-round cap (also in `caps.per_round_usd`).
    - `caps` AppRulesEffectiveSpendCaps
      - `per_round_usd` AppRulesEffectiveCap
        - `value` number: The cap in USD.
        - `source` 'app' | 'platform': Whether the app sets it or the platform default applies.
      - `per_generation_usd` AppRulesEffectiveCap
        - `value` number: The cap in USD.
        - `source` 'app' | 'platform': Whether the app sets it or the platform default applies.
      - `per_month_usd` AppRulesEffectiveCap
        - `value` number: The cap in USD.
        - `source` 'app' | 'platform': Whether the app sets it or the platform default applies.
    - `remaining` object
      - `per_generation_usd` number
      - `per_month_usd` number

## Other responses

- `400`: The request is invalid.
- `401`: Missing or invalid API key.
- `403`: The API key does not have the required scope.
- `404`: The requested resource was not found.
- `422`: The request is well-formed but violates the declared task contract.
- `429`: Daily rate limit exceeded.

## Changes

- **2026-11-26** `622d429de7ea`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/talonic/apis/talonic-api/changes/v1/apps/:id/mining/campaign/get.md)

---

[API](https://skmtc.dev/talonic/apis/talonic-api.md) - [All operations](https://skmtc.dev/talonic/apis/talonic-api/llms.txt) - [OpenAPI document](https://skmtc.dev/talonic/apis/talonic-api/revisions/9f6d53e2ab5e?raw)
