---
title: "Record"
method: POST
path: "/internal/instructions/record"
tags: ["instructions"]
---

# Record

`POST /internal/instructions/record`

## Request

- Base URL: `https://api.brickway.app` (the document declares no server; this is the origin it was published from)
- URL: `https://api.brickway.app/internal/instructions/record`
- Auth: none declared

Record a batch of outcomes.

Each result is recorded independently. One malformed or losing row must not
discard the rest of a 15-minute run's work, so a failure here is logged with its
URL and the batch continues; the URL simply stays pending and is retried. The
RPC owns the state machine, including refusing to reopen a terminal row.

## Headers

- `x-instructions-token` string

## Request body

- RecordRequest
  - `results` MirrorResult[], required
    - `url` string, required
    - `asset_id` string, required
    - `status` 'mirrored' | 'gone' | 'retry', required
    - `r2_key` string, nullable
    - `bytes` integer, nullable
    - `etag` string, nullable
    - `sha256` string, nullable
    - `error` string, nullable

## Response `200`

Successful Response

- RecordResponse
  - `recorded` integer, required

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/brickway/apis/brickway-api.md) · [All operations](https://skmtc.dev/brickway/apis/brickway-api/llms.txt) · [OpenAPI document](https://skmtc.dev/brickway/apis/brickway-api/revisions/643a9d231869?raw)
