For AI agents: the FileClerk index is at https://fileclerk.co.uk/llms.txt. Add .md to the address of any guide for its Markdown.
Filing sandbox
Try each filing outcome before a live one. Nothing is sent to Companies House.
Sandbox key#
Where it runs#
- MCP
get_sandbox_key - REST
GET/api /v1 /sandbox /key
Choose Filing sandbox in Console for a revocable sandbox key. Use it in x-api-key on the sandbox routes. It expires after 24 hours and can access only simulated filings.
Test companies#
Where it runs#
- MCP
list_sandbox_companies - REST
GET/api /v1 /sandbox /companies
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.
Try a filing#
Where it runs#
- MCP
file_sandbox_accounts - MCP
get_sandbox_filing - REST
POST/api /v1 /sandbox /filings /accounts - REST
GET/api /v1 /sandbox /filings /{id}
Get a free key, simulate a filing for a test company, then poll the signed identifier.
export async function trySandboxFiling(
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()
}
An agent does the same at https://fileclerk.co.uk/mcp with get_sandbox_key, list_sandbox_companies, file_sandbox_accounts and get_sandbox_filing.