---
title: "Showback spend preview"
method: GET
path: "/v1/cost-allocation/{id}/preview"
tags: ["Cost allocation"]
---

# Showback spend preview

`GET /v1/cost-allocation/{id}/preview`

## Request

- Base URL: `https://api.nops.io`
- URL: `https://api.nops.io/v1/cost-allocation/{id}/preview`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/nops/apis/nops-public-api/docs/v1/cost-allocation/:id/preview/get.ts> (a function with typed inputs; its response is checked against the schema)

Preview allocated spend for a showback. Optional query params: startDate, endDate (YYYY-MM-DD), and dataSource (`live` default, or `processed` for materialized showback views).

## Path parameters

- `id` string, required: Showback ID

## Response `200`

Showback spend preview

- object
  - `data` object, required: JSON object

## Other responses

- `401`: Unauthorized — invalid or missing API key
- `403`: Forbidden — insufficient permissions or entitlement

---

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