Skip to main content

Developers

API authentication

Authenticate FileClerk API requests with a key or OAuth access token.

Last updated 23 November 2026

Request a key using an email address you control. Open the verification link to reveal the key once.

TypeScript key request
export async function requestKey(
  email: string,
  origin = "https://fileclerk.co.uk",
  request: (url: string, init?: RequestInit) => Promise<Response> = fetch,
) {
  const response = await request(origin + "/api/v1/keys", {
    method: "POST",
    headers: { "content-type": "application/json" },
    body: JSON.stringify({ email }),
  })
  if (!response.ok) throw new Error(`Key request returned HTTP ${response.status}`)
  return response.json()
}

Send a production API key in the x-api-key header. Signed receipt requests also need the current receipt token in the Authorization header as a Bearer credential.

Company lookups allow 60 requests per hour per IP or 1,000 per hour with a key. Without a key, one IP gets 5 scanned reads and 2 exports per hour. Sandbox keys work on the simulation routes for 24 hours.

Workspace integrations

Create a workspace key under Settings, then Integrations in Console. Send it in the Authorization: Bearer header for REST or as a connection header for MCP. Select Manage deadlines when creating a workspace data key to let it change return marks and your deadline email categories.

Choose Filing sandbox in Console for a revocable test key. Use it in x-api-key on the sandbox routes. It expires after 24 hours and can access only simulated filings.

Use list_workspace_companies to list saved companies and get_workspace_deadline_settings to read the current mark revision before editing. The OpenAPI spec lists the REST endpoints.