Skip to main content

Gateways Reference

Gateways are platform services that scripts can call. The "gateway" property in a script definition names the gateway, e.g. "gateway": "CompanyRegister".

A script that names a gateway the platform installation does not have still loads: the model status reports a WARNING, and the script fails only when it runs. Which gateways exist is a property of the installation, not of your model.

Stability​

Each gateway is either stable or beta:

  • A stable gateway's contract is covered by the compatibility guarantee. Its contract is either the archetype it works on (Invoice fills commons.invoice), or the names of its parameters and targets, which are frozen.
  • A beta gateway works, but its contract may still change in a later release. A script that uses one is reported as an INFO finding in the model status. Several beta gateways are planned to become archetype-driven.

A gateway script's apiVersion names the version of the gateway's contract it was written for (default 1). A version higher than the gateway supports is a warning.

See Gateway Scripts for how to wire gateways into script definitions.

note

Calls made through gateways to external services count against per-tenant rate limits. When a limit is reached the platform returns HTTP 429 and the calling script or import stops. See External Service Limits for configuration and the usage endpoint.

Function gateways​

Function gateways enrich an object by returning structured data that is written back to the object's fields.

GatewayStabilityPurpose
AistableExtracts structured field values from free-form text using Gemini
DocumentTriagestableClassifies a document and generates a title using Gemini
InvoicestableExtracts structured invoice data from a PDF via Google Document AI, into the commons.invoice archetype
EchobetaReflects input parameters back as output — useful for testing
MarkdownConversionbetaConverts a PDF to Markdown via Google Document AI
AddressSearchbetaLooks up a Dutch address by postal code and house number
CompanyExtractbetaFetches an official company extract PDF (NL only)
CompanyRegisterbetaEnriches an object with company data from KvK (NL) or Companies House (GB)
DataEnrichmentbetaPOSTs field values to a configurable HTTPS endpoint and merges the response

See Function Gateways for the full reference.

Producer gateways​

Producer gateways query an external source and return a result list. They do not modify any object.

GatewayStabilityPurpose
CompanySearchbetaSearches a national business register by company name
CompanyLookupbetaFetches the full company profile for a single company by composite key
CompanyRelationsbetaDirectors, officers, and shareholders for a Dutch company (NL only)
OrganizationTreebetaCorporate organisation tree for a Dutch company (NL only)

See Producer Gateways for the full reference.

Consumer gateways​

Consumer gateways call an external service and do not return a result.

GatewayStabilityPurpose
WebhookstableSends an HTTP request to a configurable endpoint
DatastoreReplicatorstableReplicates object data to an analytical datastore (BigQuery) in micro-batches
MailbetaSends a transactional email
UserInvitationbetaCreates a user invitation and sends a confirmation email

See Consumer Gateways for the full reference.