Skip to main content
Discovery automates data source detection and extraction through Matcher’s embedded extraction engine. Instead of manually uploading files, Discovery connects to external systems, identifies available data, and extracts transactions directly into Matcher.

What Discovery solves


Manual file uploads create friction at every step. Teams export files, transfer them, monitor for failures, and re-upload when something goes wrong. This process is time-consuming, error-prone, and breaks when data volume grows. Discovery replaces the manual pipeline. It connects to external systems through the extraction engine, detects available data sources automatically, and pulls transactions into Matcher on demand. When a new data source appears (a new bank connection, a new payment processor), Discovery finds it without reconfiguration.

How Discovery works


Discovery runs inside Matcher. There is no separate extraction service to deploy. The embedded engine manages connections to external databases and runs extractions locally. Discovery exposes those connections and coordinates the extraction process, handing results directly to Ingestion. The workflow has seven steps:
  1. Check status: Confirm Discovery and its embedded engine are available.
  2. Browse connections: See all data sources the embedded engine has access to.
  3. Inspect a connection: Review the schema to understand what fields are available.
  4. Test a connection: Validate the connection before committing to an extraction.
  5. Create an extraction: Request that Matcher pull data from a specific source.
  6. Monitor progress: Track extraction status as data flows in.
  7. Refresh connections: Rescan when new data sources appear.

Discovery workflow


Check Discovery status

Before you start, verify that Discovery and the embedded extraction engine are operational.
API Reference: Get Discovery status

Browse connections

List all data sources available through the embedded extraction engine.
The response lists each connection with its name, type (database, API, file store), and current status.
API Reference: List connections

Get a connection

Retrieve a single discovered connection by its internal identifier:
GET /v1/discovery/connections/{connectionId} returns the full ConnectionResponse (name, type, status, and metadata) for one connection. Use it when you already hold a connectionId, for example from a source binding’s query rail. It gives the current details without a list of every connection.

Inspect a connection

Before you extract, review the schema of a specific connection to understand what data fields are available.
Use schema inspection to confirm that required fields (transaction IDs, amounts, dates, references) exist before building field mappings.
API Reference: Get connection schema

Test a connection

Validate that Matcher can reach and read from a connection before creating an extraction.
A successful test confirms connectivity and read access. Always test before creating an extraction, especially for new or recently modified connections.
API Reference: Test connection

Create an extraction

Request that Matcher pull transaction data from a specific connection into the current context.
The response returns an extraction ID. Use it to monitor progress.
API Reference: Create extraction

Monitor extraction progress

Track the status of an active extraction by polling its status with GET.
Extraction status transitions from PENDINGSUBMITTEDEXTRACTINGCOMPLETE (or FAILED/CANCELLED). The response carries the extraction status, an errorMessage when it failed, and the linked ingestionJobId once the extraction bridges into ingestion.
API Reference: Get extraction

Refresh available connections

When you register a new data source with the embedded engine, trigger a refresh so Discovery picks it up.
API Reference: Refresh connections

List connector types

List the connector (datasource) types the engine registry has registered for this deployment. Each entry carries a backend-derived category (database or rest). The registry is live. Only connectors registered at boot appear. This list excludes aggregator vendors (Pluggy/Belvo). Provision those through the aggregator-connections surface below.

Response

Aggregator connections (Open Finance)


Open-Finance data-aggregator connections (Pluggy or Belvo) let Matcher pull transactions from bank aggregators. Credential material (clientId/secret) is sealed on write and never returned. Every read is secret-free by construction.

Create an aggregator connection

Send five required fields: vendor, configName, baseUrl, clientId, and secret. The accountRef field is optional. Omit it to create a connection awaiting the end customer’s consent in the vendor-hosted flow. Then bind the returned item or link id with PUT. The vendor field is one of pluggy or belvo. The configName field is the tenant-scoped name the webhook token-mint endpoint binds to. A successful create returns 201 with a secret-free connection.

Response

List, get, update, and delete

Test an aggregator connection

Run a live connectivity check against an existing, bound connection’s already-sealed credential, addressed by configName. Matcher reads the vendor from the stored connection. This call takes no credential and returns none. Invalid stored credentials give an expected test result: 200 with "healthy": false, not an error. A missing connection, an unbound connection, or an existing vendor without a connectivity-test path (Belvo today) surfaces through the standard error response. No test runs. Use the list response’s testable field before offering the action.

Response

Aggregator webhook tokens


Aggregators push data change signals to Matcher via webhooks. Mint an opaque token bound to an aggregator connection, then configure the returned URL in the vendor dashboard.

Mint a webhook token

Matcher returns the raw token and its provider-facing URL exactly once. Matcher stores only the token’s SHA-256 hash.

Response

Receiving webhooks

The vendor calls POST /v1/discovery/webhooks/{provider}/{webhookToken} (no operator JWT). Two layers authenticate it: the opaque path token plus a per-provider source check. That check is a valid HMAC-SHA256 of the raw body in the X-Webhook-Signature header, or membership in the provider’s source-IP allowlist. Both layers fail closed. A valid first delivery returns 202 Accepted. Matcher then pulls the signaled data asynchronously into the ingestion pipeline. A replay of an already-processed event returns 200 OK.

Best practices


A failed extraction mid-run is harder to recover from than a failed test. Test every connection before creating an extraction, especially when connecting to a new source or after a credential rotation.
Field names vary across systems. A bank might call the transaction date value_date while your ledger uses posting_date. Check the schema before configuring field mappings to avoid silent mismatches.
Large extractions take time. Don’t assume completion. Poll the extraction status and confirm the record count before starting a match run. Starting a run on incomplete data generates incorrect exceptions.
Discovery doesn’t scan for new connections automatically. When you add a new payment processor, or register a new database with the embedded engine, trigger a refresh. Otherwise, Discovery won’t show the new source.
Use date range parameters to extract only the data relevant to the current reconciliation period. Extracting unbounded data increases processing time and may pull records that belong to already-closed contexts.

Next steps


External sources

Configure the external data sources that Discovery connects to.

Field mapping

Map fields from extracted data to Matcher’s transaction model.

Discovery API reference

Full API reference for Discovery endpoints.