---
title: "Destination history (audit trail)"
method: GET
path: "/api/v1/codes/{id}/history"
tags: ["codes"]
---

# Destination history (audit trail)

`GET /api/v1/codes/{id}/history`

## Request

- Base URL: `https://app.qrtap.kg`
- URL: `https://app.qrtap.kg/api/v1/codes/{id}/history`
- Auth: HTTP bearer

Every destination the code has pointed at, newest first. The printed code never changed — only the target did.

## Path parameters

- `id` string, uuid, required

## Response `200`

Destination versions, newest first.

- object
  - `data` HistoryEntry[], required
    - `version` integer, required: 1-based destination version.
    - `target_url` string, required
    - `reason` string, required: Why the version was created.
    - `status` string, required: active | superseded.
    - `activated_at` string, date-time, nullable, required
    - `created_at` string, date-time, required

## Other responses

- `400`: The id path segment is not a UUID.
- `401`: Missing, invalid or revoked API key.
- `404`: No such object in your organization.
- `429`: Limit exceeded — the request had no effect. `error` is `rate_limited` with `scope: "minute"` (a burst brake: wait `retry_after` seconds and continue) or `quota_exceeded` with `scope: "day"` (the workspace's daily quota, counted in UTC; it returns at `reset_at`, the next UTC midnight, and only a higher plan raises it before then).

---

[API](https://skmtc.dev/qrtap/apis/qrtap-rest-api.md) · [All operations](https://skmtc.dev/qrtap/apis/qrtap-rest-api/llms.txt) · [OpenAPI document](https://skmtc.dev/qrtap/apis/qrtap-rest-api/revisions/8af17ac525bd?raw)
