Factuarea APIDevelopers
Added

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 url field of the public link of the five documents, in public_link.url of an invoice, in the public_url of the response of creating an invoice and in the public_url of 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.

OperationMCP toolScope
Regenerate invoice public linkregenerate_invoice_public_linkinvoices:write
Regenerate quote public linkregenerate_quote_public_linkquotes:write
Regenerate proforma public linkregenerate_proforma_public_linkproformas:write
Regenerate delivery note public linkregenerate_delivery_note_public_linkdelivery_notes:write
Regenerate sales order public linkregenerate_sales_order_public_linksales_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 422 public_link_not_regenerable and 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 with secret and url as null, 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 the url of 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

EndpointDescription
POST/v1/companies/{company}/invoices/{invoice}/public-link/regenerateRegenerate invoice public link
POST/v1/companies/{company}/quotes/{quote}/public-link/regenerateRegenerate quote public link
POST/v1/companies/{company}/proformas/{proforma}/public-link/regenerateRegenerate proforma public link
POST/v1/companies/{company}/delivery-notes/{delivery_note}/public-link/regenerateRegenerate delivery note public link
POST/v1/companies/{company}/sales-orders/{sales_order}/public-link/regenerateRegenerate sales order public link

Updated endpoints12

EndpointDescription
GET/v1/companies/{company}/invoices/{invoice}/public-linkRetrieve invoice public link
PATCH/v1/companies/{company}/invoices/{invoice}/public-linkUpdate invoice public link
GET/v1/companies/{company}/quotes/{quote}/public-linkRetrieve quote public link
PATCH/v1/companies/{company}/quotes/{quote}/public-linkUpdate quote public link
GET/v1/companies/{company}/proformas/{proforma}/public-linkRetrieve proforma public link
PATCH/v1/companies/{company}/proformas/{proforma}/public-linkUpdate proforma public link
GET/v1/companies/{company}/delivery-notes/{delivery_note}/public-linkRetrieve a delivery note public link
PATCH/v1/companies/{company}/delivery-notes/{delivery_note}/public-linkUpdate a delivery note public link
GET/v1/companies/{company}/sales-orders/{sales_order}/public-linkRetrieve a sales order public link
PATCH/v1/companies/{company}/sales-orders/{sales_order}/public-linkUpdate a sales order public link
POST/v1/companies/{company}/invoicesCreate an invoice
POST/v1/companies/{company}/invoices/{invoice}/reminder-previewPreview a payment reminder email

On this page

Need a hand?Contact support