---
title: "Record a fix: finds the newest record that carried the code and the first after it that did not, issues the signed remediation receipt with the declared fix inside it, and queues the second observer on the fixed URL (licence for the domain, or owner)"
method: POST
path: "/api/workflow/record"
---

# Record a fix: finds the newest record that carried the code and the first after it that did not, issues the signed remediation receipt with the declared fix inside it, and queues the second observer on the fixed URL (licence for the domain, or owner)

`POST /api/workflow/record`

## Request

- Base URL: `https://crawlcheck.io`
- URL: `https://crawlcheck.io/api/workflow/record`
- Auth: none required

## Request body

- object
  - `domain` string, required
  - `code` string, required
  - `declared` object
    - `what` string
    - `by` string
    - `at` string
    - `deployed_at` string

## Response `200`

recorded: receipt, before, after, corroboration_queued

- object, nullable
  - `ok` boolean, nullable
  - `state` string, nullable
  - `domain` string, nullable
  - `code` string, nullable
  - `receipt` object, nullable
    - `id` string, nullable
    - `url` string, nullable
    - `existing` boolean, nullable
  - `before` object, nullable
    - `id` string, nullable
    - `at` string, nullable
    - `grade` string, nullable
    - `score` number, nullable
  - `after` object, nullable
    - `id` string, nullable
    - `at` string, nullable
    - `grade` string, nullable
    - `score` number, nullable
  - `corroboration_queued` string, nullable

## Other responses

- `403`: not the domain's owner
- `422`: no before/after pair: open, never seen, or no records

---

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