The public link uses its own token and can be regenerated
A document's public URL now carries its own secret of 64 hexadecimal characters (/d/{secret}) instead of the document identifier. Five new operations regenerate the link of an invoice, quote, proforma, delivery note or sales order, with their MCP tools, and the 422 public_link_not_regenerable. Five new operations, and those that return the URL, updated.
4 December 2026 — A document's public URL is no longer built from its identifier. It now carries its own 256-bit secret, /d/{secret}, of 64 hexadecimal characters that has no relation to the document id. Five new operations let you regenerate the link when it has leaked.
The URL carries its own secret
- What changes in the URL. It used to be
/d/{id}, with the document UUID. It is now/d/{secret}. Whoever has the URL opens the document, so treat it as a credential. - Where you see it. In the
urlfield of the public link of the five documents, inpublic_link.urlof an invoice, in thepublic_urlof the response of creating an invoice and in thepublic_urlof the reminder preview. - URLs with the old identifier. During a transition period they keep opening documents that were already delivered, until a sunset date that Factuarea sets. A document that was never shared does not open with its identifier.
Regenerating the link
Regenerating replaces the secret of a document's link and returns the new URL, with the secret in plaintext exactly once. The previous URL and the public id of the document stop opening it immediately, so it is the tool for a link that has leaked. The expiry and the state do not change.
| Operation | MCP tool | Scope |
|---|---|---|
| Regenerate invoice public link | regenerate_invoice_public_link | invoices:write |
| Regenerate quote public link | regenerate_quote_public_link | quotes:write |
| Regenerate proforma public link | regenerate_proforma_public_link | proformas:write |
| Regenerate delivery note public link | regenerate_delivery_note_public_link | delivery_notes:write |
| Regenerate sales order public link | regenerate_sales_order_public_link | sales_orders:write |
POST /v1/companies/{company}/invoices/{invoice}/public-link/regenerate
Idempotency-Key: 0192b3e4-7c4a-7f2e-9a8b-3c5d6e7f8a01{
"data": {
"object": "public_link_regeneration",
"secret": "3d8a35ea2e0fd579066eeb633f2c16c9496518d610a3bb0f2827e6e840b45099",
"url": "https://app.factuarea.com/d/3d8a35ea2e0fd579066eeb633f2c16c9496518d610a3bb0f2827e6e840b45099",
"expires_at": "2026-09-15T23:59:59Z",
"state": "active",
"regenerated_at": "2026-03-16T10:24:30Z"
}
}- Only with an active, unexpired link on a shareable document. A never-activated, revoked or expired link, or a document that cannot be shared (for example a voided invoice), answers
422public_link_not_regenerableand nothing changes. Activate or extend it first (PATCH …/public-link, or by sharing the document) and then regenerate. - Irreversible write. It requires
Idempotency-Key. Repeating the request with the same key returns the same body withsecretandurlasnull, because they carry the secret: keep the URL from the first response. - The state is always
active. Only an active link can be regenerated, and its expiry is the one it had.
What to check in your integration
- Do not build the URL yourself. If you assembled it as
/d/{id}, read theurlof the public link instead: it carries the secret. - Store the regenerated URL when you receive it. The secret is not shown again; an idempotent replay hides it.
- SDKs. They pin their own generated copy of the contract. Check the installed version before relying on the typed methods of the new operations.
- Read also the public link is born inactive: the state, the expiry and the errors when activating.
Operations in this release
New endpoints5
| Endpoint | Description |
|---|---|
POST/v1/companies/{company}/invoices/{invoice}/public-link/regenerate | Regenerate invoice public link |
POST/v1/companies/{company}/quotes/{quote}/public-link/regenerate | Regenerate quote public link |
POST/v1/companies/{company}/proformas/{proforma}/public-link/regenerate | Regenerate proforma public link |
POST/v1/companies/{company}/delivery-notes/{delivery_note}/public-link/regenerate | Regenerate delivery note public link |
POST/v1/companies/{company}/sales-orders/{sales_order}/public-link/regenerate | Regenerate sales order public link |