---
title: "Preview Call Tag Backfill"
method: POST
path: "/call-tag-backfills/preview"
tags: ["call-tag-backfills"]
---

# Preview Call Tag Backfill

`POST /call-tag-backfills/preview`

## Request

- Base URL: `https://api-docs.upsmith.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api-docs.upsmith.com/call-tag-backfills/preview`
- Auth: one of:
  - API key in header `x-api-key`
  - HTTP bearer

## Headers

- `organization-id` string, nullable
- `x-user-id` string, nullable
- `timezone` string
- `x-actor-email` string, nullable
- `x-request-source` string, nullable
- `x-operation-id` string, nullable
- `x-commit-message` string, nullable
- `x-confirmation-id` string, nullable
- `x-chat-id` string, nullable

## Request body

- CallTagBackfillPreviewRequest
  - `definition_ids` string[], required
  - `lookback_days` 1 | 3 | 7 | 14 | 30 | 60 | 90
  - `selection_filters` CallTagBackfillSelectionFilter[]
    - `field` 'direction' | 'media_kind' | 'conversation_type' | 'handled_by_voice_agent', required
    - `in` string[], required

## Response `200`

Successful Response

- CallTagBackfillPreviewResponse
  - `definitions` CallTagBackfillDefinitionPreview[], required
    - `definition_id` string, required
    - `revision_id` string, required
    - `label` string, required
    - `funnel` CallTagBackfillFunnelStage[], required
      - `stage` string, required
      - `remaining_calls` integer, required
      - `field` string, nullable
      - `values` string[]
    - `eligible_calls` integer, required
  - `window_start` string, date-time, required
  - `window_end` string, date-time, required
  - `lookback_days` 1 | 3 | 7 | 14 | 30 | 60 | 90
  - `selection_filters` CallTagBackfillSelectionFilter[]
    - `field` 'direction' | 'media_kind' | 'conversation_type' | 'handled_by_voice_agent', required
    - `in` string[], required
  - `run_funnel` CallTagBackfillFunnelStage[]
    - `stage` string, required
    - `remaining_calls` integer, required
    - `field` string, nullable
    - `values` string[]
  - `estimated_credits` integer, required
  - `allowance_limit` integer, nullable
  - `allowance_period_start` string, date-time, nullable
  - `allowance_period_end` string, date-time, nullable
  - `consumed_credits` integer, required
  - `actively_reserved_credits` integer, required
  - `remaining_before` integer, nullable
  - `remaining_after` integer, nullable
  - `bypasses_allowance` boolean
  - `can_start` boolean, required
  - `blocked_reason` 'allowance_not_configured' | 'no_eligible_calls' | 'insufficient_credits'
  - `fingerprint` string, required

## Other responses

- `422`: Validation Error

---

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