Documentation
Open workspace

Authentication & environments

Developer keys, scopes, sandbox and live, and what a key may do.

Product operations authenticate with an organization-owned developer key or the documented session. Public reference routes require no key. The key names the organization, the granted scopes, and the environment, because a key is bound to exactly one. A key's environment is fixed when it is created and is not encoded in the key string.

Send the key as a bearer token. Do not put it in a query string, and do not ship it to a browser or a mobile client.

Request header
Authorization: Bearer vat_REPLACE_WITH_A_SANDBOX_KEY
Content-Type: application/json

Keys and member roles

Members whose role holds keys:write create and revoke keys; members with keys:read can list them. A new key can hold only the scopes the creator's role holds and only an environment that role allows. Asking for more returns 403 with the code KEY_EXCEEDS_ROLE. The key list shows who created each key.

A key belongs to the organization, so it keeps working when its creator leaves, reaches their access end date or loses keys:write. The key is then flagged in Developer keys and owners and admins are told. Revoke it, or dismiss the flag if the key should stay. Dismissing a flag is recorded in the audit log. See Team members and roles for the roles themselves.

Connect with OAuth

Hosted MCP connectors can request OAuth approval: OAuth is enabled on the hosted server. Use the MCP OAuth connection instructions.

Any verified member whose role allows the connection's channel can approve it. Hosted MCP clients use the mcp channel; the VAT Tools Chrome extension uses extension. The member chooses one organization and one environment, reviews access and approves an immutable Connector grant. The consent screen offers only organizations whose role allows the channel, only environments the role allows and only scopes the role holds. Requested scopes the role lacks are dropped and named on the screen. Sandbox is selected by default; Live requires an explicit choice. Re-consent replaces and revokes the prior approval for that client, member, organization and environment. Request headers cannot change the grant's organization or environment.

A connection acts for the member who approved it. On every call it can use only the granted scopes that the member's current role still holds, in an environment the role still allows. It is revoked at once when the member leaves or is removed, reaches their access end date, or is given a role without the channel or the environment. A narrower role that keeps both leaves the connection working with fewer scopes.

In Connected apps, select the organization and environment to inspect access, view grant history or confirm revocation. Every member sees and revokes their own connections. Members with connections:read see every connection and the member it acts for; members with connections:write, by default an owner or admin, can revoke any of them. The next API call checks the binding and the member's current role, so an unexpired token cannot bypass revocation. Refresh then fails and the connector must reconnect.

Clients can also revoke their refresh_token at the OAuth revocation endpoint. Direct self-contained JWT access-token revocation returns unsupported_token_type and does not disconnect the app; use refresh-token or Connected apps revocation. The developer-key instructions on this page continue to apply to existing key-based integrations.

Scopes

Grant the narrowest set an integration needs. A key that lacks the scope for an operation receives HTTP 403 with a controlled public error. Public bodies do not expose private authentication diagnostics. The exact company lookup currently requires company:search, while its recorded operation kind remains company verification.

FieldTypeDescription
vat:validate6 published operationsCheck VAT numbers with the tax authority, read the VAT rate card and annotate saved checks. POST /v1/vat/verify, POST /v1/validations, GET /v1/vat-numbers/{countryCode}/{vatNumber}, POST /v1/vat-validations, POST /v1/verifications/{operationId}/annotations, POST /v1/vat/calculate. Required, with bulk:write, for a bulk job of kind vat_validation.
company:search5 published operationsSearch companies, look up an exact register identity and check company identifiers. POST /v1/company-identifiers/check, POST /v1/companies/search, POST /v1/companies/lookup, GET /v1/companies, GET /v1/companies/{jurisdiction}/{id}. Required, with bulk:write, for a bulk job of kind company_search.
company:verifybulk jobs onlyVerify a company against its register. Required, with bulk:write, for a bulk job of kind company_verification.
vat:discoverbulk jobs onlyDiscover the VAT numbers associated with a company. Required, with bulk:write, for a bulk job of kind vat_discovery.
tax:assess1 published operationAssess a supported service's tax treatment from supplied facts. POST /v1/tax/assess.
history:read13 published operationsRead saved checks, their records and exports, the organization's counterparties and its default requester VAT ID. GET /v1/verifications, GET /v1/verifications/{operationId}, GET /v1/verifications/{operationId}/annotations, GET /v1/verifications/{operationId}/company-evidence, GET /v1/vat/verify/{receiptId}/certificate.pdf, GET /v1/vat/verify/{receiptId}/record.json, GET /v1/vat/verify/{receiptId}/record.xml, GET /v1/vat/verify/{receiptId}/record.csv, GET /v1/vat/verify/{receiptId}/consultation, GET /v1/counterparties, GET /v1/organization/requester-vat, GET /v1/customer-vat-checks, GET /v1/customer-vat-checks/{rowOperationId}.
usage:read1 published operationRead the organization's usage. GET /v1/usage.
billing:readno published operationRead the organization's billing details. No published operation requires it yet.
bulk:read4 published operationsList and read bulk jobs, their rows and their exports. GET /v1/bulk-jobs/{id}/rows, GET /v1/bulk-jobs/{id}/export, GET /v1/bulk-jobs, GET /v1/bulk-jobs/{id}.
bulk:write4 published operationsUpload a CSV and start, resume or cancel a bulk job. A job also needs the scope of its kind, for example vat:validate. POST /v1/bulk-jobs, POST /v1/bulk-jobs/{id}/start, POST /v1/bulk-jobs/{id}/resume, POST /v1/bulk-jobs/{id}/cancel.
reconciliation:run1 published operationRun customer VAT reconciliation. POST /v1/customer-vat-checks.
reconciliation:decide1 published operationRecord decisions on customer VAT reconciliation results. POST /v1/customer-vat-checks/{rowOperationId}/review-decisions.
monitors:read5 published operationsRead monitors and the changes they found, and export those changes. GET /v1/monitors, GET /v1/monitors/{monitorId}, GET /v1/monitor-changes, GET /v1/monitor-changes/export, GET /v1/monitor-changes/{changeId}.
monitors:write5 published operationsCreate, change, pause, resume and delete monitors. POST /v1/monitors, PATCH /v1/monitors/{monitorId}, DELETE /v1/monitors/{monitorId}, POST /v1/monitors/{monitorId}/pause, POST /v1/monitors/{monitorId}/resume.
webhooks:read4 published operationsRead webhook endpoints and their deliveries. GET /v1/webhook-endpoints, GET /v1/webhook-endpoints/{endpointId}, GET /v1/webhook-endpoints/{endpointId}/deliveries, GET /v1/webhook-deliveries/{deliveryId}.
webhooks:write7 published operationsCreate, change, test and delete webhook endpoints, rotate their secrets, recover failed deliveries and redeliver events. POST /v1/webhook-endpoints, PATCH /v1/webhook-endpoints/{endpointId}, DELETE /v1/webhook-endpoints/{endpointId}, POST /v1/webhook-endpoints/{endpointId}/rotate-secret, POST /v1/webhook-endpoints/{endpointId}/test, POST /v1/webhook-endpoints/{endpointId}/recover, POST /v1/webhook-deliveries/{deliveryId}/redeliver.

Environments

sandbox uses deterministic fixtures and consumes no live authority capacity. live calls the authority and the configured sources. Every published operation accepts either environment except these, which accept only live:

  • Sandbox public evidence uses category synthetic, null source name/URL and a synthetic label, so it can never be presented as a live observation.
  • A missing mode follows your key's environment: switch the key, not the body. A mode you send must match the key's environment, or the request returns 403.
  • History is partitioned by environment; a sandbox check never appears in a live history query.

Sandbox fixtures

Sandbox VAT checks answer from fixed fixtures chosen by the VAT number. Every supported country prefix accepts the same numbers. Sandbox consumes no live allowance or live rate slot.

FieldTypeDescription
100validValid. Synthetic name and address; not a real business.
200invalidInvalid.
300unavailableUnavailable. Synthetic outage; no authority is contacted.
any other numberunavailableUnavailable. Fixture not found.

These numbers answer only with their own prefix (FR101 is not a fixture) and return fictional registered data:

FieldTypeDescription
IT101validValid. Name FICTIONAL SANDBOX LOMBARDIA SRL; address FICTIONAL SANDBOX ADDRESS, VIA ESEMPIO 101, 20121 MILANO MI.
FR102validValid. Name FICTIONAL SANDBOX ATELIER SAS; address FICTIONAL SANDBOX ADDRESS, 102 RUE EXEMPLE, 69002 LYON.
FR103validValid. Name FICTIONAL SANDBOX OTHER HOLDER SARL; address FICTIONAL SANDBOX ADDRESS, 103 RUE EXEMPLE, 75002 PARIS.
DE104validValid. The name and address are withheld: the authority sends --- and the API returns null.
PL105validValid. No name and no address are returned.
AT106validValid. Name FICTIONAL SANDBOX WIEN GMBH; address FICTIONAL SANDBOX ADDRESS, BEISPIELGASSE 106, 1010 WIEN.
IT107validValid. Name FICTIONAL SANDBOX LOMBARDIA SRL; address FICTIONAL SANDBOX ADDRESS, VIA ESEMPIO 107, 00184 ROMA RM.

The unavailable fixtures are reported as source_unavailable by POST /v1/validations and as unavailable by POST /v1/vat/verify. Treat both as an unanswered check, never as an invalid result.

A country the sandbox does not support is never a fixture. For example GB with number 100 is not supported in the sandbox: POST /v1/validations answers 400 and POST /v1/vat/verify answers 503. Both carry the controlled PUBLIC_DELIVERY_UNAVAILABLE error body, never a verdict.

Company searches and lookups use the synthetic vat-tools-sandbox register in FR. Every company is fictional:

FieldTypeDescription
100000001activeActive synthetic company with a full public profile. Legal name: SYNTHETIC ATELIER EXEMPLE SAS.
100000002ceasedCeased synthetic company. Legal name: SYNTHETIC ATELIER EXEMPLE SARL.
100000004partialSynthetic company whose name and address are not disclosed.

A sandbox company search (POST /v1/companies/search with country_code FR) answers from these queries. A word matches anywhere in the query, in any case; when a query holds more than one, the first row wins. A query that is exactly one of the registry IDs above returns that company. Any other query, for example Acme, answers not_found and is still charged one sandbox unit.

FieldTypeDescription
outageword · source_unavailableSynthetic source outage. No company is returned and no unit is charged.
300000003whole query · source_unavailableThe same synthetic outage, for a registry ID query.
partialword · ambiguousReturns 100000004, whose name and address are not disclosed.
atelierword · ambiguousReturns the active 100000001 and the ceased 100000002.

The sandbox never confirms a company's identity, because its records are synthetic. A search that returns companies answers ambiguous, and the exact reads POST /v1/companies/lookup and GET /v1/companies/{jurisdiction}/{id} answer 422 with the controlled PUBLIC_DELIVERY_UNAVAILABLE body at zero units. Exact reads cannot be tried in the sandbox yet.

Two-factor authentication

An organization owner can require two-factor authentication for every member. It applies to people signing in to the dashboard, with email and password or with Google. Members without it lose dashboard access to that organization when their grace period ends; their browser requests then answer 403 with the code TWO_FACTOR_REQUIRED. During the grace period those requests carry an X-Two-Factor-Grace-Ends header with the deadline.

Members choose their own methods in the dashboard under Account → Security:

  • Passkey: the device’s fingerprint, face or screen lock. A passkey also signs in without a password, which counts as both steps.
  • Authenticator app: a 6-digit code from an app such as 1Password or Google Authenticator.
  • Email code: a 6-digit code sent to the member’s inbox, valid for 10 minutes. It is the basic option, because anyone who controls the inbox can also reset the password.

An owner can accept only a passkey or an authenticator app. Members who have only email codes then get their own grace period; after it, their browser requests to that organization answer 403 with STRONGER_TWO_FACTOR_REQUIRED. Their other organizations are not affected.

Changing a method asks the member to confirm it is them. Once a passkey or an authenticator app is set up, only a passkey, the app or a backup code can confirm. Before that, adding a passkey also asks for the password, or for a Google sign-in in the last 10 minutes. Five wrong passwords there lock it for the account for 15 minutes. A new password, from a reset or a change, forgets every trusted device, so each one passes the second step again.

When authentication fails

  • 401 UNAUTHORIZED — the key is missing, malformed, expired or revoked. Stop using it and reissue a key.
  • 403 SCOPE_FORBIDDEN — the key is valid but lacks the operation's scope. Grant the scope or use another key.
  • 403 ENVIRONMENT_FORBIDDEN — the key or the member's role does not allow this environment. Use a key for that environment, or leave mode out so the key's own environment applies.
  • 403 with ROLE_FORBIDDEN, CHANNEL_FORBIDDEN, MEMBERSHIP_EXPIRED or MEMBERSHIP_SUSPENDED — the member a session or connection acts for no longer has that access. Ask an owner or admin to change the role or end date.
  • 403 for organization access — the organization cannot use this operation or source yet.