Filing sandbox
Try draft UK company accounts against FileClerk test cases without submitting a filing.
Last updated 23 November 2026
Try a filing
Get a free key, submit a synthetic company, then poll the signed identifier.
export async function tryARegistryFiling(
origin = "https://fileclerk.co.uk",
request: (url: string, init?: RequestInit) => Promise<Response> = fetch,
) {
const issued = await request(origin + "/api/v1/sandbox/key")
if (!issued.ok) throw new Error(`Sandbox key returned HTTP ${issued.status}`)
const { key } = (await issued.json()) as { key: string }
const headers = { "x-api-key": key, "idempotency-key": "first-test" }
const submission = await request(origin + "/api/v1/sandbox/filings/accounts", {
method: "POST",
headers: { ...headers, "content-type": "application/json" },
body: JSON.stringify({ company_number: "00000081" }),
})
if (!submission.ok) throw new Error(`Sandbox request returned HTTP ${submission.status}`)
const { id } = (await submission.json()) as { id: string }
const status = await request(origin + "/api/v1/sandbox/filings/" + encodeURIComponent(id), { headers })
if (!status.ok) throw new Error(`Sandbox status returned HTTP ${status.status}`)
return status.json()
}
Test cases
The sandbox's company list includes acceptance, a rejected authentication code, an already filed period, a gateway timeout, an LLP and companies in Scotland and Northern Ireland.
Repeat the same company and idempotency key to get the same identifier. Use the same sandbox key to retrieve the simulated filing.