# Create a browser key Source: https://docs.baselayer.com/api-reference/acceptance/create-a-browser-key /api-reference/openapi.json post /acceptance/browser_keys Creates a browser public key for your application, the `browserKey` baselayer.js sends. An application has at most 2 keys, so a replacement can be deployed before the old key is deleted; at the limit, delete a key first. Baselayer accepts a new key usually within about 20 seconds, and within about 5 minutes once publishing is healthy. # Delete a browser key Source: https://docs.baselayer.com/api-reference/acceptance/delete-a-browser-key /api-reference/openapi.json delete /acceptance/browser_keys/{browser_key_id} The key leaves the list, and Baselayer stops accepting it usually within about 20 seconds, and within about 5 minutes once publishing is healthy. Deleting it again answers 404 and changes nothing: the first delete still takes effect on that schedule. # Get one decision Source: https://docs.baselayer.com/api-reference/acceptance/get-one-decision /api-reference/openapi.json get /acceptance/decisions/{decision_id} One decision at your application, a server SDK's or a browser check's. A decision appears here about a minute after it is reported. # Get one of your application's browser keys Source: https://docs.baselayer.com/api-reference/acceptance/get-one-of-your-applications-browser-keys /api-reference/openapi.json get /acceptance/browser_keys/{browser_key_id} The key, with its name, environment and creator. # Get one version of your application's acceptance policy Source: https://docs.baselayer.com/api-reference/acceptance/get-one-version-of-your-applications-acceptance-policy /api-reference/openapi.json get /acceptance/policy/versions/{policy_version_id} Any version, current or past, exactly as it ran: the one a decision's `policy_version_id` names. # Get one visit Source: https://docs.baselayer.com/api-reference/acceptance/get-one-visit /api-reference/openapi.json get /acceptance/visits/{visit_id} One visit at your application: its state and decision count, who its visitor is and every attestation it presented, and what detection made of it. A visit's figures lag its latest record by about a minute. # Get your application's acceptance policy Source: https://docs.baselayer.com/api-reference/acceptance/get-your-applications-acceptance-policy /api-reference/openapi.json get /acceptance/policy The current version of the policy the Baselayer SDK enforces for your application, with the application's registered audiences and the fields a scope may name. A new application reads version 1, the default. Send the `ETag` back as `If-None-Match` to get a 304 while neither has changed. # Get your application's audiences and allowed origins Source: https://docs.baselayer.com/api-reference/acceptance/get-your-applications-audiences-and-allowed-origins /api-reference/openapi.json get /acceptance/domains `audiences` are where credentials can be presented: a key-binding JWT's `aud` must be one of them. `allowed_origins` are where baselayer.js may run: a browser check refuses any other page origin. `warnings` are computed on every response. # List one visit's decisions Source: https://docs.baselayer.com/api-reference/acceptance/list-one-visits-decisions /api-reference/openapi.json get /acceptance/visits/{visit_id}/decisions The decisions on one visit's key at your application, from its start to when it was last seen, server SDK decisions and browser checks a policy step decided alike, newest first by default, a page at a time: `limit`, then `cursor` from `X-Next-Cursor`, or `offset`. `X-Total-Count` and `X-Total-Pages` count every match and are sent on the first cursor page and on every offset page. Ties on `decided_at` break on the decision's id. The list runs to when the visit was last seen, which lags its latest record by about a minute, so a decision appears here about a minute after the SDK reports it. # List one visit's timeline Source: https://docs.baselayer.com/api-reference/acceptance/list-one-visits-timeline /api-reference/openapi.json get /acceptance/visits/{visit_id}/timeline What happened during one visit at your application, oldest first by default, a page at a time: its browser events, detection updates, requests and the browser checks a policy step decided, each by `type`, on the visit's key from its start to when it was last seen. A page view carries what its page exit measured, once the page closes. A decided request carries its decision and what the merchant did with it, and a browser check its decision. `X-Total-Count` and `X-Total-Pages` count every match and are sent on the first cursor page and on every offset page. The timeline runs to when the visit was last seen, which lags its latest record by about a minute, so a record appears here about a minute after it is reported. # List your application's acceptance policy versions Source: https://docs.baselayer.com/api-reference/acceptance/list-your-applications-acceptance-policy-versions /api-reference/openapi.json get /acceptance/policy/versions Every version of your application's policy, newest first by default, a page at a time: `limit`, then `cursor` from `X-Next-Cursor`, or `offset`. `X-Total-Count` and `X-Total-Pages` count every version and are sent on the first cursor page and on every offset page. # List your application's browser keys Source: https://docs.baselayer.com/api-reference/acceptance/list-your-applications-browser-keys /api-reference/openapi.json get /acceptance/browser_keys Every key not deleted, newest first by default, a page at a time: `limit`, then `cursor` from `X-Next-Cursor`, or `offset`. `X-Total-Count` and `X-Total-Pages` are sent on the first cursor page and on every offset page. # List your application's decisions Source: https://docs.baselayer.com/api-reference/acceptance/list-your-applications-decisions /api-reference/openapi.json get /acceptance/decisions Every decision at your application, across visits: each server SDK decision on a request and each browser check a policy step decided, newest first by default, a page at a time: `limit`, then `cursor` from `X-Next-Cursor`, or `offset`. `X-Total-Count` and `X-Total-Pages` count every match and are sent on the first cursor page and on every offset page. A decision appears here about a minute after it is reported. # List your application's visits Source: https://docs.baselayer.com/api-reference/acceptance/list-your-applications-visits /api-reference/openapi.json get /acceptance/visits Every visit at your application, newest first by default, a page at a time: `limit`, then `cursor` from `X-Next-Cursor`, or `offset`. `X-Total-Count` and `X-Total-Pages` count every match and are sent on the first cursor page and on every offset page. `start_date` and `end_date` select visits by the day they started in `tz`. A visit's figures lag its latest record by about a minute. # Replace your application's acceptance policy Source: https://docs.baselayer.com/api-reference/acceptance/replace-your-applications-acceptance-policy /api-reference/openapi.json put /acceptance/policy Makes the body the next version of your application's policy. Send the `ETag` of the version you edited as `If-Match`; if another write made a newer version first, the replace is refused and nothing changes. The body is exactly the `policy` a read returns. # Replace your application's audiences and allowed origins Source: https://docs.baselayer.com/api-reference/acceptance/replace-your-applications-audiences-and-allowed-origins /api-reference/openapi.json put /acceptance/domains Stores both lists, each sorted, in place of the current ones. Each value must already be canonical; one that is not is refused, never rewritten. Send the `ETag` of the lists you edited as `If-Match`; if another write changed them first, the replace is refused and nothing changes. Warnings never refuse a replace. It needs both `acceptance_audiences:update` and `acceptance_origins:update`; a caller missing either is a 403. The change applies to presentations and browser checks after it. For a caller holding both, a body that fails validation is a 422; then, in order: no `If-Match` is a 428, an application that no longer exists a 404, and a stale `If-Match` a 412. # Get Address Source: https://docs.baselayer.com/api-reference/address/get-address /api-reference/openapi.json get /addresses/{address_id} Get the details of a specific address. # Read the calling organization's slice of the audit log Source: https://docs.baselayer.com/api-reference/audit-log/read-the-calling-organizations-slice-of-the-audit-log /api-reference/openapi.json get /issuance/audit_log Returns identity registration, credential issuance, and revocation events, scoped to an `individual_ref`, `business_ref`, or `credential_id` your organization already holds — at least one is required. Reads the sequenced log, which the batch sequencer populates asynchronously, so very recent events may lag slightly behind the fast-store freshness path. # Mint an autocomplete session Source: https://docs.baselayer.com/api-reference/autocomplete/mint-an-autocomplete-session /api-reference/openapi.json post /autocomplete/sessions Mints the grant every request to the autocomplete service carries in ``X-Autocomplete-Session``. Minting writes one Order; the keystrokes it admits write nothing. An organization mints without limit unless one is set for it, ``sessions_per_window`` per ten minutes and ``sessions_per_day`` per rolling day (each ``null`` when there is none), one pool drawn from by every caller in it; past either the mint answers 429. The grant is bound to the ``Origin`` it was minted with, expires after ``expires_in`` seconds (refresh at about 80% of it; ``expires_at`` is the same instant as a UTC timestamp, for display) and admits ``request_budget`` requests per route. A sandbox application's grant is served the sandbox's own index, and its mint writes no Order and counts against neither limit. A caller whose ``autocomplete.enabled`` override is off is answered 403; a locked organization is answered 402. # Autocomplete Source: https://docs.baselayer.com/api-reference/business-autocomplete/autocomplete /api-reference/openapi.json get /autocomplete Suggest businesses matching a partial name, for typeahead UIs. # Business search cancelled Source: https://docs.baselayer.com/api-reference/business-verification/business-search-cancelled /api-reference/webhooks.json webhook BusinessSearch.cancelled Emitted when a Business search has been cancelled. # Business search completed Source: https://docs.baselayer.com/api-reference/business-verification/business-search-completed /api-reference/webhooks.json webhook BusinessSearch.completed Emitted when a Business search has completed and business detail results are available. # Business search failed Source: https://docs.baselayer.com/api-reference/business-verification/business-search-failed /api-reference/webhooks.json webhook BusinessSearch.failed Emitted when a Business search has failed. # Business search legacy updated Source: https://docs.baselayer.com/api-reference/business-verification/business-search-legacy-updated /api-reference/webhooks.json webhook BusinessSearch.updated.legacy Emitted when a Business search has been updated. E.g. if the IRS was down for tin matching, the search may be updated at a later date with the correct tin_matched result. # Business search submitted Source: https://docs.baselayer.com/api-reference/business-verification/business-search-submitted /api-reference/webhooks.json webhook BusinessSearch.submitted Emitted when a Business search has been submitted for processing. # Business search updated Source: https://docs.baselayer.com/api-reference/business-verification/business-search-updated /api-reference/webhooks.json webhook BusinessSearch.updated Emitted when a Business search has been updated. E.g. if the IRS was down for tin matching, the search may be updated at a later date with the correct tin_matched result. # Search batch updated Source: https://docs.baselayer.com/api-reference/business-verification/search-batch-updated /api-reference/webhooks.json webhook SearchBatch.updated Emitted when a search batch's downloadable results have been regenerated. A batch's CSV/JSONL/ZIP export and report are a snapshot taken when the batch finished, while some TIN (EIN) verifications were still resolving with the IRS; once those verdicts land the files are rewritten in place with the final results and this event is sent. The payload carries the batch's new `exports_generated_at`; re-download the export to pick up the change. The export URLs themselves are stable, so a cached copy is what goes stale, not the link. # Tin verification completed Source: https://docs.baselayer.com/api-reference/business-verification/tin-verification-completed /api-reference/webhooks.json webhook TINVerification.completed Emitted when a TIN verification has completed. # Tin verification failed Source: https://docs.baselayer.com/api-reference/business-verification/tin-verification-failed /api-reference/webhooks.json webhook TINVerification.failed Emitted when a TIN verification has failed. # Tin verification submitted Source: https://docs.baselayer.com/api-reference/business-verification/tin-verification-submitted /api-reference/webhooks.json webhook TINVerification.submitted Emitted when a TIN verification has been submitted for processing. # Get Business Source: https://docs.baselayer.com/api-reference/business/get-business /api-reference/openapi.json get /businesses/{id} Retrieve a business by its UUID. # Get Business Application History Source: https://docs.baselayer.com/api-reference/business/get-business-application-history /api-reference/openapi.json get /businesses/{id}/applications # Get Business Officers Source: https://docs.baselayer.com/api-reference/business/get-business-officers /api-reference/openapi.json get /businesses/{id}/officers Retrieve a business's officers by its UUID. # Get Business Registrations Source: https://docs.baselayer.com/api-reference/business/get-business-registrations /api-reference/openapi.json get /businesses/{id}/registrations Retrieve a business's corporate registrations by its UUID. # Get Business Search Combinations Source: https://docs.baselayer.com/api-reference/business/get-business-search-combinations /api-reference/openapi.json get /businesses/{id}/search_combinations # Get Business Searches Source: https://docs.baselayer.com/api-reference/business/get-business-searches /api-reference/openapi.json get /businesses/{id}/searches List BusinessSearches that resolved to this business, newest first. Scoped to the caller's dominant scope so callers only see searches their own organization (or application) ran. # Get Registration Source: https://docs.baselayer.com/api-reference/business/get-registration /api-reference/openapi.json get /registrations/{id} Retrieve a Registration by its UUID. # Download Consortium Search Results Source: https://docs.baselayer.com/api-reference/consortium/download-consortium-search-results /api-reference/openapi.json get /consortium/searches/batches/{batch_id}/download # Download Submission Source: https://docs.baselayer.com/api-reference/consortium/download-submission /api-reference/openapi.json get /consortium/submissions/{submission_id}/download Download the originally uploaded CSV via a signed GCS URL redirect, matching the OFAC batch download pattern. # Get Consortium Search Batch Source: https://docs.baselayer.com/api-reference/consortium/get-consortium-search-batch /api-reference/openapi.json get /consortium/searches/batches/{batch_id} # Get Submissions Source: https://docs.baselayer.com/api-reference/consortium/get-submissions /api-reference/openapi.json get /consortium/submissions List the organization's consortium submissions, newest first. History is organization-wide: submissions uploaded through any of the organization's applications are visible. Paginated via the shared limit/offset (or keyset) ``PaginationQuery``, mirroring the OFAC batch listing; pagination metadata rides the response headers. # Post Consortium Search Batch Source: https://docs.baselayer.com/api-reference/consortium/post-consortium-search-batch /api-reference/openapi.json post /consortium/searches/batches Submit a CSV of consortium searches (one search per row, one of each identifier). Always processed asynchronously (202 + batch id); poll GET /consortium/searches/batches/{batch_id} and download per-row results via /consortium/searches/batches/{batch_id}/download. Batches are capped at 40,000 rows. Allowed columns: reference_id, ein, phone, email, website, business_name, officer_first_name, officer_last_name, officer_state, address_street, address_city, address_state, address_zip, business_id. # Post Submission Source: https://docs.baselayer.com/api-reference/consortium/post-submission /api-reference/openapi.json post /consortium/submissions # Search Consortium Source: https://docs.baselayer.com/api-reference/consortium/search-consortium /api-reference/openapi.json post /consortium/searches # Export your organization's credential events Source: https://docs.baselayer.com/api-reference/credentials/export-your-organizations-credential-events /api-reference/openapi.json get /issuance/credentials/events/export Every event the same filters list, as CSV in the list's order, streamed with no row cap. # List the presets a Level 3 mint can disclose by Source: https://docs.baselayer.com/api-reference/credentials/list-the-presets-a-level-3-mint-can-disclose-by /api-reference/openapi.json get /issuance/credentials/presets Lists the credential presets, by name by default, a page at a time (`limit`, default 10, maximum 1000; follow `X-Next-Cursor`): a use case a Level 3 mint can name as `preset` instead of listing `disclosed_fields`, with the exact paths it requests on an individual mint and on a business mint. Paths with nothing on file are skipped at mint time. `is_individual_default` and `is_business_default` name the most conservative preset per hat, the one a mint uses when it names none. The list is the same for every caller and fixed for an API release, so it may be cached for an hour. # List your organization's credential events Source: https://docs.baselayer.com/api-reference/credentials/list-your-organizations-credential-events /api-reference/openapi.json get /issuance/credentials/events Every issuance and revocation of your organization's credentials, newest first by default, a page at a time: `limit`, then `cursor` from `X-Next-Cursor`, or `offset`. `X-Total-Count` and `X-Total-Pages` count every match and are sent on the first cursor page and on every offset page. # List your organization's credential records Source: https://docs.baselayer.com/api-reference/credentials/list-your-organizations-credential-records /api-reference/openapi.json get /issuance/credentials Lists the records of every credential your organization minted, newest first by default — the durable evidence log behind the short-lived credentials themselves. Filter by subject (`individual_ref` / `business_ref`), counterparty `audience`, `level`, `state`, `credential_id` and issuance date range. Each record carries the credential's current revocation status. The credential string is never listed; `GET /issuance/credentials/{credential_id}` returns it. # Mint a credential for a person or a business operator Source: https://docs.baselayer.com/api-reference/credentials/mint-a-credential-for-a-person-or-a-business-operator /api-reference/openapi.json post /issuance/credentials Mints a Level 2 or Level 3 SD-JWT-VC credential for a verified individual, referenced by the `individual_ref` issued to your organization, scoped to a counterparty `audience`, and bound to the presenting agent's public key. `type` chooses whose credential: `individual` for the person as themselves, `business` for the person acting as the operator of the business `business_ref` names, which is never inferred and requires a verified operator link. Every credential is issuer-signed with `sub` (the audience-scoped pairwise DID of the person or business, stable across mints and levels) and `aud` (the canonical audience). A business Level 3 mint answers with two credentials, the business's and the actor's. Credentials are short-lived projections of current verification: mint on demand rather than storing them long-term. Send an `Idempotency-Key`: a retry with the same key and body within 24 hours answers with the same credentials, marked `Idempotent-Replayed: true`, instead of minting again. # Mint a test credential for a person or a business operator Source: https://docs.baselayer.com/api-reference/credentials/mint-a-test-credential-for-a-person-or-a-business-operator /api-reference/openapi.json post /issuance/credentials/test Takes the `POST /issuance/credentials` body and mints the same credential, with the same claims, for a person or business your current environment's refs name, signed by the sandbox issuer and recorded in your Sandbox environment, from Production or Sandbox alike. Verifiers accept it only when they allow sandbox credentials. Its `sub` is a pairwise DID of its own, never the one a `POST /issuance/credentials` mint signs for the same audience. Send an `Idempotency-Key`, as for `POST /issuance/credentials`. # Preview what a Level 3 mint would disclose Source: https://docs.baselayer.com/api-reference/credentials/preview-what-a-level-3-mint-would-disclose /api-reference/openapi.json post /issuance/credentials/preview Takes the mint body and returns the exact leaves a Level 3 mint with the same body would disclose, and the requested paths with nothing on file, one entry per credential the mint would produce. A business preview also returns the operator authorization the credential always carries. Runs the mint's validation and refusals; signs, stores and allocates nothing. # Preview what a Level 3 test mint would disclose Source: https://docs.baselayer.com/api-reference/credentials/preview-what-a-level-3-test-mint-would-disclose /api-reference/openapi.json post /issuance/credentials/test/preview `POST /issuance/credentials/preview` for `POST /issuance/credentials/test`: the same body and answer, with `environment` the Sandbox environment that would sign. Signs, stores and allocates nothing. # Resolve one credential record by its credential_id Source: https://docs.baselayer.com/api-reference/credentials/resolve-one-credential-record-by-its-credential_id /api-reference/openapi.json get /issuance/credentials/{credential_id} Resolves a `credential_id` — the token's `jti`, which a relying party's exchange log records — back to your organization's record: the dispute-evidence answer to "was this agent authorized, for whom, and had it been revoked?". Only your organization's own mints resolve. Callers who may mint credentials also get the credential string the mint returned, stored encrypted; it is holder-bound, so it cannot be presented without the agent's private key. # Revoke one credential Source: https://docs.baselayer.com/api-reference/credentials/revoke-one-credential /api-reference/openapi.json post /issuance/credentials/{credential_id}/revoke Flips this credential's bit in the unified Token Status List, so verifiers refuse it from their next list fetch — for a leaked presentation or any single artifact that has to stop working before it expires. The revocation is scoped to this one credential: the subject keeps its authorization, so a replacement is a fresh mint away. Nothing is deleted — the record is evidence and stays readable at `GET /issuance/credentials/{credential_id}` with `status: REVOKED`; this action answers with that record. The reason and the revoking user or API key are recorded on the record and its audit event. Idempotent: revoking an already-revoked credential changes nothing, keeps the first reason and revoker, and returns the same record. # Create Criminal Check Source: https://docs.baselayer.com/api-reference/criminal-checks/create-criminal-check /api-reference/openapi.json post /criminal_checks Create a new criminal check. # Get Criminal Check Source: https://docs.baselayer.com/api-reference/criminal-checks/get-criminal-check /api-reference/openapi.json get /criminal_checks/{id} Get a criminal check by ID. # Get Dmf Search Source: https://docs.baselayer.com/api-reference/death-master-file/get-dmf-search /api-reference/openapi.json get /dmf/searches/{id} Retrieve the DMF search results. # Get Dmf Search Status Source: https://docs.baselayer.com/api-reference/death-master-file/get-dmf-search-status /api-reference/openapi.json get /dmf/searches/{id}/status Retrieve the status of the DMF search request. # Post Dmf Search Source: https://docs.baselayer.com/api-reference/death-master-file/post-dmf-search /api-reference/openapi.json post /dmf/searches Submit a DMF search request with a person's name and SSN. # Get Employee Verification Request By Id Source: https://docs.baselayer.com/api-reference/employee-verification/get-employee-verification-request-by-id /api-reference/openapi.json get /employee_verification_requests/{id} Retrieve an employee verification request by ID. # Start Employee Verification Request Source: https://docs.baselayer.com/api-reference/employee-verification/start-employee-verification-request /api-reference/openapi.json post /employee_verification_requests Start a new employee verification request. # Get Exclusions For Search Source: https://docs.baselayer.com/api-reference/exclusions/get-exclusions-for-search /api-reference/openapi.json get /businesses/{id}/exclusions Retrieve exclusion records related to a specific business search. This endpoint returns exclusion records that match the business information from the specified search, such as business name, tax ID, or other identifiers. Results are only available if the caller's organization has an active consortium membership (granted by submitting exclusion data). Results are paginated and ordered by creation date (newest first). # Create Federation Webhook Endpoint Source: https://docs.baselayer.com/api-reference/federation-webhook-management/create-federation-webhook-endpoint /api-reference/openapi.json post /federations/{federation_id}/webhooks # Delete Federation Webhook Endpoint Source: https://docs.baselayer.com/api-reference/federation-webhook-management/delete-federation-webhook-endpoint /api-reference/openapi.json delete /federations/{federation_id}/webhooks/{endpoint_id} # Get Federation Svix Portal Access Source: https://docs.baselayer.com/api-reference/federation-webhook-management/get-federation-svix-portal-access /api-reference/openapi.json post /federations/{federation_id}/svix_portal_access # Get Federation Webhook Endpoint Source: https://docs.baselayer.com/api-reference/federation-webhook-management/get-federation-webhook-endpoint /api-reference/openapi.json get /federations/{federation_id}/webhooks/{endpoint_id} # List Federation Webhook Endpoints Source: https://docs.baselayer.com/api-reference/federation-webhook-management/list-federation-webhook-endpoints /api-reference/openapi.json get /federations/{federation_id}/webhooks # Patch Federation Webhook Endpoint Source: https://docs.baselayer.com/api-reference/federation-webhook-management/patch-federation-webhook-endpoint /api-reference/openapi.json patch /federations/{federation_id}/webhooks/{endpoint_id} # Update Federation Webhook Endpoint Source: https://docs.baselayer.com/api-reference/federation-webhook-management/update-federation-webhook-endpoint /api-reference/openapi.json put /federations/{federation_id}/webhooks/{endpoint_id} # Get a direct verification Source: https://docs.baselayer.com/api-reference/identities/get-a-direct-verification /api-reference/openapi.json get /issuance/identities/verifications/{verification_id} Returns a verification: its state, verdicts, `terminal_reason`, and the pairwise references it issued. This is direct verification: you send an identity you collected. For a hosted enrollment session, where the applicant completes your published journey on Baselayer's page, use `POST /onboarding/sessions`. # Get one operator link with its evidence Source: https://docs.baselayer.com/api-reference/identities/get-one-operator-link-with-its-evidence /api-reference/openapi.json get /issuance/identities/businesses/{business_ref}/operator_links/{individual_ref} One link between the individual behind `individual_ref` and the business behind `business_ref`, with the evidence a credential minted for the pair now would assert. # List direct verifications Source: https://docs.baselayer.com/api-reference/identities/list-direct-verifications /api-reference/openapi.json get /issuance/identities/verifications Lists the verifications your application started through `POST /issuance/identities/verifications`, newest first by default. Filter by `reference_id` to find the verifications you started for one of your records. This is direct verification: you send an identity you collected. For a hosted enrollment session, where the applicant completes your published journey on Baselayer's page, use `POST /onboarding/sessions`. # List the businesses your organization has verified Source: https://docs.baselayer.com/api-reference/identities/list-the-businesses-your-organization-has-verified /api-reference/openapi.json get /issuance/identities/businesses Lists every business your organization holds a `bus_` reference for, most recent activity first by default: its registered name and state, what your latest evaluation concluded, how its operators stand, and when it last saw activity. Operator counts are reported per link status rather than collapsed into one verdict — a business can have settled operators and one awaiting review at the same time. Search by reference, EIN, or name. # List the individuals your organization has verified Source: https://docs.baselayer.com/api-reference/identities/list-the-individuals-your-organization-has-verified /api-reference/openapi.json get /issuance/identities/individuals Lists every individual your organization holds a `prn_` reference for, most recent activity first by default: their current verification state, the businesses they operate under your coverage, and when they last saw activity. Filter by verification state, business link and verification date; search by reference, name, email or phone. Scoped to your own population — references issued by other organizations are not listed and are not searchable. # List your organization's operator links Source: https://docs.baselayer.com/api-reference/identities/list-your-organizations-operator-links /api-reference/openapi.json get /issuance/identities/operator_links Lists the individual-operates-business links your organization's sessions recorded, oldest first by default, naming both ends by your own references. Filter by `status=UNDER_REVIEW` for the links waiting on your decision; `shortfalls` says what each one's newest evaluation fell short on. # Look up a verified business by pairwise reference Source: https://docs.baselayer.com/api-reference/identities/look-up-a-verified-business-by-pairwise-reference /api-reference/openapi.json get /issuance/identities/businesses/{business_ref} Returns what the latest onboarding session that covered the business attested to, the registry incorporation facts, the people you hold covered operator links for, outstanding counterparty credentials, and your submission history for a `business_ref` issued to your organization. References issued to other organizations and unknown references are indistinguishable `404`s. # Look up a verified identity by pairwise reference Source: https://docs.baselayer.com/api-reference/identities/look-up-a-verified-identity-by-pairwise-reference /api-reference/openapi.json get /issuance/identities/individuals/{individual_ref} Returns the verification state, verified-attribute keys, verification level, and covered business links for a `individual_ref` issued to your organization. References issued to other organizations and unknown references are indistinguishable `404`s. # Re-verify an identity from its stored verification Source: https://docs.baselayer.com/api-reference/identities/re-verify-an-identity-from-its-stored-verification /api-reference/openapi.json post /issuance/identities/individuals/{individual_ref}/reverify Starts a fresh verification of the individual from the fields their current verification recorded. Nothing is collected from you and no stored field is echoed back. It requires an `Idempotency-Key`, and one re-verification runs at a time per individual: another while one is in flight answers `409`. The request is accepted with a `202` and the verification — poll `GET /issuance/identities/verifications/{verification_id}` or subscribe to the `Verification.completed` and `Verification.failed` webhooks for the outcome. An approved re-check supersedes the current verification and keeps the phone possession the individual last proved, with its original date; a failed, rejected or under-review one leaves the current verification unchanged. # Start a direct verification Source: https://docs.baselayer.com/api-reference/identities/start-a-direct-verification /api-reference/openapi.json post /issuance/identities/verifications Verifies an identity you collected: an individual, or an individual and the business they operate. Verification runs asynchronously: the request is accepted with a `202` and the verification — poll `GET /issuance/identities/verifications/{verification_id}` or subscribe to the `Verification.completed` and `Verification.failed` webhooks for the outcome. The body is chosen by `type`: `individual` verifies `individual` alone, `business` verifies `individual` with `business` and the link between them. It requires an `Idempotency-Key`. To re-verify an individual you already verified, use `POST /issuance/identities/individuals/{individual_ref}/reverify`. This is direct verification: you send an identity you collected. For a hosted enrollment session, where the applicant completes your published journey on Baselayer's page, use `POST /onboarding/sessions`. # Verify or reject that an individual operates a business Source: https://docs.baselayer.com/api-reference/identities/verify-or-reject-that-an-individual-operates-a-business /api-reference/openapi.json post /issuance/identities/businesses/{business_ref}/operator_links/{individual_ref}/decide Records your organization's own decision on whether the individual behind `individual_ref` operates the business behind `business_ref` — for example after your own due diligence. The decision applies to your organization only: it never changes what another organization sees. `VERIFIED` affirms the relationship only: business credentials assert and are dated by what your own sessions found, so if that is more than a year old, re-verify the individual before minting. `REJECTED` stops new business credentials for the pair until you decide again, whatever later sessions score; credentials already minted stay valid until they expire or you revoke them. A later decision replaces an earlier one, with its decider, time and reason; repeating the link's current status records them again without changing it. You can decide a pair only once one of your own sessions has covered it. Returns the link as the list shows it. # Get Industry Prediction Source: https://docs.baselayer.com/api-reference/industry-prediction/get-industry-prediction /api-reference/openapi.json get /naics_prediction_requests/{id} Retrieve the Industry code prediction results. # Get Industry Prediction Status Source: https://docs.baselayer.com/api-reference/industry-prediction/get-industry-prediction-status /api-reference/openapi.json get /naics_prediction_requests/{id}/status Retrieve the status of the Industry code prediction request. # Post Naics Prediction Request Source: https://docs.baselayer.com/api-reference/industry-prediction/post-naics-prediction-request /api-reference/openapi.json post /naics_prediction_requests Submit an ad-hoc NAICS code prediction request. # Get International Search Source: https://docs.baselayer.com/api-reference/international/get-international-search /api-reference/openapi.json get /international/searches/{id} Retrieve an international business search by ID. # Get International Searches Source: https://docs.baselayer.com/api-reference/international/get-international-searches /api-reference/openapi.json get /international/searches Retrieve a list of international business searches. # International business search completed Source: https://docs.baselayer.com/api-reference/international/international-business-search-completed /api-reference/webhooks.json webhook InternationalBusinessSearch.completed Emitted when an International Business search has completed and results are available. # International business search failed Source: https://docs.baselayer.com/api-reference/international/international-business-search-failed /api-reference/webhooks.json webhook InternationalBusinessSearch.failed Emitted when an International Business search has failed. # International business search submitted Source: https://docs.baselayer.com/api-reference/international/international-business-search-submitted /api-reference/webhooks.json webhook InternationalBusinessSearch.submitted Emitted when an International Business search has been submitted for processing. # List International Countries Source: https://docs.baselayer.com/api-reference/international/list-international-countries /api-reference/openapi.json get /international/countries List the jurisdictions an international search can target. One entry per country `POST /international/searches` accepts as `iso2_country_code`, with whether a lite profile and the `ENHANCED` add-on are offered there. The list is fixed for an API release and may be cached for an hour. # Post International Search Source: https://docs.baselayer.com/api-reference/international/post-international-search /api-reference/openapi.json post /international/searches Create a new international business search. # Search International Registrations Source: https://docs.baselayer.com/api-reference/international/search-international-registrations /api-reference/openapi.json get /international/registrations List registry registrations matching a business name or filing number. You must provide one of `name` or `filing_number`. With an `iso2_country_code`, a search will be performed directly at the registry for that jurisdiction. Without an `iso2_country_code`, a global search will be performed across all jurisdictions. Pass a result's `filing_number` (with the country) to `POST /international/searches` to run a lite or enhanced search for that registration. Name and address are independently optional when a filing number is supplied; provided inputs are compared with the returned profile, and omitted inputs have null match fields. Successful filing-only searches also return KYB and Risk scores. # Cancel Lien Filing Submission Source: https://docs.baselayer.com/api-reference/lien-filing/cancel-lien-filing-submission /api-reference/openapi.json post /lien_submissions/{filing_id}/cancel Cancels a lien filing submission that has been rejected and sent back for revision (i.e. 'Needs Attention' status). This endpoint allows users to cancel a lien filing submission only if it is in 'Needs Attention' status. # Create New Standalone Ucc1 Lien Filing Submission Source: https://docs.baselayer.com/api-reference/lien-filing/create-new-standalone-ucc1-lien-filing-submission /api-reference/openapi.json post /lien_submissions Creates a new standalone lien filing submission in a draft state, without anchoring it to a business or person known to the platform. Use this when the debtor has not gone through a KYB search — all debtors are supplied manually through the `debtors` list and remain fully editable while the submission is a draft. Unlike the business- and person-anchored variants, the response carries no `assigned_debtor`; every debtor lives in `debtors`. Parties may be supplied incomplete while drafting. Draft values are persisted as entered, and submit-time validation reports anything still missing. If the request body does not include secured parties, the system will attempt to generate the first secured party using the organization's lien filing preferences, if they are present in the organization's profile. The actual filing with the appropriate jurisdiction does not occur at this stage; submit the draft through the `POST /lien_submissions/{filing_id}/submit` endpoint. # Create New Ucc1 Lien Filing Submission For Business Source: https://docs.baselayer.com/api-reference/lien-filing/create-new-ucc1-lien-filing-submission-for-business /api-reference/openapi.json post /businesses/{business_id}/lien_submissions Creates a new lien filing submission against a specified business in a draft state. This endpoint enables clients to submit all necessary information required for a lien filing, including the type of filing, relevant parties (secured parties and debtors), and a comprehensive description of the collateral. Upon successful creation, the system assigns a unique identifier to the lien filing draft, which can be utilized for future modifications or inquiries. The creation process entails the validation of the submitted information, its association with the designated business entity, and the preparation of the filing for subsequent processing steps. If the request body does not include secured parties, the system will attempt to generate the first secured party using the organization's lien filing preferences, if they are present in the organization's profile. It's important to note that the actual filing with the appropriate jurisdiction does not occur at this stage; this endpoint essentially sets up the submission in a draft state, ready for submission through the `POST /lien_submissions/{filing_id}/submit` endpoint. # Create New Ucc1 Lien Filing Submission For Person Source: https://docs.baselayer.com/api-reference/lien-filing/create-new-ucc1-lien-filing-submission-for-person /api-reference/openapi.json post /people/{person_id}/lien_submissions Creates a new lien filing submission against a specified person in a draft state. This endpoint enables clients to submit all necessary information required for a lien filing, including the type of filing, relevant parties (secured parties and debtors), and a comprehensive description of the collateral. # Create New Ucc3 Lien Filing Submission Source: https://docs.baselayer.com/api-reference/lien-filing/create-new-ucc3-lien-filing-submission /api-reference/openapi.json post /lien_submissions/{filing_id}/amend Create a new UCC-3 lien filing submission to amend an existing UCC-1 filing. This endpoint allows users to initiate an amendment process for an existing UCC-1 lien filing. It creates a new UCC-3 filing submission, which can be used to modify, continue, or terminate the original UCC-1 filing. The `filing_id` in the URL represents the unique identifier of the original UCC-1 filing that is being amended. The request body contains the necessary information to create the new UCC-3 filing, including details such as the submission filing name and any reference data. Upon successful creation, a draft UCC-3 lien filing submission record is generated, allowing for further modifications before final submission. # Delete Lien Filing Submission Source: https://docs.baselayer.com/api-reference/lien-filing/delete-lien-filing-submission /api-reference/openapi.json delete /lien_submissions/{filing_id} Deletes a draft lien filing submission. This endpoint allows users to delete a lien filing submission only if it is in 'Draft' status. An imported lien filing is always deletable: deleting it is how an organization gives up its claim over a filing in the public record. # Delete Lien Submission Attachment Source: https://docs.baselayer.com/api-reference/lien-filing/delete-lien-submission-attachment /api-reference/openapi.json delete /lien_submissions/{filing_id}/attachments/{attachment_id} Deletes a specific attachment from a lien filing submission. This endpoint allows users to delete an attachment associated with a lien filing submission. The attachment is identified by its unique ID, and the lien filing submission is identified by its unique filing ID. # Download Lien Filing Import Batch Results Source: https://docs.baselayer.com/api-reference/lien-filing/download-lien-filing-import-batch-results /api-reference/openapi.json get /lien_submissions/import/batches/{batch_id}/download Answers with a signed URL of the batch's per-row results (JSONL), one line per uploaded row recording what became of it. Available once the batch has reached a terminal state and written its report — including a Failed batch, which reports the rows it did get through before it stopped. # Fetch Existing Lien Filing Source: https://docs.baselayer.com/api-reference/lien-filing/fetch-existing-lien-filing /api-reference/openapi.json get /lien_submissions/{filing_id} Fetch an existing lien filing submission by its unique identifier. This endpoint retrieves the details of a specific lien filing submission, including the filing status, parties involved, and any attachments or collateral descriptions. An imported filing is rendered from the public record it claims, so its status, parties and amendment history are always the ones the jurisdiction currently reports. # Get Lien Filing Import Batch Source: https://docs.baselayer.com/api-reference/lien-filing/get-lien-filing-import-batch /api-reference/openapi.json get /lien_submissions/import/batches/{batch_id} Gets the status and per-outcome counts of a bulk lien import. # Get Lien Filing Submissions Source: https://docs.baselayer.com/api-reference/lien-filing/get-lien-filing-submissions /api-reference/openapi.json get /lien_submissions This endpoint retrieves a list of lien filing submissions made by the authenticated organization. Each submission includes summary information such as filing type, date, number, and parties involved. # Get Lien Submission Attachment Source: https://docs.baselayer.com/api-reference/lien-filing/get-lien-submission-attachment /api-reference/openapi.json get /lien_submissions/{filing_id}/attachments/{attachment_id} Retrieve a lien submission attachment. This endpoint allows you to download an attachment associated with a specific lien submission. The attachment is identified by its unique ID, and the lien submission is identified by its unique filing ID. # Get Lien Submission Attachments Source: https://docs.baselayer.com/api-reference/lien-filing/get-lien-submission-attachments /api-reference/openapi.json get /lien_submissions/{filing_id}/attachments Retrieve attachments for a specific lien filing submission. This endpoint allows you to fetch a list of attachments associated with a given lien filing submission. The attachments provide additional documentation or evidence related to the lien filing. # Get Lien Submission Document Source: https://docs.baselayer.com/api-reference/lien-filing/get-lien-submission-document /api-reference/openapi.json get /lien_submissions/{filing_id}/submission_document Download the PDF saved with the latest successful submission. # Get Lien Submission Filed Document Source: https://docs.baselayer.com/api-reference/lien-filing/get-lien-submission-filed-document /api-reference/openapi.json get /lien_submissions/{filing_id}/filed_document Retrieve the filed lien document for a specific lien submission. # Get Lien Submission Preview Document Source: https://docs.baselayer.com/api-reference/lien-filing/get-lien-submission-preview-document /api-reference/openapi.json get /lien_submissions/{filing_id}/preview_document Render a watermarked preview of the national IACA UCC-1/UCC-3 standard form, filled from the current draft. This endpoint regenerates the PDF from the live submission on every request without storing it. Submitting the filing saves a separate snapshot. Both carry the "PREVIEW — NOT FILED" watermark. # Import Lien Filing Submission Source: https://docs.baselayer.com/api-reference/lien-filing/import-lien-filing-submission /api-reference/openapi.json post /lien_submissions/import Imports a lien that already exists in the public record, so an organization can track a filing it did not file through Baselayer alongside the ones it did. The lien is identified by the state and filing number the filing office assigned it. An amendment's filing number is accepted too and resolves to the initial financing statement it amends, because that is the filing the lien itself is identified by. Only consensual UCC filings can be imported: statutory, judicial and tax liens are imposed on a debtor rather than granted by one. The filing number is matched against the spellings the filing is known to be ingested under (leading zeros, spacing), so the record returned carries the public record's canonical filing number, which may differ from the one posted. Nothing is filed and nothing is copied: the imported record links to the public filing, so its status, parties and amendment history are always the ones the jurisdiction currently reports. Imported filings cannot be updated, submitted, cancelled or amended — delete the import to give up the claim. Importing the same lien twice is not an error: the existing record is returned with a `200 OK` instead of a `201 Created`. A lien the organization already filed through Baselayer is a `409 Conflict` instead — it is the same lien, and a second record would only drift apart from the first. Not available to sandbox applications: an import claims a filing that already exists in the public record, so there is nothing to simulate. # Import Lien Filings In Bulk Source: https://docs.baselayer.com/api-reference/lien-filing/import-lien-filings-in-bulk /api-reference/openapi.json post /lien_submissions/import/batches Submit a CSV of liens to import from the public record (one lien per row). Always processed asynchronously (202 + batch id); poll GET /lien_submissions/import/batches/{batch_id} and download per-row results via /lien_submissions/import/batches/{batch_id}/download. Batches are capped at 40,000 rows. Columns: state, filing_number, filing_name (required: state, filing_number). Only the file as a whole is validated on upload — headers, encoding, size and row count; a row the parser cannot map is reported per-row in the results instead. Rows are identified by their ORIGINAL line number in the uploaded file (the header is line 1, and skipped blank lines still take up their line). One row per line: a quoted field may not contain a line break, and a file with one is rejected naming the line the row starts on. # List Lien Filing Import Batches Source: https://docs.baselayer.com/api-reference/lien-filing/list-lien-filing-import-batches /api-reference/openapi.json get /lien_submissions/import/batches Lists the bulk lien import batches visible to the caller, most recently created first. # Lookup Initial Filing For Amendment Source: https://docs.baselayer.com/api-reference/lien-filing/lookup-initial-filing-for-amendment /api-reference/openapi.json post /lien_submissions/initial_filing_lookup Resolve the initial financing statement a UCC-3 will amend, from the state and file number the filer copies off the UCC-1. File date is optional for lookup and required when `allow_unverified` is true. The search a filer must run before creating a UCC-3. Resolution is three-way: a UCC-1 the organization filed through Baselayer resolves to that submission; a filing known from the public record is claimed as an imported filing (creating the record if this is the first claim, exactly as `POST /lien_submissions/import` would); and a filing Baselayer cannot verify at all is reported as `not_found` — unless `allow_unverified` is set, in which case it is held as an unverified imported filing built from the details supplied here. Keep `allow_unverified` off until the filer has seen the `not_found` answer and confirmed they want to proceed anyway. The resolved filing is what `POST /lien_submissions/{filing_id}/amend` then targets. `warnings` flags a file date that disagrees with the matched filing, a date past its lapse date, or a filing that is no longer Active — none of them block the lookup. The file number is validated against the state's format where the format is known (length and character checks otherwise), and the supplied file date must not be in the future nor predate the revised UCC Article 9 effective date (2001-07-01). Not available to sandbox applications: the lookup reads the real public record and can claim a filing off it, so there is nothing to simulate. # Patch Existing Lien Filing Submission Source: https://docs.baselayer.com/api-reference/lien-filing/patch-existing-lien-filing-submission /api-reference/openapi.json patch /lien_submissions/{filing_id} Patches an existing lien filing submission with new information provided by the user. This endpoint allows for the modification of lien filing submissions that are in a draft state. This route manages both UCC-1 and UCC-3 lien filing types. For specific details on the request models for each type, please refer to the `LienFilingSubmissionUpdateUCC1Request` and `LienFilingSubmissionUpdateUCC3Request` schemas. Users can update debtor and secured party information, as well as add or remove attachments related to the lien filing, depending on the filing type. Party lists replace the corresponding role atomically. An empty list explicitly clears that role. Draft parties are stored exactly as entered, including incomplete rows; completeness is enforced when the filing is submitted. Preserve each party's `id` when echoing a GET response. A party without an `id` creates a new entry; it does not replace a party protected by a Filed assignment, whose historical link is retained. It is important to note that only lien filings in a draft state can be updated. Attempting to update a lien filing that has already been submitted will result in an error. The updated information will be validated according to the lien filing requirements before being saved. If the validation fails, the update will not be processed, and an error message will be returned. Successful updates will return the updated lien filing submission details. # Submit Lien Filing Submission Source: https://docs.baselayer.com/api-reference/lien-filing/submit-lien-filing-submission /api-reference/openapi.json post /lien_submissions/{filing_id}/submit Processes a lien filing submission. This endpoint performs the following steps: 1. Validates the lien form for completeness and accuracy. 2. If valid, changes the status from 'Draft' to 'Requested'. 3. Initiates the submission for further processing. Required fields vary by filing type: UCC1 filings: - `email_contact` - `collateral_statements` - `secured_parties` (at least one) - `submission_principal_indebted_amount` (Tennessee only) - `submission_documentary_tax_stamp_required` (Florida only) UCC3 filings: - `email_contact` - `amendment_action` - `authorizing_party` **Note:** Once submitted, the lien filing becomes unmodifiable. It will undergo review and processing, potentially resulting in official filing with the appropriate jurisdiction. # Upload Lien Submission Attachment Item Attachment Source: https://docs.baselayer.com/api-reference/lien-filing/upload-lien-submission-attachment-item-attachment /api-reference/openapi.json post /lien_submissions/{filing_id}/attachments Upload attachments for a specific lien filing submission. This endpoint allows users to upload one or more PDF attachments to a lien filing submission. The attachments can include documents supporting the lien claim. # Get Adhoc Lien Searches Source: https://docs.baselayer.com/api-reference/lien-search/get-adhoc-lien-searches /api-reference/openapi.json get /lien_searches/adhoc This endpoint returns all adhoc lien searches. # Get Adhoc Liens Source: https://docs.baselayer.com/api-reference/lien-search/get-adhoc-liens /api-reference/openapi.json get /lien_searches/adhoc/{liens_search_request_id} This endpoint retrieves a specific adhoc lien search request by its unique identifier. It returns a LiensSearchRequest object that includes the state of the request and a list of lien filings associated with the request. The lien filings provide detailed information about each lien, including the filing number, type, date, status, and associated business and search request. The model also links to any amendments and the involved parties. # Get All Lien Searches Source: https://docs.baselayer.com/api-reference/lien-search/get-all-lien-searches /api-reference/openapi.json get /lien_searches This endpoint returns all lien searches. # Get Lien Filing Documents Source: https://docs.baselayer.com/api-reference/lien-search/get-lien-filing-documents /api-reference/openapi.json get /lien_searches/{liens_search_request_id}/filings/{filing_id} This endpoint downloads a PDF document associated with a specific lien filing record. The PDF document contains detailed information about the lien filing. # Get Liens Source: https://docs.baselayer.com/api-reference/lien-search/get-liens /api-reference/openapi.json get /lien_searches/{liens_search_request_id} This endpoint retrieves a specific lien search request by its unique identifier. It returns a LiensSearchRequest object that includes the state of the request and a list of lien filings associated with the request. The lien filings provide detailed information about each lien, including the filing number, type, date, status, and associated business and search request. The model also links to any amendments and the involved parties. # Get Liens Search Status Source: https://docs.baselayer.com/api-reference/lien-search/get-liens-search-status /api-reference/openapi.json get /lien_searches/{liens_search_request_id}/status This endpoint retrieves the status of a specific lien search request by its unique identifier. It returns a LiensSearchState object that includes the state of the request. # Start Liens Adhoc Search Source: https://docs.baselayer.com/api-reference/lien-search/start-liens-adhoc-search /api-reference/openapi.json post /lien_searches/adhoc Start an ad-hoc liens search using a name and explicit search states. By default, this endpoint executes synchronously and returns the completed result. Send ``Prefer: respond-async`` to opt into asynchronous execution, which returns ``202 Accepted`` immediately and delivers results via webhooks or polling. # Start Liens Search Source: https://docs.baselayer.com/api-reference/lien-search/start-liens-search /api-reference/openapi.json post /lien_searches This endpoint starts a liens search for a given person or business. Exactly one of `business_id` or `person_id` must be provided. If `person_id` is provided, `search_states` must be provided. By default, this endpoint executes synchronously and returns the completed result. Send ``Prefer: respond-async`` to opt into asynchronous execution, which returns ``202 Accepted`` immediately and delivers results via webhooks or polling. # Lien filing created Source: https://docs.baselayer.com/api-reference/liens/lien-filing-created /api-reference/webhooks.json webhook LienFiling.created Emitted when a Liens filing document has been created. # Lien filing deleted Source: https://docs.baselayer.com/api-reference/liens/lien-filing-deleted /api-reference/webhooks.json webhook LienFiling.deleted Emitted when a Liens filing document has been deleted. # Lien filing import batch completed Source: https://docs.baselayer.com/api-reference/liens/lien-filing-import-batch-completed /api-reference/webhooks.json webhook LienFilingImportBatch.completed Emitted when a bulk lien import batch has finished processing; the payload carries the per-outcome row counts. # Lien filing import batch failed Source: https://docs.baselayer.com/api-reference/liens/lien-filing-import-batch-failed /api-reference/webhooks.json webhook LienFilingImportBatch.failed Emitted when a bulk lien import batch has failed. # Lien filing updated Source: https://docs.baselayer.com/api-reference/liens/lien-filing-updated /api-reference/webhooks.json webhook LienFiling.updated Emitted when a Liens filing document has been updated. # Liens search completed Source: https://docs.baselayer.com/api-reference/liens/liens-search-completed /api-reference/webhooks.json webhook LiensSearch.completed Emitted when a Liens search for a Business has completed and results are available. # Liens search failed Source: https://docs.baselayer.com/api-reference/liens/liens-search-failed /api-reference/webhooks.json webhook LiensSearch.failed Emitted when a Liens search for a Business has failed. # Liens search submitted Source: https://docs.baselayer.com/api-reference/liens/liens-search-submitted /api-reference/webhooks.json webhook LiensSearch.submitted Emitted when a Liens search for a Business has been submitted for processing. # Get Adhoc Docket Search By Search Request Id Source: https://docs.baselayer.com/api-reference/litigation-&-bankruptcy/get-adhoc-docket-search-by-search-request-id /api-reference/openapi.json get /docket_searches/adhoc/{search_request_id} Fetches the most recent dockets for a given docket search request ID and returns all the associated dockets. # Get Adhoc Docket Searches Source: https://docs.baselayer.com/api-reference/litigation-&-bankruptcy/get-adhoc-docket-searches /api-reference/openapi.json get /docket_searches/adhoc This endpoint returns all adhoc docket searches. # Get All Docket Searches Source: https://docs.baselayer.com/api-reference/litigation-&-bankruptcy/get-all-docket-searches /api-reference/openapi.json get /docket_searches This endpoint returns all docket searches. # Get All Dockets By Search Request Id Source: https://docs.baselayer.com/api-reference/litigation-&-bankruptcy/get-all-dockets-by-search-request-id /api-reference/openapi.json get /docket_searches/{search_request_id} Fetches the most recent dockets for a given docket search request ID and returns all the associated dockets. # Get Docket Details Source: https://docs.baselayer.com/api-reference/litigation-&-bankruptcy/get-docket-details /api-reference/openapi.json get /dockets/{docket_id}/details Fetches the most recent docket details for the given docket ID. # Get Docket Details By Request Id Source: https://docs.baselayer.com/api-reference/litigation-&-bankruptcy/get-docket-details-by-request-id /api-reference/openapi.json get /docket_searches/details/{docket_details_request_id} Fetches the most recent docket details for the given docket details request ID. # Get Docket Details Request Status Source: https://docs.baselayer.com/api-reference/litigation-&-bankruptcy/get-docket-details-request-status /api-reference/openapi.json get /docket_searches/details/{docket_details_request_id}/status Fetches the state of the docket details request with the given UUID. # Get Docket Exhibit Document Source: https://docs.baselayer.com/api-reference/litigation-&-bankruptcy/get-docket-exhibit-document /api-reference/openapi.json get /dockets/exhibits/{docket_exhibit_id} Fetches the document associated with the given docket exhibit ID. # Get Docket Exhibit Request Status Source: https://docs.baselayer.com/api-reference/litigation-&-bankruptcy/get-docket-exhibit-request-status /api-reference/openapi.json get /docket_searches/exhibits/{docket_exhibit_request_id}/status Fetches the state of the docket exhibit document request with the given UUID. # Get Docket Search Status Source: https://docs.baselayer.com/api-reference/litigation-&-bankruptcy/get-docket-search-status /api-reference/openapi.json get /docket_searches/{search_request_id}/status Fetches the state of the docket search request with the given UUID. # Order Docket Details Source: https://docs.baselayer.com/api-reference/litigation-&-bankruptcy/order-docket-details /api-reference/openapi.json put /dockets/{docket_id}/details Orders updates for the given docket from the court or cached version. # Order Docket Exhibit Source: https://docs.baselayer.com/api-reference/litigation-&-bankruptcy/order-docket-exhibit /api-reference/openapi.json put /dockets/exhibits/{docket_exhibit_id} Orders the document for the given docket exhibit from the court or cached version. # Start Docket Adhoc Search Source: https://docs.baselayer.com/api-reference/litigation-&-bankruptcy/start-docket-adhoc-search /api-reference/openapi.json post /docket_searches/adhoc Starts an ad-hoc docket search using a name (and optional options). By default, this endpoint executes synchronously and returns the completed result. Send ``Prefer: respond-async`` to opt into asynchronous execution, which returns ``202 Accepted`` immediately and delivers results via webhooks or polling. # Start Docket Search Source: https://docs.baselayer.com/api-reference/litigation-&-bankruptcy/start-docket-search /api-reference/openapi.json post /docket_searches Starts a new docket search for the given business UUID or person UUID. By default, this endpoint executes synchronously and returns the completed result. Send ``Prefer: respond-async`` to opt into asynchronous execution, which returns ``202 Accepted`` immediately and delivers results via webhooks or polling. # Docket details search completed Source: https://docs.baselayer.com/api-reference/litigations/docket-details-search-completed /api-reference/webhooks.json webhook DocketDetailsSearch.completed Emitted when a Docket Details search for a given Docket has completed and results are available. # Docket details search failed Source: https://docs.baselayer.com/api-reference/litigations/docket-details-search-failed /api-reference/webhooks.json webhook DocketDetailsSearch.failed Emitted when a Docket Details search for a given Docket has failed. # Docket details search submitted Source: https://docs.baselayer.com/api-reference/litigations/docket-details-search-submitted /api-reference/webhooks.json webhook DocketDetailsSearch.submitted Emitted when a Docket Details search for a given Docket has been submitted for processing. # Docket exhibit search completed Source: https://docs.baselayer.com/api-reference/litigations/docket-exhibit-search-completed /api-reference/webhooks.json webhook DocketExhibitSearch.completed Emitted when a Docket Exhibit search for a given Docket Exhibit has completed and results are available. The document associated with the Docket Exhibit may or may not be available for download, depending on whether it was successfully retrieved from the court's system. # Docket exhibit search failed Source: https://docs.baselayer.com/api-reference/litigations/docket-exhibit-search-failed /api-reference/webhooks.json webhook DocketExhibitSearch.failed Emitted when a Docket Exhibit search for a given Docket Exhibit has failed. # Docket exhibit search submitted Source: https://docs.baselayer.com/api-reference/litigations/docket-exhibit-search-submitted /api-reference/webhooks.json webhook DocketExhibitSearch.submitted Emitted when a Docket Exhibit search for a given Docket Exhibit has been submitted for processing. # Docket search completed Source: https://docs.baselayer.com/api-reference/litigations/docket-search-completed /api-reference/webhooks.json webhook DocketSearch.completed Emitted when a Docket search for a business has completed and results are available. # Docket search failed Source: https://docs.baselayer.com/api-reference/litigations/docket-search-failed /api-reference/webhooks.json webhook DocketSearch.failed Emitted when a Docket search for a business has failed. # Docket search submitted Source: https://docs.baselayer.com/api-reference/litigations/docket-search-submitted /api-reference/webhooks.json webhook DocketSearch.submitted Emitted when a Docket search for a business has been submitted for processing. # Get Ofac Batch Source: https://docs.baselayer.com/api-reference/ofac/get-ofac-batch /api-reference/openapi.json get /ofac/searches/batches/{batch_id} Get the status of an OFAC batch. # Get Ofac Batch File Source: https://docs.baselayer.com/api-reference/ofac/get-ofac-batch-file /api-reference/openapi.json get /ofac/searches/batches/{batch_id}/download Download the resulting OFAC batch file in .jsonl format. See example output file [here](https://storage.googleapis.com/osiris-public-assets-prod/schemas/ofac_batch_result_example.jsonl) # List Ofac Batches Source: https://docs.baselayer.com/api-reference/ofac/list-ofac-batches /api-reference/openapi.json get /ofac/searches/batches List all OFAC batches for the authenticated organization. # Post Ofac Batch Source: https://docs.baselayer.com/api-reference/ofac/post-ofac-batch /api-reference/openapi.json post /ofac/searches/batches Submit a CSV for batch OFAC search, no larger than 5MB. Expects two columns with the headers `entity_name` and `reference_id`. Supports an optional `date_of_birth` column (YYYY-MM-DD format) with optional values. See sample template [here](https://storage.googleapis.com/osiris-public-assets-prod/schemas/ofac_batch_csv_example.csv) # Search Ofac Source: https://docs.baselayer.com/api-reference/ofac/search-ofac /api-reference/openapi.json post /ofac/searches Search for OFAC matches by name. # Get a hosted enrollment session Source: https://docs.baselayer.com/api-reference/onboarding/get-a-hosted-enrollment-session /api-reference/openapi.json get /onboarding/sessions/{session_id} Returns a session's state, its verdict and `terminal_reason` once it ends, your `reference_id`, and when it started and ended. Poll it, or subscribe to the session's webhooks, to learn when the applicant finishes. The embed link is not returned here: keep the `embed_url` from the `POST /onboarding/sessions` response. This is a hosted enrollment session: the applicant completes your published journey on Baselayer's page. To verify an identity you collected yourself, use a direct verification, `POST /issuance/identities/verifications`. # Get a hosted enrollment session's results Source: https://docs.baselayer.com/api-reference/onboarding/get-a-hosted-enrollment-sessions-results /api-reference/openapi.json get /onboarding/sessions/{session_id}/results Returns the outcome of a completed session: the verdict, what the applicant submitted, their confirmed identity, the business, beneficial owners, and each check's result. A session that has not completed answers 409. This is a hosted enrollment session: the applicant completes your published journey on Baselayer's page. To verify an identity you collected yourself, use a direct verification, `POST /issuance/identities/verifications`. # Start a hosted enrollment session Source: https://docs.baselayer.com/api-reference/onboarding/start-a-hosted-enrollment-session /api-reference/openapi.json post /onboarding/sessions Starts a session for one applicant on a customer journey you built and published in Console, and returns the `embed_url` where the applicant completes it. Call it from your server: the response carries a secret session token. A journey that was never published answers 409. When the session completes, the `OnboardingSession.completed` webhook fires and `GET /onboarding/sessions/{session_id}/results` returns the outcome. This is a hosted enrollment session: the applicant completes your published journey on Baselayer's page. To verify an identity you collected yourself, use a direct verification, `POST /issuance/identities/verifications`. # Naics prediction request completed Source: https://docs.baselayer.com/api-reference/online/naics-prediction-request-completed /api-reference/webhooks.json webhook NAICSPredictionRequest.completed Emitted when a NAICS code prediction request has completed and results are available. # Naics prediction request failed Source: https://docs.baselayer.com/api-reference/online/naics-prediction-request-failed /api-reference/webhooks.json webhook NAICSPredictionRequest.failed Emitted when a NAICS code prediction request has failed. # Naics prediction request submitted Source: https://docs.baselayer.com/api-reference/online/naics-prediction-request-submitted /api-reference/webhooks.json webhook NAICSPredictionRequest.submitted Emitted when a NAICS code prediction request has been submitted for processing. # Web presence request completed Source: https://docs.baselayer.com/api-reference/online/web-presence-request-completed /api-reference/webhooks.json webhook WebPresenceRequest.completed Emitted when a Web Presence request has completed and results are available. # Web presence request failed Source: https://docs.baselayer.com/api-reference/online/web-presence-request-failed /api-reference/webhooks.json webhook WebPresenceRequest.failed Emitted when a Web Presence request has failed. # Web presence request submitted Source: https://docs.baselayer.com/api-reference/online/web-presence-request-submitted /api-reference/webhooks.json webhook WebPresenceRequest.submitted Emitted when a Web Presence request has been submitted for processing. # Website analysis request completed Source: https://docs.baselayer.com/api-reference/online/website-analysis-request-completed /api-reference/webhooks.json webhook WebsiteAnalysisRequest.completed Emitted when a Website Analysis request has completed and results are available. # Website analysis request failed Source: https://docs.baselayer.com/api-reference/online/website-analysis-request-failed /api-reference/webhooks.json webhook WebsiteAnalysisRequest.failed Emitted when a Website Analysis request has failed. # Website analysis request submitted Source: https://docs.baselayer.com/api-reference/online/website-analysis-request-submitted /api-reference/webhooks.json webhook WebsiteAnalysisRequest.submitted Emitted when a Website Analysis request has been submitted for processing. # Create Organization Source: https://docs.baselayer.com/api-reference/organization-management/create-organization /api-reference/openapi.json post /organizations # Create Organization For Federation Source: https://docs.baselayer.com/api-reference/organization-management/create-organization-for-federation /api-reference/openapi.json post /federations/{federation_id}/organizations # Delete Organization Source: https://docs.baselayer.com/api-reference/organization-management/delete-organization /api-reference/openapi.json delete /organizations/{organization_id} # Get All Organizations For Federation Within Scope Source: https://docs.baselayer.com/api-reference/organization-management/get-all-organizations-for-federation-within-scope /api-reference/openapi.json get /federations/{federation_id}/organizations Gets and returns all Organizations' profiles within a specific Federation. The authenticated user must have the 'federation:read' permission. If the authenticated user is an Operator, they can access any Organizations' profile within the Federation. If the authenticated user is a User or an Organization, they can only access the profiles of their own Organization within the Federation. # Get All Organizations Within Scope Source: https://docs.baselayer.com/api-reference/organization-management/get-all-organizations-within-scope /api-reference/openapi.json get /organizations Gets and returns the all Organizations' profiles. The authenticated user must have the 'organizations:read' permission. If the authenticated user is an Operator, they can access any Organizations' profile. If the authenticated user is a User or an Organization, they can only access the profile of their own Organization. Args: auth_context (BaseAuthContext): The authentication context of the request. Returns: The Organizations' profiles. # Get Organization Source: https://docs.baselayer.com/api-reference/organization-management/get-organization /api-reference/openapi.json get /organizations/{organization_id} Gets and returns the Organization profile of a specific Organization. The authenticated user must have the 'organizations:read' permission. If the authenticated user is an Operator, they can access any Organizations' profile. If the authenticated user is a User or an Organization, they can only access the profile of their own Organization. Args: organization_id (uuid.UUID): The unique identifier of the Organization. auth_context (BaseAuthContext): The authentication context of the request. Returns: The Organization's profile. # Patch Organization In Federation Source: https://docs.baselayer.com/api-reference/organization-management/patch-organization-in-federation /api-reference/openapi.json patch /organizations/{organization_id} # Adverse media search completed Source: https://docs.baselayer.com/api-reference/people/adverse-media-search-completed /api-reference/webhooks.json webhook AdverseMediaSearch.completed Emitted when an Adverse Media Search request has completed and results are available. # Adverse media search failed Source: https://docs.baselayer.com/api-reference/people/adverse-media-search-failed /api-reference/webhooks.json webhook AdverseMediaSearch.failed Emitted when an Adverse Media Search request has failed. # Adverse media search submitted Source: https://docs.baselayer.com/api-reference/people/adverse-media-search-submitted /api-reference/webhooks.json webhook AdverseMediaSearch.submitted Emitted when an Adverse Media Search request has been submitted for processing. # Create Person Source: https://docs.baselayer.com/api-reference/people/create-person /api-reference/openapi.json post /people Creates a new person record in the database. # Dmf search completed Source: https://docs.baselayer.com/api-reference/people/dmf-search-completed /api-reference/webhooks.json webhook DMFSearch.completed Emitted when a Death Master File search has completed and results are available. # Dmf search failed Source: https://docs.baselayer.com/api-reference/people/dmf-search-failed /api-reference/webhooks.json webhook DMFSearch.failed Emitted when a Death Master File search has failed. # Dmf search submitted Source: https://docs.baselayer.com/api-reference/people/dmf-search-submitted /api-reference/webhooks.json webhook DMFSearch.submitted Emitted when a Death Master File search has been submitted for processing. # Employee verification request completed Source: https://docs.baselayer.com/api-reference/people/employee-verification-request-completed /api-reference/webhooks.json webhook EmployeeVerificationRequest.completed Emitted when an Employee Verification Request has completed and results are available. # Employee verification request failed Source: https://docs.baselayer.com/api-reference/people/employee-verification-request-failed /api-reference/webhooks.json webhook EmployeeVerificationRequest.failed Emitted when an Employee Verification Request has failed. # Employee verification request submitted Source: https://docs.baselayer.com/api-reference/people/employee-verification-request-submitted /api-reference/webhooks.json webhook EmployeeVerificationRequest.submitted Emitted when an Employee Verification Request has been submitted for processing. # Get Person Source: https://docs.baselayer.com/api-reference/people/get-person /api-reference/openapi.json get /people/{id} # Person search completed Source: https://docs.baselayer.com/api-reference/people/person-search-completed /api-reference/webhooks.json webhook PersonSearch.completed Emitted when a Person search has completed and results are available. # Person search failed Source: https://docs.baselayer.com/api-reference/people/person-search-failed /api-reference/webhooks.json webhook PersonSearch.failed Emitted when a Person search has failed. # Person search submitted Source: https://docs.baselayer.com/api-reference/people/person-search-submitted /api-reference/webhooks.json webhook PersonSearch.submitted Emitted when a Person search has been submitted for processing. # Person search updated Source: https://docs.baselayer.com/api-reference/people/person-search-updated /api-reference/webhooks.json webhook PersonSearch.updated Emitted when a Person search has been updated. E.g. if the IRS was down for tin matching, the search may be updated at a later date with the correct tin_matched result. # Search Pep Source: https://docs.baselayer.com/api-reference/pep/search-pep /api-reference/openapi.json post /pep/searches Search for Politically Exposed Persons (PEP) matches by name. # Create Person Search Source: https://docs.baselayer.com/api-reference/person-search/create-person-search /api-reference/openapi.json post /person_searches # Get Person Search Source: https://docs.baselayer.com/api-reference/person-search/get-person-search /api-reference/openapi.json get /person_searches/{id} # Get Person Search Status Source: https://docs.baselayer.com/api-reference/person-search/get-person-search-status /api-reference/openapi.json get /person_searches/{id}/status # Get Person Searches Source: https://docs.baselayer.com/api-reference/person-search/get-person-searches /api-reference/openapi.json get /person_searches # Api key created Source: https://docs.baselayer.com/api-reference/platform/api-key-created /api-reference/webhooks.json webhook APIKey.created Emitted when a new API Key is created. # Api key deleted Source: https://docs.baselayer.com/api-reference/platform/api-key-deleted /api-reference/webhooks.json webhook APIKey.deleted Emitted when an API Key is deleted. # Email sender failed Source: https://docs.baselayer.com/api-reference/platform/email-sender-failed /api-reference/webhooks.json webhook EmailSender.failed Emitted when the organization's SMTP sender has failed code emails for a reason the organization must fix, at most once an hour. # Onboarding session completed Source: https://docs.baselayer.com/api-reference/platform/onboarding-session-completed /api-reference/webhooks.json webhook OnboardingSession.completed Emitted when a hosted enrollment session completes. Carries the session's state, verdict and pairwise refs. A direct verification sends `Verification.completed` instead. # Onboarding session failed Source: https://docs.baselayer.com/api-reference/platform/onboarding-session-failed /api-reference/webhooks.json webhook OnboardingSession.failed Emitted when a hosted enrollment session fails. Carries the `OnboardingSession.completed` payload plus `terminal_reason`. A direct verification sends `Verification.failed` instead. # Onboarding session updated Source: https://docs.baselayer.com/api-reference/platform/onboarding-session-updated /api-reference/webhooks.json webhook OnboardingSession.updated Emitted once per manual decision a reviewer records on a completed under-review hosted enrollment session. Carries the session status plus the decision, its reason, when it was made, and the open findings it resolved. A direct verification sends `Verification.updated` instead. # Order created Source: https://docs.baselayer.com/api-reference/platform/order-created /api-reference/webhooks.json webhook Order.created Emitted when an Order has been placed for a Baselayer product. # Verification completed Source: https://docs.baselayer.com/api-reference/platform/verification-completed /api-reference/webhooks.json webhook Verification.completed Emitted when a direct verification completes. The payload is the verification as `GET /issuance/identities/verifications/{verification_id}` returns it. A hosted enrollment session sends `OnboardingSession.completed` instead. # Verification failed Source: https://docs.baselayer.com/api-reference/platform/verification-failed /api-reference/webhooks.json webhook Verification.failed Emitted when a direct verification fails. The payload is the verification as `GET /issuance/identities/verifications/{verification_id}` returns it. A hosted enrollment session sends `OnboardingSession.failed` instead. # Verification updated Source: https://docs.baselayer.com/api-reference/platform/verification-updated /api-reference/webhooks.json webhook Verification.updated Emitted once per manual decision a reviewer records on a direct verification. The payload is the verification as `GET /issuance/identities/verifications/{verification_id}` returns it, with the decision's `verdict`. A hosted enrollment session sends `OnboardingSession.updated` instead. # Create Portfolio Group Source: https://docs.baselayer.com/api-reference/portfolio-monitoring/create-portfolio-group /api-reference/openapi.json post /portfolio/groups # Create Portfolio Group Notification Policy Source: https://docs.baselayer.com/api-reference/portfolio-monitoring/create-portfolio-group-notification-policy /api-reference/openapi.json post /portfolio/groups/{group_id}/notification_policies Create a notification policy for a portfolio group. Its digest covers the group's items in addition to any portfolio-wide digest; it does not remove them from one. # Create Portfolio Item Source: https://docs.baselayer.com/api-reference/portfolio-monitoring/create-portfolio-item /api-reference/openapi.json post /portfolio/items # Create Portfolio Item Notification Policy Source: https://docs.baselayer.com/api-reference/portfolio-monitoring/create-portfolio-item-notification-policy /api-reference/openapi.json post /portfolio/items/{item_id}/notification_policies Create a notification policy for a portfolio item. Its digest covers the item in addition to any portfolio or group digest; it does not remove the item from one. # Create Portfolio Items Bulk Source: https://docs.baselayer.com/api-reference/portfolio-monitoring/create-portfolio-items-bulk /api-reference/openapi.json post /portfolio/items/bulk Create Business portfolio items for many completed searches. Request-level authorization and group lookup failures still fail the full request. Per-search failures are returned in ``errors`` so the caller can add every eligible row from a checkbox selection without retrying successful rows. Bulk success and error rows are intentionally lightweight. The frontend only needs IDs and stable error codes for row correlation, cache refreshes, and summary toasts, so the endpoint avoids full PortfolioItem serialization and verbose per-row errors. # Create Portfolio Notification Policy Source: https://docs.baselayer.com/api-reference/portfolio-monitoring/create-portfolio-notification-policy /api-reference/openapi.json post /portfolio/notification_policies Create a notification policy for the portfolio. Its digest covers every item in the portfolio, including items in groups that have policies of their own. # Delete Notification Policy Source: https://docs.baselayer.com/api-reference/portfolio-monitoring/delete-notification-policy /api-reference/openapi.json delete /notification_policies/{notification_policy_id} Delete a notification policy by ID. # Delete Portfolio Group Source: https://docs.baselayer.com/api-reference/portfolio-monitoring/delete-portfolio-group /api-reference/openapi.json delete /portfolio/groups/{group_id} # Delete Portfolio Group Monitoring Policy Source: https://docs.baselayer.com/api-reference/portfolio-monitoring/delete-portfolio-group-monitoring-policy /api-reference/openapi.json delete /portfolio/groups/{group_id}/monitoring_policy Delete the monitoring policy for a portfolio group. # Delete Portfolio Item Source: https://docs.baselayer.com/api-reference/portfolio-monitoring/delete-portfolio-item /api-reference/openapi.json delete /portfolio/items/{item_id} # Delete Portfolio Item Monitoring Policy Source: https://docs.baselayer.com/api-reference/portfolio-monitoring/delete-portfolio-item-monitoring-policy /api-reference/openapi.json delete /portfolio/items/{item_id}/monitoring_policy Delete the monitoring policy for a portfolio item. # Get Monitoring Policies Source: https://docs.baselayer.com/api-reference/portfolio-monitoring/get-monitoring-policies /api-reference/openapi.json get /monitoring_policies Get all monitoring policies in the organization with pagination. Policies are sorted by created_at in ascending order. # Get Notification Policies Source: https://docs.baselayer.com/api-reference/portfolio-monitoring/get-notification-policies /api-reference/openapi.json get /notification_policies Get all notification policies in the organization with pagination. Policies are sorted by created_at in ascending order. # Get Notification Policy Source: https://docs.baselayer.com/api-reference/portfolio-monitoring/get-notification-policy /api-reference/openapi.json get /notification_policies/{notification_policy_id} Get a notification policy by ID. # Get Portfolio Group Source: https://docs.baselayer.com/api-reference/portfolio-monitoring/get-portfolio-group /api-reference/openapi.json get /portfolio/groups/{group_id} # Get Portfolio Group Items Source: https://docs.baselayer.com/api-reference/portfolio-monitoring/get-portfolio-group-items /api-reference/openapi.json get /portfolio/groups/{group_id}/items Get all portfolio items in a specific group with pagination and filtering. Items are sorted by created_at in descending order. Supports filtering by date range and business name/ID. # Get Portfolio Group Monitoring Policy Source: https://docs.baselayer.com/api-reference/portfolio-monitoring/get-portfolio-group-monitoring-policy /api-reference/openapi.json get /portfolio/groups/{group_id}/monitoring_policy Get the monitoring policy for a portfolio group. # Get Portfolio Group Notification Policies Source: https://docs.baselayer.com/api-reference/portfolio-monitoring/get-portfolio-group-notification-policies /api-reference/openapi.json get /portfolio/groups/{group_id}/notification_policies Get notification policies directly bound to a portfolio group. A group policy's digest covers the group's items in addition to any portfolio-wide digest; it does not remove them from one. # Get Portfolio Group Updates Source: https://docs.baselayer.com/api-reference/portfolio-monitoring/get-portfolio-group-updates /api-reference/openapi.json get /portfolio/groups/{group_id}/updates # Get Portfolio Groups Source: https://docs.baselayer.com/api-reference/portfolio-monitoring/get-portfolio-groups /api-reference/openapi.json get /portfolio/groups Get all portfolio groups in the organization with pagination. Groups are sorted by created_at in descending order. Optionally filter by group name using the 'q' parameter. # Get Portfolio Item Source: https://docs.baselayer.com/api-reference/portfolio-monitoring/get-portfolio-item /api-reference/openapi.json get /portfolio/items/{item_id} # Get Portfolio Item Changes Source: https://docs.baselayer.com/api-reference/portfolio-monitoring/get-portfolio-item-changes /api-reference/openapi.json get /portfolio/items/{item_id}/changes Retrieves all changes for a portfolio item across all snapshots. Returns a list of DiffChange objects representing all changes between consecutive snapshots for the portfolio item. # Get Portfolio Item Monitoring Policy Source: https://docs.baselayer.com/api-reference/portfolio-monitoring/get-portfolio-item-monitoring-policy /api-reference/openapi.json get /portfolio/items/{item_id}/monitoring_policy Get the monitoring policy for a portfolio item. # Get Portfolio Item Notification Policies Source: https://docs.baselayer.com/api-reference/portfolio-monitoring/get-portfolio-item-notification-policies /api-reference/openapi.json get /portfolio/items/{item_id}/notification_policies Get notification policies directly bound to a portfolio item. An item policy's digest covers the item in addition to any portfolio or group digest; it does not remove the item from one. # Get Portfolio Item Notifications Source: https://docs.baselayer.com/api-reference/portfolio-monitoring/get-portfolio-item-notifications /api-reference/openapi.json get /portfolio/items/{item_id}/notifications Retrieves all changes for a portfolio item across all snapshots. Returns a list of DiffChange objects representing all changes between consecutive snapshots for the portfolio item. # Get Portfolio Item Snapshot Source: https://docs.baselayer.com/api-reference/portfolio-monitoring/get-portfolio-item-snapshot /api-reference/openapi.json get /portfolio/items/{item_id}/snapshots/{snapshot_id} Retrieves a specific snapshot for a portfolio item. Returns the snapshot data for the specified snapshot ID, including business information, liens, dockets, and website analysis. # Get Portfolio Item Snapshot Diff Source: https://docs.baselayer.com/api-reference/portfolio-monitoring/get-portfolio-item-snapshot-diff /api-reference/openapi.json get /portfolio/items/{item_id}/diff Retrieves a diff between two snapshots of a portfolio item. The diff shows the changes between the from_snapshot and to_snapshot, including business information, liens, dockets, and website analysis changes. Args: format: The response format. Options: - json (default): Returns the full diff response with snapshots and changes - notifications: Returns notifications generated from the diff changes - json_patch: Returns only the JSON patch operations array # Get Portfolio Item Snapshots Source: https://docs.baselayer.com/api-reference/portfolio-monitoring/get-portfolio-item-snapshots /api-reference/openapi.json get /portfolio/items/{item_id}/snapshots Retrieves a paginated list of snapshots for a specific portfolio item. Snapshots are ordered by created_at in descending order (newest first). # Get Portfolio Item Updates Source: https://docs.baselayer.com/api-reference/portfolio-monitoring/get-portfolio-item-updates /api-reference/openapi.json get /portfolio/items/{item_id}/updates # Get Portfolio Items Source: https://docs.baselayer.com/api-reference/portfolio-monitoring/get-portfolio-items /api-reference/openapi.json get /portfolio/items # Get Portfolio Monitoring Policy Source: https://docs.baselayer.com/api-reference/portfolio-monitoring/get-portfolio-monitoring-policy /api-reference/openapi.json get /portfolio/monitoring_policy Get the monitoring policy for the portfolio. # Get Portfolio Notification Policies Source: https://docs.baselayer.com/api-reference/portfolio-monitoring/get-portfolio-notification-policies /api-reference/openapi.json get /portfolio/notification_policies Get notification policies directly bound to the portfolio. A portfolio policy's digest covers every item in the portfolio, including items in groups that have policies of their own. # Get Portfolio Updates Source: https://docs.baselayer.com/api-reference/portfolio-monitoring/get-portfolio-updates /api-reference/openapi.json get /portfolio/updates # Portfolio group created Source: https://docs.baselayer.com/api-reference/portfolio-monitoring/portfolio-group-created /api-reference/webhooks.json webhook PortfolioGroup.created Emitted when a portfolio group was created. # Portfolio group deleted Source: https://docs.baselayer.com/api-reference/portfolio-monitoring/portfolio-group-deleted /api-reference/webhooks.json webhook PortfolioGroup.deleted Emitted when a portfolio group was deleted. # Portfolio group updated Source: https://docs.baselayer.com/api-reference/portfolio-monitoring/portfolio-group-updated /api-reference/webhooks.json webhook PortfolioGroup.updated Emitted when a portfolio group was updated. # Portfolio item created Source: https://docs.baselayer.com/api-reference/portfolio-monitoring/portfolio-item-created /api-reference/webhooks.json webhook PortfolioItem.created Emitted when a business was added to the portfolio. # Portfolio item deleted Source: https://docs.baselayer.com/api-reference/portfolio-monitoring/portfolio-item-deleted /api-reference/webhooks.json webhook PortfolioItem.deleted Emitted when a portfolio item has been deleted. # Portfolio item updated Source: https://docs.baselayer.com/api-reference/portfolio-monitoring/portfolio-item-updated /api-reference/webhooks.json webhook PortfolioItem.updated Emitted when a portfolio item has been updated. # Update Notification Policy Source: https://docs.baselayer.com/api-reference/portfolio-monitoring/update-notification-policy /api-reference/openapi.json put /notification_policies/{notification_policy_id} Update a notification policy by ID. # Update Portfolio Group Source: https://docs.baselayer.com/api-reference/portfolio-monitoring/update-portfolio-group /api-reference/openapi.json put /portfolio/groups/{group_id} # Update Portfolio Group Monitoring Policy Source: https://docs.baselayer.com/api-reference/portfolio-monitoring/update-portfolio-group-monitoring-policy /api-reference/openapi.json put /portfolio/groups/{group_id}/monitoring_policy Update the monitoring policy for a portfolio group. # Update Portfolio Item Source: https://docs.baselayer.com/api-reference/portfolio-monitoring/update-portfolio-item /api-reference/openapi.json put /portfolio/items/{item_id} # Update Portfolio Item Monitoring Policy Source: https://docs.baselayer.com/api-reference/portfolio-monitoring/update-portfolio-item-monitoring-policy /api-reference/openapi.json put /portfolio/items/{item_id}/monitoring_policy Update the monitoring policy for a portfolio item. # Update Portfolio Monitoring Policy Source: https://docs.baselayer.com/api-reference/portfolio-monitoring/update-portfolio-monitoring-policy /api-reference/openapi.json put /portfolio/monitoring_policy Update the monitoring policy for the portfolio. # Business Prefill Source: https://docs.baselayer.com/api-reference/prefill/business-prefill /api-reference/openapi.json get /prefill/businesses Prefill businesses by searching officer names. Business name is optional and used only for matching comparison in the response. # List every reason code Source: https://docs.baselayer.com/api-reference/reason-codes/list-every-reason-code /api-reference/openapi.json get /reason_codes Return the full catalog of reason codes, deprecated ones included. # Fetch the business credential's type metadata Source: https://docs.baselayer.com/api-reference/registry/fetch-the-business-credentials-type-metadata /api-reference/openapi.json get /vct/kya/business/v1 SD-JWT VC Type Metadata for the business credential: its display name and, per claim, a label, whether the claim is selectively disclosable, and whether it is mandatory. The URL is the credential's `vct`, served only on the production registry host. Unauthenticated; cacheable for one hour. # Fetch the credential issuer's JWT VC Issuer Metadata Source: https://docs.baselayer.com/api-reference/registry/fetch-the-credential-issuers-jwt-vc-issuer-metadata /api-reference/openapi.json get /.well-known/jwt-vc-issuer JWT VC Issuer Metadata (draft-ietf-oauth-sd-jwt-vc-19 §4) for the credential issuer whose registry host the request names: `issuer` equals the `iss` of every credential that issuer signs, and `jwks` carries the same rotation set as that host's JWKS. Verifiers resolve a credential's signing key here. Unauthenticated; cacheable for one hour. # Fetch the credential issuer's public keys (JWKS) Source: https://docs.baselayer.com/api-reference/registry/fetch-the-credential-issuers-public-keys-jwks /api-reference/openapi.json get /.well-known/jwks.json The published public keys of the credential issuer whose registry host the request names, as an RFC 7517 JSON Web Key Set — the same rotation set that host's DID document carries, for verifiers that consume a JWKS directly. Unauthenticated; cacheable for one hour. # Fetch the credential status list token Source: https://docs.baselayer.com/api-reference/registry/fetch-the-credential-status-list-token /api-reference/openapi.json get /statuslists/{list_id} The OAuth Token Status List `list_id` of the issuer whose registry host the request names; production and sandbox each serve their own. An issuer fills list 1, then list 2, and so on; a list it has not allocated is 404. Each credential's `status` claim names its own list URI on its issuer's host and a bit index; bit set means revoked. Returned as a signed `statuslist+jwt` verifiable against the issuer's published JWKS. Unauthenticated; cacheable for at most the token's `ttl` claim, which this response's max-age mirrors. # Fetch the individual credential's type metadata Source: https://docs.baselayer.com/api-reference/registry/fetch-the-individual-credentials-type-metadata /api-reference/openapi.json get /vct/kya/individual/v1 SD-JWT VC Type Metadata for the individual credential: its display name and, per claim, a label, whether the claim is selectively disclosable, and whether it is mandatory. The URL is the credential's `vct`, served only on the production registry host. Unauthenticated; cacheable for one hour. # Resolve the credential issuer's DID document Source: https://docs.baselayer.com/api-reference/registry/resolve-the-credential-issuers-did-document /api-reference/openapi.json get /.well-known/did.json The W3C DID document for the Baselayer credential issuer whose registry host the request names: production and sandbox each publish their own on their own host. It carries the same keys as the host's JWT VC Issuer Metadata, for did-aware tooling; credentials name an https issuer, so verifiers resolve keys through `/.well-known/jwt-vc-issuer`. Keys publish ahead of activation and remain published through rotation overlap, so verifier caches stay warm. Unauthenticated; cacheable for one hour. # Mla Search Source: https://docs.baselayer.com/api-reference/scra-&-mla/mla-search /api-reference/openapi.json post /mla/searches # Scra Search Source: https://docs.baselayer.com/api-reference/scra-&-mla/scra-search /api-reference/openapi.json post /scra/searches # Export Search To Pdf Source: https://docs.baselayer.com/api-reference/search/export-search-to-pdf /api-reference/openapi.json post /searches/{id}/export # Get Search Source: https://docs.baselayer.com/api-reference/search/get-search /api-reference/openapi.json get /searches/{id} Retrieve a business search by ID. # Get Search Batch Source: https://docs.baselayer.com/api-reference/search/get-search-batch /api-reference/openapi.json get /searches/batch/{id} Retrieve a SearchBatch by ID and return it in `SearchBatchResponse` format. The two TIN counts are computed per request rather than stored. ``tin_matching_pending_count`` counts the batch's searches still inside the IRS TIN-match retry budget, so it falls as verdicts land; while it is positive the batch's exports are a provisional snapshot that will be regenerated — ``exports_generated_at`` moves forward each time — so a caller that cached a download should re-read this response before trusting it. It reaching zero means nothing is left to retry, NOT that every TIN was verified. ``tin_matching_unresolved_count`` is the companion that says how many rows FINISHED without a verdict and dropped out of the retry pool (budget spent, retries disabled for the program, or the search cancelled). Both come from one scan so they cannot disagree. The two do not partition the batch's TIN rows: a search that is still running is in neither, because its TIN match has not been attempted to a conclusion. On a ``COMPLETED`` batch two zeroes therefore do mean every TIN was verified; on one still processing they mean only that nothing has been given up on yet. # Get Searches Source: https://docs.baselayer.com/api-reference/search/get-searches /api-reference/openapi.json get /searches Retrieve a list of business searches. # Get Task Status Source: https://docs.baselayer.com/api-reference/search/get-task-status /api-reference/openapi.json get /searches/{id}/status Retrieve the status of a business search by ID. # List search batches Source: https://docs.baselayer.com/api-reference/search/list-search-batches /api-reference/openapi.json get /searches/batches List all search batches for the authenticated user's organization. # Post Search Source: https://docs.baselayer.com/api-reference/search/post-search /api-reference/openapi.json post /searches Create a new business search. Identify the business by ``name`` and ``address``, or by an autocomplete suggestion's ``business_token`` alone: one or the other, never both. Supports both the legacy ``Accept: application/vnd.osiris.sync+json`` header (v1 backward compatibility) and the new ``Prefer`` header (RFC 7240) for controlling sync/async execution. When both are present, ``Prefer`` takes precedence. # Get Tin Verification Source: https://docs.baselayer.com/api-reference/tin-verification/get-tin-verification /api-reference/openapi.json get /tin_verifications/{id} Retrieve a TIN Verification Request by ID. # List Tin Verifications Source: https://docs.baselayer.com/api-reference/tin-verification/list-tin-verifications /api-reference/openapi.json get /tin_verifications List all Federations that the authenticated actor has access to. # Submit Tin Verification Source: https://docs.baselayer.com/api-reference/tin-verification/submit-tin-verification /api-reference/openapi.json post /tin_verifications Search for a TIN (Tax Identification Number) against IRS records by name. Note: An error will be raised if the IRS validation service is experiencing an outage. Check status.baselayer.com for service updates. # Search Multiple Watchlists Source: https://docs.baselayer.com/api-reference/watchlists/search-multiple-watchlists /api-reference/openapi.json get /watchlists Search a name across one or more watchlists, grouped by source. # Get Web Presence Request Source: https://docs.baselayer.com/api-reference/web-presence/get-web-presence-request /api-reference/openapi.json get /web_presence_requests/{id} Retrieve a Web Presence Request. # List Web Presence Requests Source: https://docs.baselayer.com/api-reference/web-presence/list-web-presence-requests /api-reference/openapi.json get /web_presence_requests Retrieve a paginated list of Web Presence Requests. # Post Web Presence Request Source: https://docs.baselayer.com/api-reference/web-presence/post-web-presence-request /api-reference/openapi.json post /web_presence_requests Submit a web presence request. # Create Webhook Endpoint Source: https://docs.baselayer.com/api-reference/webhook-management/create-webhook-endpoint /api-reference/openapi.json post /webhooks # Delete Webhook Endpoint Source: https://docs.baselayer.com/api-reference/webhook-management/delete-webhook-endpoint /api-reference/openapi.json delete /webhooks/{endpoint_id} # Get Webhook Endpoint Source: https://docs.baselayer.com/api-reference/webhook-management/get-webhook-endpoint /api-reference/openapi.json get /webhooks/{endpoint_id} # List Webhook Endpoints Source: https://docs.baselayer.com/api-reference/webhook-management/list-webhook-endpoints /api-reference/openapi.json get /webhooks # Patch Webhook Endpoint Source: https://docs.baselayer.com/api-reference/webhook-management/patch-webhook-endpoint /api-reference/openapi.json patch /webhooks/{endpoint_id} # Update Webhook Endpoint Source: https://docs.baselayer.com/api-reference/webhook-management/update-webhook-endpoint /api-reference/openapi.json put /webhooks/{endpoint_id} # Get Website Analysis Request Source: https://docs.baselayer.com/api-reference/website-analysis/get-website-analysis-request /api-reference/openapi.json get /website_analysis_requests/{id} Retrieve a Website Analysis. # Get Website Analysis Requests Source: https://docs.baselayer.com/api-reference/website-analysis/get-website-analysis-requests /api-reference/openapi.json get /website_analysis_requests Retrieve a list of Website Analyses. # Get Website Analysis Screenshot Source: https://docs.baselayer.com/api-reference/website-analysis/get-website-analysis-screenshot /api-reference/openapi.json get /website_analysis/{id}/screenshot Retrieve the Website Analysis for a given search. # Post Website Analysis Source: https://docs.baselayer.com/api-reference/website-analysis/post-website-analysis /api-reference/openapi.json post /website_analysis_requests Submit a website analysis request against a URL. # Account Settings: Watchlist Screening and Lien Matching Source: https://docs.baselayer.com/changelog/account-settings-watchlist-screening-and-lien-matching Sep 19, 2026 Admins can now tailor how Baselayer screens and matches for their organization, from the new **Settings** tab in the console. \ **Watchlist Screening:** choose which lists your business searches screen against (OFAC, PEP, the Consolidated Screening List, FBI Wanted, Canadian sanctions and HHS OIG exclusions), and set the match sensitivity, meaning how close a name has to be before it is reported as a hit. A higher percentage returns fewer, more exact matches. Every list is on by default, with a 95% threshold. **Lien Matching:** choose which looser debtor-name matches a lien search returns in addition to exact matches: alternative names such as DBAs, names that differ only in their legal suffix, fuzzy matches, and collapsed initialisms. Every option is off by default, so your results don't change unless you turn one on. See [Account Settings](/docs/account-settings). # Ad-Hoc Lien Search Source: https://docs.baselayer.com/changelog/ad-hoc-lien-search Aug 3, 2026 **Ad-hoc lien search** is now available directly in the Console. Search UCC lien filings by business or person name across one or more states without first creating a business profile: submit a search, watch results come back per state, and browse a paginated, searchable history of your previous ad-hoc searches. Each result links through to a full lien filing detail view: parties, amendments, collateral, and the filed document. The same capability is available programmatically. Start a search with `POST /lien_searches/adhoc`, poll `GET /lien_searches/adhoc/{id}` for its results, and list prior searches with `GET /lien_searches/adhoc` (now with cursor-based pagination and a name/ID filter). Each search is billed per selected state. See [Liens](/docs/lien-search-basics). No integration changes required. # Add a Completed Batch to Portfolio Monitoring Source: https://docs.baselayer.com/changelog/add-a-completed-batch-to-portfolio-monitoring Aug 10, 2026 You can now take a **completed batch search** and add its businesses to Portfolio Monitoring in a single action - including into a monitoring group when applicable - directly from the batch view in the console. Businesses already in monitoring are skipped and reported back rather than duplicated. Integration impact: additive; existing Portfolio Monitoring integrations are unaffected. No integration changes required. # Announcing Litigation & Bankruptcy Search Source: https://docs.baselayer.com/changelog/announcing-litigation-bankruptcy-search March 4, 2024 Users can now use the `business_id` of any business to initiate a search for litigations & bankruptcies using our new APIs! ## 1) Initial Docket Search [To start a litigation & bankruptcy search](/api-reference/litigation-&-bankruptcy/start-docket-search), simply make a `POST` request to `/docket_searches` using the business's UUID. We will search for and return up to 50 recent Litigations & Bankruptcies. Additionally, we often find Trademarks and Patent Application history. After initializing the search, we emit a `DocketSearch.submitted` webhook event. to indicate that a Litigation & Bankruptcy search has commenced. Upon completion, we emit a `DocketSearch.completed` webhook event. In addition to the webhooks, one can also retrieve all Litigations and Bankruptcies through a variety of other methods: * By `business_id` * Litigations: `GET /businesses/\{business\_id}/litigations` * Bankruptcies: `GET /businesses/\{business\_id}/bankruptcies` * By `search_request_id` * Litigations: `GET /docket\_searches/\{search\_request\_id}/litigations` * Bankruptcies: `GET /docket\_searches/\{search\_request\_id}/bankruptcies` * Both: [GET /docket_searches/\{search_request_id}](/api-reference/litigation-&-bankruptcy/get-all-dockets-by-search-request-id) ## 2) Retrieving Docket Details After the initial dockets are retrieved, you may want to learn more about a specific docket, such as viewing docket case history. To see details for a given docket, you must order them explicitly. This can be done using the `docket_id` and ordering the details with [PUT /dockets/\{docket_id}/details](/api-reference/litigation-&-bankruptcy/order-docket-details). The response from ordering docket details will return results from our cache by default. However, if you wish to get the most up-to-date details, you will need to order docket details from the court system itself by setting the param `from_court` to `true`. Initializing a request for docket details will emit a `DocketDetailsSearch.submitted` webhook event. Once the search for docket details completes, a `DocketDetailsSearch.completed` webhook event will be emitted. To retrieve the results, there are three options. You can either: * Retrieve the entire array of dockets using the one of the options in Part 1 * Use [GET /dockets/\{docket_id}/details](/api-reference/litigation-&-bankruptcy/get-docket-details) to retrieve the specifics for an individual `docket_id`. * Or use [GET /docket_searches/details/\{docket_details_request_id}](/api-reference/litigation-&-bankruptcy/get-docket-details-by-request-id) to retrieve the specifics for an individual docket by the docket details request id. Docket details sometimes include documents which may or may not be available for download. To retrieve a document with `is_available = False` you must also order the document explicitly from the court system. If a docket exhibit is available `is_available = True` the document can downloaded using [GET /dockets/exhibits/\{docket_exhibit_id}](/api-reference/litigation-&-bankruptcy/get-docket-exhibit-document) ## 3) Ordering from Court Directly Both [PUT /dockets/\{docket_id}/details](/api-reference/litigation-&-bankruptcy/order-docket-details) and [PUT /dockets/exhibits/\{docket_exhibit_id}](/api-reference/litigation-&-bankruptcy/order-docket-exhibit) allow you to order update for docket details and docket exhibits from the court system directly using the boolean parameter `from_court`. Depending on the court system, this may involve extra PACER fees, which are passed through directly. Smaller court systems often have fairly brittle APIs, so ordering from the court system directly can be prone to failure. # SEC Registrations in Business Search Source: https://docs.baselayer.com/changelog/apr-11-2026-sec-registrations-in-business-search Apr 11, 2026 Business search responses now include a `sec_registrations` field when the searched entity has filings with the SEC. This surfaces the entity's **CIK number**, **ticker symbol(s)**, and the name as registered with the SEC. Useful for identifying publicly traded companies, SEC-registered investment advisers, and broker-dealers as part of your KYB flow - without a separate lookup. # Event Webhook Metadata Added Source: https://docs.baselayer.com/changelog/apr-17-2025-event-webhook-metadata-added Apr 17, 2025 We’ve upgraded our webhook payloads to make routing, debugging, and event classification significantly easier for engineering teams. This update requires no integration changes.\ All existing webhook endpoints automatically receive the enhanced payload format. ### What’s new All webhook events now include a standardized "**event**" object at the top level of the payload.\ This object provides canonical metadata describing exactly which webhook your listener is receiving. ### The **event** object Each webhook delivered by Baselayer now begins with: ```json theme={null} "__event__": { "type": "WebPresenceRequest.submitted", "origin": "api" } ``` This object includes: * `type`: the precise webhook event name, selected from Baselayer’s full enumeration of supported events (e.g., `BusinessSearch.Completed`, `LienSearch.Submitted`, `WebPresenceRequest.Completed`). This ensures your integration can reliably route and interpret all webhook types. * `origin`: indicates whether the event was triggered via the API or Console. Defaults to api unless initiated manually. # BIS and State Department Lists in Watchlist Checks Source: https://docs.baselayer.com/changelog/apr-17-2026-bis-and-state-department-lists-in-watchlist-checks Apr 17, 2026 The Consolidated Sanctions List (CSL) now includes records from two additional sources: the **Bureau of Industry and Security (BIS)** Entity List and the **State Department's Directorate of Defense Trade Controls (DDTC)** Debarred Parties List. No integration changes required - the new sources are included automatically in all Business Search results as part of the **Consolidated Screening List (CSL)** watchlist hits. # DBA Support in Web Presence Requests Source: https://docs.baselayer.com/changelog/apr-8-2025-dba-support-in-web-presence-requests Apr 8, 2025 [Web Presence](/api-reference/web-presence/post-web-presence-request) requests now support an optional `alternative_names` fields to submit known DBAs (Doing Business As) of applicants, enabling more accurate website discovery and industry classification. We expect this enhancement to significantly improve match quality - particularly for categories where DBAs are the primary online identity, such as restaurants, bars, salons, and other consumer-facing businesses. Supplying a DBA helps Baselayer identify the correct website faster and return higher-confidence industry predictions with fewer false positives. No changes are required on your end beyond including the optional `alternative_names` field in your request payload. # Introduction of Registration Enrichment for Delaware Source: https://docs.baselayer.com/changelog/april-11-2024-introduction-of-registration-enrichment-for-delaware April 11, 2024 The state of Delaware has introduced new restrictions on the availability of a subset of fields on the default representation of a corporate registration within the state. In particular, this affects the **standing** and **status** fields returned by the Baselayer API. The standing and status fields are of interest to many Baselayer customers when evaluating lending decisions with entities registered in Delaware. To best support the needs of these customers, Baselayer has introduced a new orderable product called a **Registration Enrichment**. Please note that ordering a **Registration Enrichment** carries with it a **\$10** pass-through fee from the state of Delaware. ## What is a Registration Enrichment? A registration enrichment is an explicit request issued to Baselayer to retrieve the **standing** and **status** fields from a state and make them available within the Registration representation returned via the Baselayer API. Baselayer pulls the standing by default for all states **except Delaware**. So while you may use these routes to explicitly request the standing for any registration from any state, you will already have the standing accessible (if available) for everywhere except Delaware. Therefore these API routes will primarily be useful in the situation where one would like to explicitly request the standing for a Delaware registration. ## Using the Registration Enrichment API Registration Enrichment follow the familiar Baselayer API conventions of exposing 3 API routes: * `POST /registration_enrichments` - Request that Baselayer enrichment a registration. The input is a simple JSON structure containing the ID of the Registration that you would like enriched (e.g., `{ "registration_id": "D873795F-1064-4D68-8F72-3528E43A6823" }`\ The returned body will contain the ID of the Registration Enrichment task submitted for processing. * `GET /registration_enrichments/{id}` - Get the full representation of the Registration Enrichment including status and nested details about the enriched registration. * `GET /registration_enrichments/{id}/status` - A polling friendly endpoint for monitoring the status of a Registration Enrichment request during processing. ## Registration Enrichment Webhooks As is standard with other Baselayer products, Registration Enrichments emit webhooks notifying API consumers of the status as the task is processed to completion. * `RegistrationEnrichment.submitted` Emitted with a Registration Enrichment request has been submitted for processing. * `RegistrationEnrichment.completed` Emitted when a Registration Enrichment request has completed and results are available. * `RegistrationEnrichment.failed` Emitted with a Registration Enrichment request has failed. # Expanded Litigation Fields Source: https://docs.baselayer.com/changelog/aug-20-2025-expanded-litigation-fields Aug 20, 2025 Litigation & Bankruptcy Search via `/docket_searches` now includes: * `match_level`: how closely a party in the docket matches with the business legal name (`EXACT` or `SIMILAR`) * `risk_level`: Baselayer's internal risk classification of each docket (`high`, `medium`, `low`, `no_risk`) * `normalized_status`: Baselayer's normalization of the docket status (`open` or `closed`) * This field is conservative by design, and will only mark a docket as `closed` when confirmed These fields improve risk classification, grouping across jurisdictions, and will enable financial institutions to automate more decisions accurately. For further details you can review our [Best Practices](/docs/litigation-bankruptcy-search-best-practices) guide or contact your Baselayer representative. # OFAC Batch Search Source: https://docs.baselayer.com/changelog/aug-20-2025-ofac-batch-search Aug 20, 2025 You can now run **OFAC checks in batch** via API, allowing high-volume sanctions workflows with a single request. Submit a CSV for batch OFAC search, no larger than 5MB, following the sample template in the [API reference](/api-reference/ofac/post-ofac-batch). Once run, Baselayer will return a quick summary of metrics associated with the batch search, and you can also use `GET/ofac/searches/batches/{batch_id}/download` to retrieve the resulting OFAC batch file in jsonl format, including the details of each check. Contact your Baselayer representative for further details. # Enhanced Search: Online Data Matching Source: https://docs.baselayer.com/changelog/aug-29-2025-enhanced-search-online-data-matching Aug 29, 2025 We’ve released a major upgrade to Business Search with the introduction of **Enhanced Search**, an optional mode that enriches KYB results using online intelligence in addition to traditional government filings. To enable Enhanced Search, include the following in your payload: ```json theme={null} "options": ["Order.Enhanced"] ``` ### What Enhanced Search Does When this option is requested, Baselayer automatically performs multiple operations behind the scenes (on top of the Business Search): * **Industry Prediction & Website Analysis:** included by default * **Online Address Extraction:** pulling addresses found across websites and social profiles * **Online Officer & People Extraction:** identifying individuals associated with the business online * **Socials & Reviews:** uncovering all social profiles and online review sites for the business All of these data points are then combined into the unified business profile to strengthen match confidence. ### Introducing the `sources` Field We’ve added a new field to help customers classify where information originated: * `"sos"`: data obtained directly from Secretary of State registrations * `"online"`: data discovered through Baselayer’s enhanced online presence review The `sources` attribute is now available under both: * the `addresses` array * the `business_officers` array This allows you to distinguish regulatory filings from online findings and apply your own decision rules accordingly. ### Why This Matters Enhanced Search significantly improves match accuracy for: * thin-file businesses * companies with limited U.S. footprint * businesses whose public presence exists primarily online By merging structured SoS data with dynamic online signals, Enhanced Search increases verification coverage and reduces manual review for previously hard-to-match applicants. ### Latency Notice Enhanced Search involves multiple operations - including live discovery and AI agents - so response times will be longer than a standard `POST /searches` request. # jurisdiction_county is a required input in LA, OK, & GA Source: https://docs.baselayer.com/changelog/aug-5-2024-jurisdiction_county-is-a-required-input-in-la-ok-ga Aug 5, 2024 In the states of Louisiana, Georgia, and Oklahoma, providing county information is essential for lien filings because these states have specific local requirements that mandate the identification of the county where the property is located. This is necessary to ensure that the lien is properly recorded and recognized within the correct jurisdiction. You can provide the county information using the `jurisdiction_county` field attribute here: [Create UCC1 Lien Filing Submission for a Business](/api-reference/lien-filing/create-new-ucc1-lien-filing-submission-for-business) # Schema changes webhooks v2 Source: https://docs.baselayer.com/changelog/august-23-2024-schema-changes-webhooks-v2 August 23, 2024 We have just released v2 of our webhooks schema. Previously, the schema we were returning from the GET routes was misaligned from the webhooks. For example we were returning `watchlist_hits` as the field name from the GET /searches route and `watchlists` in the webhook payload. Going forward this field should always be aligned. We have no plans to deprecate earlier versions of the webhook schema. # Auto.Complete: Scoped Sessions Source: https://docs.baselayer.com/changelog/auto-complete-scoped-sessions Oct 15, 2026 You can now narrow what an Auto.Complete session is allowed to do, so a leaked session token can do less. \ `POST /autocomplete/sessions` accepts an optional `scope` with: * `routes`: which searches the session may run and, for each, which related data it may include or filter by. Any other search returns `403`. * `max_limit`: the most suggestions a single request may ask for, up to 20. Leave `scope` out and the session can search everything your key can, as before. The session response now returns the `scope` it was granted, plus `min_query_chars` (how many characters a query needs before Auto.Complete searches) and `filter_rules` (how long a query must be before each filter applies), so your front end can wait instead of sending a request that would be refused. The [Auto.Complete SDK](/docs/autocomplete-sdk) reads these for you from version 0.8.0. See [Auto.Complete](/docs/auto-complete). No integration changes required. `scope` is optional. # Case Closed Date on Docket Records Source: https://docs.baselayer.com/changelog/case-closed-date-on-docket-records Aug 4, 2026 Docket records now include a `date_closed` field: the date a case was closed or terminated, when known. It is `null` when the case is still open or the date is unavailable. The field appears on docket responses returned by the docket search and docket detail endpoints (for example `GET /docket_searches/{search_request_id}` and `GET /dockets/{docket_id}/details`), alongside the existing `date_filed`. Case status derivation is also more accurate: open, opened, reopen, and reopened states are all treated as open, and Chapter 15 and other active/inactive edge cases are classified correctly. No integration changes required. the field is additive and nullable. # Clearer Closure Taxonomy for Fraud Consortium Records Source: https://docs.baselayer.com/changelog/clearer-closure-taxonomy-for-fraud-consortium-records Aug 20, 2026 The closure information reported with Fraud Consortium records is now split into three distinct concepts, so a reported closure is easier to file and easier to act on: * **Closure status**: what happened to the money at closure (written off, settled, or closed\ with no loss). * **Closure reason**: the specific cause (for example first-party fraud, identity fraud,\ synthetic identity fraud, bankruptcy, business closed, unable to pay, or a compliance exit). * **Closure family**: the bucket the reason falls into (**fraud**, **credit**, or **compliance**). Exclusion match results from `GET /businesses/{id}/exclusions` now include a derived `closure_family`, so you can tell at a glance whether a hit is fraud-driven. `closure_family` is derived from the reason rather than reported separately, so the two can never disagree. **Integration impact:** if you contribute records to the consortium, "paid in full" is no longer an accepted closure value - report a no-loss closure with the appropriate status and reason instead. Reading exclusions requires no changes. See [The Baselayer Fraud Consortium](/docs/the-baselayer-fraud-consortium). # Collateral Type on Lien Filings Source: https://docs.baselayer.com/changelog/collateral-type-on-lien-filings Aug 13, 2026 Every lien filing now carries a structured `collateral_type` classification: a closed set of values describing what the filing secures (for example, real property, a motor vehicle, or a tax obligation, with a *not applicable* value where no collateral grant applies). \ \ The field sits alongside the existing `collateral_statement` on each filing returned by `GET /lien_searches/{id}` and is displayed in the Console lien view. **How it is derived**: for filing types where the collateral is known from the filing type itself, the classification is assigned deterministically. For the rest, it is classified from the filing's collateral statement, so filings without a machine-readable statement return a null `collateral_type`. No integration changes required. `collateral_type` is an additive, nullable field and existing integrations are unaffected. # New Baselayer UI Source: https://docs.baselayer.com/changelog/dec-1-2025-new-baselayer-ui Dec 1, 2025 ![](https://mintcdn.com/baselayer-81245324/y8jjNyo-CIhfj2Df/images/Frame_2147225303_3.webp?fit=max\&auto=format\&n=y8jjNyo-CIhfj2Df\&q=85\&s=85dcfddc67c92b65f4cec2ebf50ec59c) The next time you log in to the Baselayer Console, you’ll see a refreshed interface shaped by the feedback you've shared with us. What’s changed: * Streamlined navigation for faster access to searches, results, and details * Clear environment visibility so you always know where you’re working * A modern visual design that’s easier to scan and aligned with our updated brand These improvements are part of our ongoing work to make the Baselayer experience, from API to Console, onboarding to monitoring, more intuitive and cohesive. # Docket Match Confidence Source: https://docs.baselayer.com/changelog/docket-match-confidence Aug 20, 2026 Docket search results now carry a `match_confidence` object that tells you how likely a returned docket actually involves the entity you searched for. \ Each docket returned by `GET /docket_searches/{search_request_id}` (and the ad-hoc equivalent) includes a `confidence` level - `high`, `medium`, or `low` - alongside the three signals it is built from: `name_match`, `address_match`, and `date_match`. Instead of a single opaque flag, you can triage dockets by confidence and see the reasoning behind it: whether the party name lines up, whether the court's venue is consistent with the subject's known state, and whether the filing date is consistent with when the entity could have been a party (for example, its incorporation date). The older `match_level` field is now **deprecated** in favor of `match_confidence`; it remains present for backward compatibility. No integration changes required. # Enterprise Single Sign-On Source: https://docs.baselayer.com/changelog/enterprise-single-sign-on Aug 12, 2026 Enterprise Single Sign-On can now be provisioned for an organization, letting members sign in through their company identity provider with an identity-first login experience. Provisioning is handled by Baselayer operators through an internal admin flow during onboarding. With just-in-time (JIT) provisioning enabled, a brokered login from an email we haven't seen before creates the user automatically with the standard **member** role. Organization admins can adjust roles in-app afterward. No integration changes required. Contact your Baselayer representative to enable Single Sign-On for your organization. # Expanded Sanctions Coverage Source: https://docs.baselayer.com/changelog/expanded-sanctions-coverage Dec 3, 2025 We’ve expanded our sanctions screening to deliver even more comprehensive coverage. Starting today, Baselayer includes: * FBI Wanted List * Consolidated Canadian Autonomous Sanctions List * U.S. DoC Consolidated Screening List, combining: * DDTC Debarred List * DoS Non-Proliferation Sanctions * DoC BIS Denied Persons, Unverified, Entity, and MEU Lists * DoT / OFAC sanctions programs No action needed on your end - the new datasets automatically surface in all Business Searches. # Announcing Death Master File Search Source: https://docs.baselayer.com/changelog/feb-1-2024-announcing-death-master-file-search Feb 1, 2024 Users can now use [POST /dmf/searches](/api-reference/death-master-file/post-dmf-search) to initiate a search against the Social Security Administration's Death Master File. Requires an individual's full name and SSN. Submitting a DMF search will emit a `DMFSearch.submitted` webhook event. Once the search is completed, a `DMFSearch.completed` webhook event will be emitted. Results can also be retrieved using [GET /dmf/searches/\{id}](/api-reference/death-master-file/get-dmf-search) using the request UUID returned from the initial POST request. ### Response Structure An example of a completed DMF search will look like this: ``` { "id": "a1ad1dab-d87f-4160-a7e4-a966dbe0294a", "code": "DMF", "count": 1, "details": [ { "dmf_id": "XXXXXXX", "ssn": "XXXXXXXXX", "name": "XXXXXXXXXXX", "death_date": "1983-11-01", "death_date_precision": "MONTH", "birth_date": "1908-08-05", "birth_date_precision": "DAY", "state_of_residency": null, "zip_code_of_residency": null } ], "state": "COMPLETED", "error": null } ``` While most of these fields are self-evident, it is worth noting the `death_date_precision` and `birth_date_precision` fields. **Death records prior to 2000 may contain only the month and year**. So the `_precision` fields, in this example, indicate the the date of death can only be narrowed down to November, 1983, while the date of birth can be narrowed to the specific date. ## FAQs ### What is the Death Master File? The Death Master File (DMF) from the Social Security Administration (SSA) is a data source that contains more than 94 million records. The “file” is created from internal SSA records of deceased persons possessing social security numbers and whose deaths were reported to the SSA . **It is important to note our records are not a comprehensive record of all deaths in the country.** ### How frequently is Baselayer's Death Master File updated? Updates occur on a weekly basis. # Announcing SCRA & MLA Search Source: https://docs.baselayer.com/changelog/feb-10-2024-announcing-scra-mla-search Feb 10, 2024 Users can now use the [POST /scra/searches](/api-reference/scra-&-mla/scra-search) and [POST /mla/searches](/api-reference/scra-&-mla/mla-search) to determine whether their customers are covered under the Servicemembers Civil Relief Act and Military Lending Act Respectively. Both API routes have the option to additionally return a certificate from the Defense Manpower Data Center (DMDC), certifying the validity of the API response. ## Servicemembers Civil Relief Act (SCRA) The Servicemembers Civil Relief Act (SCRA) is a United States federal law that provides various protections for active-duty military personnel, reservists, and members of the National Guard when called to active duty. Originally enacted in 1918 as the Soldiers' and Sailors' Civil Relief Act, it was reenacted and renamed in 2003. The purpose of the SCRA is to ease legal and financial burdens on military personnel and their families brought about by the demands of active duty. ### Key Provisions for Servicemembers * **Interest Rate Cap**: Interest on debts incurred prior to military service is capped at 6% per year during active duty, including fees and other charges. This applies to all debts, including mortgages, credit cards, auto loans, and other personal loans. * **Protection Against Default Judgments**: The SCRA provides protections against default judgments in civil cases, including divorce and child support hearings, if the servicemember cannot appear due to duty obligations. * **Foreclosure and Eviction Protections**: It protects servicemembers and their families from eviction without a court order and from foreclosure during and for a period after service, unless these actions are undertaken with a court order. * **Termination of Residential Leases**: Allows servicemembers to terminate residential leases when they receive deployment orders or are relocated for service. * **Termination of Auto Leases**: Permits the termination of vehicle leases under certain conditions related to deployment or permanent change of station. * **Security Deposits**: It also allows for the return of security deposits without penalty when leases are lawfully terminated under the SCRA. * **Stay of Proceedings**: The SCRA allows courts to temporarily stay civil proceedings in which the servicemember's ability to participate is materially affected by military service. ### Implications for Lenders * **Compliance Requirements**: Lenders must comply with the SCRA's provisions or face penalties, including fines and voiding of transactions. It is essential for lenders to have processes in place to identify borrowers who are eligible for SCRA protections. * **Loan Modifications**: Lenders may need to modify loans, including reducing interest rates to the SCRA cap and adjusting loan terms. * **Foreclosure Restrictions**: Lenders are restricted from foreclosing on properties owned by servicemembers without a court order during the period of active duty and for a specified time after. * **Lease Terminations**: Financial institutions involved in auto leasing must accommodate lease terminations and adjust accounts accordingly without imposing early termination fees or penalties. * **Increased Documentation and Verification**: Lenders may need to invest in additional resources to verify active-duty status of borrowers to ensure compliance with SCRA requirements. Learn more at: [https://www.consumerfinance.gov/consumer-tools/educator-tools/servicemembers/the-servicemembers-civil-relief-act-scra/](https://www.consumerfinance.gov/consumer-tools/educator-tools/servicemembers/the-servicemembers-civil-relief-act-scra/) ## Military Lending Act (MLA) The Military Lending Act (MLA) is a United States law designed to protect active duty service members, including those on active Guard or active Reserve duty, and their covered dependents, from certain lending practices that could pose risks to their financial security. The MLA was enacted in 2006 and has been updated and expanded over time to provide broader protections. It aims to prevent lenders from charging excessive fees and interest rates on consumer credit products beyond a certain threshold. ### Key Provisions for Servicemembers * **Interest Rate Cap**: The MLA caps the annual percentage rate (APR) on covered loans to military members and their families at 36%. This rate, known as the Military Annual Percentage Rate (MAPR), includes interest, fees, credit service charges, credit renewal charges, credit insurance premiums, and other costs associated with the credit. * **No Mandatory Waivers**: The act prohibits creditors from requiring servicemembers to submit to mandatory arbitration or relinquish their rights under state or federal laws, including the Servicemembers Civil Relief Act. * **No Mandatory Allotments**: It forbids creditors from requiring a military member to create an allotment as a condition of receiving the loan. * **No Prepayment Penalty**: Creditors cannot charge a penalty when a servicemember pays back part or all of a loan ahead of the schedule. ### Covered Types of Credit The MLA covers a wide range of credit products, including payday loans, title loans, overdraft lines of credit, installment loans, and certain open-end lines of credit. It does not apply to residential mortgages and certain other types of secured loans, like those used to buy a vehicle when the loan is secured by the vehicle being purchased. ### Implications for Lenders * **Compliance and Regulation**: Lenders must ensure their products comply with the MLA requirements, including the 36% MAPR cap and disclosure requirements. This may require adjustments to interest rates, fees, and loan terms for eligible military borrowers. * **Verification Requirements**: Lenders are required to verify a borrower's eligibility for MLA protections by checking the Department of Defense's (DoD) database or using a credit reporting agency. * **Operational Changes**: Implementing the MLA can require significant operational changes for lenders, including updates to loan products, adjustments to fee structures, and the development of new systems for verifying military status. * **Penalties for Non-Compliance**: Failure to comply with the MLA can result in penalties such as voidance of the credit agreement, financial penalties, and potential legal action from regulators. Learn more at: [https://www.consumerfinance.gov/consumer-tools/educator-tools/servicemembers/military-lending-act-mla/](https://www.consumerfinance.gov/consumer-tools/educator-tools/servicemembers/military-lending-act-mla/) # match_level on Lien Searches Source: https://docs.baselayer.com/changelog/feb-12-2026-match_level-on-lien-searches Feb 12, 2026 Lien search results now include a match_level field indicating how closely a lien filing matches the searched entity. Possible values are `EXACT` (precise legal-name match) and `SIMILAR` (fuzzy match or name variant). The underlying similarity calculation has also been improved, making it easier to quickly assess which lien results are most relevant to the entity you searched. We recommend using `match_level` based on your operational priorities: use `EXACT` for high-velocity, automation-heavy flows where minimizing noise is key, and include `SIMILAR` matches when thoroughness is the priority — such as mid to large-ticket underwriting or deep due diligence. For a full breakdown, see our [Litigation & Bankruptcy Search: Best Practices](/docs/litigation-bankruptcy-search-best-practices) guide. # Additional Order Options for Web Presence Source: https://docs.baselayer.com/changelog/feb-13-2026-additional-order-options-for-web-presence Feb 13, 2026 Web presence requests now offer more granular `options`: * `Order.WebsiteAnalysis` — in-depth analysis on the website you search, and the website we find * `Order.IndustryPrediction` — industry/NAICS Code predictions for the business * `Order.Socials` — social profile discovery and analysis * `Order.ReviewSummary` — review platform discovery with summary data * `Order.ReviewFull` — full review details including individual review text This lets you request only the web presence components you need, giving you more control over search scope and cost. `Order.Enhanced` continues to work as before for backward compatibility. However, we would recommend switching to the following request format: ``` options: ["Order.WebsiteAnalysis", "Order.SocialMedia", "Order.ReviewSummary"] ``` Please contact your Baselayer representative if you have any questions. # Full Reviews and Google Operating Times Source: https://docs.baselayer.com/changelog/feb-13-2026-full-reviews-and-google-operating-times Feb 13, 2026 Two additions to web presence results in API and the console - these provide richer verification signals directly from Google's and Yelp's directories: * **Full reviews:** When `Order.ReviewFull` is selected in the payload, individual reviews are now returned with full text, reviewer details, and an expand/collapse view in the Console. * **Google operating times:** Google Business Profile metadata — including operating hours, business status, and categories — is now included in review results when available. ![](https://mintcdn.com/baselayer-81245324/y8jjNyo-CIhfj2Df/images/Screenshot_2026-03-24_at_13.28.19.png?fit=max\&auto=format\&n=y8jjNyo-CIhfj2Df\&q=85\&s=32f47100d6a46e0a63a7ad7886fba13b) # OFAC Standalone Endpoint Source: https://docs.baselayer.com/changelog/feb-14-2025-ofac-standalone-endpoint Feb 15, 2025 We’ve released a new standalone OFAC screening endpoint:\ `POST https://api.baselayer.com/ofac_searches` This route allows you to perform independent OFAC checks using only: * `name`: the individual or entity being screened * `similarity_threshold`: optional, defaults to 0.9 It enables fast, lightweight sanctions checks without requiring a full business search. ### Do you still need this if you use Business Search? **In most cases, no.**\ Every Business Search already includes OFAC checks by default at no additional cost. Baselayer screens: * the business name you submit * any officers included in the payload * the official business information Baselayer discovers during the search This means that for standard KYB and underwriting workflows, Business Search already covers OFAC comprehensively. The standalone endpoint is best suited for: * deeper due diligence beyond what was included in the original search * screening individuals or entities not part of the business profile * one-off checks where running a full Business Search is unnecessary No integration changes are required, the new OFAC route is available immediately. # Batch Searches Source: https://docs.baselayer.com/changelog/feb-19-2026-batch-searches Feb 19, 2026 Batch search processing has been upgraded for improved reliability and scalability. What's changed: * On-demand execution and progress tracking of search batches is now supported * CSV and JSONL generation for batch results has been updated in the console * Better error handling for malformed CSV rows and input validation at the API tier Now you can download and review the results of a batch search directly from the console. ![](https://mintcdn.com/baselayer-81245324/y8jjNyo-CIhfj2Df/images/Screenshot_2026-03-24_at_12.59.54.png?fit=max\&auto=format\&n=y8jjNyo-CIhfj2Df\&q=85\&s=33f22ff5988b6995f7890e3c035f76dd) Once the batch search is completed, a download can be requested to retrieve: * CSV results * JSONL results * README with data dictionary If you're already using batch searches via API, no integration changes are required. # Breaking Change: GET /autocomplete Is Being Replaced By GET /autocomplete/businesses Source: https://docs.baselayer.com/changelog/get-autocomplete-replaced-by-get-autocomplete-businesses Sep 24, 2026 `GET /autocomplete` **is being replaced by a new Autocomplete API and stops working on Friday, September 25, 2026.** This is a breaking change: the URL, the request parameters and the response body all change. The replacement is a dedicated typeahead service rather than a single lookup call. Your backend mints a short-lived session, the browser queries it on each keystroke, and picking a suggestion hands you a token you feed straight into a search — so your API key never reaches the client and the search runs against exactly the business the user chose. ### What changes in the URL and the request One call becomes two. Your backend calls `POST /autocomplete/sessions` with your existing API key to mint a short-lived session, and the browser then calls `GET /autocomplete/businesses` on each keystroke, passing that session in an `X-Autocomplete-Session` header. Rather than repeat it all here, **[sdk.baselayer.com](https://sdk.baselayer.com) documents the full request flow**. ### What changes in the response Each suggestion now describes a canonical business rather than a single registration, and carries its officers, registered agents, addresses and liens, which you can also filter on. The response now contains a `suggestions[].token`, bound to your organization, valid for 15 minutes, and redeemable only as `business_token` on `POST /searches`. Pass it there to run the search against exactly that business and complete your KYB. ### An SDK to speed up the integration You do not have to wire the session flow up by hand. We publish a JavaScript/TypeScript SDK that mints the session, refreshes it before it expires, re-mints and retries when one lapses or a rate limit is hit, and gives you a ready-made typeahead component — see [sdk.baselayer.com](https://sdk.baselayer.com). For most integrations it is the fastest path off the old route, and it keeps you on the right side of the session rules without you having to track them. Contact your Baselayer representative if you are interested in a demo. # Idempotency Keys on Every Search and Request Source: https://docs.baselayer.com/changelog/idempotency-keys-on-every-search-and-request Sep 29, 2026 You can now safely retry any request that starts a search or analysis, without the risk of creating, and paying for, a duplicate. \ Send an optional `Idempotency-Key` header (up to 255 printable characters) on `POST` requests for business, person, international, lien, docket and DMF searches, website analysis, web presence, adverse media, employee verification, NAICS prediction and TIN verification. If you retry with the same key and the same body, Baselayer returns the original resource instead of creating a new one, with the header `Idempotent-Replayed: true`. You get `202` while the request is still in progress, or the route's normal success code once it has finished. Reusing a key with a different body returns `422` (code `6700`). Two simultaneous requests with the same key return a retryable `409` (code `6701`). Keys are scoped to your application and resource type. Resources and their webhook payloads now include the `idempotency_key` you sent. Batch and export requests are not yet covered. No integration changes required. The header is optional. # Import Existing Liens from the Public Record Source: https://docs.baselayer.com/changelog/import-existing-liens-from-the-public-record Aug 14, 2026 You can now bring liens you already hold on the public record into Baselayer, so their filing history lives alongside the filings you originate. Import one at a time, or upload a CSV to import in bulk. **Import a single filing.** `POST /lien_submissions/import` claims one public record filing for your organization and returns the imported filing (`201`, or `200` if you had already imported it). Imported filings are read-only mirrors of the public record. **Import in bulk.** `POST /lien_submissions/import/batches` accepts a CSV of liens to import (one lien per row) and always processes asynchronously, returning `202` with a batch id. Each row is a `state` and a `filing_number` (both required), with an optional `filing_name`. The file as a whole is validated on upload: type, encoding, size, headers, and row count; a row the importer cannot resolve is reported per row rather than failing the batch. **Track and collect results.** Poll `GET /lien_submissions/import/batches/{batch_id}` for the batch's state and per-outcome counts (`imported`, `already imported`, `not found`, `invalid`), list your batches with `GET /lien_submissions/import/batches`, and download the per-row results as JSONL from `GET /lien_submissions/import/batches/{batch_id}/download`. To find the filings a batch produced, `GET /lien_submissions` now accepts `origin` and `import_batch_id` filters. **Get notified when a batch finishes.** Two new webhook events report the terminal outcome of a bulk import, each carrying the batch's final counts: `LienFilingImportBatch.completed` and `LienFilingImportBatch.failed`. A bulk import reports counts once at the end rather than emitting a per-row event. **Notes.** Only consensual UCC filings can be imported; tax, judicial, and statutory liens are rejected. Imports run on production applications only: a sandbox application cannot claim filings from the public record. No integration changes required - every endpoint, filter, and webhook event is additive. # International Countries List Source: https://docs.baselayer.com/changelog/international-countries-list Oct 9, 2026 You can now ask the API which countries an international business search covers. \ The new `GET /international/countries` returns one entry per jurisdiction that `POST /international/searches` accepts, with: * `iso2_country_code`: the code to send as `iso2_country_code` * `name`: the country's display name, for example `United Kingdom` * `supports_lite_profile`: whether a search without the `ENHANCED` option returns a profile there * `supports_enhanced_profile`: whether the `ENHANCED` option (officers, shareholders and beneficial owners) is available there The list only changes with an API release, so you can cache it for an hour. Use it to build a country picker that only offers what we cover. International business search responses also now include `country_name`, the display name of their `iso2_country_code`. See [International Products](/docs/baselayer-international-products). No integration changes required. # International KYB: Watchlist Screening, Flexible Inputs and Updated Scoring Source: https://docs.baselayer.com/changelog/international-kyb-watchlist-screening-flexible-inputs-and-updated-scoring Sep 24, 2026 Three improvements to [International Business Search](/docs/baselayer-international-products): * **Watchlist screening.** International searches now screen the company, any name variants you supply in `alternative_names`, its current officers and its beneficial owners against Baselayer's watchlists, including OFAC and the Consolidated Screening List. PEP screening runs when you order the PEP add-on. Results appear in a new `watchlist_hits` field on `GET /international/searches/{id}`, in the same shape as domestic results. A list with a `count` of 0 was screened with no match; a list that is absent was not screened. A confirmed OFAC hit sets the Risk score to 0 and the Risk rating to F. Which lists run, and how close a name must match, follow your [Account Settings](/docs/account-settings). * **Flexible inputs.** When you send a `filing_number`, the business name and address are now optional: send the number on its own, or with either or both. Without a filing number, name and address are still both required. Name matching also recognizes legal-form abbreviations and their full names as equivalent across Spain, France, Germany, Austria, the Netherlands, Belgium and Italy (for example `SL` and `Sociedad Limitada`). * **Updated scoring.** The KYB score now only counts the inputs you sent, so a search with just a filing number isn't penalized for a missing name or address. KYB ratings now use the same bands as domestic KYB (A 90–100, B 80–89, C 60–79, F below 60), and only A and B count as verified. **Scores for existing name-and-address searches may shift slightly as a result.** See [International Scores & Ratings](/docs/baselayer-international-products#scores--ratings). No integration changes required. # New Year, New Domain Source: https://docs.baselayer.com/changelog/jan-19-2025-new-year-new-domain Jan 19, 2025 Some exciting news as we kick off the year :boom: Baselayer is slowly migrating from [baselayerhq.com](https://baselayerhq.com/) to [baselayer.com](https://baselayer.com/)! Starting Saturday Jan 19, that means:\ console.baselayerhq.com -> [console.baselayer.com](https://console.baselayer.com/) (we will have redirects of course)\ docs.baselayerhq.com -> [docs.baselayer.com](https://docs.baselayer.com/) This awesome step for us also means that some small tweaks might need to be taken on your end to ensure all operations continue to run smoothly: * Update your bookmarks to access our dashboard quickly * Update your password manager (1password, Google, etc.) api.baselayerhq.com will continue to work normally, so there is no need to update your webhooks or API calls :clap: Thanks a lot for your help! # Enhanced International Business Profiles Source: https://docs.baselayer.com/changelog/jul-10-2026-enhanced-international-business-profiles Jul 10, 2026 International Business Search now offers an optional **Enhanced Profile** that returns deeper corporate detail — directors, ultimate beneficial owners, shareholders, and share capital — on top of the standard registration profile. Enhanced Profiles are requested per search via an order option and are billed per country. Coverage and available fields vary by jurisdiction. Contact your account manager to enable enhanced international profiles for your organization. See [Baselayer International Products](/docs/baselayer-international-products) for details. # Enriched PEP Results Source: https://docs.baselayer.com/changelog/jul-13-2026-enriched-pep-results Jul 13, 2026 Politically Exposed Persons (PEP) matches now return significantly more context. Each PEP hit includes the person's **positions held** and additional profile metadata, sourced from an expanded PEP dataset. This makes it easier to assess relevance and adjudicate a match without leaving the response. No integration changes required, the additional fields are added to existing PEP hits in Business Search, Person Search, and standalone PEP results. # International Registrations Search Source: https://docs.baselayer.com/changelog/jul-13-2026-international-registrations-search Jul 13, 2026 You can now search corporate registration records for international businesses directly, without running a full international business search first: `GET /international/registrations` This API route returns a list of international registrations and basic information like the company's filing number. See [Baselayer International Products](/docs/baselayer-international-products) for supported countries, request fields, and response details. # International Search by Filing Number Source: https://docs.baselayer.com/changelog/jul-13-2026-international-search-by-filing-number Jul 13, 2026 Baselayer now supports the ability of searching international registrations using only a `filing_number` - which returns the most accurate results. A `filing_number` with `iso2_country_code` can be a complete request on its own: name/address matching is skipped and the match fields stay null. Searching by name and address is still supported. When both `filing_number`, `name` and `address` are provided, the registry is searched by this number first; a name (if also provided) is used as a fallback when no company matches the number. We recommend allowing customers to search for their filing_number (if they do not know it already), by leveraging the list of results from `GET /international/registrations`. # Business Auto.Complete Source: https://docs.baselayer.com/changelog/jul-6-2026-business-autocomplete Jul 6, 2026 A new autocomplete endpoint returns type-ahead business suggestions as a user types, making it easy to build a "search-as-you-type" business picker instead of a blank text field: `GET /autocomplete?q={query}` Each suggestion includes the business name and identifying details you can use to pre-populate a downstream Business Search. See the new [Business Autocomplete endpoint](/api-reference/business-autocomplete/autocomplete). ![](https://mintcdn.com/baselayer-81245324/y8jjNyo-CIhfj2Df/images/Screenshot_2026-07-17_at_16.47.13.png?fit=max\&auto=format\&n=y8jjNyo-CIhfj2Df\&q=85\&s=1044953b0f0e162c06aad24e9cea5c72) # Bulk Portfolio Monitoring Source: https://docs.baselayer.com/changelog/jul-8-2026-bulk-portfolio-monitoring Jul 8, 2026 You can now add many businesses to Portfolio Monitoring in a single request instead of creating items one at a time: `POST /portfolio/items/bulk` This is the recommended path for onboarding an existing book of business or backfilling a portfolio at scale. Items created in bulk inherit the same monitoring policy and notification structure as individually created items. You can also do this request manually directly in the console. See [Portfolio Monitoring: Basics](/docs/portfolio-monitoring) for the request format. ![](https://mintcdn.com/baselayer-81245324/y8jjNyo-CIhfj2Df/images/Screenshot_2026-07-17_at_17.32.47.png?fit=max\&auto=format\&n=y8jjNyo-CIhfj2Df\&q=85\&s=5dead5058ea1252920e6eb647e39b0ab) # Introduction of Lien Filing API Source: https://docs.baselayer.com/changelog/jul-xx-2024-introducing-lien-filing Jul 11, 2024 We've launched a new Lien Filing API, enabling programmatic creation and management of lien filings through Baselayer. This API supports both machine-to-machine (M2M) communication and can drive user interfaces with its document-like behavior. ## What are Lien Filings? A lien is a legal claim or right against a property, typically used as security for a debt or obligation. The Lien Filing API facilitates the process of creating, managing, and submitting these legal documents. ## Key Features of the Lien Filing API 1. **Draft-Like Workflow**: Create and gradually populate lien filings over time, mimicking the behavior of working with draft documents. 2. **Flexible Updates**: Add or modify information in multiple steps, supporting both automated systems and user-driven interfaces. 3. **Secure Party Masking**: Option to protect the identity of secured parties when required. 4. **Attachment Management**: Programmatically upload, retrieve, and manage attachments associated with lien filings. 5. **Comprehensive Validation**: Built-in checks to ensure all required information is present and correctly formatted before submission. ## API Endpoints The API introduces the following new endpoints: * `POST /businesses/{business_id}/lien_submissions`: Create a new lien filing submission * `GET /lien_submissions`: Retrieve a list of lien filing submissions * `GET /lien_submissions/{filing_id}`: Get details of a specific lien filing submission * `PUT /lien_submissions/{filing_id}`: Update a lien filing submission * `POST /lien_submissions/{filing_id}/submit`: Submit a completed lien filing * `POST /lien_submissions/{filing_id}/cancel`: Cancel a lien filing in "Needs Attention" status * `DELETE /lien_submissions/{filing_id}`: Delete a draft lien filing submission Additional endpoints are available for attachment management and secured party masking operations. ## Implementation Notes * The API supports both full payload submissions and gradual population of lien filings, accommodating various integration scenarios. * The draft-like behavior makes it suitable for driving user interfaces where users might save work in progress and return later. * For M2M integrations, the API can be used to automate the creation and submission of lien filings based on predefined triggers or data flows. * Proper error handling should be implemented to manage validation responses effectively. For detailed information on using the Lien Filing API, including request/response formats and best practices, please refer to our updated [Lien Filing](/docs/lien-filing-1) documentation. # The Baselayer Fraud Consortium Source: https://docs.baselayer.com/changelog/jun-29-2026-the-baselayer-fraud-consortium Jun 29, 2026 The **Baselayer Fraud Consortium** has gotten a face-lift. Now you can contribute your fraud records to the network in a much simpler way via the console. ![](https://mintcdn.com/baselayer-81245324/y8jjNyo-CIhfj2Df/images/Screenshot_2026-07-17_at_16.38.35.png?fit=max\&auto=format\&n=y8jjNyo-CIhfj2Df\&q=85\&s=6a2c84022cd9c81e5c9626d67678a157) In addition, you can now screen applicants in three different ways using your existing Baselayer credentials: * **Inline** — consortium screening runs automatically as part of a standard business search * **Ad-hoc** — a quick lookup on a single applicant using [POST/consortium/searches](/api-reference/consortium/search-consortium) * **Batch** — a sweep across many businesses at once using [POST/consortium/searches/batches](/api-reference/consortium/post-consortium-search-batch)​ See [The Baselayer Fraud Consortium](/docs/the-baselayer-fraud-consortium) for more details. To join, contact your account manager or email [support@baselayer.com](mailto:support@baselayer.com). # TIN Verification API Route Source: https://docs.baselayer.com/changelog/jun-3-2025-tin-verification-api-route Jun 3, 2025 A new standalone `POST /tin_verifications` route is now available. This allows customers to run IRS TIN checks, for both EINs and SSNs, without submitting a full Business Search. You can access this standalone API route [here](/api-reference/tin-verification/submit-tin-verification). # Ad-hoc Liens & Dockets for Individuals Without an SSN Source: https://docs.baselayer.com/changelog/jun-30-2026-ad-hoc-liens-dockets-for-individuals-without-an-ssn Jun 30, 2026 You can now run lien and docket (litigation/bankruptcy) searches on an individual by name even when you don't have their SSN, using dedicated ad-hoc search paths. This is useful for screening officers, guarantors, or counterparties where only a name and location are available. See [Consumer Checks: Basics](/docs/consumer-checks-basics) for how personal lien and docket searches work. # KYB Score Settings: Unknown Registration Status and Missing Addresses Source: https://docs.baselayer.com/changelog/kyb-score-settings-unknown-status-and-missing-address Nov 2, 2026 Admins can now choose how the KYB score treats two cases of missing state data, from the new **KYB Score** section of **Settings** in the console. \ **Unknown registration status:** when every US Secretary of State registration a business has carries an unknown status, either leave the status check out of the score (the default and current behavior) or score it the same as an inactive registration. **No address on file:** when a business has no address in any of its US Secretary of State registrations, either score the address check as a state-level match (the default and current behavior) or leave the address out of the score. Addresses that are on file but don't match are still scored either way, and `business_address_match` reports the same value under both options. Both settings apply to new US business searches and to portfolio monitoring. Searches that already ran keep the score they were given, and a monitored business picks up a change on its next monitoring run. International business searches are not affected. See [Account Settings](/docs/account-settings) and [Scores & Ratings](/docs/baselayer-scores-ratings). Nothing changes unless an admin changes a setting. No integration changes required. # Last Annual Report Date on Registrations Source: https://docs.baselayer.com/changelog/last-annual-report-date-on-registrations Oct 24, 2026 Registrations now include the date of the business's most recent annual report with the Secretary of State. \ Every registration returned by `GET /businesses/{id}`, `GET /businesses/{id}/registrations` and `GET /registrations/{id}` now carries `last_annual_report_date` (for example `2026-04-15`). A business that stops filing annual reports may have stopped operating, often before the state changes its status. That makes this date a useful freshness signal next to the registration's status. Where the state publishes the date a report was filed, that is the date returned. Where the state publishes only the next due date or the period a report covers, the date is our best estimate of when the report was filed. The field is `null` when the state publishes neither, or the registration has not filed a report yet. In the console, each Secretary of State filing shows a new **Last Annual Filing** row under **Date Filed**. No integration changes required. # Lien Amount on Lien Filings Source: https://docs.baselayer.com/changelog/lien-amount-on-lien-filings Aug 7, 2026 Lien filing records now carry a `lien_amount` field, capturing the monetary amount associated with a filing. For tax liens, the amount reflects the total figure stated on the filing. Integration impact: additive. `lien_amount` appears on lien filing responses where an amount could be extracted and is omitted otherwise, no integration changes required. # Lien Filing Improvements Source: https://docs.baselayer.com/changelog/lien-filing-improvements Sep 29, 2026 Several improvements to [Lien Filing](/docs/lien-filing-1): * **Preview before you file.** `GET /lien_submissions/{filing_id}/preview_document` returns a PDF of your draft on the official UCC-1 or UCC-3 form, watermarked "PREVIEW — NOT FILED". The console shows it on the review step. * **Download what was submitted.** `GET /lien_submissions/{filing_id}/submission_document` returns the PDF that was submitted to the state, and a new `has_submission_document` field tells you whether one is available. This applies to filings submitted from September 18, 2026 onward. * **Filter and sort your filing history.** `GET /lien_submissions` now accepts `filed_from` / `filed_to`, `lapse_from` / `lapse_to`, `state`, `standing` (`Active`, `Lapsed`, `Terminated` or `Unknown`), `filing_type`, `action` and `secured_party`, plus `sort_by` (`updated_at`, `filing_date` or `lapse_date`) and `sort_direction`. The same filters are on the Lien Filings page in the console. * **Filed amendments update the original lien.** When a UCC-3 is filed, the UCC-1 it amends now updates to match: a termination sets it to `Terminated`, a continuation extends its lapse date, and an assignment makes the assignee its secured party of record. The original lien fires a `LienFiling.updated` webhook when it changes, so you may see additional webhook events. * **More you can do with imported liens.** Liens you [imported from the public record](/changelog/import-existing-liens-from-the-public-record) can now be continued and assigned, not just terminated. * **Filing date optional on lookup.** `POST /lien_submissions/initial_filing_lookup` no longer requires a filing date. It is still required when `allow_unverified` is `true`. No integration changes required. # HHS OIG Exclusion List Source: https://docs.baselayer.com/changelog/mar-14-2026-hhs-oig-exclusion-list Mar 14, 2026 Baselayer now screens against the HHS Office of Inspector General (OIG) List of Excluded Individuals/Entities (LEIE). The HHS OIG LEIE is a public database of individuals and organizations banned from participating in federal healthcare programs (Medicare, Medicaid) due to fraud, patient abuse, or felony convictions. Hiring an excluded entity results in civil monetary penalties. This new watchlist source automatically surfaces in all Business Search and Person Search results alongside existing OFAC, PEP, and other sanctions checks. No integration changes required: the new dataset is included automatically. # tin_match_type Field Source: https://docs.baselayer.com/changelog/mar-14-2026-tin_match_type-field Mar 14, 2026 Business search and TIN verification responses now include a `tin_match_type` field, returning the specific type of match according to the IRS. The possible values are `EIN`, `SSN` or `UNKNOWN`. This gives you more granular insight into TIN verification results beyond a simple pass/fail, making it easier to build nuanced decisioning logic around TIN checks. Identifying sole proprietors or individuals who have submitted a SSN in their business applications is now possible. Reach out to your Baselayer representative for more information. # Latency Improvements in Web Presence Source: https://docs.baselayer.com/changelog/mar-15-2026-latency-improvements-in-web-presence Mar 15, 2026 We've optimized the web presence analysis pipeline to reduce end-to-end latency on website discovery and web scraping. You should see noticeably faster turnaround on Web Presence and Business Search requests. # Federation-Level Webhook Endpoints Source: https://docs.baselayer.com/changelog/mar-17-2026-federation-level-webhook-endpoints Mar 17, 2026 Federation partners can now register a single webhook endpoint at the Federation level, receiving events across all organizations and environments under their Federation. Previously, webhook endpoints could only be registered per Organization - requiring partners to manage a separate endpoint and signing secret for each customer. The new Federation-level endpoint eliminates this overhead: one endpoint, one signing secret, all events. Each event payload includes an enriched `__event__` envelope with `external_id`, `organization_id`, `application_id`, and `application_type` fields so you can route events to the correct customer in your system. To pre-filter delivery before events reach your endpoint, you can configure `channels` at creation time. Available filters include `production`, `sandbox`, `Organization.`, and `Application.`. Filters can be combined. Federation webhook endpoints can be created via the console under **My Federation > Webhooks & Logs**, or programmatically via `POST /webhooks` using your Federation API key. For full implementation details, see the [Organization Management guide](/docs/federations-at-baselayer#federation-webhooks). # Collateral Statement Templates for Lien Filing Source: https://docs.baselayer.com/changelog/mar-19-2025-collateral-statement-templates-for-lien-filing Mar 19, 2025 We’ve introduced **Collateral Statement Templates** to make lien filing faster, more consistent, and significantly easier for operations teams. You can now create and manage multiple pre-filled collateral statements directly in **Lien Filing Preferences**. These templates can be customized with your preferred language and reused across filings - eliminating repetitive drafting and ensuring standardization across your secured party documents. ![](https://mintcdn.com/baselayer-81245324/y8jjNyo-CIhfj2Df/images/Screenshot_2025-12-10_at_12.58.42.png?fit=max\&auto=format\&n=y8jjNyo-CIhfj2Df\&q=85\&s=b2b42857bef3d0323fb8c7e91edb5f6e) During the lien filing flow, you’ll see a new “Select Template” dropdown, allowing you to choose any of your saved statements with a single click. The selected text auto-populates the collateral section, streamlining the filing process and reducing manual entry errors. ![](https://mintcdn.com/baselayer-81245324/y8jjNyo-CIhfj2Df/images/Screenshot_2025-12-10_at_12.59.04.png?fit=max\&auto=format\&n=y8jjNyo-CIhfj2Df\&q=85\&s=057d328ec6dc0520b4d26a49ca334ea9) This functionality is also available via API, enabling customers to programmatically reference saved templates in automated lien workflows. # Updated PDF Reports + New API Route Source: https://docs.baselayer.com/changelog/mar-25-2025-updated-pdf-reports-new-api-route Mar 25, 2025 We’ve released an updated version of our PDF business reports, now featuring cleaner formatting, clearer match explanations, and additional data fields such as KYB/Risk Rating summaries, officer information, website analysis, and watchlist results. You can generate these reports programmatically using the new export endpoint. Simply submit the `search_id` to: `POST https://api.baselayer.com/searches/{id}/export` and Baselayer will return the PDF directly via API, no additional parameters required. In the console, reports can also be downloaded instantly by clicking the Download PDF arrow on any completed business search, making it easy to share or attach documentation in your underwriting workflow. ![](https://mintcdn.com/baselayer-81245324/y8jjNyo-CIhfj2Df/images/Screenshot_2025-12-10_at_13.11.44.png?fit=max\&auto=format\&n=y8jjNyo-CIhfj2Df\&q=85\&s=5f3511472a2e0b896743fc39307288aa) # Normalized Lien Filing Type Source: https://docs.baselayer.com/changelog/mar-29-2026-normalized-lien-filing-type Mar 29, 2026 The `filing_type` field in lien filing responses is now normalized to a consistent set of values across all states. Previously, the raw value from each state's system was returned - which varied widely (e.g. `"1"`, `"UCC FINANCING STATEMENT"`, `"Original"`, `"Amendment"` depending on the state). `filing_type` now returns a standardized value making cross-state filtering and classification reliable without custom state-by-state handling on your end. You can read more about the enums and structure in our [Lien Search: Basics](/docs/lien-search-basics) guide. # Employee Verification Source: https://docs.baselayer.com/changelog/mar-30-2026-employee-verification Mar 30, 2026 A new employee verification endpoint is now available: * `POST /employee_verification_requests` - submit a verification request * `GET /employee_verification_requests/{id}` - retrieve results Employee verification checks whether a given individual is an active employee of the specified business, based on public and proprietary data sources. ```json theme={null} { "person_name": "Juan Escrig", "business_name": "Osiris Ratings", "business_address": null, "alternative_names": null, "result": { "verified": true, "person_name": "Juan Escrig Martínez de Salinas", "business_name": "Baselayer (Osiris Ratings Inc.)", "role_title": "Product & Solutions / Solutions Engineering", "department": null, "tenure_info": "Since approximately October 2024", "evidence_summary": "Juan Escrig Martínez de Salinas is listed on multiple LinkedIn profiles as holding the role of 'Product & Solutions' or 'Solutions Engineering' at Baselayer. Baselayer is identified as the operating name for Osiris Ratings Inc. Additionally, Baselayer's changelog features an entry from 'Juan Escrig' regarding expanded sanctions coverage.", "sources": [ { "url": "https://www.linkedin.com/in/juanescrigmds/en", "description": "Juan Escrig Martínez de Salinas's LinkedIn profile, showing his role at Baselayer.", "reliability": "social" }, { "url": "https://www.bloomberg.com/profile/company/2623907D:US", "description": "Bloomberg profile for Osiris Ratings Inc. confirming it operates as Baselayer.", "reliability": "official" }, { "url": "https://docs.baselayer.com/changelog", "description": "Baselayer's changelog, attributing an update to Juan Escrig.", "reliability": "official" }, { "url": "https://www.zoominfo.com/p/Juan-Escrig/7109345587", "description": "ZoomInfo entry for Juan Escrig, listing his role at Baselayer.", "reliability": "third_party" } ], "contradictory_evidence": null } } ``` Contact your Baselayer representative for details on coverage, inputs, and pricing. # Better Confidence in Online Reviews Source: https://docs.baselayer.com/changelog/mar-5-2026-better-confidence-in-online-reviews Mar 5, 2026 We've improved the validation and matching logic for online reviews discovered during web presence analysis. Review attribution is now more robust, reducing false positives and increasing the reliability of review-based signals in your results. # Address, Phone, Email and People Match Sources Source: https://docs.baselayer.com/changelog/mar-9-2026-address-phone-email-and-people-match-sources Mar 9, 2026 The web presence response now includes `address_match_sources`, `phone_match_sources`, `email_match_sources`, and `people_match_sources` fields. These arrays tell you exactly which online source (one or multiple) confirmed each piece of contact information. Possible sources include: `INPUT_WEBSITE` — the website you provided `FOUND_WEBSITE` — a website discovered during analysis `SOCIAL_PROFILE` — a social media profile `REVIEW` — an online review platform `DIRECTORY_LISTING` — a directory listing (e.g., BBB, Yelp) This gives you full transparency into where Baselayer found matching data, making it easier to assess confidence in each data point. # Directories and Third-Party Websites Source: https://docs.baselayer.com/changelog/mar-9-2026-directories-and-third-party-websites Mar 9, 2026 Web presence analysis now incorporates directory listings — such as BBB, Yelp, and Yellow Pages — as a first-class data source. What this means for your results: * Directory listings are now used to identify the correct business website * Officer information is extracted from directory profiles * Contact details (address, phone, email) found on directories are validated and matched *** `options: ["Order.DirectoryListings"]` is now a new option in the payload that will retrieve third-party directories where the searched business appears listed. The new `found_directory_listings` will return an array of objects like this one: ``` "found_directory_listings": [ { "source": "artisanhub.co.uk", "url": "https://artisanhub.co.uk/store/artisan-island-ltd/?page=1", "category": "Consignment Store", "business_name": "Artisan Island Ltd", "phone_number": null, "email": null, "business_website": null, "address": "41 ST MARY STREET WEYMOUTH ENGLAND DT4 8PU UNITED KINGDOM", "people": [] } ], ``` Additionally, a new `DIRECTORY_LISTING` source type will appear in web presence fields such as `address_match_sources` wherever directory data contributed to a match. You can request directory listings via API or the console: ![](https://mintcdn.com/baselayer-81245324/y8jjNyo-CIhfj2Df/images/Screenshot_2026-03-24_at_12.52.10.png?fit=max\&auto=format\&n=y8jjNyo-CIhfj2Df\&q=85\&s=0a8339b5afd66e5fe8b69f8bf58a4b4c) Contact your Baselayer representative if you'd like to learn more. # FinCEN Section 311 Special Measures List Source: https://docs.baselayer.com/changelog/may-12-2026-fincen-section-311-special-measures-list May 12, 2026 Baselayer now screens against the FinCEN Section 311 Special Measures list, which identifies foreign financial institutions designated as primary money laundering concerns under the USA PATRIOT Act. FinCEN 311 designations surface automatically in watchlist results alongside existing sanctions checks. No integration changes required - the new source is included automatically under the OFAC results. # Improved Watchlist Matching & OFAC Methodology Alignment Source: https://docs.baselayer.com/changelog/may-17-2026-improved-watchlist-matching-ofac-methodology-alignment May 17, 2026 Watchlist searches now check business and person names against a broader set of alternative names and aliases - including DBAs, maiden names, and transliterations. We've also updated our OFAC screening methodology to align with how OFAC.gov itself performs name matching. This improves precision (fewer false positives on partial name overlaps) and recall (better coverage on transliterated, abbreviated, or hyphenated names). No integration changes required - improvements apply automatically to all Business Search, Person Search, and OFAC Batch results. # Social Media Profile Inputs for Web Presence Source: https://docs.baselayer.com/changelog/may-19-2026-social-media-profile-hints-for-web-presence May 19, 2026 You can now pass known social media profile handles, URLs or names as inputs to the web presence request. Baselayer will parse those profiles, scrape/verify them during discovery, and report back whether each one matched. ```json theme={null} { "name": "Ray's Pizza", "address": "123 Main St, Anytown, USA", "iso2_country_code": "US", "social_profiles": [ { "site": "linked_in:company", "value": "https://www.linkedin.com/company/rays-pizza-anytown" }, { "site": "instagram", "value": "@rayspizza_anytown" }, { "site": "facebook", "value": "RaysPizzaAnytown" } ] } ``` When profiles are provided, they're used to validate and improve the confidence of the returned website and social profile data. Request-side additions: * `input_social_profiles` field on WebPresenceRequest - a list of `{site, value}` pairs where value can be a URL, handle, or free text Response-side additions: * `input_social_profiles` field on both US and International Web Presence response, containing scraped social profiles derived from the caller's input * `social_profiles_match` field returning a list ofInputSocialProfileMatch records indicating which input profiles were successfully independently discovered, scraped and verified by Baselayer The behavior is additive - existing users don't need to change anything. # PEP Check Released Source: https://docs.baselayer.com/changelog/may-2-2025-pep-check-released May 2, 2025 We’ve launched **Politically Exposed Persons (PEP) Screening** as both a standalone API product and an optional add-on within Business Search. You can now run a PEP check in two ways: ## 1. Standalone PEP Search Submit a POST request to:\ `POST https://api.baselayer.com/pep/searches` Only two fields are required: * `name`: full name of the individual you wish to screen * `similarity_threshold`: optional, defaults to 0.9, enabling configurable match sensitivity This is ideal for lightweight workflows, KYC/KYB pipelines that need individual-level checks, and use cases where you want PEP screening without a full business profile. ## 2. As Part of a Business Search You can also trigger a PEP check directly within a standard Business Search by adding `Order.Pep` to the `options` array of your payload. Example: ```json theme={null} { "name": "Acme Holdings LLC", "address": "123 Main St, Denver, CO", "options": ["Order.Pep"] } ``` When requested this way, the PEP results are returned alongside KYB, sanctions, and the rest of the Baselayer business verification output - simplifying end-to-end risk review. ## What This Means for Your Workflow * No additional integration complexity * Configurable match sensitivity for more reliable results * Centralized view of PEP risk inside the standard search flow * Usable for both individual screening and officer/UBO checks PEP screening is now available to all customers. Let us know if you'd like help enabling it or adjusting your matching thresholds. # Updated PEP Similarity Threshold Source: https://docs.baselayer.com/changelog/may-27-2026-updated-pep-similarity-threshold May 27, 2026 The similarity threshold for PEP (Politically Exposed Person) name matching has been raised from 0.90 to 0.95, following feedback from customers seeing high volumes of false positives on partial name overlaps. The updated threshold reduces noise on ambiguous matches while preserving coverage on genuine hits.\ No integration changes required, the adjustment applies automatically to all Person Search and watchlist results that include PEP screening. # Standalone Multi-Watchlist Search Source: https://docs.baselayer.com/changelog/may-28-2026-standalone-multi-watchlist-search May 28, 2026 A new endpoint lets you search any combination of watchlists by name — without running a full business verification: `GET /watchlists?q={name}&watchlists=OFAC&watchlists=PEP` Available lists: **OFAC, PEP, CSL, FBI, CNS, OIG**. Pass any subset via the `watchlists` parameter; one billable order is written per list requested. Results are grouped by source. Every requested watchlist returns an entry in the response — including lists with zero matches — so you can confirm exactly which lists were searched. Each match includes a `similarity_score` and source-specific `details`. Two optional params: `similarity_threshold` (0.0–1.0, defaults to 0.9) and `limit` (up to 50 matches per list, defaults to 5). **Request** ``` GET https://api.baselayer.com/watchlists?q=Rafael+Sarria&watchlists=OFAC&watchlists=OFAC&watchlists=CSL ``` **Response** ``` { "results": [ { "source": "OFAC", "matches": [ { "name": "SARRIA DIAZ, Rafael Alfredo", "similarity_score": 1, "details": { "name": "SARRIA DIAZ, Rafael Alfredo", "alternative_names": [ "SARRIA-DIAZ, Rafael A", "SARRIA, Rafael" ], "program": "VENEZUELA", "title": " ", "remarks": "DOB 11 Nov 1965; Gender Male; Cedula No. 6974302 (Venezuela); Passport 114910699 (Venezuela) expires 02 Feb 2020; alt. Passport F0018546 (Venezuela) expires 02 Jul 2014; Linked To: CABELLO RONDON, Diosdado.", "source": "SDN", "entity_number": "24427", "type": "individual", "addresses": [ ", Miranda, Venezuela, | La Moraleja, Madrid, Spain, | 5599 NW 23rd Ave, Boca Raton, FL 33496, United States, | 480 Park Avenue, Apt. 10B, New York, NY 10022, United States, | Calle de la Pena Pintada, 11, Madrid, Comunidad de Madrid 28034, Spain, | Calle Los Malabares, Quinta Anauco, Valle Arriba, Caracas, Miranda 1080, Venezuela, " ], "source_list_url": "https://sanctionslist.ofac.treas.gov/Home/SdnList", "source_information_url": "https://home.treasury.gov/policy-issues/financial-sanctions/specially-designated-nationals-and-blocked-persons-list-sdn-human-readable-lists" } } ], "count": 1 }, { "source": "CSL", "matches": [ { "name": "SARRIA DIAZ, Rafael Alfredo", "similarity_score": 1, "details": { "source": "SDN", "csl_id": "24427", "entity_number": "24427", "type": "Individual", "programs": "VENEZUELA", "name": "SARRIA DIAZ, Rafael Alfredo", "title": null, "addresses": [ "Miranda, VE", "La Moraleja, Madrid, ES", "5599 NW 23rd Ave, Boca Raton, FL, 33496, US", "480 Park Avenue, Apt. 10B, New York, NY, 10022, US", "Calle de la Pena Pintada, 11, Madrid, Comunidad de Madrid, 28034, ES", "Calle Los Malabares, Quinta Anauco, Valle Arriba, Caracas, Miranda, 1080, VE" ], "alt_names": [ "SARRIA-DIAZ, Rafael A", "SARRIA, Rafael" ], "source_list_url": "https://sanctionslist.ofac.treas.gov/Home/SdnList", "source_information_url": "https://home.treasury.gov/policy-issues/financial-sanctions/specially-designated-nationals-and-blocked-persons-list-sdn-human-readable-lists" } } ], "count": 1 } ], "total_matches": 2 } ``` *** ## OFAC Match Details at Parity with CSL At the same time, the `details` object returned for OFAC matches in watchlist responses has been updated to match the structure already returned for CSL matches. No integration changes required, but if you're parsing OFAC `details` fields directly, review your mapping against the updated response shape. # Enhancements to IRS Validation Retries Source: https://docs.baselayer.com/changelog/may-29-2024-enhancements-to-irs-validation-retries May 29, 2024 Since the launch of Baselayer, business search has included support for handling retries when the IRS TIN validation service becomes temporarily unavailable. This retry support is transparent and experienced by users as increased latency when the IRS services have intermittent issues on the order of seconds or minutes. In this release, Baselayer is expanding the IRS Validation retry functionality to handle IRS availability issues on the order of hours or even days long outages. These change enhance the overall resilience of business searches where the TIN matching is a critical component of the lender workflow where processing cannot proceed until the TIN matching has been fully resolved. ## What is changing? Prior to this release, business searches that encountered a long-term TIN verification failure would be reported as a negative `tin_matched=False` attribute value of the search result. In this release, searches that encounter a long-term TIN verification outage will return with a `tin_matched=null` value to indicate that TIN verification was unable to complete within the business search execution SLA. These searches will be subject to the retry logic detailed below. This API change is accompanied by a new badge in the Baselayer Console visually indicating which searches are in this state so that users can immediately identify searches subject to TIN verification retry. ## How does TIN verification retry work? Business searches that cannot complete TIN verification during the initial search execution become queued into a new batch processor that retries them several times a day attempting to complete the search. They remain in the queue being retried every few hours until the IRS TIN verification API becomes available once more and verification completes successfully. Once the TIN verification has completed, the TIN verification information is used to recompute the Baselayer KYB and Risk scores and the updated results are reported via a new `BusinessSearch.updated`webhook. The `BusinessSearch.updated` webhook will contain the final binary `tin_matched` value and the new scores. The schema is identical to the familiar `BusinessSearch.completed` payload. Users who wish to halt their processing workflows can do so by inspecting the search results payload, flagging any searches with `tin_matched=null`value as being in TIN verification retry, and await the `BusinessSearch.updated` payload which will contain `tin_matched=(true|false)`and a refreshed set of KYB and risk scores in the payload. # HHS-OIG Exclusions Added to Watchlist Screening Source: https://docs.baselayer.com/changelog/may-31-2026-hhs-oig-exclusions-added-to-watchlist-screening May 31, 2026 Watchlist screening now includes the **HHS Office of Inspector General (OIG) List of Excluded Individuals/Entities (LEIE)**, covering parties excluded from federally funded healthcare programs. Matches surface alongside your existing watchlist results with no integration changes required. # MCP: API Key Authentication and International Tools Source: https://docs.baselayer.com/changelog/mcp-api-key-authentication-and-international-tools Sep 30, 2026 The [Baselayer MCP server](/docs/mcp) now accepts your Baselayer API key in an `X-API-Key` header as an alternative to OAuth. That makes it easy to connect agents and automations that can't complete an OAuth flow. New tools bring international coverage to MCP: `search_international_business` and `get_international_business_search` run international KYB, and `analyze_online_presence` now accepts non-US countries. Tools that start a search also accept an optional `idempotency_key`, so agents can retry safely without ordering the same work twice. See [MCP Tools](/docs/mcp-tools). # Migrating `tin_matched` field from enum to boolean Source: https://docs.baselayer.com/changelog/migrating-tin_matched-field-from-enum-to-boolean March 7, 2024 The `tin_matched` field has been migrated from being an enum with values `NO_MATCH` or `EXACT` to a boolean to reduce confusion. `tin_matched` was previously an enum to align more closely with the `business_name_match` and `business_address_match`, but since there is no `SIMILAR` match for the `tin_matched` field, it makes more sense to treat it as a boolean - since the TIN is either a match by the IRS or not. # Improved Website Status for JavaScript-Rendered Sites Source: https://docs.baselayer.com/changelog/more-accurate-website-status-for-javascript-rendered-sites Jul 22, 2026 Website Analysis now correctly evaluates sites that render their content with JavaScript - single-page apps and hosted site builders that serve a near-empty HTML document before scripts run. Previously these sites were found to report a `website_build_status` of `inactive` and an empty `website_summary` even when the site was live, and contact/address extraction was starved of content. The result is a more accurate `website_build_status` (`active` / `inactive` / `coming_soon`) plus richer email, phone, address, and summary extraction on `GET /website_analysis_requests/{id}`. Normal server-rendered sites are unaffected. No integration changes required. # Person Search Now Live Source: https://docs.baselayer.com/changelog/nov-10-2025-person-search-now-live Nov 10, 2025 You can now search individuals in addition to businesses. Person Search allows you to look up a person and retrieve: * SSN verification * Liens * Litigation history * Bankruptcies * Other relevant public-record signals This feature supports fraud investigations, officer verification, and underwriting workflows. You can use [POST /people](/api-reference/people/create-person), and use the returned `person_id` to submit requests for additional checks, or directly use [POST /person_searches](/api-reference/people/create-person) and include under `options` all the checks you would like to include as part of this person search. If you have any questions, please contact your Baselayer representative. # Introducing Portfolio Monitoring Source: https://docs.baselayer.com/changelog/nov-12-2025-introducing-portfolio-monitoring Nov 12, 2025 We are incredibly excited to introduced an improved version of a major Baselayer product: **Portfolio Monitoring**. You can now track businesses performance in real time for: * Secretary of State changes * New litigations and bankruptcies * New liens filed on the business * Risk-relevant updates across Baselayer’s identity network * And many more! ![](https://mintcdn.com/baselayer-81245324/y8jjNyo-CIhfj2Df/images/Screenshot_2025-12-10_at_14.07.25.png?fit=max\&auto=format\&n=y8jjNyo-CIhfj2Df\&q=85\&s=38b2c9bd72423bae913431ac38a0c4c4) Alerts are available via API, notification emails or through the dashboard. For more information you can read the new guides we've introduced, starting with [Portfolio Monitoring: Basics](/docs/portfolio-monitoring). Reach out to your Baselayer representative if you'd like this enabled for your organization! # Improved Industry Prediction Model Source: https://docs.baselayer.com/changelog/nov-17-2024-improved-industry-prediction-model Nov 17, 2025 We’ve deployed an updated Industry Prediction model across all Business Search and Web Presence requests. What’s new: * Improved context window for AI agents * Expanded coverage of website discovery and scraping * Better extraction of industry-specific keywords Overall we expect a 10–15% accuracy improvement across NAICS, MCC, and SIC predictions. This upgrade requires no integration changes and is automatically applied to every Baselayer environment. Please contact your Baselayer representative if you have any questions. # Introducing Business Pre.Fill Source: https://docs.baselayer.com/changelog/oct-1-2025-introducing-business-prefill Oct 1, 2025 Business Pre.Fill is now available, enabling customers to pre-populate onboarding flows with clean, structured business information while dramatically reducing manual entry. With only the **personal information of an officer**, Pre.Fill automatically retrieves verified Secretary of State data to return the businesses associated with that individual. Results are returned synchronously and in milliseconds, making the product ideal for smooth, low-friction onboarding experiences. Pre.Fill can be requested via: `GET /prefill/businesses` Passing the officer details will return a list of matching businesses along with key information, including: * Verified legal entity name * Registered officers * Business structure * Incorporation details This reduces friction for applicants, minimizes data-entry errors, and helps risk teams focus on genuine threats instead of incomplete or inconsistent applications. If you’re interested in enabling Pre.Fill, contact your Baselayer representative. # Retrieve Filed Lien PDFs via API Source: https://docs.baselayer.com/changelog/oct-29-2025-retrieve-filed-lien-pdfs-via-api Oct 29, 2025 You can now download the **official filed lien document (UCC1 or UCC3) directly through the Baselayer API** - no more waiting for email copies or manually tracking files. This provides a smoother, more automated workflow for lien operations and compliance teams. Once a lien filing reaches the `filed` status, you can retrieve the stamped document using: `GET https://api.baselayer.com/lien_submissions/{filing_id}/filed_document` To check whether a filing is ready, continue using: `GET https://api.baselayer.com/lien_submissions/{filing_id}` and look at the `filing_status` field. When it changes to "filed", the PDF is available for download. The same functionality is also available in the console: simply open the lien submission and click **Download Filed Document**: ![](https://mintcdn.com/baselayer-81245324/y8jjNyo-CIhfj2Df/images/Screenshot_2025-12-10_at_13.59.40.png?fit=max\&auto=format\&n=y8jjNyo-CIhfj2Df\&q=85\&s=389568e622d40778fccc233d391a9858) This update makes it easy to automatically store lien documents in your internal systems, attach them to customer files, or maintain audit-ready records with no manual steps. # West Virginia Standing Updates Source: https://docs.baselayer.com/changelog/oct-31-2025-west-virginia-standing-updates Oct 31, 2025 West Virginia entities that have failed to file an annual report will now surface as `“Not In Compliance”` within Baselayer. The field `status` field will continue to show `"Active"` when applicable, mirroring the dataset of the West Virginia SoS. The **"Not in Compliance"** flag presents on the SoS database when the business fails to file the annual report by 6/30 of a filing year. However, they have 3 years to file all annual filings plus late fees before the entity is administratively dissolved/terminated. From now on, any business that fails to file or misses the deadline will automatically reflect that non-compliant status. When they do file and regain compliance, their standing will switch back to `“Active”` as expected. This update improves standing accuracy and aligns with WV Secretary of State reporting. # Updated Baselayer Risk Score Source: https://docs.baselayer.com/changelog/oct-6-2025-updated-baselayer-risk-score Oct 6, 2025 We’re excited to announce the release of our enhanced Risk Score, designed to better reflect real SMB risk patterns. Improvements include: * Updated weighting across industry, website analysis, business information, and inquiry behavior * Inclusion of litigation and bankruptcy data into the Risk Score * Inclusion of liens information into the Risk Score All Risk Ratings (A–F) and scores (0–100) now use the new model. Once a `DocketSearch` or `LiensSearch` request is completed, Baselayer will immediately after issue a `BusinessSearch.Updated` webhook to reflect the updated ratings, taking into account the impact of these additional checks. Please contact your Baselayer representative for any question. # Reason Codes Source: https://docs.baselayer.com/changelog/reason-codes Oct 20, 2026 Business search results now include reason codes: stable, machine-readable flags for the specific conditions behind a result, built for rules engines to branch on. \ `GET /searches/{id}`, `GET /searches`, the `BusinessSearch` webhooks and US and international web presence responses now carry a `reason_codes` array, for example `["SEARCH_ADDRESS_CMRA", "ENTITY_AGE_UNDER_90D"]`. It is empty when no condition holds. Codes cover: * **Identity:** business not found, no name match, no active registration, an inactive home-state registration, entity age brackets (`ENTITY_AGE_UNDER_7D` up to `ENTITY_AGE_UNDER_12M`), TIN mismatch, and a TIN that is an SSN. * **Address:** no match or a partial match, and whether the submitted or primary address is undeliverable, a PO box, a commercial mail receiving agency (CMRA) or residential. * **Officers:** none of the submitted officers matches an officer or registered agent on file. * **Web presence:** the submitted or discovered domain is under 7 days old. * **Credit:** active or past tax liens, active UCC liens, and active or recent bankruptcies and litigation. * **Network:** the business was searched by other organizations several times recently, or has no search history in our network. The new `GET /reason_codes` returns the full catalog. For each code it gives its `category`, Baselayer's `recommended_severity` (`high`, `medium` or `low`) and a plain-language `description`. A retired code is marked `deprecated`, with the date and its `successor_code`, and still appears on results that recorded it. We will add new codes over time. No integration changes required. The field is additive. # Search `status` field renamed to `state`. Source: https://docs.baselayer.com/changelog/search-status-field-renamed-to-state Feb 27, 2024 Previously the `status` of a search was sometimes called `status` and sometimes called `state` depending on the API route. To normalize fields across the entire Baselayer API, the `status` field has been renamed to `state`. Liens and Litigations both come back with a top-level `status` of their own. In the case of liens it can have a status of `Active` ,`Inactive` ,`Lapsed`, `Terminated` etc. And similarly a litigation can have a status e.g. `Filed`, `Pending` etc. To differentiate between the top-level status of the object itself and the top-level status of the search (`Pending`, `Executing`, `Completed`, `Failed`) we have renamed that field to `state` -> so now once the `state` of your search enters `Completed` it is done. This should help differentiate between something related to the response itself (e.g. the `status` of the lien) and whether or not the search succeeded (the `state`) # Search Web Presence History by Request ID or Reference ID Source: https://docs.baselayer.com/changelog/search-web-presence-history-by-request-id-or-reference-id Aug 31, 2026 `GET /web_presence_requests` now accepts a web presence request ID or your own reference ID in the `q` search parameter, not just a company name. A full request ID does an exact lookup; anything else matches partial company names and reference IDs case-insensitively. This brings web presence history search in line with business search history, which already accepted all three. A blank or whitespace-only `q` is now ignored and returns the full list, rather than being treated as a literal search. No integration changes required. # website_build_status Added to Website Analysis Source: https://docs.baselayer.com/changelog/sep-10-2025-website_build_status-added-to-website-analysis Sep 10, 2025 Website Analysis now surfaces `website_build_status`, indicating whether the site is: * Active * Under construction (`coming soon`) * Inactive This strengthens early fraud detection during onboarding and supports existing risk flags associated with a domain metadata such as `email_deliverable` or `parked`. # New Viewer Role Source: https://docs.baselayer.com/changelog/sep-25-2025-new-viewer-role Sep 25, 2025 A new permission level - `Viewer` - is now available for teams. Viewer users can: * Access the dashboard * View searches, filings, and reports * Review monitoring alerts But cannot create searches, perform filings, or update configurations. # Standalone Lien Filing Source: https://docs.baselayer.com/changelog/standalone-lien-filing Aug 4, 2026 You can now create a UCC-1 lien filing without first running a KYB search. A new endpoint, `POST /lien_submissions`, opens a draft filing where the debtor is entered manually rather than pre-filled from an existing business or person record. The existing anchored routes - `POST /businesses/{business_id}/lien_submissions` and `POST /people/{person_id}/lien_submissions` - continue to work unchanged for filings tied to a profile. Standalone filings manage every party through the `debtors` list on the filing body. The `assigned_debtor` field is valid only on anchored filings; sending it on a standalone filing returns error `479` (HTTP 422). Everything downstream - amendments, attachments, and `POST /lien_submissions/{filing_id}/submit` - behaves the same for standalone and anchored filings. In the Console, "File a Lien" on the lien filings list creates a standalone draft directly. No integration changes required, the new endpoint is additive. # Standalone UCC-3 Amendment Drafts and Initial-Filing Lookup Source: https://docs.baselayer.com/changelog/standalone-ucc-3-amendment-drafts-and-initial-filing-lookup Aug 28, 2026 You can now create a UCC-3 amendment filing draft on its own, before the initial (UCC-1) filing it amends has been created in Baselayer. The draft starts without a linked parent; you attach the parent afterward with an initial-filing lookup by file number and file date. Until an initial filing is linked, the draft cannot reference parties or be submitted, and the linked initial filing supplies the filing's state. Standalone draft creation selects the filing type (UCC-1 or UCC-3); requests that omit the type continue to create a UCC-1, so existing integrations are unchanged. No integration changes required for existing filings — the new capability is additive. # Texas Comptroller Franchise-Tax Standing Source: https://docs.baselayer.com/changelog/texas-comptroller-franchise-tax-standing Oct 8, 2026 Texas registrations now include the business's franchise-tax standing from the Texas Comptroller of Public Accounts, alongside its Secretary of State status. \ Every registration returned by `GET /businesses/{id}`, `GET /businesses/{id}/registrations` and `GET /registrations/{id}` now carries a `metadata` array. For a Texas registration with Comptroller data, it contains an entry with: * `source`: `texas_comptroller` * `status`: `active`, `inactive` or `unknown` * `status_description`: the Comptroller's own wording, for example `Franchise Tax Forfeited` * `taxpayer_number`: the Texas taxpayer number The Comptroller often flags a business that has lost its right to transact business months before the Secretary of State does, which makes the two disagreeing an early warning sign. For Texas businesses, the KYB score now also considers this standing, separately from the Secretary of State registration status, with the two counting equally. A business that is active with the Secretary of State but has forfeited its franchise-tax standing will score lower than before. When the standing is unknown (for example, for tax-exempt entities), only the Secretary of State status is used. See [Scores & Ratings](/docs/baselayer-scores-ratings). In the console, the KYB report shows a new **Texas Comptroller of Public Accounts** section below Secretary of State, and SoS filings flag any registration where the two sources disagree. `metadata` is an empty array for registrations outside Texas. No integration changes required. # Account Settings Source: https://docs.baselayer.com/docs/account-settings Choose which watchlists your searches screen against, how close a name must be to count as a hit, and how broadly lien searches match. Account Settings let your admins tailor how Baselayer works for your organization: which watchlists your searches screen against, how strict a name match must be before it is reported as a hit, and how broadly lien searches match debtor names. Settings take effect on new searches as soon as they are saved. Searches that already ran keep the settings they ran with. *** ### Where to Find Them Click your name at the bottom of the left sidebar and choose **Settings**. Only users with permission to update the organization (typically admins) can change settings; everyone else sees them read-only. ![Watchlist Screening in the Baselayer console Settings tab, with a switch and a match sensitivity slider for each list](https://mintcdn.com/baselayer-81245324/FMB4mUF698XrumT8/images/account-settings-watchlist-screening.png?fit=max\&auto=format\&n=FMB4mUF698XrumT8\&q=85\&s=b45090b2b79d4c10a39fc9d5e539d9ee) *** ### Watchlist Screening Choose which screening lists your business searches and international business searches run against, and how close a name has to match before it is reported as a hit. | List | Full name | | :- | :- | | OFAC | Department of Treasury, Office of Foreign Assets Control | | PEP | Politically Exposed Persons | | CSL | Department of Commerce, Consolidated Screening List | | FBI | FBI Wanted List | | CNS | Consolidated Canadian Autonomous Sanctions List | | OIG | HHS OIG List of Excluded Individuals/Entities | For each list you can: * **Turn screening on or off.** * **Set the match sensitivity** (similarity threshold) — the minimum name similarity, as a percentage, for a match to be reported. A higher percentage returns fewer, more exact matches; a lower one catches more spelling variations but returns more potential false positives to review. By default every list is on, with a 95% similarity threshold. ![Watchlist Screening settings with the FBI Wanted and Canadian National Security lists switched off](https://mintcdn.com/baselayer-81245324/FMB4mUF698XrumT8/images/account-settings-lists-off.png?fit=max\&auto=format\&n=FMB4mUF698XrumT8\&q=85\&s=848d06274d94c2204aeb4382e74178e3) A few things to know: * The threshold applies to the names you submit in a search. Hits on the shared business profile (`business.watchlist_hits`) are always screened at the 95% default, although lists you turn off are hidden there too. * A list you turn off is absent from `watchlist_hits`, rather than shown with a `count` of 0. * [Standalone watchlist checks](/docs/watchlists-sanctions-standalone-checks) don't use these settings — you set the threshold on each request instead. > [!WARNING] > > Turning a list off means your searches will not report hits from it. Confirm any change with your compliance team before saving. *** ### Lien Matching By default, lien searches return liens whose debtor name exactly matches the business. You can opt in to looser matches, each of which surfaces more liens — including some that may belong to a different business: | Option | What it adds | | :- | :- | | Alternative names | Liens filed under the business's alternative names, such as DBAs | | Suffix mismatches | Names that are identical except for the legal suffix (e.g. "Acme Holdings Inc" and "Acme Holdings LLC") | | Fuzzy matches | Names with typos or small spelling variations (e.g. "Acme Holdngs LLC" and "Acme Holdings LLC") | | Collapsed initialisms | Initialisms written with or without spaces (e.g. "F B I Headquarters" and "FBI Headquarters") | Every option is off by default, so your results don't change unless you turn one on. *** ### Going Back to the Defaults To undo your changes, select **Reset to default settings** at the bottom of the Settings tab. Your organization returns to Baselayer's defaults for every setting on the page. *** ### Related * [Watchlists & Sanctions: Basics](/docs/watchlists-sanctions-basics) * [Lien Search: Basics](/docs/lien-search-basics) # Adding Online Presence to a Business Search Source: https://docs.baselayer.com/docs/adding-online-presence-to-a-business-search Add online presence checks to a Business Search, so one call returns both KYB and web data. ### When to use this path This path is best when your team wants a single API call, and your applicant base is primarily registered businesses. If your platform onboards sole proprietors or you want online presence data on every application regardless of KYB outcome, run `POST /web_presence_requests` as a separate call instead. See the [Overview](/docs/online-presence-basics) for the full decision guide. *** ### The `options` array > **Online presence data is not returned unless you include `options` in your request.** Sending `options: []`, or omitting the field entirely, returns `orderables: []` - no Website Analysis, no Industry Prediction, no social or review data. This is the most common reason customers don't see web presence data in their responses. Include `options` in your `POST /searches` payload with one or more of the values below: | Value | What it returns | | :- | :- | | `Order.WebsiteAnalysis` | A `WebsiteAnalysisRequest` orderable tracking object in `orderables[]`. Retrieve the full analysis via `GET /website_analysis_requests/{id}`. If a `website` was submitted and differs from the one Baselayer discovered, two `WebsiteAnalysisRequest` orderables are returned - one per domain analyzed. | | `Order.NaicsPrediction` | A `NAICSPredictionRequest` orderable tracking object in `orderables[]`. Retrieve the full prediction via `GET /naics_prediction_requests/{id}`. | | `Order.Enhanced` | The full bundle: Website Analysis + Industry Prediction + Social Profiles + Reviews. Website Analysis and Industry Prediction generate orderable tracking objects as above. Social profiles and reviews are stored directly under `business.social_profiles[]` and `business.reviews[]` with no separate orderable. Also merges discovered addresses and officers into the business object - see below. Must be sent with `Order.WebsiteAnalysis` and `Order.NaicsPrediction`. | | `Order.Pep` | PEP screening on the business and its officers. | The granular sub-product orders - `Order.SocialMedia`, `Order.ReviewSummary`, `Order.ReviewFull`, and `Order.DirectoryListing` - are only available on `POST /web_presence_requests`. *** ### Why `Order.Enhanced` is more than a bundle `Order.Enhanced` covers the same four sub-products as requesting Website Analysis, Industry Prediction, Social Profiles, and Reviews individually, but it does something none of those individual orders do: it **merges discovered addresses and officers back into the business object**. Any addresses Baselayer finds through Website Analysis, social profiles, or reviews are added to `business.addresses[]`. Any officers discovered online are added to `business.business_officers[]`, alongside their `sources` and `titles`. These enriched fields feed directly into the KYB matching logic, which can meaningfully increase match rates for: * Newer businesses with thin Secretary of State records * Businesses operating under a DBA or trade name * Common business names where the address is the primary disambiguator Because `Order.Enhanced` performs a broader discovery across multiple sources, it takes on average around 25 seconds to complete - longer than a standard `POST /searches` call. `Order.WebsiteAnalysis` also runs inside the search and adds time. `Order.NaicsPrediction` can finish after the search completes unless `Order.Enhanced` is requested. For high-value KYB use cases where match rate matters more than speed, it is the recommended default. *** ### Where the data lives in the response | Data | Location | | :- | :- | | Match flags (`business_address_match`, `business_website_match`, etc.) | Top level | | `website_analysis` full result | Retrieved via `GET /website_analysis_requests/{id}` | | `industry_prediction` full result | Retrieved via `GET /naics_prediction_requests/{id}` (returned under `predicted_naics`) | | `business.social_profiles[]` | Nested under `business` (requires `Order.Enhanced`) | | `business.reviews[]` | Nested under `business` (requires `Order.Enhanced`) | | `business.addresses[]` | Nested under `business`, expanded by `Order.Enhanced` | | `business.business_officers[]` | Nested under `business`, expanded by `Order.Enhanced` | | `orderables[]` | Top level - tracking objects for Website Analysis and Industry Prediction, with IDs and retrieval URLs | For field-level definitions and a clear structure across all paths, see [Response Reference](/docs/online-presence-response-reference). *** ### Sample request In this example, the applicant submitted `acmecorp-solutions.com` as their website, but Baselayer independently discovered `acmecorp.com` as the operating domain. This triggers two `WebsiteAnalysisRequest` orderables - one per domain analyzed. ```json theme={null} { "name": "Acme Corp", "address": "123 Main St, New York, NY 10001", "website": "acmecorp-solutions.com", "options": [ "Order.Enhanced", "Order.WebsiteAnalysis", "Order.NaicsPrediction" ] } ``` *** ### Sample response ```json theme={null} { "id": "8535e9f2-7de7-40bb-b263-7dd415859657", "state": "COMPLETED", "business_address_match": "EXACT", "business_name_match": "EXACT", "business_website_match": false, "business": { "name": "Acme Corp", "addresses": [ { "city": "New York", "state": "NY", "street": "123 Main St", "zip": "10001", "sources": ["SOS", "Online"] } ], "business_officers": [ { "name": "Jane Smith", "sources": ["SOS", "Online"], "titles": ["CEO", "chief executive officer", "director"] } ], "social_profiles": [ { "site": "linked_in:company", "url": "https://www.linkedin.com/company/acme-corp", "confidence": "high", "metadata": { "followers_count": 1840, "company_size_range": "51-200 employees", "bio": "Industrial supply solutions across the northeast US." } } ], "reviews": null }, "orderables": [ { "id": "0ebf97c6-5191-41eb-bbc6-90e99c43c6d0", "option": "Order.WebsiteAnalysis", "type": "WebsiteAnalysisRequest", "url": "https://api.baselayer.com/website_analysis_requests/0ebf97c6-5191-41eb-bbc6-90e99c43c6d0" }, { "id": "a9ca33e5-e7c7-4a4f-ba4d-37ec3dd83c9f", "option": "Order.WebsiteAnalysis", "type": "WebsiteAnalysisRequest", "url": "https://api.baselayer.com/website_analysis_requests/a9ca33e5-e7c7-4a4f-ba4d-37ec3dd83c9f" }, { "id": "d83552b5-3e1a-4c9f-a812-1f6e3db72c44", "option": "Order.NaicsPrediction", "type": "NAICSPredictionRequest", "url": "https://api.baselayer.com/naics_prediction_requests/d83552b5-3e1a-4c9f-a812-1f6e3db72c44" } ] } ``` This response illustrates three important behaviors: * **Website Analysis and Industry Prediction are not inline.** The main response only contains orderable tracking objects. To access the full `website_analysis` or `industry_prediction` data, call `GET` on each orderable's `url`. * **Two `WebsiteAnalysisRequest` orderables.** The applicant submitted `acmecorp-solutions.com`, but Baselayer independently discovered `acmecorp.com`. Both domains are analyzed and each gets its own orderable, but the two entries in `orderables[]` look identical. Call `GET /website_analysis_requests/{id}` on each to determine which domain was analyzed. `business_website_match: false` reflects that the submitted domain did not match the discovered one. * **Social profiles are inline, reviews are null.** `business.social_profiles[]` is populated directly in the response when `Order.Enhanced` is requested. `business.reviews` is `null` when no reviews were found - no orderable is generated for these two items. *** ### What happens when Business Search fails > If the submitted business doesn't match any registration record (common for sole proprietors and other unregistered entities) `/searches` returns `state: FAILED` and **orderables are not triggered**. The `orderables[]` array will be empty even when valid `options` were included in the request. > > If your platform onboards applicants who may not have an SoS registration, use `POST /web_presence_requests` as a follow-up call - or as your primary path - to ensure online presence data is always returned. See [The Web Presence API](/docs/web-presence-api). *** ### Webhooks Each orderable fires its own lifecycle events. When using `Order.Enhanced` (or any combination of orderables), you can expect the following events: | Event | When it fires | | :- | :- | | `BusinessSearch.submitted` | When the search is created | | `WebsiteAnalysisRequest.submitted` | When the website analysis job starts | | `NAICSPredictionRequest.submitted` | When the industry prediction job starts | | `WebsiteAnalysisRequest.completed` | When website analysis results are ready | | `NAICSPredictionRequest.completed` | When industry prediction results are ready | | `BusinessSearch.completed` | When the search is complete. Without `Order.Enhanced`, industry prediction can finish after this event; wait for `NAICSPredictionRequest.completed` | Each `.completed` event payload includes the orderable `id` and a `url` for retrieving full results. *** ### Related guides * [Online Presence: Basics](/docs/online-presence-basics) — integration path decision guide * [The Web Presence API](/docs/web-presence-api) — running online presence independently of KYB * [Response Reference](/docs/online-presence-response-reference) — full field definitions and path-specific response shapes # Address Verification Source: https://docs.baselayer.com/docs/address-verification Learn what a business address says about risk, from PO boxes and virtual offices to mismatches across records. ## Why Address Verification Matters A business's physical address is a fundamental data point in verification: it confirms where the business operates, provides consistency across data sources, and reveals risk signals through address type and validation status. Address verification serves multiple purposes: validating deliverability through USPS, identifying high-risk address types (mail forwarding services, virtual offices, PO boxes), and ensuring consistency across Secretary of State records, websites, and applications. Different address types carry different risk profiles, and inconsistencies signal either data errors or potential fraud. *** ### USPS Address Types The United States Postal Service validates and classifies addresses into standardized types. Understanding these classifications helps assess address legitimacy and business operations. #### STREET Standard street addresses for homes, businesses, and commercial buildings. * Most common address type for established businesses * Includes suite numbers for multi-tenant buildings * USPS confirms deliverability and standardizes formatting **Example:** 123 Main St Ste 200, New York, NY 10001 *** #### HIGH_RISE Addresses in high-rise buildings with specific unit identifiers. * Multi-story buildings with numerous units * Common for businesses in urban commercial buildings * Includes apartment buildings, office towers, condominiums **Example:** 456 Park Ave Apt 15B, New York, NY 10022 *** #### FIRM Business-specific addresses where mail is delivered to a firm name rather than an individual. * Used for large corporations, government offices, or institutions * Often includes department or division information * Indicates established, known entity to USPS **Example:** Acme Corporation, 789 Corporate Blvd, Chicago, IL 60601 *** #### RURAL_ROUTE Addresses in rural areas using route and box numbers instead of street addresses. * Common in less populated areas without traditional street addresses * Legitimate for businesses operating in rural regions * Format: RR \[route number] Box \[box number] **Example:** RR 2 Box 45, Springfield, IL 62701 **Risk consideration:** Rural route addresses for businesses claiming urban operations or high transaction volumes warrant verification. *** #### POST_OFFICE (PO Box) Post Office boxes for mail receipt without physical address disclosure. * Cannot be used as primary business address for most state registrations * No physical location for business operations * Higher fraud correlation - often indicates no fixed commercial premises **Example:** PO Box 1234, San Francisco, CA 94102 **Risk consideration:** PO Boxes as sole addresses indicate businesses hiding physical location or lacking fixed operations. Legitimate uses include supplemental mailing addresses or privacy for home-based businesses. *** #### GENERAL_DELIVERY Mail service for recipients without fixed addresses, held at post office for pickup. * Temporary mail solution for transient situations * Extremely rare for legitimate business operations * High fraud risk - indicates no stable address **Example:** General Delivery, Austin, TX 78701 **Risk consideration:** Businesses using general delivery addresses should be flagged for heightened scrutiny or declined. *** ### CMRA (Commercial Mail Receiving Agency) Mail forwarding services that provide street addresses functioning as mailboxes, businesses appear to have physical locations but only receive mail there. **Common providers:** * UPS Store * FedEx Office * PostNet, Pak Mail * Independent mail forwarding services **Risk considerations:** * Business has no physical presence at that address (only a mailbox) * Higher fraud correlation: used to obscure true location * Legitimate use cases: Remote businesses, home-based businesses maintaining professional address **Why it matters:** CMRAs aren't inherently fraudulent, but indicate absence of physical operations at that location. Combined with other red flags (new business, thin file, high credit request), CMRA addresses warrant additional scrutiny. *** ### Virtual Offices Shared office space providers (Regus, WeWork, IWG) offering businesses professional addresses and occasional workspace access without full-time physical presence. **Risk considerations:** * Mixed signal: legitimate for startups, consultants, remote-first companies * Also used by shell companies to project legitimacy * Evaluation depends on business type and supporting indicators **When to investigate:** * Manufacturing or retail business using virtual office (inconsistent with claimed operations) * Dozens of unrelated businesses at same suite * Virtual office combined with other fraud indicators *** ### Residential vs Commercial (RDI) USPS classifies addresses as residential or commercial, indicating whether the location is primarily a home or business establishment. **Residential addresses:** * Homes, apartments, condominiums * Common for home-based businesses, sole proprietors, freelancers * USPS designates with residential delivery indicator (RDI) **Commercial addresses:** * Office buildings, retail spaces, industrial facilities * Expected for businesses claiming significant operations * USPS designates as commercial delivery **Risk assessment:** * **Low risk:** Consulting firm at residential address (appropriate for business model) * **High risk:** Restaurant claiming to operate from apartment, manufacturing company at residential address **Why it matters:** Residential addresses aren't fraudulent, but should align with stated business type and scale. A business description inconsistent with home-based operations raises questions about legitimacy or accurate representation. *** ### Address Consistency Verifying that addresses match across multiple sources detects fraud and ensures accurate record-keeping. **Sources to cross-reference:** * Secretary of State business registration * Business website contact information * Google Business Profile * Social media profiles * Application submitted address **Why consistency matters:** Legitimate businesses maintain consistent address information. Inconsistencies signal: * Data entry errors requiring correction * Recent moves not updated across all platforms * Intentional misrepresentation (fraud) * Shell companies with minimal operational footprint **Common issues:** * Application address differs from Secretary of State records * Website lists different city than business registration **Investigation triggers:** * Major inconsistencies (different cities or states) require explanation * Pattern of inconsistencies across multiple sources indicates higher risk *** ### Address Changes Businesses changing addresses frequently or recently can signal instability, fraud patterns, or business evolution. **Context matters:** * **Recent change (\< 90 days):** New business, recent move, or relocation * **Multiple changes in short period:** Business instability, financial distress, or fraud cycling * **Address change during application:** Verify reason and update verification accordingly **Why it matters:** * Established businesses don't frequently change locations without operational reasons * Fraud operations may cycle through addresses to avoid detection * Recent moves may indicate financial problems **Risk indicators:** * Three or more address changes in one year * Moving from commercial to residential address (potential downsizing or fraud) * Change immediately before applying for credit *** ### Best Practices * **Validate deliverability** - Confirm USPS validation before proceeding with verification * **Identify address type** - Different types (CMRA, virtual office, PO Box, residential) carry different risk * **Cross-reference sources** - Check Secretary of State, website, and public records for consistency * **Consider business context** - Home-based consultant differs from home-based manufacturer * **Investigate inconsistencies** - Determine if mismatches are errors or fraud indicators * **Monitor for changes** - Ongoing monitoring catches address updates signaling potential risk > **_Baselayer Address Verification:_** > **_Baselayer validates addresses through USPS, identifies address types and high-risk classifications (CMRA, PO Boxes), cross-references addresses across Secretary of State records, websites, and public data sources, and flags inconsistencies - providing comprehensive address intelligence as part of business verification._** # API Versioning & Compatibility Source: https://docs.baselayer.com/docs/api-versioning-compatibility Know which API changes Baselayer may make without notice, and build so they never break your integration. Baselayer maintains a **backwards compatible API contract**. We may add new fields, endpoints, or optional parameters without notice. We recommend **building for forward compatibility**: * Accept and ignore unknown fields in responses * Use permissive parsers rather than strict schema validation * Explicitly access only the fields your application needs * Subscribe to the API changelog for notifications of additive changes *** Baselayer will never: * Remove or rename existing fields * Change the type or format of existing fields * Make existing optional parameters required * Change HTTP status codes for existing scenarios **Breaking changes** are only introduced through new API versions with advance notice and a deprecation timeline. # Audit Log Source: https://docs.baselayer.com/docs/audit-log Look up the recorded registrations, mints and revocations for a person, business or credential you already hold. Look up entries in Baselayer's tamper-evident log for one `individual_ref`, `business_ref` or `credential_id` you already hold: identity registrations, credential issuance and revocations. ## Reading the log ```http theme={null} GET /issuance/audit_log ``` Scope the query with at least one `individual_ref`, `business_ref` or `credential_id` from your own activity. To narrow it, filter by `event_type`: * `issuance` * `credential_revocation` * `identity_registration` See every filter and paging option in the [API Reference](/api-reference/audit-log/read-the-calling-organizations-slice-of-the-audit-log). Each entry is `{ "seq": , "event": { ... } }`, newest first. `seq` is the entry's permanent position in the log. The log is written in batches, so a new event appears after a short delay. The identity and credential lookups are always current. ## Event shapes * `issuance`: a credential mint, without the credential itself. * It lists the site (`audience`) and the fields shared (`disclosed_fields`). * Its `jti` is the same value as `credential_id`. * On the person's credential from a business mint, `linked_jti` is the business credential's `jti`. * `credential_revocation`: one credential revoked, by `jti`, with its `reason` and who revoked it. * It says one credential stopped working. The person or business can still get a new one. * `identity_registration`: a verification reaching a `verdict`, with: * `verification_level`: 1, 2 or 3, from the checks that passed, or null. * The `business_operator_link_status` at that time. See every event field in the [API Reference](/api-reference/audit-log/read-the-calling-organizations-slice-of-the-audit-log). ## Troubleshooting | Problem | Fix | | - | - | | `422`, code `6310`: query needs a scope | Pass at least one of `individual_ref`, `business_ref` or `credential_id`, and only the three `event_type` values above. Any other `event_type` is also refused with `422`. | | `422`, code `1500`: invalid pagination parameters | Use `offset` or `cursor`, not both. | | `404` | The reference or `credential_id` is unknown, belongs to another organization, or is from your other environment. A production reference does work with a sandbox key once you mint a test credential for it. | | A recent mint does not show up yet | The log is written in batches. Retry after a short delay. | See also [Managing and Revoking Credentials](/docs/kya-managing-and-revoking). # Authentication Source: https://docs.baselayer.com/docs/authentication Authenticate your API requests with an API key, and confirm that each webhook really came from Baselayer. Baselayer uses **API key authentication** for API requests and **HMAC-SHA256 signatures** for webhook verification. This guide covers both authentication methods. *** ## API Authentication All Baselayer API requests require authentication using an API key passed in the `X-API-Key` header. ### Getting Your API Key 1. Log into the [Baselayer console](https://console.baselayer.com) 2. Select your environment using the dropdown in the top-left corner (SANDBOX or PRODUCTION). If your organization has KYA, this control is a switch just above your name at the bottom of the sidebar instead. 3. Click your name at the bottom of the sidebar, then **API Keys** 4. Copy your API key **⚠️ Important**: Make sure you've selected the correct environment before copying your key. Sandbox keys only work with sandbox data, and production keys will incur charges. See [Sandbox vs. Production Environments](/docs/sandbox-vs-production-environments) for details. ### Base URL All API requests use the same base URL: ``` https://api.baselayer.com ``` ### Making Authenticated Requests Include your API key in the `X-API-Key` header with every request. #### cURL Example ```bash theme={null} curl https://api.baselayer.com/searches \ -X POST \ -H "X-API-Key: your_api_key_here" \ -H "Content-Type: application/json" \ -d '{ "name": "Baselayer Technologies Inc", "address": "149 New Montgomery St, San Francisco, CA 94105" }' ``` #### Python Example Using the `requests` library: ```python theme={null} import requests url = "https://api.baselayer.com/searches" headers = { "X-API-Key": "your_api_key_here", "Content-Type": "application/json" } payload = { "name": "Baselayer Technologies Inc", "address": "149 New Montgomery St, San Francisco, CA 94105" } response = requests.post(url, json=payload, headers=headers) data = response.json() ``` *** ## Webhook Authentication Baselayer uses Svix to deliver webhooks with HMAC-SHA256 signatures for secure verification. ### How Webhook Signing Works Every webhook request includes cryptographic signatures in the headers that you can verify to ensure: * The webhook came from Baselayer (not a malicious third party) * The payload hasn't been tampered with ### Getting Your Signing Secret 1. Log into the [Baselayer console](https://console.baselayer.com) 2. Click your name at the bottom of the sidebar, then **Webhooks & Logs** 3. Find your webhook endpoint 4. The signing secret is displayed next to your endpoint URL The secret will look like: `whsec_C2FVsBQIhrscChlQIMV+b5sSYspob7oD` ![](https://mintcdn.com/baselayer-81245324/y8jjNyo-CIhfj2Df/images/Screenshot_2025-12-29_at_16.46.45.png?fit=max\&auto=format\&n=y8jjNyo-CIhfj2Df\&q=85\&s=1a81e060812c8275e5b4710778a9370b) ### Verifying Webhook Signatures Baselayer uses Svix for webhook delivery. For detailed verification instructions and code examples, see the [Svix webhook verification guide](https://docs.svix.com/receiving/verifying-payloads/how-manual). *** ## Security Best Practices ### Protecting Your API Keys **✓ Use environment variables**: Never hardcode API keys in your code ```python theme={null} import os api_key = os.environ.get("BASELAYER_API_KEY") ``` **✓ Use secret managers**: For production, use AWS Secrets Manager, Google Secret Manager, or similar **✓ Never commit keys to version control**: Add `.env` files to your `.gitignore` ```bash theme={null} # .gitignore .env *.env ``` **✗ Don't expose keys in client-side code**: API keys should only be used in backend services ### Environment Separation * **Development/Testing**: Use sandbox API keys * **Production**: Use production API keys only in your live application Accidentally using production keys during testing will result in unexpected charges. ### Key Rotation If you believe an API key has been compromised: 1. Generate a new API key in the Baselayer console 2. Update your application to use the new key 3. Delete the compromised key 4. Monitor your usage for any suspicious activity ### Webhook Security * **Always verify signatures**: Check the HMAC signature on every webhook * **Use HTTPS endpoints**: Webhook endpoints must use HTTPS * **Implement idempotency**: Webhooks may be delivered more than once; use the event ID to deduplicate *** ## Troubleshooting ### 401 Unauthorized **Cause**: Missing or invalid API key **Solutions**: * Verify the `X-API-Key` header is included in your request * Check that you copied the complete API key (no extra spaces or characters) * Confirm you're using a valid, non-deleted API key * Ensure you're using the correct environment key (sandbox vs. production) ### 403 Forbidden **Cause**: Your API key doesn't have access to the requested resource **Solutions**: * Verify you're using a production key for production resources * Check that your account has access to the endpoint you're calling *** ## Next Steps Now that you understand authentication, you're ready to: * [Understand Sandbox vs. Production environments](/docs/sandbox-vs-production-environments) * [Set up webhooks](/docs/webhooks-at-baselayer) * [Get started with the Baselayer API](/docs/getting-started) For questions about authentication or API access, contact your Baselayer account manager. # Auto.Complete Source: https://docs.baselayer.com/docs/auto-complete Let applicants pick their business as they type, and run KYB against exactly the business they chose. Auto.Complete adds a business typeahead to your own product. As an applicant types their company name, they see matching businesses from official Secretary of State records and pick theirs from the list — no typos, no guessing, and no wrong-entity matches when you run KYB. **For setup, code samples and a live demo, go to [sdk.baselayer.com](https://sdk.baselayer.com).** This page explains how the product works so you know what you're building. *** ### How Auto.Complete Works Auto.Complete is built so your API key never reaches the browser: 1. **Your backend opens a session.** It calls `POST /autocomplete/sessions` with your API key and receives a short-lived session token. 2. **The browser asks for suggestions.** As the applicant types, your page calls `GET /autocomplete/businesses` with that session token and shows the suggestions it returns. 3. **The applicant picks their business.** Each suggestion carries a `token` that identifies exactly that business. 4. **You run KYB on the pick.** Pass the token as `business_token` on `POST /searches`, and the search runs against the business the applicant chose. The `business_token` is valid for 15 minutes and only for your organization. Sessions are short-lived and the SDK refreshes them for you. *** ### What Each Suggestion Includes * The business's name, and the DBA or other name that matched what was typed * Its home (domicile) state and the other states it is registered in * Its business structure (for example `LLC`, `C_CORPORATION`, `SOLE_PROPRIETORSHIP`) * Related people and addresses, so applicants can recognise the right business You can narrow suggestions by state, home state, business structure, officer or registered agent name, and address. *** ### Use the SDK The fastest way to integrate is the Baselayer JavaScript/TypeScript SDK, `@baselayer-sdk/autocomplete`. It: * Opens and refreshes sessions for you, and retries when a session lapses or a rate limit is hit * Includes a ready-made, fully restyleable React component * Includes a server helper so your API key stays on your backend See [sdk.baselayer.com](https://sdk.baselayer.com) for installation, examples and the full request reference. *** ### Getting Access Auto.Complete is enabled per organization. Contact your Baselayer representative to turn it on or to book a demo. > [!NOTE] > > The original `GET /autocomplete` endpoint was retired on September 25, 2026. If you integrated with it, see the [migration notice](/changelog/get-autocomplete-replaced-by-get-autocomplete-businesses). *** ### Related * [Business Pre.Fill: Basics](/docs/business-prefill-basics) — find businesses from an officer's name * [Business Search: Basics](/docs/business-search-basics) — the KYB search you run on the picked business # Auto.Complete SDK Source: https://docs.baselayer.com/docs/autocomplete-sdk Add a business typeahead to your own product with @baselayer-sdk/autocomplete, and run KYB on exactly the business that was picked. This page is for developers adding Baselayer's business typeahead to their own forms. As someone types, they see matching businesses from official registry records and pick theirs. The pick gives you a `business_token`, and your KYB search runs on exactly that business, with no typos and no wrong-business matches. Try it in the [live demo](https://sdk.baselayer.com/autocomplete/demo/) with your own API key. For how the product works, see [Auto.Complete](/docs/auto-complete). The SDK's own site is shown below, with the full guide, styling options and API reference. If the frame is too small, [open the SDK site](https://sdk.baselayer.com/autocomplete/) in its own tab. [Auto.Complete SDK](https://sdk.baselayer.com/autocomplete/) ## What's in the package | Import | What it is | | - | - | | `@baselayer-sdk/autocomplete` | The framework-free core: sessions, refresh, backoff, and handling for every refusal the API can return. | | `@baselayer-sdk/autocomplete/react` | Hooks, and styled components you can restyle: `BusinessAutocomplete`, `PersonAutocomplete` and `AddressAutocomplete`. | | `@baselayer-sdk/autocomplete/server` | The one endpoint your backend adds, so your API key never reaches a browser. | The SDK finds a business three ways: by its name, by a person who holds a role at it, or by an address it is filed at. Whichever way, the pick is a business. ## Install ```bash theme={null} npm install @baselayer-sdk/autocomplete ``` React 18 or 19 is optional. The core and the server helper need neither React nor a browser. The package needs Node 20 or later. > [!NOTE] > > The SDK is pre-release (version 0.x). Until 1.0, a breaking change bumps the minor version, so pin the minor version you test with. ## How it fits together 1. When the field is used, the SDK asks your backend for a session. 2. Your backend creates (mints) the session with your API key (`POST /autocomplete/sessions`), forwards the page's `Origin`, and returns Baselayer's answer unchanged. 3. Each keystroke goes straight from the browser to Baselayer with that session. No cookies, no API key. 4. Picking a row hands your form its `business_token`. 5. Your backend sends the token with `POST /searches`, so the search runs on exactly the business that was picked. The browser only ever holds a short-lived session (a few minutes) that is tied to your page's origin and has its own request budget. ## 1. Add the session endpoint to your backend Next.js (App Router), in `app/api/ac-session/route.ts`: ```ts theme={null} import { createMintHandler } from "@baselayer-sdk/autocomplete/server"; export const POST = createMintHandler({ apiKey: process.env.BASELAYER_API_KEY!, allowedOrigins: ["https://app.example.com"], }); ``` On other backends, use `mintForOrigin({ apiKey, origin })` from the same import, and pass its status, headers and body straight through. Put this endpoint behind your own login, like the rest of your API. Every session it mints counts against your organization's session pool. ## 2. Add the component ```tsx theme={null} import { useState } from "react"; import { BusinessAutocomplete } from "@baselayer-sdk/autocomplete/react"; import "@baselayer-sdk/autocomplete/react/styles.css"; export function LegalNameField() { const [name, setName] = useState(""); const [businessToken, setBusinessToken] = useState(); return ( { setName(value); setBusinessToken(undefined); // an edit is no longer the pick }} onPick={(_, pick) => setBusinessToken(pick.businessToken)} /> ); } ``` Useful options, with their defaults: | Option | Default | What it does | | - | - | - | | `minChars` | `3` | Characters typed before the first request. | | `debounceMs` | `250` | Pause after a keystroke before it is sent. | | `limit` | `5` | Rows per keystroke, from 1 to 20. | | `filters` | none | Narrow results, for example by state. | | `list` | none | Lines under each row: the business's `people` and `addresses`. | | `onUnavailable` | none | Called when sessions cannot be minted, so you can show a plain input. | For styling, headless hooks and every option, see the [SDK site](https://sdk.baselayer.com/autocomplete/). ## 3. Send the pick with your search From your backend, send the token on its own as the body of `POST /searches`: ```json theme={null} { "business_token": "…" } ``` Do not send `name` or `address` with it. The token stands in for both. A token lasts 15 minutes from when the row was shown, and only works for your organization. If the search refuses it (expired, or the business is gone), drop the token and search by the name and address as typed. The SDK's `refusedThePin(status, code)` tells you when to do that. ## Links * [Live demo](https://sdk.baselayer.com/autocomplete/demo/): try the components with your own API key * [SDK overview](https://sdk.baselayer.com/autocomplete/) and [API reference](https://sdk.baselayer.com/autocomplete/api/) * [Source on GitHub](https://github.com/osiris-ratings/baselayer-autocomplete-typescript) * [Auto.Complete](/docs/auto-complete): how the product works * [Business Search: Basics](/docs/business-search-basics): the KYB search you run on the pick Auto.Complete is enabled per organization. Contact your Baselayer representative to turn it on. # Bank Account Opening Source: https://docs.baselayer.com/docs/bank-account-opening How banks use Baselayer to open business accounts quickly while meeting BSA/AML and industry rules. ## Overview Bank account opening represents one of the simplest business verification workflows. The primary focus is on **regulatory compliance and fraud prevention** rather than creditworthiness evaluation. **Key characteristics of bank account opening:** * **No credit risk**: There is no credit risk associated with deposits, leading to higher approval rates * **Regulatory focus**: Compliance with BSA/AML requirements and industry restrictions * **Prohibited industries**: Certain sectors cannot be banked (cannabis, high-risk activities) * **Simplified verification**: Streamlined process compared to lending workflows * **Fraud prevention**: Detecting synthetic businesses and identity fraud This guide provides a standard verification workflow optimized for bank account opening teams seeking to balance compliance requirements with fast, frictionless onboarding. *** ## Verification Workflow Overview A typical bank account opening verification flow includes five key steps: 1. **Fraud Screening**: Detect synthetic businesses and fraud patterns (Baselayer + Partner/s) 2. **Industry Screening**: Verify business operates in acceptable industry (Baselayer) 3. **AML/KYC**: Verify business owner identity and sanctions screening (Partner/s) 4. **Business Verification**: Validate business identity and registration (Baselayer) 5. **Identity Verification**: Final identity check on business owner (Partner/s) Each step uses a combination of Baselayer endpoints and third-party verification tools to ensure regulatory compliance while maintaining a fast approval process. *** ## Step 1: Fraud Screening **Purpose**: Identify synthetic businesses, fake entities, and known fraud patterns. ### Required Tools * **Fraud screening provider** (for device/identity signals and digital intelligence) * **Baselayer**: [Fraud consortium](/docs/the-baselayer-fraud-consortium) ### Baselayer Endpoints ```javascript Text theme={null} POST /searches ``` ### Verification Logic ```javascript Text theme={null} // Submit business search response = POST /searches with business details // Check fraud consortium (BFC entry appears in watchlist_hits for member organizations only) bfc = FIND entry IN response.watchlist_hits WHERE entry.code == "BFC" IF bfc EXISTS AND bfc.count > 0: flag = "RED" reason = "Business or individual in Baselayer Fraud Consortium" // Combine with third-party fraud screening IF fraud_screening_provider.risk_score > threshold: flag = "RED" reason = "Failed fraud screening" ``` > **Note**: Baselayer fraud consortium is only available for member entities who contribute regularly to the fraud database. For non-member organizations, the BFC entry is entirely absent from `watchlist_hits` (it is never returned as a `count: 0` placeholder), and BFC hits never appear in sandbox. ### Context Fraud screening for bank account opening focuses on detecting synthetic businesses and known fraudsters. Unlike lending workflows, **application velocity and identity network checks are not typically used** since banks don't compete for deposits - multiple bank accounts across institutions is normal business behavior, not a red flag. *** ## Step 2: Industry Screening **Purpose**: Verify the business operates in an industry the bank is permitted to serve. ### Required Tools * **Baselayer**: [Industry prediction](/docs/industry-prediction-user-guide) ### Baselayer Endpoints ```javascript Text theme={null} POST /web_presence_requests ``` > **Tip**: The web presence request has 20-30 second latency. Consider initiating this request early in your workflow (e.g., during Step 1) to improve applicant experience. ### Verification Logic ```javascript Text theme={null} // Extract industry prediction from /web_presence_requests response industry = response.industry_prediction // Check for prohibited industries IF industry.keywords CONTAINS ANY prohibited_keyword: flag = "RED" reason = "Prohibited industry keyword detected" // Check prohibited NAICS codes with confidence threshold IF industry.code IN prohibited_naics_list: IF industry.accuracy >= 0.75: flag = "RED" reason = "Prohibited industry with high confidence" ELSE: flag = "YELLOW" reason = "Potential prohibited industry, needs review" ``` > **Note**: Prohibited keyword and NAICS code lists are proprietary and available to Baselayer customers upon request. Common prohibited industries for banks include cannabis, weapons, adult entertainment, cryptocurrency (varies by institution), and money services businesses. Contact your account representative for access. ### Context Industry screening is critical for bank account opening because **banks are prohibited from serving certain industries** due to regulatory restrictions or institutional risk policies. Unlike lending where industry affects credit risk, in banking it's a binary compliance decision - the business is either permitted or not. Cannabis-related businesses, for example, are prohibited by most banks despite state-level legalization due to federal banking regulations. *** ## Step 3: AML/KYC **Purpose**: Verify the identity of the business owner and screen for sanctions, PEP flags, and adverse media. ### Required Tools * **KYC provider** (for identity verification and AML screening) ### Context AML/KYC is a critical regulatory requirement for bank account opening under the **Bank Secrecy Act (BSA) and Customer Due Diligence (CDD) Rule**. Banks must verify the identity of beneficial owners and screen for: * OFAC sanctions lists * Politically Exposed Persons (PEP) * Adverse media and negative news * Money laundering risk indicators This step ensures compliance with federal anti-money laundering regulations and helps banks avoid facilitating illicit financial activity. Baselayer works with hundreds of partners and can recommend ideal providers for every product and case. *** ## Step 4: Business Verification **Purpose**: Validate business identity, registration status, and compliance. ### Required Tools * **Baselayer**: [Business search](/docs/business-search-basics) ### Baselayer Endpoints ```javascript Text theme={null} POST /searches ``` > **Tip**: You can re-use the API response from the `POST /searches` request from Step 1 and avoid extra charges. ### Verification Logic This workflow assumes only registered businesses are approved. If sole proprietorships are also eligible for account opening, we recommend setting up a separate route as explained in our [Sole Proprietorship Verification](/docs/sole-prop-verification) guide. ```javascript Text theme={null} // Extract match signals from /searches response business_id = response.business.id name_match = response.business_name_match address_match = response.business_address_match tin_matched = response.tin_matched registrations = response.business.registrations watchlist_hits = response.watchlist_hits // Check Baselayer match IF business_id == NULL: flag = "RED" reason = "No business match" // skip all other steps // Check name and address matching name_address_approved = FALSE IF name_match == "EXACT" AND address_match IN ["EXACT", "CITY", "STATE"]: name_address_approved = TRUE ELSE IF name_match == "SIMILAR" AND address_match == "EXACT": name_address_approved = TRUE IF NOT name_address_approved: flag = "RED" reason = "Weak name/address match" // Verify TIN IF tin_matched == NULL: # IRS outage - handle per policy # See Guide: IRS Outage Handling for detailed guidance flag = "YELLOW" reason = "TIN verification unavailable (IRS outage)" ELSE IF tin_matched == FALSE: flag = "RED" reason = "TIN does not match business name" // Check registrations domestic_active = FALSE FOR EACH registration IN registrations: IF registration.registration_type == "domestic" AND registration.status == "active": domestic_active = TRUE domestic_state = registration.state IF NOT domestic_active: flag = "RED" reason = "No active domestic registration" // If business operates in different state, verify foreign registration // Operating state is usually the one from the application address IF operating_state != domestic_state: foreign_active = FALSE FOR EACH registration IN registrations: IF registration.registration_type == "foreign" AND registration.state == operating_state AND registration.status == "active": foreign_active = TRUE IF NOT foreign_active: flag = "YELLOW" reason = "No active foreign registration in operating state" // Check watchlists IF ANY entry IN watchlist_hits WHERE entry.count > 0 AND entry.code != "IEO": flag = "RED" reason = "Positive sanctions or watchlist match" ``` ### Context Business verification for bank account opening ensures the entity is legitimate, properly registered, and not on sanctions lists. Unlike lending, **banks typically don't require minimum business age** or extensive financial documentation - a newly incorporated business can open an account immediately. The focus is on confirming the business exists and is legally established. *** ## Step 5: Identity Verification **Purpose**: Perform final identity verification on the business owner opening the account. ### Required Tools * **Identity verification provider** (for enhanced identity checks) ### Context The final identity verification step confirms the individual opening the account is authorized to do so and matches the information provided in earlier KYC checks. This typically includes: * Government ID verification * Liveness detection * Identity document authentication This step provides an additional layer of fraud prevention and ensures the person opening the account is the legitimate business owner or authorized representative. Baselayer works with hundreds of partners and can recommend ideal providers for every product and case. *** ## Implementation Checklist Use this checklist to implement the bank account opening verification workflow: **Setup** * [ ] Integrate fraud screening provider * [ ] Integrate Baselayer API * [ ] Integrate KYC provider * [ ] Integrate identity verification provider * [ ] Request prohibited industry lists from Baselayer representative **Step 1: Fraud Screening** * [ ] Implement `POST /searches` endpoint * [ ] Configure fraud consortium check (if member) * [ ] Integrate third-party fraud screening **Step 2: Industry** * [ ] Implement `POST /web_presence_requests` endpoint * [ ] Configure industry screening for prohibited industries **Step 3: AML/KYC** * [ ] Implement KYC/AML verification * [ ] Configure sanctions and PEP screening **Step 4: Business Verification** * [ ] Implement standard KYB verification logic * [ ] Set up sole proprietor routing (if applicable) **Step 5: Identity Verification** * [ ] Implement identity verification check * [ ] Configure manual review queues * [ ] Set up rejection workflows For questions about implementation or to request prohibited industry lists, contact your Baselayer account representative. # International Products: Basics Source: https://docs.baselayer.com/docs/baselayer-international-products See which countries are covered, and how verifying a non-US business differs from a US one. ## Baselayer International Two of Baselayer's core US products - **Business Search** and **Web Presence** - have international counterparts for verifying businesses outside the United States. * **International Business Search** returns corporate registration data (name, registration number, status, legal form, and more) for businesses in 76 countries and territories, sourced from foreign corporate registries. * **Web Presence** works internationally out of the box: the same endpoint and response structure you already use for US businesses, with global coverage. This is the **Basics** of Baselayer International. For the Business Verification product, see also the [API Quickstart](/docs/international-products-api-quickstart) and [Best Practices](/docs/international-products-best-practices). *** ### At a Glance: US vs. International | | Business Search | Web Presence | | - | - | - | | **US Data Source** | Direct Secretary of State + IRS integrations | AI-powered web intelligence | | **International Data Source** | Foreign corporate registries | Same as US (global coverage) | | **International API route** | `POST /international/searches` (separate from US) | `POST /web_presence_requests` (same as US) | | **International access** | API only | API and Console | *** ### International Business Search #### How It Works International Business Search is available using a separate set of endpoints from the US Business Search. Data returned maintains a consistent structure across jurisdictions, though information depth varies by country. #### Two Ways to Search `POST /international/searches` accepts two ways to identify a business. Both require `iso2_country_code`. * **Name + address**: provide `name` **and** `address`. The standard approach, and all you need for the vast majority of searches. * **Registration (filing) number**: provide `filing_number`. A good **optional** input to offer: in many countries, owners and finance staff know their registration number by heart. When provided, the registry is searched by that number first; a `name`, if also included, is used as a fallback if no company matches the number. With a `filing_number`, the `name` and `address` are both **optional**: you can send the number on its own, or with either or both. Without a `filing_number`, `name` and `address` are both required. Every input you send is matched and contributes to the scores (see [Scores & Ratings](#scores-and-ratings) below); inputs you leave out are simply excluded. > **Tip**: Label the registration-number field with the **local term** so users recognize it. In Spain, for example, it's the **CIF**. If you want to smooth matching in a specific market, you can also look candidates up first with `GET /international/registrations` (see below). Both are optional, a plain name + address search works well on its own. #### Supported Countries International Business Search is available for the following **76 jurisdictions**. \ **★ = Enhanced Profile available** (see [Enhanced Profiles](#enhanced-profiles-optional)); all others return the core profile. | Region | Jurisdictions | | - | - | | **Europe (EU)** | Austria (AT) ★, Belgium (BE) ★, Croatia (HR), Cyprus (CY) ★, Czech Republic (CZ), Denmark (DK) ★, Estonia (EE) ★, Finland (FI) ★, France (FR) ★, Germany (DE) ★, Greece (GR) ★, Ireland (IE) ★, Italy (IT) ★, Latvia (LV) ★, Lithuania (LT), Luxembourg (LU) ★, Netherlands (NL) ★, Poland (PL), Portugal (PT), Romania (RO), Slovakia (SK), Slovenia (SI), Spain (ES) ★, Sweden (SE) ★ | | **Europe (non-EU)** | Bosnia and Herzegovina (BA), Georgia (GE), Gibraltar (GI), Guernsey (GG) ★, Iceland (IS), Isle of Man (IM), Liechtenstein (LI), Montenegro (ME), Norway (NO) ★, Russia (RU), Switzerland (CH), United Kingdom (GB) ★ | | **North America** | Canada (CA), Saint-Pierre-et-Miquelon (PM) ★ | | **Central America** | Panama (PA) | | **South America** | Brazil (BR) ★, Colombia (CO), French Guiana (GF) ★, Peru (PE), Uruguay (UY) | | **The Caribbean** | Curaçao (CW), Dominican Republic (DO), Guadeloupe (GP) ★, Martinique (MQ) ★, Saint-Barthélemy (BL) ★, Trinidad & Tobago (TT), U.S. Virgin Islands (VI) | | **Asia** | Brunei (BN), Cambodia (KH), China (CN) ★, Hong Kong (HK), Japan (JP) ★, Malaysia (MY) ★, Pakistan (PK), Singapore (SG) ★, Taiwan (TW) ★ | | **Middle East** | Bahrain (BH), Israel (IL), Oman (OM), Qatar (QA) | | **Oceania** | Australia (AU) ★, French Polynesia (PF) ★, Marshall Islands (MH), New Caledonia (NC) ★, New Zealand (NZ) ★, Samoa (WS), Solomon Islands (SB), Vanuatu (VU), Wallis and Futuna (WF) ★ | | **Africa** | Mayotte (YT) ★, Réunion (RE) ★, Uganda (UG) | **37** of the 76 jurisdictions offer Enhanced Profiles (★). > **Note**: Country availability reflects current registry access and may change over time. The `iso2_country_code` must be one of the supported jurisdictions above, submitting an unsupported code returns a validation error. Contact your account manager for the latest list. #### API Endpoints ```javascript Text theme={null} POST /international/searches GET /international/searches/{id} GET /international/searches GET /international/registrations ``` For the complete API reference, see [Post International Search](/api-reference/international/post-international-search) and [Search International Registrations](/api-reference/international/search-international-registrations). #### Making a Request A request always requires `iso2_country_code`, plus either `name` + `address` or `filing_number` (on its own, or with `name` and/or `address`). ```javascript Text theme={null} POST /international/searches { "name": "Acme Ltd", "address": "1 Parliament St, London SW1A 2JR, United Kingdom", "iso2_country_code": "GB" } ``` **Optional fields** include: * `filing_number` — the company registration number (see *Two Ways to Search* above) * `officer_names` — known officers or directors * `website` — business website URL * `phone_number` — business phone number * `email` — business or contact email * `alternative_names` — trading names or DBAs * `reference_id` — your internal ID for tracking this request * `options` — separately-billed add-ons (see *Enhanced Profiles* below) #### Enhanced Profiles (optional) By default a search returns the **core registration profile**: name, file number, status, country and addresses. In supported jurisdictions (★ above), you can request an **Enhanced Profile** with the `Order.Enhanced` option, which adds **directors, ultimate beneficial owners (UBOs), shareholders, and share capital** where available. ```javascript Text theme={null} POST /international/searches { "filing_number": "01234567", "iso2_country_code": "GB", "options": ["Order.Enhanced"] } ``` Enhanced Profiles are **billed separately, per country**, and coverage varies by jurisdiction. Contact your account manager for complete details. #### International Registrations Search `GET /international/registrations` returns a **list of matching registrations** without running a full search. Its main use is to **disambiguate** before a precise search: look up candidates, let your user pick the right one, then search with that result's `filing_number`. ```javascript Text theme={null} GET /international/registrations?iso2_country_code=GB&name=Acme%20Ltd ``` Query parameters: `iso2_country_code`, `name`, and/or `filing_number`. This is an optional add-on, most useful where several businesses share a similar name. #### Understanding the Response When a search completes, the response includes a `business` object. The following fields are present across all countries: * `name`: the official registered name * `file_number`: the registration/filing number in the local registry * `status`: normalized to `active`, `inactive`, or `unknown` * `country`: the ISO2 country code of the registration The response also reports **how well your inputs matched** the company found, the same match signals as the US Business Search: * `business_name_match`: `EXACT`, `SIMILAR`, or `NO_MATCH` (identical to the US) * `business_address_match`: `EXACT`, `CITY`, `REGION`, `COUNTRY`, or `NO_MATCH` (international granularity) * `filing_number_match`: a boolean specific to international search: `true` if the `filing_number` located the company, `false` if the search fell back to the name, `null` if no filing number was provided > **Important**: Data depth varies significantly by country. Most countries return the core fields above; some return more. #### Watchlist Screening Every international search is screened against Baselayer's watchlists: **OFAC**, the **Consolidated Screening List (CSL)**, **FBI**, **Canadian sanctions**, and **OIG**. Screening covers the company's registered name, any `alternative_names` you supply, and the company's current officers and beneficial owners. **PEP** screening also runs when the search includes the `Order.Pep` option. Which lists run, and how closely a name must match before it's reported as a hit, follow your organization's [Account Settings](/docs/account-settings), the same settings that apply to US Business Search. Results appear in `watchlist_hits` on `GET /international/searches/{id}`, in the same shape as US watchlist results (`code`, `name`, `count`, `details`): * A list with a `count` of `0` was screened with **no match**. * A list that is **absent** was not screened (for example, it's turned off in your settings, or PEP wasn't ordered). Don't read an absent list as a clean result. A confirmed **OFAC** hit sets the search's Risk score to `0` and its Risk grade to `F`, the same as US Business Search. #### Scores and Ratings International Business Search returns **KYB and Risk ratings on the same scale** as the US product, so you can apply the same thresholds and decisioning logic you already use for US searches. See [Scores & Ratings](/docs/baselayer-scores-ratings). **Key factors influencing the international KYB score** | Factor | Description | | :- | :- | | Filing Number Match | Whether the registration number you sent located the company at the registry | | Business Name Match | Accuracy between the submitted name and the official registry record | | Address Match | How closely the submitted address matches the registry record | | Registry Status | Whether the company is active in the local registry | Only the inputs you send are scored: a filing-number-only search is not penalized for a missing name or address. Registry status always carries significant weight. **KYB rating scale** | Rating | Score Range | Interpretation | | :- | :- | :- | | A | 90-100 | Highly reliable verification with the submitted identifiers matching the registry | | B | 80-89 | Generally reliable verification with minor discrepancies | | C | 60-79 | Verification with notable discrepancies | | F | 0-59 | Significant verification concerns, such as an inactive registration or critical mismatches | Only **A** and **B** ratings count as `verified`. #### Webhooks International Business Search emits three webhook events: * `InternationalBusinessSearch.submitted`: accepted and processing * `InternationalBusinessSearch.completed`: results available * `InternationalBusinessSearch.failed`: no associated business found These follow the same structure as US Business Search webhooks. See the [Webhooks at Baselayer](/docs/webhooks-at-baselayer). #### Key Differences from US Business Search * **Separate API route**: international searches use `/international/searches`, not `/searches`. The two are not interchangeable. * **No TIN verification**: IRS TIN matching is a US-only capability. * **Online-presence add-ons**: for website analysis, industry prediction, and other online-presence signals internationally, use the **Web Presence** endpoint (below). * **Country-specific pricing**: negotiated separately from your US contract. * **API-only access**: not available through the Console (yet). *** ### Web Presence (International) #### How It Works Baselayer's Web Presence endpoint works internationally using the **same API route and response format** as US requests. When you include a non-US `iso2_country_code`, Baselayer automatically routes the request through its international processing pipeline; the response structure is identical. Web Presence is available via both the API and the Baselayer Console. #### Supported Countries Web Presence offers **global coverage**: any country with a valid ISO 3166-1 alpha-2 code is supported. This is much broader than International Business Search because Web Presence relies on Baselayer's AI-powered web intelligence rather than corporate registry access. #### API Endpoint ```javascript Text theme={null} POST /web_presence_requests GET /web_presence_requests/{id} GET /web_presence_requests ``` This is the same endpoint used for US Web Presence. See [Post Web Presence Request](/api-reference/web-presence/post-web-presence-request). #### Making a Request Include the `iso2_country_code` field; the minimum required fields are `name` and `address`. ```javascript Text theme={null} POST /web_presence_requests { "name": "Siemens AG", "address": "Werner-von-Siemens-Straße 1, 80333 München, Germany", "iso2_country_code": "DE" } ``` Optional fields that improve results include `website`, `officer_names`, `phone_number`, `email`, `alternative_names`, `reference_id`, and `options`. See [Online Presence: Basics](/docs/online-presence-basics). #### Understanding the Response The response mirrors the US response. The `request_type` field is set to `INTERNATIONAL` (instead of `UNITED_STATES`), and you receive the same key data points. See the [Online Presence: Best Practices](/docs/web-presence-orderables). #### Webhooks Web Presence uses the same webhook events for both US and international requests: * `WebPresenceRequest.submitted`: accepted and processing * `WebPresenceRequest.completed`: results available * `WebPresenceRequest.failed`: could not be completed *** ### Quick Reference #### International Business Search | Field | Details | | - | - | | **Endpoint** | `POST /international/searches` | | **Required fields** | `iso2_country_code` + (`name` + `address`) **or** `filing_number` | | **Watchlists** | OFAC, CSL, FBI, Canadian sanctions, OIG; PEP with `Order.Pep` | | **Enhanced add-on** | `options: ["Order.Enhanced"]` (★ jurisdictions, billed per country) | | **Lookup helper** | `GET /international/registrations` | | **Access** | API only | | **Coverage** | 76 jurisdictions (37 with Enhanced) | | **Webhooks** | `InternationalBusinessSearch.submitted` / `.completed` / `.failed` | #### Web Presence (International) | Field | Details | | - | - | | **Endpoint** | `POST /web_presence_requests` | | **Required fields** | `name`, `address`, `iso2_country_code` | | **Access** | API and Console | | **Coverage** | Global | | **Webhooks** | `WebPresenceRequest.submitted` / `.completed` / `.failed` | *** ### Where to Go Next * **[International Products: API Quickstart](/docs/international-products-api-quickstart)**: Step-by-step, from request to response. * **[International Products: Best Practices](/docs/international-products-best-practices)**: Search inputs, Enhanced Profiles, match indicators, and what varies by country. * **[Scores & Ratings](/docs/baselayer-scores-ratings)**: How KYB and Risk ratings are calculated. * **[Account Settings](/docs/account-settings)**: Choose which watchlists you screen against and how strict matching is. * **[Webhooks](/docs/webhooks-at-baselayer)**: Configuring event delivery. # Business Search: Scores & Ratings Source: https://docs.baselayer.com/docs/baselayer-scores-ratings This guide explains how to interpret and utilize our scores and ratings to make confident risk decisions for your business. Business Search returns two automated scores (KYB and Risk) with every completed search. These ratings help you make faster approval decisions without building complex rules. This guide explains what each rating means, how they're calculated, and how to use them in your verification workflow. For an overview of Business Search, see [Business Search: Basics](/docs/business-search-basics). For complete verification workflows, see [Business Search: Best Practices](/docs/business-search-1). **International searches** use the same rating scale with their own scoring factors — see [International Business Search: Scores & Ratings](/docs/baselayer-international-products#scores--ratings). *** ## Scores vs. Ratings: A Quick Reference Baselayer provides two types of evaluations to support different decision-making styles: * **Scores**: Numerical values (0-100) for granular analysis and custom thresholds * **Ratings**: Letter grades (A, B, C, F) for quick, consistent decision gates Most customers use ratings for automated decisioning (simple and fast) while exposing scores to analysts for manual review cases (detailed and tunable). Note that the KYB score and the Risk score use **different grade bands** — each section below includes the scale for its score. *** ## KYB Rating & Score The KYB rating evaluates the quality of the business verification search and initial company assessment. ### Key Factors Influencing KYB Scores | Factor | Description | | :- | :- | | Business Name Match | Accuracy between submitted name and official records | | Address Match | Distance and relationship between submitted address and official records | | Tax ID Verification | Whether the submitted TIN matches official business records | | Secretary of State Registration | Existence of SoS registration in the state of the submitted address | | Registration Status | Whether the domestic SoS registration is active | > **Note — Texas businesses**: For Texas businesses, the KYB score also considers the business's franchise-tax standing with the Texas Comptroller of Public Accounts, separately from its Secretary of State registration status, and the two count equally. The Comptroller often flags a business that has lost its right to transact business months before the Secretary of State does, so a business that is active with the Secretary of State but has forfeited its franchise-tax standing scores lower. When the Comptroller standing is unknown (for example, for tax-exempt entities), only the Secretary of State status is used. The standing is returned in each registration's `metadata`. *** ### KYB Rating Scale | Rating | Score Range | Interpretation | | :- | :- | :- | | A | 90-100 | Highly reliable business verification with all key identifiers matching official records | | B | 80-89 | Generally reliable verification with minor discrepancies in name or address matching | | C | 60-79 | Verification with notable discrepancies; certain data points like TIN or address could not be adequately matched | | F | 0-59 | Significant verification concerns, potentially including inactive registration status or critical mismatches | *** ## Risk Rating & Score The Risk rating identifies potential financial risk factors common in lending and payment processing evaluations. It incorporates broader signals around financial, operational, and behavioral risk, combining Baselayer identity data with liens, litigations, application velocity, industry patterns, and business age. ### Key Factors Influencing Risk Scores | Factor | Description | | :- | :- | | Time in Business | Age of business operations | | Litigations & Bankruptcies | Impact of existing lawsuits and bankruptcies | | Liens (UCC & Tax) | Severity of tax and non-tax liens | | Industry Category | Relationship to high-risk Merchant Category Codes (MCCs) | | Website Analysis | Website legitimacy and consistency with submitted information | | Inquiry Tracking | Frequency and volume of financial applications within the Baselayer network | | KYB Score | High-quality identity verification reduces risk | | Watchlist Hits | Potential involvement of sanctioned or prohibited individuals or entities | > **Note**: Risk scores incorporate data from optional products like liens, litigations, and website analysis. These products enrich risk assessment but aren't required for baseline scoring. ### Risk Rating Scale | Rating | Score Range | Interpretation | | :- | :- | :- | | A | 80-100 | Low-risk profile with established business history and no significant risk indicators | | B | 60-79 | Generally low-risk with minor concerns in one or more categories | | C | 30-59 | Moderate risk profile with multiple minor concerns or a single material concern | | F | 0-29 | High-risk profile with multiple significant risk indicators | > **Note**: A confirmed hit on the OFAC or BFC watchlists always forces the Risk score to 0 and the Risk rating to F, regardless of the score the model would otherwise compute. *** ### High-Severity Risk Flags These scenarios carry disproportionately high predictive value within Baselayer’s identity and inquiry network.\ The presence of any one of the following automatically lead the Risk Rating to C or F, depending on severity: * **Bankruptcy proceedings**, eviction actions, or class-action lawsuits filed within the last five years * **High application velocity**: more than four distinct-institution inquiries within seven days across the Baselayer Network * **Watchlist hits** on OFAC, CSL, CNS, or FBI lists. OFAC and BFC hits are treated as absolute: they force the Risk score to 0 and the Risk rating to F, overriding the computed score entirely. Which lists are screened follows your [Account Settings](/docs/account-settings) * **Recent tax liens**, particularly those filed within the last five years In these scenarios, Baselayer applies constraints to ensure consistent and conservative risk assessment. *** ### Additional Risk Contributors The scenarios below are considered **lower-severity flags**. Individually, they may not significantly impact the rating, but multiple occurrences in combination can still lead to a C or F: * **Time in business \< 6 months**, especially when paired with high inquiry velocity * **Multiple medium-risk litigations** within the last five years * **A high volume of non-tax liens**, inconsistent with the business’s operational age or size * **Inconsistent application patterns** observed across the Baselayer Identity Network (e.g., varying TINs, names, or addresses) * **Low-quality KYB results** - specially C or F KYB ratings * **Website and online-presence red flags**, such as inactive or parked domains, or lack of operational signals These indicators are incorporated into the weighted model and may interact with other components to downgrade the final rating. *** ## Webhooks and Rating Updates Because **liens and litigations are requested after a search is first completed**, Baselayer recalculates risk whenever new court or SoS data changes a business’s profile. When this affects the KYB or Risk score, Baselayer emits the webhook: > *BusinessSearch.Updated* This ensures downstream systems stay aligned with newly discovered information (e.g., bankruptcy filed today, litigation discovered tomorrow, SoS status updated next week). *** ## Making Decisions with Scores & Ratings ### Recommended Approaches 1. **Automated Decision Frameworks** 1. A Ratings: Consider for straight-through processing 2. B Ratings: Treat as verified, but establish certain risk limits 3. C Ratings: Set thresholds based on your risk tolerance for specific data points, or manually review 4. F Ratings: Consider for automatic enhanced review or rejection 2. **Manual Review Prioritization** 1. Focus reviewer attention on specific factors driving lower scores 2. Use the granular components of the scores to guide additional verification steps 3. **Risk Policy Integration** 1. Incorporate both KYB and Risk ratings into your decision matrix 2. Consider different weight allocations based on your business priorities *** ## Real-World Example A financial services company might structure their initial onboarding rules as: | KYB Rating | Risk Rating | Outcome | | :- | :- | :- | | A/B | A/B | Auto-approve | | A/B | C | Manual review | | C/F | A/B/C | Manual review | | Any | F | Decline | *** ## Continuous Improvement Baselayer continuously refines scoring models based on: * Emerging fraud and default patterns across the network * Regulatory changes and compliance requirements * Customer feedback and observed outcomes If you've identified risk factors strongly correlated with fraud or default in your portfolio, share this with your Baselayer account manager to help improve risk assessment accuracy. *** ## Next Steps **Implement ratings in your workflow:** * [Business Search: Best Practices](/docs/business-search-1) - Decision logic using ratings and rules * [Business Search: API Quickstart](/docs/business-search) - Where to find scores in the API response **Understand contributing factors:** * [Web Presence & Orderables](/docs/web-presence-orderables) - Website analysis and industry prediction * [Lien Search](/docs/lien-search-basics) - How liens affect Risk ratings * [Docket Search](/docs/litigation-bankruptcy-search-basics) - How litigation and bankruptcy affect Risk ratings **Handle edge cases:** * [Handling IRS Outages](/docs/webhook-guide-businesssearchupdated) - TIN verification impacts on KYB ratings * [Sole Proprietor Verification](/docs/sole-prop-verification) - Low KYB ratings for unregistered businesses *** ## Need Additional Support? Contact your Baselayer account manager for assistance with: * Customizing rating thresholds for your use case * Understanding specific rating outcomes * Sharing risk patterns to improve scoring models * Questions about implementation # Business Search: Batch Searches Source: https://docs.baselayer.com/docs/batch-search-how-to-run-bulk-searches-in-baselayer Run hundreds or thousands of Business Searches from one CSV file in the Console. Batch Search allows you to process hundreds or thousands of Business Searches at once via CSV upload. It's the fastest way to onboard large customer lists, refresh existing portfolios, or prepare businesses for Portfolio Monitoring at scale. This guide covers how to run batch searches through the Console and check their status by API. For understanding individual Business Search results, see [Business Search: Basics](/docs/business-search-basics). For adding businesses to monitoring after verification, see [Portfolio Monitoring](/docs/portfolio-monitoring). *** ## Prerequisites Before running a batch search, ensure you have: * **CSV file formatted to Baselayer's schema** - Download the example CSV template from the [Baselayer Console](https://console.baselayer.com) under Batch Search or [here](https://storage.googleapis.com/osiris-public-assets-prod/schemas/baselayer_batch_search_csv_schema.csv) * **API key** (to check batch status by API) - See [Authentication](/docs/authentication) * **Portfolio created** (optional, if adding to portfolio) - See [Portfolio Monitoring: Basics](/docs/portfolio-monitoring) *** ## 1. What Batch Search Does When you run a Batch Search, Baselayer: * Processes each business in your CSV file as an individual search * Applies any selected add-ons (Enhanced Search, Industry, Website Analysis, PEP) * Optionally **adds all results to Portfolio Monitoring** * Returns results asynchronously as searches complete * Stores the full batch record for later review Batch Search is ideal for: * Migrating an existing book of business * Periodic refreshes of a vendor or customer list * Running KYB on large lead pipelines * Preparing large sets of customers for Portfolio Monitoring *** ## 2. Running a Batch Search in the Console Navigate to:\ **Console → Batch Search → Upload CSV** ![](https://mintcdn.com/baselayer-81245324/y8jjNyo-CIhfj2Df/images/image.png?fit=max\&auto=format\&n=y8jjNyo-CIhfj2Df\&q=85\&s=135f71ca3e26d5bd73d738bcd402bd91) You will be asked to: * Upload a CSV file (up to 40,000 rows) * Provide a batch name * (Optional) **Add all businesses to your Portfolio** * (Optional) **Monitor all businesses** * (Optional) Add results to a specific Portfolio Group * (Optional) Enable Enhanced Search, Industry, Website Analysis, or PEP checks Your selections apply to **every row in the CSV**. **Important:** Batch searches are asynchronous.\ Baselayer provisions additional backend resources to handle large jobs.\ This means: * Most batches begin running within **\~3 minutes** * Larger batches may take **up to 10 minutes** to start *** ## 3. Checking Batch Status via API Query batch progress: ```bash theme={null} GET /searches/batch/{batch_id} ``` *** ## 4. CSV Format Requirements Your CSV must follow the official Baselayer schema exactly.\ The example CSV provided in the Console shows all allowed columns and formatting rules. **Required columns:** * `legal_entity_name` - Business legal name * `legal_entity_address` - Full business address **Optional columns:** * `tin` - Business EIN/TIN (enables IRS verification) * `website` - Business website URL * `officer_names` - Semicolon-separated list of officers * `phone_number` - Business phone number * `email` - Business email * `reference_id` - Your internal ID for this business **Critical formatting rules:** * Do not change column headers * Do not add or remove columns * Do not reorder columns * Follow exact address formatting from the template * Use UTF-8 encoding * Maximum rows: 40,000 If any row's input is malformed, the whole upload is rejected with an error that lists the rows to fix. Fix those rows and upload the file again. *** ## 5. Understanding Batch Execution Timing Batch processing is a timed, asynchronous workflow. Baselayer automatically provisions compute resources for the batch. As a result: * Most batches start processing within 3 minutes * Very large uploads may take up to 10 minutes before processing begins * Execution time varies by number of rows and selected add-ons You may safely close the Console or disconnect from the API - the batch will continue running. *** ## 6. Reviewing Batch Results ### Console Review Navigate to **Search History → Batches** in the Console to view: * Search status (completed, failed, pending) * Any add-ons applied (Industry, Website Analysis, PEP) * Basic results (number of searches and number of failed searches) You'll also find a download icon for completed batches. Clicking download generates a ZIP archive containing structured export files. The ZIP always includes: * `business_search.csv` – Core Business Search results * `business_search.jsonl` – Same data in JSON Lines format * `README.txt` – Documentation explaining each file and column structure * `report.pdf` – Summary report of the batch If add-ons were selected, additional files are included: * `website_analysis.csv` / `.jsonl` – If Website Analysis was ordered * `industry_prediction.csv` / `.jsonl` – If Industry Prediction was ordered * `reviews_and_socials.csv` – If Reviews & Socials was ordered Each file uses `search_id` as a shared key so you can join data across products. > **Note:** Enhanced Search runs together with Website Analysis and Industry Prediction, so their files are included too. Only files for products that were requested will appear in the export. *** ## 7. Best Practices ### Before Running Your Batch ✅ **Test with a small sample first** - Upload 5-10 rows to verify formatting before submitting your full file ✅ **Clean your data** - Remove duplicates, standardize address formats, validate TINs before upload ✅ **Use the exact template** - Download fresh from Console for each batch to ensure you have the latest schema ### During Batch Execution ✅ **Don't modify the batch** - Once submitted, you cannot edit or cancel. Let it complete. ✅ **Use Groups for segmentation** - Upload different customer segments to different Portfolio Groups for cleaner monitoring ✅ **Consider costs** - Each row in your batch is billed as an individual Business Search, plus any add-ons selected ### After Batch Completion ✅ **Review failed items** - Identify patterns in failures (common: address or TIN formatting issues) ✅ **Store `business_id`** - Map batch results to your internal systems for future reference ✅ **Use batch monitoring to initialize portfolio** - Enable monitoring during batch upload rather than adding businesses individually later ### Automation ✅ **Integrate with your CRM** - Export customer lists directly to Baselayer's batch format *** ## 8. Next Steps **Understand batch results:** * [Business Search: Basics](/docs/business-search-basics) - Interpret search results for each business * [Scores & Ratings](/docs/baselayer-scores-ratings) - Use KYB and Risk ratings for batch decisioning * [Business Search: Best Practices](/docs/business-search-1) - Build verification logic for batch results **Enable monitoring for batches:** * [Portfolio Monitoring: Basics](/docs/portfolio-monitoring) - Understand continuous monitoring * [Portfolio Monitoring: Best Practices](/docs/portfolio-monitoring-best-practices) - Configure monitoring for batch-uploaded businesses **Process batch results:** * [API Reference](/api-reference) - Check batch status programmatically * [Guide: Exporting PDF Reports](/docs/exporting-pdf-reports-in-baselayer) - Generate reports for batch results *** ## 9. Summary Batch Search enables large-scale Business Search execution through a single CSV upload. Use it to process thousands of businesses efficiently, add them to Portfolio Monitoring, and maintain consistent verification across your customer base. **Key capabilities:** * Console submission * Automatic portfolio addition * Monitoring enablement at scale * Add-on enrichments (Enhanced, Industry, Website, PEP) * Asynchronous processing with status tracking For questions about batch limits, pricing, or optimization, contact your Baselayer account manager. # Business Pre.Fill: API Quickstart Source: https://docs.baselayer.com/docs/business-prefill-api-quickstart Call Pre.Fill, show the results to applicants, and pass their choice into Business Search. This guide walks through implementing Pre.Fill in your application, from making your first API request to presenting results to applicants and feeding data into Business Search. For background on Pre.Fill concepts and use cases, see [Business Pre.Fill: Basics](/docs/business-prefill-basics). *** ### Overview This quickstart covers: 1. Making a Pre.Fill request 2. Understanding the response structure 3. Selecting which registrations to display 4. Presenting options to applicants 5. Using Pre.Fill results with Business Search *** ### Base URL & Authentication #### Base URL Use the appropriate base URL in your integration: * `https://api.baselayer.com` In examples below, we use `{{baseUrl}}` as a placeholder. #### Authentication All requests are authenticated using an API key via the `X-API-Key` header: ```http theme={null} X-API-Key: your_api_key_here ``` *** ### Step 1: Make a Pre.Fill Request Pre.Fill uses a simple `GET` request to `/prefill/businesses` with the officer name as a required query parameter. #### Basic Request ```python theme={null} import httpx import json async def get_business_prefill( officer_name: str, business_name: str = None, api_key: str = None ) -> list: """ Get business registrations for an officer Parameters: officer_name (str): The officer's full name business_name (str): Optional business name to match against api_key (str): Your Baselayer API key Returns: list: Pre.Fill response with business registrations """ url = "https://api.baselayer.com/prefill/businesses" # Build query parameters params = { "officer_name": officer_name } if business_name: params["business_name"] = business_name headers = { "X-API-Key": api_key } try: async with httpx.AsyncClient() as client: response = await client.get( url, params=params, headers=headers ) response.raise_for_status() return response.json() except Exception as e: print(f"Error fetching pre-fill data: {str(e)}") raise ``` *** ### Step 2: Understanding the Response Pre.Fill returns an array of matching business registrations. #### Response Structure ```json theme={null} [ { "name": "Alma Oasis Med Spa & IV Hydration, PC", "issue_date": "2024-03-14", "state": "CA", "file_number": "6129643", "primary_address": { "id": "ddfed766-8315-4187-9632-7d3054f21cd9", "street": "1183 E Foothill Blvd Ste 135", "city": "Upland", "state": "CA", "zip": "91786", "latitude": 34.10714, "longitude": -117.63544, "rdi": "Commercial", "deliverable": true, "cmra": false, "url": "https://api.baselayer.com/addresses/ddfed766-...", "delivery_type": "HIGH_RISE" }, "officers": [ "Lynn Vu", "Lynn T Vu", "Maher Danhash" ], "alternative_names": [], "similarity_score": 1.0, "business_name_match": "SIMILAR" }, // ... additional results ] ``` #### Key Response Fields ##### Per Registration * **`name`**: Legal business name from SOS registration * **`state`**: State of registration (e.g., "CA", "TX") * **`issue_date`**: When the business was registered * **`file_number`**: State filing number * **`primary_address`**: Full address object with USPS validation indicators (`rdi`, `cmra`, `deliverable`, `delivery_type` — these may be `null` for some addresses) * **`officers`**: Array of all officers listed on the registration * **`similarity_score`**: Match quality between search name and officer (0-1) * **`business_name_match`**: How well business name matches (EXACT, SIMILAR, NO_MATCH) * **`alternative_names`**: DBAs or previous names *** ### Step 3: Filtering and Prioritizing Results Not all results should be presented to applicants. Use the match indicators to filter and prioritize. #### Decision Framework **Show a registration if:** 1. `similarity_score >= 0.9` (very close or exact name match) 2. `business_name_match` is "EXACT" or "SIMILAR" (if business name provided) 3. `primary_address` exists and is in the expected state/region **Prioritize registrations with:** 1. `business_name_match = "EXACT"` first 2. `business_name_match = "SIMILAR"` second 3. Highest `similarity_score` values **Typical display**: 1-3 most relevant registrations *** ### Step 4: Presenting Results to Applicants Present filtered results as selectable options, always including a manual entry fallback. #### UI Best Practices **For each registration, display:** * Business legal name (prominent) * Business address (city, state) * Formation state * Officer list * "Select" action button #### Manual Entry Fallback **Always provide a manual entry option** for cases where: * Pre.Fill returns no results (sole props) * None of the results are the correct business * The applicant's business isn't recorded with officer names (NJ, WY) *** ### Step 5: Using Results with Business Search Once an applicant selects a business from Pre.Fill results, use that information as input for a full Business Search to complete your KYB verification. #### The Complete Workflow ##### 1. Call Pre.Fill with the verified officer name * Use the name from your ID verification process * Optionally include business name if you collected it ##### 2. Filter and display results to the applicant * Show 1-3 top matches based on similarity scores * Always include an "Enter manually" option ##### 3. Applicant selects their business * They choose from the presented options, or * They opt to enter details manually ##### 4. Extract data from the selected registration * Business legal name: Use the `name` field * Business address: Join the `primary_address` fields into one address string * Street: `primary_address.street` * City: `primary_address.city` * State: `primary_address.state` * ZIP: `primary_address.zip` ##### 5. Request the EIN from the applicant * Show the pre-filled name and address * Ask applicant to enter their Tax ID (EIN) * This confirms they're actually an officer of the business ##### 6. Run Business Search with the combined data * **Endpoint:** `POST /searches` * **From Pre.Fill:** business name and address * **From applicant:** EIN/Tax ID * **Result:** Full KYB verification with registration standings, officers, sanctions, etc. #### Business Search Request Format When calling Business Search with Pre.Fill data, structure your request like this: ```json theme={null} { "name": "Alma Oasis Med Spa & IV Hydration, PC", "address": "1183 E Foothill Blvd Ste 135, Upland, CA 91786", "tin": "123456789" } ``` #### Key points: * The `name` and `address` come directly from Pre.Fill * The `tin` (EIN) comes from the applicant * Business Search will verify all this information and return comprehensive KYB data #### Why This Flow Works This workflow gives you the best of both worlds: ✅ **Faster UX:** Applicants don't manually type business details ✅ **Accurate data:** Name and address come from official SOS records ✅ **Fraud prevention:** EIN requirement confirms legitimate ownership ✅ **Complete KYB:** Full verification through Business Search The Pre.Fill data sets up Business Search for success by ensuring the name and address are accurate, while the EIN requirement maintains security. *** ### What's Next After implementing Pre.Fill, see [Business Pre.Fill: Best Practices](/docs/business-prefill-best-practices) for guidance on: * Running KYC/ID verification before Pre.Fill * Optimizing match thresholds for your use case * Handling edge cases (sole props, NJ, large orgs) * Requesting EIN after selection * Fraud prevention strategies *** ### Summary Pre.Fill implementation follows a simple pattern: 1. **Fetch**: GET request with officer name 2. **Filter**: Apply similarity thresholds (≥0.9 recommended) 3. **Display**: Show 1-3 top matches with manual fallback 4. **Verify**: Use selected data for Business Search This creates a seamless auto-fill experience that reduces onboarding time while maintaining data accuracy and enabling full KYB verification. # Business Pre.Fill: Basics Source: https://docs.baselayer.com/docs/business-prefill-basics Show applicants the businesses registered under their name, so they pick one instead of typing it in. Pre.Fill helps financial institutions create exceptional applicant experiences by auto-populating business information based solely on an officer's name - reducing required fields for applicants and improving onboarding accuracy. This guide covers the fundamentals of Pre.Fill, including what it does, when to use it, and how it fits into your verification workflow. *** ### What is Pre.Fill? Pre.Fill is a lightweight API endpoint that searches for business registrations based on an officer's name. Given an individual's name, Pre.Fill returns a list of businesses where that person is listed as an officer in Secretary of State records, along with key information like: * Business legal name * Registration state * Business address * All officers on the registration * Similarity score indicating name match confidence * Business name match indicator (if you provide a business name) This allows you to present applicants with pre-filled business options rather than requiring manual data entry. *** ### Why Use Pre.Fill? Pre.Fill addresses a common friction point in business onboarding: data entry. Traditional flows require applicants to manually type business names, addresses, EINs, and other details - creating opportunities for errors and increasing abandonment rates. **Key benefits:** * **Faster onboarding**: Reduce application fields by +70% * **Fewer errors**: Eliminate typos in business names and addresses * **Better UX**: Let applicants select rather than type * **Higher conversion**: Reduce drop-off from manual data entry fatigue * **Verified data**: Information comes directly from official SOS registrations Pre.Fill is particularly valuable for: * SMB lending applications * Business banking account opening * Merchant onboarding for payments * Small business credit cards * Any high-volume business verification flow *** ### How Pre.Fill Works Pre.Fill uses a simple `GET /prefill/businesses` request that takes only an officer's name as a required parameter. The endpoint searches Secretary of State registrations across all 50 states and returns matching businesses where that individual is listed as an officer. #### Request Parameters **Required:** * `officer_name`: The individual's name (e.g., "John Smith") **Optional:** * `business_name`: The business name if known (enables business name matching) * `similarity_threshold`: Minimum similarity score to return (0.5 to 1.0, default 0.9) * `limit`: Maximum number of results to return (default: 50) #### Response Structure Pre.Fill returns an array of business registrations, each containing: * **Business identification**: Legal name, state, file number * **Location**: Full business address with USPS validation indicators * **Officers**: Complete list of registered officers * **Match indicators**: * `similarity_score`: How closely the officer name matches (0-1 scale, where 1.0 is exact) * `business_name_match`: If business name provided, indicates match quality (EXACT, SIMILAR, NO_MATCH) * **Alternative names**: DBAs or name changes *** ### Integration with Business Search **Pre.Fill is designed to be used BEFORE running a full Business Search.** The typical workflow is: 1. **Collect**: Get the officer's name from your applicant 2. **Pre.Fill**: Use Pre.Fill to retrieve potential business matches 3. **Select**: Present 1-3 top matches to the applicant 4. **Verify**: Use the selected business information (name, address) as input for Business Search This ensures you're running full KYB verification on the correct entity with accurate data. *** ### Understanding Match Indicators Pre.Fill provides two key indicators to help you determine which registrations to show applicants: #### Similarity Score The `similarity_score` (0-1 scale) indicates how closely the officer name in the registration matches the search query: * **1.0**: Exact match (e.g., "John Smith" → "John Smith") * **0.93**: Very close match (e.g., "John Smith" → "John M Smith") * **0.72**: Partial match (e.g., "John Smith" → "John Smith Jr.") **Best practice**: Show registrations with similarity scores ≥ 0.9 to applicants. #### Business Name Match If you provide a `business_name` parameter, Pre.Fill will indicate how well it matches each registration: * **SIMILAR**: Close match (recommended to show) * **EXACT**: Perfect match (highest confidence) * **NO_MATCH**: Different business name Use this to prioritize which registrations to display when you have a business name from the applicant. *** ### Data Source and Fraud Considerations **Important**: Pre.Fill uses only public information from Secretary of State business registrations. This data is already freely available to anyone, including fraudsters. **Pre.Fill does not increase fraud risk** because: * All data returned is public record * The public already have access to this information * You're simply making legitimate data easier to access for your applicants The key to fraud prevention is verifying the applicant's identity BEFORE using Pre.Fill (see [Best Practices](/docs/business-prefill-best-practices) guide). *** ### When Pre.Fill Works Best Pre.Fill is most effective when: * **SMBs and partnerships**: Smaller businesses with identifiable officers * **Standard entity types**: LLCs, corporations, partnerships Pre.Fill provides the most value for: * Small business lending * Merchant onboarding * Business checking accounts * Small business credit cards *** ### Limitations and Edge Cases While Pre.Fill works for most business verification scenarios, there are some limitations: #### When Pre.Fill May Fail 1. **Sole proprietorships**: Most states don't hold records of sole prop registrations 2. **Missing officer data**: Some states (like New Jersey) don't consistently record officer information 3. **Large organizations**: Low-level employees might not appear as officers 4. **Very common names**: "John Smith" may return 50+ unrelated businesses **Recommendation**: Always provide a manual entry option for applicants when Pre.Fill doesn't return relevant matches. *** ### What's Next After understanding Pre.Fill basics, continue with: ### [Business Pre.Fill: API Quickstart](/docs/business-prefill-api-quickstart) Learn how to: * Make your first Pre.Fill request * Handle responses and present options to applicants * Integrate Pre.Fill with Business Search * Build a complete auto-fill workflow ### [Business Pre.Fill: Best Practices](/docs/business-prefill-best-practices) Learn how to: * Implement Pre.Fill safely with proper KYC first * Choose which registrations to display * Handle edge cases and failures gracefully * Optimize the applicant experience * Request EIN for complete verification *** ### Summary Pre.Fill transforms business onboarding from a manual data entry exercise into a simple selection process: * **Simple API**: Single GET request with officer name * **Fast results**: Up to 50 business registrations in milliseconds * **Public data**: Uses official Secretary of State records * **Pre-verification**: Sets up accurate Business Search input * **Better UX**: Reduces friction and improves conversion Pre.Fill is the first step in creating a seamless, low-friction business verification experience that accelerates onboarding while maintaining data accuracy. # Business Pre.Fill: Best Practices Source: https://docs.baselayer.com/docs/business-prefill-best-practices Use Pre.Fill safely: verify identity first, judge match quality, and handle edge cases like sole proprietors. This guide provides best practices for implementing Pre.Fill safely and effectively, covering identity verification requirements, match evaluation strategies, edge case handling, and user experience optimization. For API implementation details, see [Business Pre.Fill: API Quickstart](/docs/business-prefill-api-quickstart). *** ### Critical: Run KYC/ID Verification First **The most important Pre.Fill best practice is to verify the applicant's identity BEFORE running Pre.Fill.** This prevents fraudsters from using Pre.Fill to discover and impersonate legitimate businesses. #### Why Identity Verification Must Come First Pre.Fill returns business registrations based on an officer's name. Without verifying the applicant is actually that person, you create a fraud vector: **Correct Flow**: ID Verification → Pre.Fill → Select Business → Business Verification * Only verified individuals can access Pre.Fill * Name from verified ID is used for Pre.Fill search * Prevents discovery-based fraud **Do not call Pre.Fill without completing identity verification first.** *** ### Evaluating Match Quality Pre.Fill returns multiple indicators to help you determine which registrations to display. Understanding how to use these indicators is critical for a good user experience. #### Similarity Score Thresholds The `similarity_score` ranges from 0 to 1, indicating how closely the officer name in the registration matches the search query. **Recommended thresholds:** * **1.0**: Exact match - always show * **0.90+**: Very close match - show by default * **Below 0.90**: Weak match - don't show unless no alternatives #### Business Name Match Priority When applicants provide a business name, use `business_name_match` to prioritize results: **Match types (in priority order):** 1. **EXACT**: Perfect business name match * Always show first * Highest confidence this is the correct business 2. **SIMILAR**: Close business name match * Show prominently * Likely the correct business with minor naming differences 3. **NO_MATCH**: Different business name * Show only if similarity_score is 1.0 * Useful in case of manual errors in applications #### Registration State Consideration Consider the registration state when evaluating matches: * **Same state as applicant**: Higher relevance * **Adjacent state**: May be relevant for cross-regional businesses * **Distant state**: Lower relevance except for national businesses Use this as a tiebreaker when multiple high-score matches exist. *** ### Requesting EIN After Selection After an applicant selects a business from Pre.Fill results, **always request the EIN (Tax ID)** before proceeding with verification. #### Why Request EIN 1. **Confirms business ownership**: Only actual officers/owners know the EIN 2. **Enables comprehensive KYB**: EIN is required for IRS TIN matching 3. **Standard KYB input**: Your Business Search should include EIN in most cases anyway *** ### Handling Edge Cases Pre.Fill works for most business types, but some scenarios require special handling. #### Sole Proprietorships **Challenge**: Most states don't record sole proprietorship registrations. **Pre.Fill behavior**: Will return no results or incorrect matches. **Best practice**: * Direct them to a specialized sole proprietorship flow * Always offer manual entry option * Read the [Sole Proprietorship Verification](/docs/sole-prop-verification) recommendations for further details #### New Jersey and Similar States **Challenge**: Some states (particularly NJ, WY) don't consistently record officer names in business registrations. **Pre.Fill behavior**: Returns fewer or no results even for valid businesses. **Best practice**: * Expect manual entry more commonly * Provide clear messaging for these states #### Large Organizations **Challenge**: Low-level employees won't appear as officers in registrations. **Pre.Fill behavior**: Returns no results or returns businesses unrelated to the applicant. **Best practice**: * Confirm applicant's role before running Pre.Fill * Message: "Are you an owner, officer, or authorized signatory?" #### Very Common Names **Challenge**: Names like "John Smith" may return 50+ unrelated businesses. **Pre.Fill behavior**: Returns maximum limit (50) with many low-relevance matches. **Best practice**: * Require business name input for common names * Use business name matching to narrow results #### No Results Returned **Challenge**: Pre.Fill returns empty results array. **Possible reasons**: * Sole proprietorship without records * Name doesn't match SOS records * Business in state with poor officer coverage **Best practice**: * Always provide clear manual entry option * Redirect applicants to manual entry option if no results * Don't treat no results as an error - it's an expected scenario *** ### User Experience Best Practices #### Optimal Number of Options **Show 1-3 options to applicants**, not all matches. **Why limit display?** * Reduces cognitive load * Faster decision making * Higher completion rates **Existing customer flows show**: 3 options is the sweet spot for choice satisfaction. #### Manual Entry Positioning **Always make manual entry easy to access.** **Good patterns:** * "None of these? Enter manually" button below results * Link at top: "I'd rather enter details myself" * Automatic redirect if zero results #### Pre-Filling Fields When applicant selects a business: * **Pre-fill**: Legal business name, address * **Still require**: EIN, contact info, other application details * **Allow editing**: Consider allowing address correction if needed *** ### Fraud Prevention Strategies #### Public Data Clarification **Important context**: Pre.Fill uses only public Secretary of State data that is already freely available to anyone, including fraudsters. **Key points to understand:** 1. **Pre.Fill doesn't expose new information**: All data returned is public record 2. **Fraud risk isn't increased**: Every person already have access to this data 3. **The value is convenience**: You're making legitimate applicants' lives easier **Common misconception**: "Pre.Fill makes fraud easier by showing business details" **Reality**: Fraudsters can already access SOS websites to get this information. Pre.Fill simply provides legitimate applicants with better UX. #### Where Fraud Prevention Matters **Pre.Fill itself isn't a fraud vector, but protect against fraud by:** 1. **Verifying identity first** (covered above - most important!) 2. **Requesting EIN** (fraudsters may know business names but not EINs) 3. **Running full Business Search** (don't skip Business Verification after Pre.Fill) 4. **Monitoring for velocity** (unusual numbers of Pre.Fill requests) *** ### Summary Pre.Fill best practices focus on security and user experience: **Security:** * [ ] Always verify identity before Pre.Fill * [ ] Request EIN after business selection * [ ] Run full Business Search verification * [ ] Monitor for unusual usage patterns **Match Evaluation:** * [ ] Use similarity threshold ≥ 0.90 * [ ] Prioritize business name matches * [ ] Consider registration state * [ ] Show 1-3 top options only **Edge Cases:** * [ ] Always provide manual entry option * [ ] Account for sole props and certain states * [ ] Confirm applicant is an officer * [ ] Handle common names appropriately **User Experience:** * [ ] Prominent manual entry fallback * [ ] Pre-fill selected fields * [ ] Request EIN after selection By following these practices, Pre.Fill becomes a powerful tool for reducing friction and improving conversion while maintaining strong fraud prevention and verification standards. # Business Search: API Quickstart Source: https://docs.baselayer.com/docs/business-search Make your first Business Search API call, get the results and read the response. ## Get Started with Business Search This guide walks you through making your first Business Search API call. You'll learn how to submit a search, retrieve results, and understand the response. Most developers complete their first successful integration in under 10 minutes. For an overview of what Business Search does and when to use it, see [Business Search: Basics](/docs/business-search-basics). For verification logic and decision workflows, see [Business Search: Best Practices](/docs/business-search-1). *** ## Prerequisites Before you begin, ensure you have: * **API Key**: Get your key from the [Baselayer Console](https://console.baselayer.com). See [Authentication](/docs/authentication) for setup instructions. * **Webhook Endpoint** (recommended): Most customers use webhooks to receive asynchronous results. See [Webhooks at Baselayer](/docs/webhooks-at-baselayer) for configuration. * **Test Environment**: Use [Sandbox](/docs/sandbox-vs-production-environments) for initial integration to avoid charges. *** ## Your First Business Search (Asynchronous) Whether Business Search runs synchronously or asynchronously by default depends on your API key (see [Synchronous & Asynchronous Request Execution](/docs/synchronous-asynchronous-request-execution)). Asynchronous execution allows your application to continue processing while Baselayer queries multiple data sources (50+ state registries, IRS systems, federal watchlists). ### Submit the Search Make a POST request to `/searches` with at minimum a business name and address: ```curl theme={null} curl --request POST \ --url https://api.baselayer.com/searches \ --header 'X-API-Key: ' \ --header 'Accept: application/json' \ --header 'Content-Type: application/json' \ --data '{ "name": "Howard Concrete Pumping Co Inc", "address": "2327 Hill Church Houston Rd, Canonsburg PA 15317", "officer_names": [ "Frank Howard Jr" ], "website": "https://www.howardconcretepumping.com/", "tin": "987654321" }' ``` **Required fields:** * `name` - Legal business name * `address` - Business address (at minimum: city and state) **Optional fields** (unlock additional verification checks): * `tin` - Enables IRS verification and returns `tin_matched` field * `website` - Enables website match checks via `business_website_match` * `officer_names` - Enables officer match signals via `business_officer_match` * `phone_number` - Stored for context and comparison * `email` - Stored for context and comparison * `reference_id` - Associate this request with your internal ID or case number * `options` - Request Website Analysis, Industry Prediction, or Enhanced Search (see Order Options below) ### Receive Immediate Response In asynchronous mode, the API returns immediately with a `PENDING` state and search ID. In synchronous mode, it returns the completed search instead (see [Synchronous Search](#synchronous-search)): ```json theme={null} { "id": "e3166643-8578-4fff-aafc-6b5602dfb404", "options": [], "orderables": [], "user": null, "state": "PENDING", "name": "Howard Concrete Pumping Co Inc", "address": "2327 Hill Church Houston Rd, Canonsburg PA 15317", "search_address": null, "officer_names": [ "Frank Howard Jr" ], "website": "https://www.howardconcretepumping.com/", "phone_number": null, "email": null, "tin": "987654321", "reference_id": null, "tin_matched": null, "tin_potential_match": null, "watchlist_hits": [], "business_name_match": null, "business_address_match": null, "business_officer_match": null, "registered_agent_match": null, "business_website_match": null, "search_address_validation_level": null, "created_at": "2025-10-13T23:28:03.844055Z", "updated_at": null, "verified": null, "scores": [], "error": null, "warnings": [], "business": null, "url": "https://api.baselayer.com/searches/e3166643-8578-4fff-aafc-6b5602dfb404", "status_url": "https://api.baselayer.com/searches/e3166643-8578-4fff-aafc-6b5602dfb404/status", "business_url": null, "console_url": "https://console.baselayer.com/search?q=e3166643-8578-4fff-aafc-6b5602dfb404" } ``` **Key fields in the PENDING response:** * `id` - Unique search identifier (use this to retrieve results or correlate webhook events) * `state` - Current state: `PENDING` (just submitted) → `EXECUTING` (processing) → `COMPLETED` or `FAILED`. A request that has not finished can also be `CANCELLED` * `url` - Endpoint to retrieve full search results * `status_url` - Endpoint to check search status without retrieving full response * `console_url` - Direct link to view results in Baselayer Console for analyst review ### Retrieve Results You have two options for retrieving completed results: #### Option 1: Webhook (Recommended) Listen for the `BusinessSearch.completed` webhook event. Baselayer will POST the complete search response to your configured webhook endpoint when processing finishes (typically 2-5 seconds). ```json theme={null} { "id": "e3166643-8578-4fff-aafc-6b5602dfb404", "options": [], "orderables": [], "user": null, "state": "COMPLETED", "name": "Howard Concrete Pumping Co Inc", "address": "2327 Hill Church Houston Rd, Canonsburg PA 15317", "search_address": { "id": "84d7e366-188f-4bda-8885-fa602a3b9275", "street": "2327 Hill Church Houston Rd", "city": "Canonsburg", "state": "PA", "zip": "15317", "latitude": 40.24713, "longitude": -80.20446, "rdi": "Commercial", "deliverable": false, "cmra": false, "url": "https://api.baselayer.com/addresses/84d7e366-188f-4bda-8885-fa602a3b9275", "delivery_type": "STREET" }, "officer_names": [ "Frank Howard Jr" ], "website": "https://www.howardconcretepumping.com/", "phone_number": null, "email": null, "tin": "987654321", "reference_id": null, "tin_matched": false, "tin_potential_match": null, "watchlist_hits": [ { "code": "IEO", "name": "IRS Exempt Organizations List", "count": 0, "details": [] }, { "code": "OFAC", "name": "Department of Treasury, Office of Foreign Assets Control", "count": 0, "details": [] } ], "business_name_match": "EXACT", "business_address_match": "EXACT", "business_officer_match": "EXACT", "registered_agent_match": "EXACT", "business_website_match": true, "search_address_validation_level": "FULL", "created_at": "2025-10-13T23:45:33.845574Z", "updated_at": "2025-10-13T23:45:56.566101Z", "verified": true, "scores": [ { "type": "kyb", "score": 83.0, "rating": "B" }, { "type": "risk", "score": 93.0, "rating": "A" } ], "error": null, "warnings": [], "business": { "id": "1e78e99d-d515-435a-a0b5-dc7899f55f9c", "name": "HOWARD CONCRETE PUMPING CO., INC.", "structure": "C_CORPORATION", "addresses": [ { "id": "897e1b63-4947-4162-b496-580d929705ff", "street": "600 E Boulevard Ave Dept 108", "city": "Bismarck", "state": "ND", "zip": "58505", "latitude": 46.81683, "longitude": -100.78138, "rdi": "Commercial", "deliverable": true, "cmra": false, "url": "https://api.baselayer.com/addresses/897e1b63-4947-4162-b496-580d929705ff", "delivery_type": "HIGH_RISE", "sources": [ "SOS" ] }, { "id": "21bd6891-3038-408c-b0a8-1334a1b170ff", "street": "7 Saint Paul St", "city": "Baltimore", "state": "MD", "zip": "21202", "latitude": 39.29004, "longitude": -76.61375, "rdi": "Commercial", "deliverable": true, "cmra": false, "url": "https://api.baselayer.com/addresses/21bd6891-3038-408c-b0a8-1334a1b170ff", "delivery_type": "HIGH_RISE", "sources": [ "SOS" ] }, { "id": "ffe72f52-ffd5-4834-aff4-eb087907c53a", "street": "100 Shockoe Slip", "city": "Richmond", "state": "VA", "zip": "23219", "latitude": 37.53537, "longitude": -77.43392, "rdi": "Commercial", "deliverable": true, "cmra": false, "url": "https://api.baselayer.com/addresses/ffe72f52-ffd5-4834-aff4-eb087907c53a", "delivery_type": "HIGH_RISE", "sources": [ "SOS" ] }, { "id": "12b46f09-7196-4f75-98b2-c24e1a3936c1", "street": "116 Cidar Ln", "city": "McMurray", "state": "PA", "zip": "15317", "latitude": 40.28488, "longitude": -80.0816, "rdi": "Residential", "deliverable": true, "cmra": false, "url": "https://api.baselayer.com/addresses/12b46f09-7196-4f75-98b2-c24e1a3936c1", "delivery_type": "STREET", "sources": [ "SOS" ] }, { "id": "c3db3a83-830e-4431-8949-441222cbb6cb", "street": "600 E Boulevard Ave Dept 108", "city": "Bismarck", "state": "ND", "zip": "58505", "latitude": 46.81683, "longitude": -100.78138, "rdi": "Commercial", "deliverable": true, "cmra": false, "url": "https://api.baselayer.com/addresses/c3db3a83-830e-4431-8949-441222cbb6cb", "delivery_type": "FIRM", "sources": [ "SOS" ] }, { "id": "461a65a4-1a72-4ce0-b6c0-517ee1fdd6f0", "street": "146 W Borland St", "city": "Pickerington", "state": "OH", "zip": "43147", "latitude": 39.88621, "longitude": -82.75755, "rdi": "Commercial", "deliverable": true, "cmra": false, "url": "https://api.baselayer.com/addresses/461a65a4-1a72-4ce0-b6c0-517ee1fdd6f0", "delivery_type": "STREET", "sources": [ "Online" ] }, { "id": "a26b5413-255f-4e12-a6e1-c5c0a5ff26be", "street": "18801 S Miles Rd", "city": "Cleveland", "state": "OH", "zip": "44128", "latitude": 41.4305, "longitude": -81.54868, "rdi": "Commercial", "deliverable": true, "cmra": false, "url": "https://api.baselayer.com/addresses/a26b5413-255f-4e12-a6e1-c5c0a5ff26be", "delivery_type": "STREET", "sources": [ "Online" ] }, { "id": "2a4a42c3-1e5b-4370-b5b5-2e947d3eeb70", "street": "12 Noblestown Rd", "city": "Carnegie", "state": "PA", "zip": "15106", "latitude": 40.40227, "longitude": -80.10511, "rdi": "Commercial", "deliverable": false, "cmra": false, "url": "https://api.baselayer.com/addresses/2a4a42c3-1e5b-4370-b5b5-2e947d3eeb70", "delivery_type": "STREET", "sources": [ "Online" ] }, { "id": "ad48f3f0-817a-4356-a7f4-7308bf10e622", "street": "124 Tower Plz", "city": "Belleville", "state": "IL", "zip": "62220", "latitude": 38.50184, "longitude": -89.94885, "rdi": "Commercial", "deliverable": true, "cmra": false, "url": "https://api.baselayer.com/addresses/ad48f3f0-817a-4356-a7f4-7308bf10e622", "delivery_type": "STREET", "sources": [ "SOS", "Online" ] }, { "id": "e2e7985e-833c-411c-b3a8-07f79f35a0e8", "street": "600 W Main St", "city": "Jefferson City", "state": "MO", "zip": "65101", "latitude": 38.58271, "longitude": -92.17767, "rdi": "Commercial", "deliverable": true, "cmra": false, "url": "https://api.baselayer.com/addresses/e2e7985e-833c-411c-b3a8-07f79f35a0e8", "delivery_type": "HIGH_RISE", "sources": [ "SOS" ] }, { "id": "84d7e366-188f-4bda-8885-fa602a3b9275", "street": "2327 Hill Church Houston Rd", "city": "Canonsburg", "state": "PA", "zip": "15317", "latitude": 40.24713, "longitude": -80.20446, "rdi": "Commercial", "deliverable": true, "cmra": false, "url": "https://api.baselayer.com/addresses/84d7e366-188f-4bda-8885-fa602a3b9275", "delivery_type": "STREET", "sources": [ "SOS", "Online" ] }, { "id": "a2ce0386-4fc8-4232-8d79-3d355d976f6e", "street": "116 Cidar Ln", "city": "Canonsburg", "state": "PA", "zip": "15317", "latitude": 40.28488, "longitude": -80.0816, "rdi": "Residential", "deliverable": true, "cmra": false, "url": "https://api.baselayer.com/addresses/a2ce0386-4fc8-4232-8d79-3d355d976f6e", "delivery_type": "STREET", "sources": [ "SOS" ] }, { "id": "29015de2-ed7a-4f2b-a95b-1070ef778407", "street": "1821 Logan Ave", "city": "Cheyenne", "state": "WY", "zip": "82001", "latitude": 41.14206, "longitude": -104.79757, "rdi": "Commercial", "deliverable": true, "cmra": false, "url": "https://api.baselayer.com/addresses/29015de2-ed7a-4f2b-a95b-1070ef778407", "delivery_type": "STREET", "sources": [ "SOS" ] }, { "id": "8c31df3d-c936-4539-bc5f-8c9821aea35f", "street": "421 W Main St", "city": "Frankfort", "state": "KY", "zip": "40601", "latitude": 38.19956, "longitude": -84.88046, "rdi": "Commercial", "deliverable": true, "cmra": false, "url": "https://api.baselayer.com/addresses/8c31df3d-c936-4539-bc5f-8c9821aea35f", "delivery_type": "STREET", "sources": [ "SOS" ] }, { "id": "4be1ab0a-ff7d-4512-a306-3a2967cf96ca", "street": "600 E Boulevard Ave", "city": "Bismarck", "state": "ND", "zip": "58505", "latitude": 46.81683, "longitude": -100.78138, "rdi": "Residential", "deliverable": true, "cmra": false, "url": "https://api.baselayer.com/addresses/4be1ab0a-ff7d-4512-a306-3a2967cf96ca", "delivery_type": "HIGH_RISE", "sources": [ "SOS" ] }, { "id": "ee41fad2-573b-41e3-924a-a2783e7f9f5e", "street": "701 Millers Run Rd", "city": "Cuddy", "state": "PA", "zip": "15031", "latitude": 40.33944, "longitude": -80.1764, "rdi": "Commercial", "deliverable": true, "cmra": false, "url": "https://api.baselayer.com/addresses/ee41fad2-573b-41e3-924a-a2783e7f9f5e", "delivery_type": "STREET", "sources": [ "SOS" ] }, { "id": "dc46eab8-1584-400e-8ef1-37cd41fa81b0", "street": "100 Shockoe Slip Fl 2", "city": "Richmond", "state": "VA", "zip": "23219", "latitude": 37.53537, "longitude": -77.43392, "rdi": "Commercial", "deliverable": true, "cmra": false, "url": "https://api.baselayer.com/addresses/dc46eab8-1584-400e-8ef1-37cd41fa81b0", "delivery_type": "HIGH_RISE", "sources": [ "SOS" ] }, { "id": "275c4646-ecee-4953-8230-7feb22ee6a37", "street": "7 Saint Paul St Ste 820", "city": "Baltimore", "state": "MD", "zip": "21202", "latitude": 39.29004, "longitude": -76.61375, "rdi": "Commercial", "deliverable": true, "cmra": false, "url": "https://api.baselayer.com/addresses/275c4646-ecee-4953-8230-7feb22ee6a37", "delivery_type": "HIGH_RISE", "sources": [ "SOS" ] }, { "id": "4cd4bf29-4e9d-4e5e-8257-e2e1e738925f", "street": "400 Justabout Rd", "city": "Venetia", "state": "PA", "zip": "15367", "latitude": 40.26148, "longitude": -80.0735, "rdi": "Residential", "deliverable": true, "cmra": false, "url": "https://api.baselayer.com/addresses/4cd4bf29-4e9d-4e5e-8257-e2e1e738925f", "delivery_type": "STREET", "sources": [ "SOS" ] } ], "phone_numbers": [], "email": null, "website": "https://www.howardconcretepumping.com/", "social_profiles": null, "reviews": null, "ein": null, "incorporation_state": "PA", "incorporation_date": "1994-05-25", "months_in_business": 377, "primary_address": { "id": "84d7e366-188f-4bda-8885-fa602a3b9275", "street": "2327 Hill Church Houston Rd", "city": "Canonsburg", "state": "PA", "zip": "15317", "latitude": 40.24713, "longitude": -80.20446, "rdi": "Commercial", "deliverable": true, "cmra": false, "url": "https://api.baselayer.com/addresses/84d7e366-188f-4bda-8885-fa602a3b9275", "delivery_type": "STREET" }, "alternative_names": [ "HOWARD CONCRETE PUMPING CO., INC", "HOWARD CONCRETE PUMPING CO., INC." ], "registrations": [ { "id": "018a2224-01eb-4279-bfdf-3301b2b9c80d", "name": "HOWARD CONCRETE PUMPING CO., INC.", "issue_date": "2021-06-15", "inactive_date": null, "dissolution_date": null, "file_number": "F21866793", "state": "MD", "address": { "id": "84d7e366-188f-4bda-8885-fa602a3b9275", "street": "2327 Hill Church Houston Rd", "city": "Canonsburg", "state": "PA", "zip": "15317", "latitude": 40.24713, "longitude": -80.20446, "rdi": "Commercial", "deliverable": true, "cmra": false, "url": "https://api.baselayer.com/addresses/84d7e366-188f-4bda-8885-fa602a3b9275", "delivery_type": "STREET" }, "registration_type": "foreign", "status": "active", "standing": "Incorporated", "registered_agent": { "name": "CSC-LAWYERS INCORPORATING SERVICE COMPANY", "address": { "id": "275c4646-ecee-4953-8230-7feb22ee6a37", "street": "7 Saint Paul St Ste 820", "city": "Baltimore", "state": "MD", "zip": "21202", "latitude": 39.29004, "longitude": -76.61375, "rdi": "Commercial", "deliverable": true, "cmra": false, "url": "https://api.baselayer.com/addresses/275c4646-ecee-4953-8230-7feb22ee6a37", "delivery_type": "HIGH_RISE" } }, "officers": [ { "name": "CSC-LAWYERS INCORPORATING SERVICE COMPANY", "titles": [ "AGENT" ] } ] }, { "id": "371e7f97-81c3-40c6-8e35-d3c7f3e62fd6", "name": "HOWARD CONCRETE PUMPING CO., INC.", "issue_date": "2017-11-29", "inactive_date": "2022-06-07", "dissolution_date": "2022-06-07", "file_number": "F001328534", "state": "MO", "address": { "id": "ee41fad2-573b-41e3-924a-a2783e7f9f5e", "street": "701 Millers Run Rd", "city": "Cuddy", "state": "PA", "zip": "15031", "latitude": 40.33944, "longitude": -80.1764, "rdi": "Commercial", "deliverable": true, "cmra": false, "url": "https://api.baselayer.com/addresses/ee41fad2-573b-41e3-924a-a2783e7f9f5e", "delivery_type": "STREET" }, "registration_type": "foreign", "status": "inactive", "standing": "ADMIN DISS/CANCEL - REPOR", "registered_agent": { "name": "(Secretary of State)", "address": { "id": "e2e7985e-833c-411c-b3a8-07f79f35a0e8", "street": "600 W Main St", "city": "Jefferson City", "state": "MO", "zip": "65101", "latitude": 38.58271, "longitude": -92.17767, "rdi": "Commercial", "deliverable": true, "cmra": false, "url": "https://api.baselayer.com/addresses/e2e7985e-833c-411c-b3a8-07f79f35a0e8", "delivery_type": "HIGH_RISE" } }, "officers": [ { "name": "Frank M Howard, JR", "titles": [ "DIRECTOR", "PRESIDENT" ] }, { "name": "Frank M Howard, III", "titles": [ "SECRETARY", "DIRECTOR", "TREASURER" ] } ] }, { "id": "225afe8d-c792-450b-af2e-e57c2e9fc92e", "name": "HOWARD CONCRETE PUMPING CO., INC.", "issue_date": "2009-04-02", "inactive_date": "2012-05-22", "dissolution_date": "2012-05-22", "file_number": "0000093842", "state": "ND", "address": { "id": "ee41fad2-573b-41e3-924a-a2783e7f9f5e", "street": "701 Millers Run Rd", "city": "Cuddy", "state": "PA", "zip": "15031", "latitude": 40.33944, "longitude": -80.1764, "rdi": "Commercial", "deliverable": true, "cmra": false, "url": "https://api.baselayer.com/addresses/ee41fad2-573b-41e3-924a-a2783e7f9f5e", "delivery_type": "STREET" }, "registration_type": "foreign", "status": "inactive", "standing": "INACTIVE - INVOLUNTARY- NOT GOOD", "registered_agent": { "name": "ND SECRETARY OF STATE (N.D.C.C. -§ 10-01.1-13)", "address": { "id": "4be1ab0a-ff7d-4512-a306-3a2967cf96ca", "street": "600 E Boulevard Ave", "city": "Bismarck", "state": "ND", "zip": "58505", "latitude": 46.81683, "longitude": -100.78138, "rdi": "Residential", "deliverable": true, "cmra": false, "url": "https://api.baselayer.com/addresses/4be1ab0a-ff7d-4512-a306-3a2967cf96ca", "delivery_type": "HIGH_RISE" } }, "officers": [ { "name": "ND Secretary of State (N.D.C.C. § 10-01.1-13)", "titles": [ "AGENT" ] } ] }, { "id": "e94779da-e91d-4e0c-9fa8-2526c34c719d", "name": "Howard Concrete Pumping Co., Inc.", "issue_date": "2009-03-16", "inactive_date": null, "dissolution_date": null, "file_number": "F1783739", "state": "VA", "address": { "id": "84d7e366-188f-4bda-8885-fa602a3b9275", "street": "2327 Hill Church Houston Rd", "city": "Canonsburg", "state": "PA", "zip": "15317", "latitude": 40.24713, "longitude": -80.20446, "rdi": "Commercial", "deliverable": true, "cmra": false, "url": "https://api.baselayer.com/addresses/84d7e366-188f-4bda-8885-fa602a3b9275", "delivery_type": "STREET" }, "registration_type": "foreign", "status": "active", "standing": "Active and In Good Standing", "registered_agent": { "name": "CORPORATION SERVICE COMPANY", "address": { "id": "dc46eab8-1584-400e-8ef1-37cd41fa81b0", "street": "100 Shockoe Slip Fl 2", "city": "Richmond", "state": "VA", "zip": "23219", "latitude": 37.53537, "longitude": -77.43392, "rdi": "Commercial", "deliverable": true, "cmra": false, "url": "https://api.baselayer.com/addresses/dc46eab8-1584-400e-8ef1-37cd41fa81b0", "delivery_type": "HIGH_RISE" } }, "officers": [ { "name": "FRANK M HOWARD JR", "titles": [ "PRESIDENT DIRE" ] }, { "name": "FRANK M HOWARD III", "titles": [ "SEC TREAS DIREC" ] }, { "name": "CORPORATION SERVICE COMPANY", "titles": [ "AGENT" ] } ] }, { "id": "408282d1-a2fa-4a66-a964-c20249bd86fb", "name": "HOWARD CONCRETE PUMPING CO., INC.", "issue_date": "1999-12-22", "inactive_date": null, "dissolution_date": null, "file_number": "189173", "state": "WV", "address": { "id": "84d7e366-188f-4bda-8885-fa602a3b9275", "street": "2327 Hill Church Houston Rd", "city": "Canonsburg", "state": "PA", "zip": "15317", "latitude": 40.24713, "longitude": -80.20446, "rdi": "Commercial", "deliverable": true, "cmra": false, "url": "https://api.baselayer.com/addresses/84d7e366-188f-4bda-8885-fa602a3b9275", "delivery_type": "STREET" }, "registration_type": "foreign", "status": "active", "standing": "Active", "registered_agent": { "name": "FRANK M. HOWARD, JR", "address": { "id": "84d7e366-188f-4bda-8885-fa602a3b9275", "street": "2327 Hill Church Houston Rd", "city": "Canonsburg", "state": "PA", "zip": "15317", "latitude": 40.24713, "longitude": -80.20446, "rdi": "Commercial", "deliverable": true, "cmra": false, "url": "https://api.baselayer.com/addresses/84d7e366-188f-4bda-8885-fa602a3b9275", "delivery_type": "STREET" } }, "officers": [ { "name": "FRANK M. HOWARD, III", "titles": [ "SECRETARY", "TREASURER" ] }, { "name": "FRANK M. HOWARD, JR.", "titles": [ "PRESIDENT" ] } ] }, { "id": "358abf3d-be1d-49c0-90b4-ed2f129dbdff", "name": "Howard Concrete Pumping Co., Inc.", "issue_date": "2016-05-03", "inactive_date": null, "dissolution_date": null, "file_number": "2016-000713455", "state": "WY", "address": { "id": "84d7e366-188f-4bda-8885-fa602a3b9275", "street": "2327 Hill Church Houston Rd", "city": "Canonsburg", "state": "PA", "zip": "15317", "latitude": 40.24713, "longitude": -80.20446, "rdi": "Commercial", "deliverable": true, "cmra": false, "url": "https://api.baselayer.com/addresses/84d7e366-188f-4bda-8885-fa602a3b9275", "delivery_type": "STREET" }, "registration_type": "foreign", "status": "active", "standing": "Active", "registered_agent": { "name": "Corporation Service Company", "address": { "id": "29015de2-ed7a-4f2b-a95b-1070ef778407", "street": "1821 Logan Ave", "city": "Cheyenne", "state": "WY", "zip": "82001", "latitude": 41.14206, "longitude": -104.79757, "rdi": "Commercial", "deliverable": true, "cmra": false, "url": "https://api.baselayer.com/addresses/29015de2-ed7a-4f2b-a95b-1070ef778407", "delivery_type": "STREET" } }, "officers": [ { "name": "Frank M Howard, III", "titles": [ "TREASURER" ] }, { "name": "Corporation Service Company", "titles": [ "AGENT" ] } ] }, { "id": "9304d1f0-7968-4da7-8108-8e9a6e01d19c", "name": "HOWARD CONCRETE PUMPING CO., INC.", "issue_date": "2025-04-24", "inactive_date": null, "dissolution_date": null, "file_number": "75073739", "state": "IL", "address": null, "registration_type": "foreign", "status": "active", "standing": "Active", "registered_agent": { "name": "ROB A VALL", "address": { "id": "ad48f3f0-817a-4356-a7f4-7308bf10e622", "street": "124 Tower Plz", "city": "Belleville", "state": "IL", "zip": "62220", "latitude": 38.50184, "longitude": -89.94885, "rdi": "Commercial", "deliverable": true, "cmra": false, "url": "https://api.baselayer.com/addresses/ad48f3f0-817a-4356-a7f4-7308bf10e622", "delivery_type": "STREET" } }, "officers": [] }, { "id": "46e38099-11af-458f-bb60-2ed1e793b1b3", "name": "HOWARD CONCRETE PUMPING CO., INC.", "issue_date": "1994-05-25", "inactive_date": null, "dissolution_date": null, "file_number": "0002579432", "state": "PA", "address": { "id": "84d7e366-188f-4bda-8885-fa602a3b9275", "street": "2327 Hill Church Houston Rd", "city": "Canonsburg", "state": "PA", "zip": "15317", "latitude": 40.24713, "longitude": -80.20446, "rdi": "Commercial", "deliverable": true, "cmra": false, "url": "https://api.baselayer.com/addresses/84d7e366-188f-4bda-8885-fa602a3b9275", "delivery_type": "STREET" }, "registration_type": "domestic", "status": "active", "standing": "Active", "registered_agent": null, "officers": [ { "name": "FRANK JR HOWARD", "titles": [ "PRESIDENT" ] }, { "name": "FRANK HOWARD III", "titles": [ "TREASURER" ] }, { "name": "PAMELA CARLINI", "titles": [ "SECRETARY" ] }, { "name": "Frank M Howard III", "titles": [ "GOVERNOR" ] } ] }, { "id": "3784568a-6c87-4c66-9740-c7d8c6ea1203", "name": "Howard Concrete Pumping Co Inc.", "issue_date": "2015-04-06", "inactive_date": null, "dissolution_date": null, "file_number": "0918795", "state": "KY", "address": { "id": "84d7e366-188f-4bda-8885-fa602a3b9275", "street": "2327 Hill Church Houston Rd", "city": "Canonsburg", "state": "PA", "zip": "15317", "latitude": 40.24713, "longitude": -80.20446, "rdi": "Commercial", "deliverable": true, "cmra": false, "url": "https://api.baselayer.com/addresses/84d7e366-188f-4bda-8885-fa602a3b9275", "delivery_type": "STREET" }, "registration_type": "foreign", "status": "active", "standing": "GOOD_STANDING", "registered_agent": { "name": "Corporation Service Company", "address": { "id": "8c31df3d-c936-4539-bc5f-8c9821aea35f", "street": "421 W Main St", "city": "Frankfort", "state": "KY", "zip": "40601", "latitude": 38.19956, "longitude": -84.88046, "rdi": "Commercial", "deliverable": true, "cmra": false, "url": "https://api.baselayer.com/addresses/8c31df3d-c936-4539-bc5f-8c9821aea35f", "delivery_type": "STREET" } }, "officers": [ { "name": "Corporation Service Company", "titles": [ "AGENT" ] }, { "name": "Frank M Howard, III", "titles": [ "TREASURER", "DIRECTOR" ] }, { "name": "Frank M Howard, Jr.", "titles": [ "DIRECTOR", "PRESIDENT" ] } ] } ], "business_officers": [ { "name": "Corporation Service Company", "titles": [ "AGENT" ], "states": [ "KY", "VA", "WY" ], "sources": [ "SOS" ] }, { "name": "Frank Howard, JR", "titles": [ "PRESIDENT" ], "states": [ "PA" ], "sources": [ "SOS", "Online" ] }, { "name": "Pamela Carlini", "titles": [ "SECRETARY" ], "states": [ "PA" ], "sources": [ "SOS" ] }, { "name": "Frank Howard, III", "titles": [ "TREASURER" ], "states": [ "PA" ], "sources": [ "SOS", "Online" ] }, { "name": "Csc-Lawyers Incorporating Service Company", "titles": [ "AGENT" ], "states": [ "MD" ], "sources": [ "SOS" ] }, { "name": "Frank M Howard, III", "titles": [ "DIRECTOR", "GOVERNOR", "SEC TREAS DIREC", "SECRETARY", "TREASURER" ], "states": [ "KY", "MO", "PA", "VA", "WV", "WY" ], "sources": [ "SOS" ] }, { "name": "Frank M Howard, JR", "titles": [ "DIRECTOR", "PRESIDENT", "PRESIDENT DIRE" ], "states": [ "KY", "MO", "VA", "WV" ], "sources": [ "SOS" ] }, { "name": "Nd Secretary Of State (Ndcc § 10-011-13)", "titles": [ "AGENT" ], "states": [ "ND" ], "sources": [ "SOS" ] } ], "predicted_naics": [], "watchlist_hits": [ { "code": "IEO", "name": "IRS Exempt Organizations List", "count": 0, "details": [] }, { "code": "PEP", "name": "Politically Exposed Persons", "count": 0, "details": [] }, { "code": "OFAC", "name": "Department of Treasury, Office of Foreign Assets Control", "count": 0, "details": [] } ], "url": "https://api.baselayer.com/businesses/1e78e99d-d515-435a-a0b5-dc7899f55f9c", "console_url": "https://console.baselayer.com/business/1e78e99d-d515-435a-a0b5-dc7899f55f9c", "revenue": null, "phone_number": null }, "url": "https://api.baselayer.com/searches/e3166643-8578-4fff-aafc-6b5602dfb404", "status_url": "https://api.baselayer.com/searches/e3166643-8578-4fff-aafc-6b5602dfb404/status", "business_url": "https://api.baselayer.com/businesses/1e78e99d-d515-435a-a0b5-dc7899f55f9c", "console_url": "https://console.baselayer.com/business/1e78e99d-d515-435a-a0b5-dc7899f55f9c?searchId=e3166643-8578-4fff-aafc-6b5602dfb404" } ``` See [Webhooks at Baselayer](/docs/webhooks-at-baselayer) for webhook setup and best practices. #### Option 2: Poll for Results Use the search `id` to poll for completion: ```curl theme={null} curl --request GET \ --url https://api.baselayer.com/searches/e3166643-8578-4fff-aafc-6b5602dfb404 \ --header 'X-API-Key: ' ``` **Why webhooks are preferred:** Eliminates polling overhead, provides immediate notification when results are ready, and is the pattern used by 80% of Baselayer customers. *** ## Synchronous Search For testing or simple integrations, you can request synchronous responses by adding the `Prefer: wait=N` header, where `N` is the most seconds to wait. If your API key's default mode is synchronous, you don't need the header. The older `Accept: application/vnd.osiris.sync+json` header still works but is legacy. ```curl theme={null} curl --request POST \ --url https://api.baselayer.com/searches \ --header 'X-API-Key: ' \ --header 'Accept: application/json' \ --header 'Prefer: wait=30' \ --header 'Content-Type: application/json' \ --data '{ "name": "Howard Concrete Pumping Co Inc", "address": "2327 Hill Church Houston Rd, Canonsburg PA 15317", "officer_names": [ "Frank Howard Jr" ], "website": "https://www.howardconcretepumping.com/", "tin": "987654321" }' ``` The API will wait until processing completes (typically 2-5 seconds) and return the full response with `state: COMPLETED`: ```json theme={null} { "id": "e3166643-8578-4fff-aafc-6b5602dfb404", "state": "COMPLETED", "verified": true, "business_name_match": "EXACT", "business_address_match": "EXACT", "tin_matched": false, "scores": [ { "type": "kyb", "score": 83.0, "rating": "B" }, { "type": "risk", "score": 93.0, "rating": "A" } ], "business": { "id": "1e78e99d-d515-435a-a0b5-dc7899f55f9c", "name": "HOWARD CONCRETE PUMPING CO., INC.", "structure": "C_CORPORATION", "months_in_business": 377, ... } } ``` You will receive a complete response, equivalent to what one would receive when either listening for the `BusinessSearch.completed` webhook event or retrieving the search using `GET /searches/{id}` *** ## Understanding the Response A completed Business Search contains multiple layers of verification data. Here are the most important fields to check first: ### Search-Level Fields These fields summarize the overall match quality: * `state` - Final state: `COMPLETED` (search finished), `FAILED` (no match found or insufficient input), or `CANCELLED` (request cancelled before completing) * `business_name_match` - How closely input name matched official records: `EXACT`, `SIMILAR`, or `NO_MATCH` * `business_address_match` - Address matching precision: `EXACT`, `SIMILAR`, `CITY`, `STATE`, or `NO_MATCH` * `tin_matched` - Boolean confirming IRS validation of the TIN. Can be `null` during IRS outages (see [Guide: IRS Outage Handling](/docs/webhook-guide-businesssearchupdated)) * `scores` - Array of automated risk scores: * `kyb` rating (A-F): Evaluates identity verification strength * `risk` rating (A-F): Identifies potential risk factors * `warnings` - Array of operational issues (e.g., "IRS Validation is unavailable.") ### Business Object When `state: COMPLETED`, the response includes a complete business profile: * `id` - **Store this!** Permanent business identifier for follow-up queries, portfolio monitoring, or historical analysis * `name` - Official legal name from Secretary of State records * `structure` - Entity type (LLC, C_CORPORATION, NONPROFIT, etc.) * `months_in_business` - Age since incorporation (critical for lending requirements) * `registrations[]` - Domestic (incorporation state) and foreign (authorized states) registrations with status * `business_officers[]` - Directors, managers, and registered agents * `addresses[]` - All known business addresses with USPS validation signals * `watchlist_hits[]` - Sanctions or PEP matches for the business or its officers ### What to Do Next **Store the business_id**: Use it to: * Run follow-up products like [Lien Search](/docs/lien-search-basics) or [Docket Search](/docs/litigation-bankruptcy-search-basics) * Link to your internal customer/vendor records **Build verification logic**: Use match signals and scores to make approval decisions. See [Business Search: Best Practices](/docs/business-search-1) for recommended decision workflows. **Handle edge cases**: Plan for IRS outages, low-confidence matches, and sole proprietors. See relevant guides in Next Steps below. *** ## Order Options **Note**: With the legacy `Accept: application/vnd.osiris.sync+json` header, requests that include `Order.WebsiteAnalysis` or `Order.NaicsPrediction` (and so `Order.Enhanced`) fail with a 422. Use `Prefer: wait=N` or an asynchronous request instead. Business Search supports optional add-ons that enrich verification depth. Pass an `options` array in your request to enable: * `Order.WebsiteAnalysis` - Discovers the business website, analyzes domain age/registrar, checks for parked status, and extracts contact information * `Order.NaicsPrediction` - Classifies the business industry, returning NAICS, MCC, and SIC codes with risk levels * `Order.Enhanced` - The most comprehensive search: includes Website Analysis, Industry Prediction, social media discovery, online reviews, and additional addresses/officers found online. Send it together with `Order.WebsiteAnalysis` and `Order.NaicsPrediction`. * `Order.Pep` - will search to see if any of the business officers are considered a politically exposed person. Results for `Order.Pep` will be returned with the initial business search in the payload, however results for `Order.NaicsPrediction` or `Order.WebsiteAnalysis` must be fetched asynchronously. The search object will return an array of `orderables` that contain urls to fetch the relevant results. For example, the request: > [accordion] Enhanced Search > > The default behavior of the options is asynchronous, meaning the business search will complete and return before the Industry Prediction and Website Analysis have completed. > > However, there may be a scenario where the input address or officer names that you supply are not listed formally at the Secretary of State, but may still be a valid operating location of the business and is indicated as such online. > > In that case, one can use the `Order.Enhanced` option. This will **block the execution of the search** until both the website analysis and industry prediction have completed, allowing us to look across the **business's official website, online reviews, and social media profiles** to find all instances of phone numbers, emails, address, and officers. > > This is the most comprehensive search we offer, but can be expected to be much slower than the baseline searches without the `Order.Enhanced` option. **Example with order options:** ```curl theme={null} curl --request POST \ --url https://api.baselayer.com/searches \ --header 'X-API-Key: ' \ --header 'Accept: application/json' \ --header 'Content-Type: application/json' \ --data '{ "name": "Howard Concrete Pumping Co Inc", "address": "2327 Hill Church Houston Rd, Canonsburg PA 15317", "officer_names": [ "Frank Howard Jr" ], "options": ["Order.WebsiteAnalysis", "Order.NaicsPrediction"], "tin": "987654321" }' ``` The response includes an `orderables` array with IDs and URLs to fetch results: ```json theme={null} { "id": "34c6d880-1f95-460b-9ad4-8e7c713764b1", "options": [ "Order.WebsiteAnalysis", "Order.NaicsPrediction" ], "orderables": [ { "type": "WebsiteAnalysisRequest", "id": "ac5aca82-e75e-40d0-a0eb-1fc474cef2c4", "url": "https://api.baselayer.com/website_analysis_requests/ac5aca82-e75e-40d0-a0eb-1fc474cef2c4", "option": "Order.WebsiteAnalysis" }, { "type": "NAICSPredictionRequest", "id": "7f1f1bc6-119d-4613-af28-7f885d37cf2c", "url": "https://api.baselayer.com/naics_prediction_requests/7f1f1bc6-119d-4613-af28-7f885d37cf2c", "option": "Order.NaicsPrediction" } ], "user": null, "state": "COMPLETED", ... ``` Fetch results by making GET requests to the returned URLs, or listen for `WebsiteAnalysisRequest.completed` and `NAICSPredictionRequest.completed` webhook events. For detailed guidance on using orderables in verification workflows, see [Online Presence: Best Practices](/docs/web-presence-orderables). *** ## Common Issues ### "My sandbox search isn't working / returns no results" **Cause**: Sandbox uses pre-defined test cases with exact input matching. If your input differs even slightly from the test data (e.g., adding "USA" to the address or extra spacing), the search will fail. **Solutions**: * See [Sandbox vs. Production Environments](/docs/sandbox-vs-production-environments) for detailed guidance on sandbox testing * Use the exact test cases from Integration Test Cases spreadsheet provided by your Baselayer account manager * Ensure inputs match exactly - sandbox is whitespace-sensitive * Common mistakes: Adding country codes ("US", "USA"), extra commas, or variations in business name formatting **Example**: * ✅ Works: `"address": "2327 Hill Church Houston Rd, Canonsburg PA 15317"` * ❌ Fails: `"address": "2327 Hill Church Houston Rd, Canonsburg PA 15317, US"` Once you've validated your integration in sandbox, switch to production with your real business data. ### "My search returned `state`: FAILED" **Cause**: No matching business found in Secretary of State records, or insufficient input data. **Solutions**: * Check if the business name and address are accurate and correctly submitted * Verify the business is actually registered (many sole proprietors aren't) * If verifying a sole proprietor, see [Sole Proprietorship Verification](/docs/sole-prop-verification) for alternative approaches ### "`tin_matched` is null" **Cause**: IRS system is temporarily unavailable. **What happens**: Baselayer automatically retries IRS validation and emits a `BusinessSearch.updated` webhook when validation completes. You'll see a warning: "IRS Validation is unavailable." **Solutions**: * Wait for the `BusinessSearch.updated` webhook with final `tin_matched` result * See [Guide: IRS Outage Handling](/docs/webhook-guide-businesssearchupdated) for detailed implementation patterns ### "I submitted a webhook URL but I'm not receiving events" **Common causes**: * Webhook endpoint not configured in Baselayer Console * Endpoint not returning 200 status code * Firewall blocking Baselayer IP addresses * HTTPS certificate issues **Troubleshooting**: * Verify webhook configuration in [Baselayer Console](https://console.baselayer.com) * Check your server logs for incoming POST requests * See [Webhooks at Baselayer](/docs/webhooks-at-baselayer) for detailed troubleshooting *** ## Next Steps Now that you've made your first successful Business Search, here's where to go next: ### Build Verification Logic * [Business Search: Best Practices](/docs/business-search-1) - Recommended decision workflows using match signals and scores * [Scores & Ratings](/docs/baselayer-scores-ratings) - Deep dive on interpreting KYB and Risk ratings * [Guide: IRS Outage Handling](/docs/webhook-guide-businesssearchupdated) - Robust TIN validation strategies ### Expand Your Workflow * [Online Presence: Best Practices](/docs/web-presence-orderables) - Add website and industry analysis to verification * [Portfolio Monitoring](/docs/portfolio-monitoring) - Continuous monitoring after approval for status changes, liens, and sanctions * [Sole Proprietorship Verification](/docs/sole-prop-verification) - Handle unregistered businesses and thin-file cases * [Business Search: Batch Searches](/docs/batch-search-how-to-run-bulk-searches-in-baselayer) - Process bulk verification for existing customer base ### Use Case Guides See industry-specific verification workflows: * [Payment Processors](/docs/payments) - Fraud screening and industry compliance * [Marketplaces](/docs/marketplaces) - Vendor credibility and web presence verification * [Business Lending Playbook](/docs/lending) - Credit risk and comprehensive underwriting * [Bank Account Opening](/docs/bank-account-opening) - Streamlined compliance verification ### Product Integration * [Authentication](/docs/authentication) - Manage API keys and environments * [Sandbox vs. Production Environments](/docs/sandbox-vs-production-environments) - Testing best practices * [API Reference](/api-reference) - Complete endpoint documentation **Need help?** Contact your Baselayer account manager or check [FAQs](https://support.baselayer.com) for common questions. # Business Search: Best Practices Source: https://docs.baselayer.com/docs/business-search-1 Choose the right inputs, set approval rules, and read each part of the result to make KYB decisions. ## Introduction: Inputs & their impact For an overview of what Business Search does and when to use it, see [Business Search: Basics](/docs/business-search-basics). This guide focuses on practical implementation strategies and decision logic. Your inputs determine how strong your match will be. The more complete the information you send - especially name, address, and optional fields like TIN or website - the richer and more reliable your results become. This section helps you understand which inputs matter most and how they influence what Baselayer returns. #### Minimum to run a high-quality search * `name` → legal name of the business * `address` → legal address of the business These two are the only required fields.\ The address field requires only the US state at a minimum. The more accurate the address, the more accurate the results will be. #### Optional inputs (don’t change match quality, but unlock additional checks) * `tin` → EIN associated to the application, enables live IRS verification and `tin_matched` outcomes * `website` → enables website consistency checks such as `business_website_match` * `officer_names` → unlocks officer match signals such as `business_officer_match` * `phone_number` → stored for context/comparison * `email` → stored for context/comparison * `reference_id` → optional string you can use to associate this request with an internal ID or case in your system * `options` → request Website Analysis, Industry Prediction and/or Enhanced Search as add-ons\ These enrich verification depth; they don’t impact the core entity match #### Orderables you can request at search time * Order.WebsiteAnalysis → domain age/registrar, deliverability, parked status, contacts/social links found on the website, etc. * Order.NaicsPrediction → NAICS/MCC/SIC prediction; for best accuracy, request together with Website Analysis. * Order.Enhanced → must be sent together with Order.WebsiteAnalysis and Order.NaicsPrediction; discovers social media profiles and online reviews, and uncovers addresses and officers found online for increased match rates. More information on orderables can be found in the guide [Online Presence: Best Practices](/docs/web-presence-orderables). ### Best practices for business verification * **Match strictness to product:** Minimize friction while ensuring the checks that matter for your risk, channel, and ticket size. * **Balance match requirements:** Requiring EXACT matches everywhere drives avoidable manual reviews - allow SIMILAR name with EXACT address, or EXACT name with looser address, depending on your appetite. * **Monitor performance:** Track outcomes and tune thresholds over time. * **Persist the IDs**: On Completed searches you’ll receive the full response (via webhook or API polling). Persist the search and business_id, they anchor follow-ups and analyst review flows. *** ## KYB Check Recommendation (balanced rules to ship today) There isn’t just one “right” way to use Baselayer data. Here you’ll find two proven approaches: a quick-start option using our built-in KYB and Risk ratings, and a more granular rules-based method that offers greater control. You can adopt one or blend both depending on your product, risk appetite, and decisioning workflow. Why pick each option? * Ratings-first: simpler, straightforward for quick integration. * Standard rules: granularity, tunable by product/performance, and yields more explanatory flags for analysts. The workflows explained in this section are standard recommendations and best practices that other Baselayer customers have implemented. The exact workflow and decisioning should be adjusted to each product and customer base to optimize its performance. #### 1. Ratings-first (simplest) Use Baselayer’s KYB and Risk ratings as primary gates. **Decision:** If either rating is C or F → Manual Review; otherwise continue (and apply your own minimal gates like “no watchlist hits” outside of the ratings). **Pros:** Simpler, very fast to integrate, clear ops triage. **Cons:** Less granular; you’ll know that it failed, less why. Where to learn more: See the dedicated [Business Search: Scores & Ratings](/docs/baselayer-scores-ratings). #### 2. Standard rules (balanced granularity) Approve when all are true: * Name + Address: * EXACT `business_name_match` with EXACT/CITY/STATE `business_address_match` or * SIMILAR `business_name_match` with EXACT `business_address_match` * TIN: `tin_matched` = true (see IRS outage handling below) * Registrations: `status` = active for the domestic registration; if operating out-of-state, an active foreign registration in that operating state. * Watchlists: No positive hits at search-level or business-level. ##### Optional product-specific flags * Business age: `months_in_business` ≥ 12 months (requirement commonly used in lending) * Prohibited structures: business.`structure` = NONPROFIT → reject (tailor to your risk policy) #### IRS outage handling During IRS outages, you'll see `tin_matched` = null with a warning in the response. Baselayer automatically retries IRS validation and emits a `BusinessSearch.updated` webhook when validation completes. **Recommended strategies during outages:** * Pause applications until IRS is operational * Issue conditional approval and freeze account if TIN fails post-validation * Skip TIN requirement temporarily (only if your risk policy allows) For detailed implementation guidance including webhook handling and retry logic, see [Guide: IRS Outage Handling](/docs/webhook-guide-businesssearchupdated). *** ## Search Attributes (the first fields to review) The search response is your first line of insight into the match quality. It tells you how well the information you submitted matched Baselayer’s records - covering name, address, TIN, officers, and watchlists. This section explains which of these top-level attributes to review first and how to interpret them at a glance. Below you can find some of the most relevant signals in the search response: * `tin_matched`: true / false / null\ IRS confirmation that the TIN is valid and belongs to the input business name. null may indicate IRS outage (see above). * `business_name_match`: EXACT / SIMILAR / NO_MATCH\ How close the input name is to the matched entity's legal name. * `business_address_match`: EXACT / SIMILAR / CITY / STATE / NO_MATCH\ Closeness of the input address to known addresses. * `business_officer_match`: EXACT / SIMILAR / NO_MATCH *(only populated if officer names were provided)*\ Alignment between submitted officers and Baselayer's identified officers. * `business_website_match`: true / false / null *(only populated if website was provided)*\ Whether the submitted website matched the website identified by Baselayer. * `watchlist_hits`: arrays with counts for matches of the search inputs with official sanctions lists. Treat any positive count as a hard stop or manual review trigger. #### Scores Every business search will return the array `scores` containing a list of scores (0-100) and ratings (A/B/C/F) that summarize different aspects of the business search. Two scores and ratings are currently being returned: * KYB rating (`type` = kyb): evaluates the quality of the business verification search and initial company assessment. * Risk rating (`type` = risk): identifies potential financial risk factors common in lending and payment processing evaluations. A large number of Baselayer customers rely on the KYB and Risk ratings to make KYB and onboarding decisions every day. Where to learn more: See the dedicated [Business Search: Scores & Ratings](/docs/baselayer-scores-ratings). #### Orderables If `options` were requested as part of the business search, the response will include `orderables` items with IDs/URLs to fetch full Website Analysis / Industry Prediction results. For more information please read the [Online Presence: Best Practices](/docs/web-presence-orderables). *** ## Business Attributes (understanding the core business profile) The business object is the center of your response. It’s Baselayer’s structured representation of the entity we matched your search to, including identifiers, contact details, registrations, and addresses. This section helps you understand how to read the business summary, what information to store, and which fields tend to be most reliable for follow-up checks. When a search successfully matches to a record, Baselayer returns a `business` object inside the search response. It serves as your single, authoritative snapshot of that entity. * `id` and `business_url`: unique identifiers of the business profile, persist for future pulls and quick analyst reviews. * `name`: the official name as filed with the domestic Secretary of State. * `structure`: the legal entity type (e.g., LLC, C_CORPORATION, NONPROFIT, TRUST, etc.). This field is often used early in decisioning to block or reroute certain structures for a given product or flow. * `months_in_business`: the number of months since incorporation. Many customers apply thresholds here (e.g., six months minimum for moderate-risk products). * `registrations[]`: all SoS registrations (domestic & foreign) including status, key dates/IDs, and officers (more below). * `addresses[]`: all known addresses with USPS-based signals (more below). * `watchlist_hits[]`: Baselayer’s list of potential sanctions matches associated with the business record itself (distinct from hits tied to your input data in the search). Treat any positive hit here as a high-priority review item. #### Best practices Use the domestic registration (incorporation state) as identity ground truth, and leverage foreign registrations to understand footprint and scale of the business. Store the `id` of the business object (called `business_id` throughout the documentation) and associate it internally to the unique identifier of that business in your systems. This will be critical to retrieve additional information of the business later, or streamline lien/docket requests - which require the `business_id` as the only input for the API request. Remember there are two places where watchlist hits can appear: one tied to the search inputs (data you submitted) and one tied to the business record itself (data collected by Baselayer). Both must be clear for an automated pass. *** ## Address Attributes (spotting location risk signals) Addresses reveal more than location, they often signal legitimacy or risk. Baselayer includes every address connected to a business, each with USPS-based attributes like RDI, CMRA, and deliverability. This section shows how to spot inconsistencies, identify mail-forwarding or virtual offices, and decide which addresses matter most for your use case. Each entry in the `addresses[]` array provides detailed metadata about a single location tied to the business. You’ll typically find: * `id`: Baselayer’s unique identifier for the address. Addresses are deduplicated, shared resources: two businesses registered at the same normalized address (including suite/secondary number and ZIP+4, case-insensitive) share the same address `id` and `url`. This makes the `id` useful for building "who else is at this address" checks. * `street`, `city`, `state`, `zip`: normalized address fields. * `latitude`, `longitude`: geolocation coordinates for mapping or distance checks. When no geocode is available, both fields return `0.0` - treat `0.0`/`0.0` as "no geocode" rather than a real coordinate. * `rdi`: Residential Delivery Indicator, showing whether USPS classifies the address as `Residential` or `Commercial`. Returns `null` when the classification is not available. * `deliverable`: boolean indicating whether USPS considers the address occupied. `true` = not vacant, `false` = vacant, `null` = unknown. Note this is a vacancy signal, not a USPS deliverability check: an address that is occupied but not deliverable by USPS still returns `true`. * `cmra`: boolean identifying whether the address is a Commercial Mail Receiving Agency (e.g., UPS Store, virtual office, or shared mailbox). Some of Baselayer customers require a non-CMRA address to approve an application. * `delivery_type`: enum representing USPS delivery point types. Used to classify how mail is delivered:\ FIRM, GENERAL_DELIVERY, HIGH_RISE, POST_OFFICE, RURAL_ROUTE, STREET, or `null` when not available. This can be useful for detecting unusual delivery setups (e.g., businesses listing a Post Office or General Delivery address). * `url`: Baselayer API link to the full address resource, where extended details (such as associated registered agents) can be retrieved. * `associated_registered_agents[]`: list of registered agents historically linked to the address. This attribute is the only one not included directly in the search due to its possible size. Note that `rdi`, `cmra`, `deliverable`, and `delivery_type` are nullable even for validated US addresses in production: they are populated for most addresses, but not all, depending on the validation path. Build your logic to handle `null` values rather than assuming these fields are always present. #### Best practices Focus on the right address for your workflow: Baselayer often returns multiple addresses for the same business (registered, operating, mailing). Define which one is most relevant to your verification use case - typically the operating or search-input address. Industry context matters: Residential/CMRA flags may be normal for software/consultancies, but questionable for manufacturing or retail. Leverage [Online Presence: Best Practices](/docs/web-presence-orderables) to obtain this context. Vacancy (deliverable = false) or CMRA flags at the primary operating address can indicate fake or inactive locations. CMRA = true or delivery_type = POST_OFFICE / GENERAL_DELIVERY can flag virtual offices or P.O. boxes used to conceal real operations. Registered-agent clustering: If an operating address equals the registered agent’s and hosts many agents, it likely reflects a formation service address, and not the operating address of the business. *** ## Business Officer Attributes (people-level data to strengthen identity verification) Officer information links a business to the people behind it. When available, Baselayer includes officers drawn from registrations and additional sources, and can evaluate whether the names you provided match ours. This section outlines how to use officer data to strengthen verification, flag mismatches, or add confidence to borderline cases. `business_officer_match` on the search tells you whether submitted officer names align with Baselayer’s records (EXACT/SIMILAR/NO_MATCH). Use this to lift confidence on borderline cases. Each officer entry in the `business_officers` array follows this structure: * `name`: officer’s full name as recorded in official filings or online sources. * `titles`: roles associated with the officer (e.g., “CEO”, “Manager”, “President”, “Director”). * `states`: states where the officer is registered or listed in filings. Often matches the states in the business’s registrations array. * `sources`: data sources confirming this officer. By default, this is “SOS” (Secretary of State). When Enhanced Search is requested, it may also include “Online”, representing individuals Baselayer identified through external signals like the company website, LinkedIn, or other verified online sources. Practical tip: Collect officer names only where proportional to risk; asking for them everywhere increases friction. #### Best practices Leverage `business_officer_match`: when you submit officer names in the search payload, Baselayer compares them to the officers in the matched business. The field `business_officer_match` (EXACT, SIMILAR, or NO_MATCH) summarizes this comparison. We don't recommend including it as part of the basic KYB check due to its potential impact into auto-approval rates - officer confirmation is best used as a supporting factor, not a hard requirement, unless your product requires proof of executive authorization. Leverage `sources` to understand where data came from: * SOS → official Secretary of State records; legal authority. * Online → found through Enhanced Search (website, LinkedIn, or other digital signals). These can identify operational leads, founders, or signatories not listed in public filings - extremely useful for thin-file or early-stage businesses. *** ## Registrations Attributes (legal standing information across states) Registrations are the legal backbone of a business profile. Each business can have one or multiple registrations - one domestic (its incorporation state) and potentially several foreign registrations in other states. This section walks through how to interpret those registration objects, understand their status fields, and identify which registration matters most for KYB decisions. This section explains how to interpret these registration objects, understand which one is most relevant for verification, and recognize how registration data impacts KYB decisioning. Each registration entry includes structured legal and status information derived directly from Secretary of State sources and Baselayer’s enrichment systems: * `id`: Baselayer’s unique identifier for the registration. * `state`: U.S. state where this registration record exists. * `registration_type`: identifies whether the registration is domestic (the state of incorporation), foreign (registered to do business in another state), or unknown. Don't confuse this field with `status` below. * `status`: Baselayer's normalized classification of the registration's standing. It is always one of exactly three values (never null): * active: in good standing with the state * inactive: no longer in good standing or dissolved * unknown: returned when the Secretary of State either provided no status at all (common for DE or NJ) or provided wording Baselayer could not classify as active or inactive * `standing`: the raw, free-text status string exactly as the Secretary of State reported it (e.g., "In Good Standing", "Dissolved"). Use `status` for decisioning and `standing` for the original wording. * `file_number`: the state’s internal reference number for this business record. * `issue_date`: the date the entity was incorporated or first registered. * `inactive_date`: the date the registration became inactive (when applicable). * `dissolution_date`: the date the registration was dissolved (when applicable). * `officers[]`: officers or authorized signatories listed on that registration (when available). #### Best practices The domestic registration (state of incorporation) is the business’s anchor record. It represents the entity’s legal identity - use this to confirm existence and formation date. Foreign registrations show where the business is authorized to operate outside its home state. They are useful for confirming footprint but less critical for identity verification. Approve automatically only when at least one registration is active: treat inactive statuses as grounds for rejection or manual review. Unknown statuses (especially in Delaware) should be reviewed before final decisioning. *** ## Putting It All Together Baselayer’s Business Search response gives you everything needed to automate and optimize KYB.\ The key is knowing how to use each layer together, progressively building trust in the entity you’re evaluating. 1. Start with the right inputs\ Provide the legal name and address as a minimum, and include optional fields like TIN, website, and officer names when available. The more complete the inputs, the richer your verification results. 2. Choose your decisioning path * For simplicity: rely on Baselayer’s KYB and Risk ratings (A/B = pass, C/F = review). * For flexibility: use the Standard KYB Check Recommendation to design granular logic tailored to your product and risk tolerance. 3. Review the Search Response first\ Check top-level fields like business_name_match, business_address_match, and tin_matched to quickly assess the quality of the match and detect any immediate red flags (e.g., watchlist hits or IRS outages). 4. Evaluate the Business object\ Confirm that the entity’s structure, months_in_business, and watchlist_hits meet your product’s criteria.\ If applicable, store the business_id to link follow-on products like Lien or Docket Searches. 5. Optionally analyze addresses or officers objects\ Addresses or officers can reveal risk patterns - like mail-forwarding, virtual offices, or unrelated individuals. Consider adding these checks to your KYB flow. 6. Verify registrations and standing\ Ensure there’s at least one active domestic registration, and, if the business operates in another state, an active foreign registration there too. 7. Monitor and refine\ Track verification outcomes over time. Baselayer’s structured data allows you to analyze approval rates, fraud patterns, and friction points; helping you continuously tune your KYB policy for the best balance between safety and conversion. In short:\ Start broad and review key signals in order.\ By combining Baselayer’s structured attributes, you can build a KYB workflow that’s both intelligent and efficient, capable of adapting to your customers, products, and risk goals. # Business Search: Basics Source: https://docs.baselayer.com/docs/business-search-basics Know what Business Search checks, what it returns, and when to use it. ## What is Business Search? Business Search is Baselayer's foundational Know Your Business (KYB) product. It verifies business identity by matching your input against authoritative government registries (Secretary of State filings across all 50 states), validating Tax Identification Numbers with the IRS in real-time, screening for sanctions and watchlist matches, and returning a comprehensive risk assessment with match confidence scores. Unlike legacy verification systems that rely on outdated data or require manual processes, Business Search delivers fresh, authoritative results through a modern API in seconds. The product serves as the anchor for all Baselayer verification workflows: most customers start here, then expand to specialized products like Portfolio Monitoring, Lien Search, or Web Presence analysis based on their use case. *** ## When to Use Business Search **Use Business Search when you need to:** * Verify that a business exists and is legitimately registered * Validate that provided business details (name, address, TIN) match official records * Screen for sanctions and watchlists * Assess business risk through automated scoring * Retrieve comprehensive business profile data (officers, addresses, registration history) * Make onboarding, underwriting, or approval decisions based on KYB verification **Consider alternatives when:** * You only need TIN verification without full business profile → Use [TIN Verification endpoint](/api-reference/tin-verification/submit-tin-verification) * You're verifying unregistered businesses (sole proprietors) → See [Sole Proprietorship Verification](/docs/sole-prop-verification) * You need web presence or industry classification without full KYB → Use [Web Presence](/docs/online-presence-basics) For foundational concepts about business verification in the United States, see [Business Verification Basics](/docs/business-verification-basics) . *** ## What Business Search Returns A completed Business Search provides multiple layers of verification data in a single response: ### Match Signals Confidence indicators showing how well your input matched official records: * **`business_name_match`**: How closely the provided name matches the registered name (EXACT, SIMILAR, NO_MATCH) * **`business_address_match`**: Address matching precision (EXACT, SIMILAR, CITY, STATE, NO_MATCH) * **`tin_matched`**: Boolean confirming IRS validation of the provided TIN against business name * **`business_officer_match`**: Whether provided officers match registered officers (EXACT, SIMILAR, NO_MATCH) * **`registered_agent_match`**: Match level for registered agent information These signals let you build verification rules tailored to your risk appetite and product requirements. ### Scores & Ratings Two automated scores assess overall verification quality and risk: * **KYB Rating** (A-F scale): Evaluates the strength of business identity verification based on registration quality, match confidence, and completeness of official records * **Risk Rating** (A-F scale): Identifies potential risk factors common in fraud, credit risk, and compliance scenarios Most customers use these ratings as primary decision gates - for example, auto-approving A/B ratings and routing C/F to manual review. For detailed guidance on interpreting and using these scores, see [Scores & Ratings](/docs/baselayer-scores-ratings) . ### Business Profile When a match is found, you receive the complete business entity profile: * **Identifiers**: Unique `business_id`, legal business name, entity structure (LLC, C-Corp, etc.) * **Registrations**: Domestic (incorporation state) and foreign (states where authorized to operate) with status, filing dates, and registration numbers * **Officers & Agents**: Directors, managers, registered agents with names and addresses * **Addresses**: All known business addresses with USPS validation signals * **Business Age**: Months since incorporation (critical for lending and certain compliance requirements) * **Watchlist Screening**: Any sanctions or PEP matches associated with the business entity or its officers The business profile persists in Baselayer's system with a permanent `business_id` that you can reference for follow-up queries, or historical analysis. ### Search Metadata Every search returns operational metadata: * **`state`**: Current search state (PENDING, EXECUTING, COMPLETED, FAILED, CANCELLED) * **`warnings`**: Array of any operational issues (e.g., "IRS Validation is unavailable.") * **`created_at` / `updated_at`**: Timestamps for audit trails * **`console_url`**: Direct link to view full results in Baselayer console for analyst review ### Orderables (Optional) If you request additional analysis at search time using the `options` parameter, you receive IDs and URLs to fetch: * **Website Analysis**: Domain registration details, site age, status, contact information discovered on the website * **Industry Prediction**: NAICS, MCC, and SIC codes with confidence scores and risk classifications * **Enhanced Search**: Comprehensive package including website analysis, industry prediction, social media profiles, online reviews, and additional addresses/officers discovered online. Send it together with `Order.WebsiteAnalysis` and `Order.NaicsPrediction`. For more on orderables, see [Online Presence: Best Practices](/docs/web-presence-orderables) . *** ## Key Product Concepts ### Search States Every Business Search progresses through a state lifecycle: * **PENDING**: Search submitted and queued for processing * **EXECUTING**: Search actively running against data sources * **COMPLETED**: Search finished successfully and found a business match * **FAILED**: Search could not complete due to insufficient input data or system errors, or could not find a business match * **CANCELLED**: Search was cancelled during execution ### Match Levels Match signals use consistent levels to indicate confidence: * **EXACT**: Perfect match between your input and official records * **SIMILAR**: Close match with minor differences (e.g., "Amce Corp" vs "Acme Corp") * **CITY**: Address matched to city but not exact address level * **STATE**: Address matched to state level but not to city * **NO_MATCH**: No match found Your verification logic should define which match levels are acceptable for your use case. Most customers require EXACT name with at least CITY address, or SIMILAR name with EXACT address. *** ## Performance & Coverage ### Latency Business Search is optimized for real-time verification workflows: * **p50 latency**: \~2-3 seconds (typical case) * **p99 latency**: \~5 seconds (standard searches) Latency varies based on: * Requested orderables (Website Analysis or Enhanced Searches can add 10-30 seconds) * IRS system status (system overload can add 1-2 seconds) ### Coverage Baselayer maintains comprehensive business data across all US jurisdictions: * **Active businesses**: 33+ million currently registered businesses * **Historical records**: 130+ million all-time business registrations * **State coverage**: All 50 states plus DC and Puerto Rico * **IRS TIN validation**: Real-time access to IRS e-Services (one of only a handful of providers with direct IRS integration) * **Update frequency**: Daily to weekly updates from state registries (varies by state) ### Data Freshness * **Secretary of State data**: Refreshed daily to weekly depending on state update schedules * **IRS validation**: Real-time API access (validates against current IRS records) * **Sanctions lists**: Updated within hours of official update publication Data freshness is a key Baselayer differentiator - legacy providers often work with quarterly or annual data snapshots, while Baselayer maintains near-real-time connectivity to authoritative sources. *** ## Integration Patterns Whether a request runs synchronously or asynchronously by default depends on your API key. See [Synchronous & Asynchronous Request Execution](/docs/synchronous-asynchronous-request-execution). ### Asynchronous Most customers use asynchronous Business Search with webhook notifications: 1. Submit search with `POST /searches` 2. Receive immediate response with `state: PENDING` and search ID 3. Listen for `BusinessSearch.completed` or `BusinessSearch.failed` webhook 4. Process final results when webhook arrives **Why async?** Allows your application to continue processing while Baselayer queries multiple data sources. Webhooks eliminate polling overhead and provide immediate notification when results are ready. See [Webhooks at Baselayer](/docs/webhooks-at-baselayer) for webhook setup guidance. ### Synchronous For testing or simple integrations, you can request synchronous responses: 1. Submit search with `Accept: application/vnd.osiris.sync+json` header 2. Wait for HTTP response (may take 3-5 seconds) 3. Receive complete results in the response body *** ### Batch Processing For bulk verification needs (e.g., backfilling existing customer base), use Batch Business Search: * Upload CSV with up to 40,000 searches at once * Download results when batch completes See [Business Search: Batch Searches](/docs/batch-search-how-to-run-bulk-searches-in-baselayer) for implementation details. *** ## Next Steps **Get Started with Implementation:** * [Business Search: API Quickstart](/docs/business-search) - Make your first API call in minutes * [Authentication](/docs/authentication) - Set up your API keys * [Sandbox vs. Production Environments](/docs/sandbox-vs-production-environments) - Understand testing environments **Build Verification Logic:** * [Business Search: Best Practices](/docs/business-search-1) - Recommended decision workflows and rules * [Scores & Ratings](/docs/baselayer-scores-ratings) - Deep dive on KYB and Risk scores * [Guide: IRS Outage Handling](/docs/webhook-guide-businesssearchupdated) - Manage TIN validation edge cases **Expand Your Workflow:** * [Online Presence: Best Practices](/docs/web-presence-orderables) - Add website and industry analysis * [Portfolio Monitoring](/docs/portfolio-monitoring) - Continuous monitoring after approval * [Sole Proprietorship Verification](/docs/sole-prop-verification) - Handle unregistered businesses **Need Help?** * Check [FAQs](https://support.baselayer.com) for common questions * Review the complete [API Reference](/api-reference) for detailed endpoint documentation * Contact your Baselayer account manager for implementation support # Business Structures Explained Source: https://docs.baselayer.com/docs/business-structures-explained Know how each type of business entity works, and what that means when you verify it. ## Why Business Structure Matters Business structure determines liability exposure, tax treatment, registration requirements, and verification complexity. Each structure carries different risk signals and requires tailored verification approaches. *** ### Sole Proprietorship An **unincorporated** business owned and operated by a single individual. Key characteristics: * **No separate legal entity** - the business and owner are legally the same * Often **not registered** with Secretary of State (except for DBAs/trade names) * Often uses the owner's **Social Security Number (SSN) as the Tax ID** instead of a separate EIN * No liability protection - owner is personally responsible for all debts * Common among freelancers, consultants, and very small businesses **Verification Challenge**: Since many sole proprietorships don't register with the state, traditional KYB methods (SoS lookups) won't find them. Alternative verification methods include TIN/EIN validation with the IRS and web presence analysis - review our [Sole Proprietorship Verification](/docs/sole-prop-verification) guide for more details. *** ### Partnerships **General Partnership (GP)** * Two or more owners who share profits and liabilities * No formal registration required in most states (though recommended) * Partners have unlimited personal liability **Limited Partnership (LP)** * Has both general partners (unlimited liability) and limited partners (liability limited to investment) * Must be registered with the state **Limited Liability Partnership (LLP)** * Common among professional services (law firms, accounting firms) * Partners have limited liability protection * Must be registered with the state **Limited Liability Limited Partnership (LLLP)** * Provides liability protection to both general and limited partners * Less common, available in select states *** ### Limited Liability Company (LLC) The **most popular business structure** for small to medium businesses: * Provides liability protection (owners' personal assets are separate) * Flexible tax treatment (can be taxed as sole proprietorship, partnership, or corporation) * Less formal than corporations (fewer compliance requirements) * Owners are called "members," managed by members or appointed managers * Must be registered with the state *** ### Corporations #### C Corporation (C Corp) * Separate legal entity with unlimited lifespan * Owners (called shareholders) have limited liability * Subject to corporate income tax (double taxation: corporate profits + shareholder dividends) * Can have unlimited shareholders * Common structure for larger businesses and those seeking investment * Must file articles of incorporation with the state to register *** #### S Corporation (S Corp) An S Corporation is a C Corporation that has elected special tax treatment with the IRS. It provides corporate liability protection while avoiding double taxation. S Corp status is a tax election, not a structural difference visible in SoS records. The business appears as a standard corporation in state registries. S Corp status is confirmed through IRS records, not Secretary of State data (although a select number of states report the distinction between S Corp and C Corp). **The optimal way to verify the S Corp election of a business is to request the 1120S form.** **Characteristics:** * Formed as a regular corporation with the state (articles of incorporation) * Files Form 2553 with the IRS to elect S Corp tax status * Business profits and losses "pass through" to shareholders' personal tax returns * Shareholders pay individual income tax on their share of profits (whether distributed or not) * No corporate-level income tax **Key restrictions:** * Limited to 100 shareholders, must be US citizens/residents * More restrictions than C Corps * Only one class of stock allowed (can't have preferred stock with different rights) * Shareholders must be individuals, estates, or certain trusts (not corporations or partnerships) * Certain businesses ineligible (financial institutions, insurance companies, international sales corps) *** #### B Corporation (B Corp or Benefit Corporation) * For-profit corporation with social/environmental mission * Directors are legally required to consider impact on stakeholders beyond shareholders * Available in select states with specific registration requirements *** ### Nonprofit Organizations Organizations that operate for public benefit rather than profit distribution: * 501(c)(3) and other IRS designations for tax-exempt status * Must register with state Secretary of State * Different compliance and reporting requirements * Governed by a board of directors rather than owners/shareholders *** ### Professional Entities **Professional Corporation (PC) / Professional Association (PA)** Structures specifically for licensed professionals - doctors, lawyers, dentists, accountants, architects. * Similar to standard corporations but with specific state requirements * Liability protection for business debts (but not for professional malpractice) * All shareholders must hold required professional licenses Requirements differ significantly by state and profession *** ### Trusts Legal arrangements where trustees hold assets for beneficiaries. Can own businesses or operate as business entities. * Complex registration and tax treatment varies by trust type * Multiple categories of trusts (revocable, irrevocable, business trusts, etc.) * Uncommon as primary operating business structure Trust structures can obscure beneficial ownership. They usually require additional documentation to identify controlling parties. *** ### Trade Names (DBAs - "Doing Business As") "Doing Business As" names are not business structures - they're registered names that allow entities to operate under names different from their legal name. They allow a business to operate under a name different from its legal name: * Example: "John Smith" (sole proprietor) might register "Smith's Consulting Services" as a DBA * Registered at state or county level depending on jurisdiction * Does not create a separate legal entity * Multiple businesses can use similar DBAs in different jurisdictions. *** ### Why Structure Matters for Verification **Registration requirements:** Some structures must register with SoS (LLCs, corporations), others don't (sole props, general partnerships). This determines which verification methods work. **Liability and risk profile:** Limited liability structures protect owners personally, affecting credit risk assessment. Unlimited liability structures tie business and personal finances together. **Age and sophistication signals:** Business structure often correlates with maturity and complexity. Brand new Delaware C Corps with no operations may signal different intent than established local LLCs. **Tax implications:** Structure affects how income is reported and taxed, which impacts financial analysis and document requirements during underwriting. # Business Verification Basics Source: https://docs.baselayer.com/docs/business-verification-basics Learn how US businesses are registered and taxed, what KYB checks, and which rules require it. This guide serves as an introduction to the most important concepts of business verification. We will cover: * KYC vs. KYB: Understanding the Distinction * How Businesses are Registered in the United States * Tax Identification Numbers (TINs) * Business Age and "Months in Business" * Business Verification vs. Credit Assessment * Regulatory Context and Compliance Requirements * Why Modern Business Verification Exists *** The **Key Concepts** section of our documentation includes other detailed entries that are also essential for achieving a fundamental understanding of KYB and the US business identity landscape. > [card] [Business Structures Explained](/docs/business-structures-explained) > > Understanding entity types and their risk implications. > [card] [Watchlists, Sanctions, and Compliance Screening](/docs/watchlists-sanctions-and-compliance-screening) > > Screening businesses and officers against prohibited lists. > [card] [Industry Classification Systems](/docs/industry-classification-systems) > > Categorizing businesses by NAICS, MCC, and SIC codes. > [card] [Online Presence & Website Analysis](/docs/online-presence-website-analysis) > > Analyze a business's digital footprint and credibility. > [card] [Address Verification](/docs/address-verification) > > Identifying high-risk locations and validating business addresses. > [card] [Officer Verification](/docs/officer-verification) > > Confirming individuals authorized to represent the business. > [card] [Liens, Judgments, and Public Records](/docs/liens-judgments-and-public-records) > > Assessing existing debt obligations and financial claims. > [card] [Litigation and Bankruptcy Records](/docs/litigation-and-bankruptcy-records) > > Identifying legal proceedings and financial distress signals. > [card] [The Baselayer Platform](/docs/the-baselayer-platform) > > Detecting fraud patterns and velocity risk across institutions. To verify businesses and their owners through a flow Baselayer hosts in your brand, see [Hosted Enrollment](/hosted-enrollment/overview). *** ### KYC vs. KYB: Understanding the Distinction #### Know Your Customer (KYC) KYC focuses on verifying individual identities. In the United States, this process is relatively straightforward because individuals exist at the federal level with consistent identifiers: * Social Security Number (SSN) serves as a universal identifier * A person's identity remains consistent across all states * Centralized databases (SSA, IRS) provide authoritative verification #### Know Your Business (KYB) KYB verifies business identities and assesses their legitimacy and risk. This process is significantly more complex in the US because: * **Businesses exist only at the state level** - there is no federal business registry * A business registered in California is fundamentally different from one registered in Delaware, even if they share the same name * Each of the 50 states maintains its own Secretary of State (SoS) database with different formats, update frequencies, and data quality standards * No single authoritative source exists for comprehensive business information This fragmentation creates the core challenge that modern business verification platforms address: aggregating and standardizing data from 50+ disconnected state registries, federal databases, and supplementary sources into a unified, actionable dataset. #### Global KYB Context While this guide focuses on US business verification, it's important to note that KYB is a global regulatory requirement. Financial institutions operating internationally must verify business entities in every jurisdiction they serve, each with its own: * Company registries (Companies House in the UK, company registrars in EU nations, etc.) * Business structures and legal frameworks * Regulatory requirements and compliance standards **Baselayer's focus**: While KYB is universally necessary, Baselayer's core expertise and differentiation lies in US business verification - solving the unique complexity of the 50-state US system with real-time data, AI-powered enrichment, and proprietary fraud intelligence networks. *** ### How Businesses are Registered in the United States #### The Secretary of State Registry System Every business entity in the US must register with at least one state's Secretary of State office. This registration establishes the legal existence of the business and provides: * **Legal business name** (as filed with the state) * **Business structure** (LLC, Corporation, Partnership, etc.) * **Registration date** (date of incorporation or formation) * **File number** (state's internal identifier) * **Registered agent**, officers, and business address * **Status** (active, inactive, or unknown - Baselayer normalizes each state's raw wording into these three values; the state's original wording is preserved in the `standing` field) #### Domestic vs. Foreign Registration * **Domestic Registration**: The state where the business was originally formed or incorporated. This is the business's "home state" and primary legal identity. * **Foreign Registration**: When a business wants to conduct business in states other than its home state, it must register as a "foreign entity" in those additional states. Despite the name, this has nothing to do with international operations - it simply means "foreign to that particular state." **Example**: A Delaware LLC that operates in California and New York would have: * One domestic registration (Delaware) * Two foreign registrations (California and New York) #### Update Frequency and Data Freshness State registries update at different cadences: * Some states provide real-time or daily updates * Others update weekly, monthly, or even less frequently * Data can be 6-12 months old in legacy commercial databases Modern verification platforms such as Baselayer establish direct pipelines to each state for maximum freshness, updating their database every day. *** ### Tax Identification Numbers (TINs) #### What is a TIN? A Tax Identification Number is issued by the IRS to identify taxpayers. For businesses, this is typically an Employer Identification Number (EIN). #### EIN (Employer Identification Number) * **Federal tax ID** for businesses * Nine-digit number (format: XX-XXXXXXX) * Required for corporations, partnerships, and most LLCs * Used for tax filing, banking, hiring employees #### When Businesses Use SSN Instead of EIN Sole proprietorships without employees may use the owner's Social Security Number rather than obtaining a separate EIN. This is legal but creates verification challenges since: * The business identity and owner identity are the same * Secretary of State registries typically don't track sole proprietorships * TIN verification becomes the primary method of confirming business legitimacy #### TIN Verification Modern business verification platforms can validate TINs in real-time with the IRS to confirm: * The TIN exists and is valid * The business name matches IRS records This real-time verification provides \~99.9% coverage compared to cached databases that may only cover 15-25% of businesses. *** ### Business Age and "Months in Business" The age of a business is a fundamental risk indicator used across underwriting models: **How it's calculated**: Time since the business's incorporation/formation date as recorded with the domestic Secretary of State. **Why it matters**: * Newer businesses (\<6 months) have higher risk profiles * Many fraud schemes use very recently incorporated entities * Age thresholds vary by product and risk tolerance (common thresholds: 6 months, 12 months, 24 months) *** ### Business Verification vs. Credit Assessment Business verification is the foundation of risk assessment - confirming identity, legitimacy, and detecting fraud signals. However, comprehensive credit underwriting typically requires multiple data sources working together. Here's how business verification fits into a complete underwriting stack: #### What Business Verification Covers * **Identity confirmation**: Does this business exist legally? * **Registration validation**: Is it in good standing with the state? * **Officer verification**: Are the claimed officers associated with the business? * **Basic risk signals**: Age, structure, watchlist hits, lien activity * **Digital presence**: Does the business appear legitimate online? * **Fraud indicators**: Is this entity flagged in fraud networks? #### Complementary Tools for Credit Underwriting For comprehensive underwriting, business verification is typically combined with: * **Credit bureau reports** (D\&B, Experian, Equifax Business) * **Bank account verification** (Plaid, Finicity) * **Document verification** (tax returns, bank statements) * **KYC for beneficial owners** (SSN verification, identity document checks) *** ### Regulatory Context and Compliance Requirements Business verification exists not just as a risk management best practice, but as a legal requirement for financial institutions under US federal law. Understanding these requirements helps frame why thorough KYB processes are essential. #### Customer Identification Program (CIP) **Legal basis**: Section 326 of the USA PATRIOT Act requires all financial institutions to implement a Customer Identification Program. **Core requirements**: * Verify the identity of customers opening accounts or establishing relationships * Obtain identifying information: legal business name, address, and Tax ID (EIN/TIN) * Verify this information using **reliable, independent sources** - typically Secretary of State registries, IRS validation, and other authoritative databases * Maintain records of verification methods and results * Compare customer information against government lists of known terrorists and criminals (OFAC screening) **Why this matters**: This is why business verification starts with confirming the business exists in Secretary of State records and validating the TIN with the IRS - these are the authoritative sources regulators expect. **Official resource**: [FinCEN CIP Rule (31 CFR 1020.220)](https://www.ecfr.gov/current/title-31/subtitle-B/chapter-X/part-1020/subpart-B/section-1020.220) #### Customer Due Diligence (CDD) Rule **Legal basis**: FinCEN's Customer Due Diligence Requirements (effective May 2018) go beyond basic identity verification. **The Four Core Requirements**: 1. **Identify and verify customer identity** (covered by CIP) 2. **Identify and verify beneficial owners** - individuals with 25%+ ownership or significant control (KYB alone isn't sufficient - you also need KYC on the beneficial owners) 3. **Understand the nature and purpose of the customer relationship** - business activities, expected volume, industry, risk profile 4. **Conduct ongoing monitoring** - continuous transaction monitoring, periodic information updates, status changes **Why this matters**: CDD rules are why business verification needs to go beyond "does this business exist?" to include officers, beneficial owners, digital presence analysis, and ongoing monitoring. **Official resource**: [FinCEN CDD Final Rule](https://www.federalregister.gov/documents/2016/05/11/2016-10567/customer-due-diligence-requirements-for-financial-institutions) #### Bank Secrecy Act (BSA) and Anti-Money Laundering (AML) **Legal basis**: The Bank Secrecy Act (1970) and subsequent amendments require financial institutions to assist government agencies in detecting and preventing money laundering. **Key AML Requirements**: * **Risk-based AML program** with policies, compliance officer, training and audits * **Sanctions screening** against OFAC SDN list at onboarding and periodically * **Suspicious Activity Reporting (SAR)** within 30 days of detecting potential money laundering or fraud * **Recordkeeping** for 5 years including customer identification and verification documentation **Why this matters**: This is why watchlist screening (OFAC, PEP lists) is non-negotiable, and why institutions need detailed documentation of their verification process. It also explains why fraud consortiums are valuable - they help identify suspicious patterns that might warrant SARs. **Official resources**: * [FinCEN BSA Overview](https://www.fincen.gov/resources/statutes-and-regulations/bank-secrecy-act) * [FFIEC BSA/AML Examination Manual](https://bsaaml.ffiec.gov/manual) #### Enhanced Due Diligence (EDD) For **higher-risk customers**, additional scrutiny is required: **When EDD is triggered**: * Politically Exposed Persons (PEPs) involved as beneficial owners * Businesses in high-risk industries (money services, gambling, cannabis, cryptocurrency) * Unusual ownership structures or red flags identified during standard CDD **EDD requirements**: More frequent monitoring, additional documentation, senior management approval, enhanced transaction monitoring. #### Why This Matters for Business Verification These regulations explain **why comprehensive business verification is mandatory**: 1. **CIP requires authoritative data sources** → Secretary of State registries, IRS TIN validation 2. **CDD requires understanding the business** → Industry classification, website analysis, business age 3. **CDD requires beneficial owner verification** → Officer/ownership data, online association research 4. **BSA/AML requires sanctions screening** → OFAC, PEP watchlists for business and all officers 5. **Ongoing monitoring is required** → Portfolio monitoring for status changes, liens, bankruptcies, fraud flags 6. **Documentation is required** → Structured data, audit trails, match quality scores Business verification isn't optional or a "nice to have" - it's a fundamental compliance requirement with real penalties for failure (fines, enforcement actions, loss of banking relationships). **Note**: This guide provides general information for context. Consult with your compliance and legal teams to ensure your specific implementation meets all applicable regulatory requirements for your institution type and jurisdiction. *** ### Why Modern Business Verification Exists Traditional business verification approaches have failed to keep pace with digital-first financial services: #### The Legacy Problem **Stale data**: Credit bureaus and legacy providers often have data that's 3-12 months old. A business can be dissolved, change ownership, or accumulate liens without this being reflected in cached databases. **Poor coverage**: Businesses under 3 years old, small businesses, and sole proprietorships often have thin or non-existent files in traditional databases. **Low match rates**: Exact name matching requirements lead to 50%+ manual review rates when businesses provide slight variations of their legal name. **No real-time IRS verification**: Cached EIN databases cover only 15-25% of businesses. Modern platforms verify directly with the IRS in real-time. **No fraud intelligence**: Traditional data vendors don't share fraud networks or application velocity signals. #### The Modern Solution Next-generation business verification platforms like Baselayer solve these problems through: * **Direct state pipeline access**: Real-time or near-real-time data from all 50 Secretary of State registries * **Real-time IRS integration**: Live TIN verification with \~99% coverage * **AI-powered enrichment**: Finding websites, predicting industries, matching officers using web intelligence * **Network intelligence**: Identity networks and fraud consortiums that detect patterns across institutions * **Comprehensive coverage**: Handling both registered entities and sole proprietorships through multiple verification methods * **Modern API architecture**: Webhook-based async responses, sub-5-second P99 latency, developer-friendly integration # ChatGPT Source: https://docs.baselayer.com/docs/chatgpt Connect Baselayer to ChatGPT and run business verification from a chat. You sign in with your Baselayer account, so you don't need an API key. > [!NOTE] > > You need a Baselayer account with an active plan. If you do not have one, the sign-in page links to [self-serve sign-up](https://console.baselayer.com/signup). > > Custom connectors in ChatGPT require Developer mode, which is available on Plus, Pro, Business, Enterprise, and Edu plans. Turn it on in ChatGPT's settings **before** you add the connector. > > On Business, Enterprise, and Edu workspaces an admin must enable connectors for members. | Setting | Value | | - | - | | **Server URL** | `https://api.baselayer.com/mcp` | | **Authentication** | OAuth (sign in with your Baselayer account) | ## ChatGPT Desktop & Web ### Entry point > [!WARNING] > > Make sure Developer mode is on before you continue. * ChatGPT web ([chatgpt.com](https://chatgpt.com)): open **Plugins** from the left sidebar, then click **+ New Plugin**. * ChatGPT Desktop: you can't create or configure MCP plugins here. Set up the Baselayer plugin on the web, and it then works in the desktop app too. ### Add Baselayer as a connector 1. Open **Plugins** from the left sidebar, then click **+ New Plugin**. Don't use the "Connect to a custom MCP" quick-add form on the separate MCPs tab. It only supports Bearer-token or header authentication and has no OAuth fields, so it won't work for this integration. 2. Fill in the form: | Field | Value | | - | - | | Name | Baselayer | | Description | Search and verify businesses with Baselayer | | Connection | Server URL | | | `https://api.baselayer.com/mcp` | | Authentication | OAuth | 3. Expand **Advanced OAuth settings**. 4. Under **Registration method**, select **User-Defined OAuth Client**. 5. Enter the following values: | Field | Value | | - | - | | OAuth Client ID | chatgpt-connector | | OAuth Client Secret | (leave empty) | | Token endpoint auth method | none | 6. Leave the remaining advanced OAuth settings unchanged. 7. Check **I understand and want to continue**. 8. Click **Create**. 9. In the popup, click **Sign in with Baselayer**. 10. Sign in with your Baselayer credentials. If you do not have an account, use the **Sign up** link on that page. 11. Click **Allow** on the consent screen ("Search and verify businesses with Baselayer on your behalf"). The browser returns you to the Baselayer plugin's detail page, showing it connected with its tools listed. Click **Try in chat** to start a new conversation with Baselayer enabled and try it with one of the **Example prompts** below. ### Remove Baselayer as a connector To sign out without deleting your configuration, open **Plugins**, find **Baselayer**, click the **'⋯'** menu, and choose **Disconnect**. This revokes your session but keeps the connector's configuration. To remove the connector entirely (required before you can change the Registration method or other stored OAuth settings), use the same **'⋯'** menu and choose **Manage** instead. This opens the plugin's settings page. Click the **'⋯'** menu there and choose **Delete**. ## Codex CLI Codex CLI is not supported. It registers with the identity provider in a way Baselayer's provider does not accept. For terminal workflows, use [Claude Code](/docs/claude#claude-code). ## Example prompts * "Verify Acme Holdings LLC at 500 Main St, Austin TX 78701 and tell me whether the EIN 12-3456789 matches." * "Run a full KYB on Acme Holdings LLC with website analysis and industry classification, then summarize the risk signals." * "Screen Jane Doe against OFAC and PEP." * "Check for UCC filings, tax liens, litigation, and bankruptcies against Acme Holdings LLC in Texas." * "Find Ray's Famous Pizza's website and social profiles and summarize what customers say in reviews." ChatGPT chooses the right tool from the [tool list](/docs/mcp-tools). Tools that start paid work, such as a new search, ask for your confirmation before running unless you approve them for the conversation; read tools run without a prompt. ## Organization and application ChatGPT does not let you attach headers to a connector, so tool calls always run in your default organization's production application. If you belong to several organizations, or want sandbox data, use [Claude Code](/docs/claude#claude-code) or the REST API instead. ## Troubleshooting If you see "Your admin has not enabled developer mode" and the Developer mode toggle is greyed out, your ChatGPT workspace is on Business, Enterprise, or Edu, and a workspace admin has not turned on Developer mode for members yet. You cannot enable this yourself. Ask your workspace admin to turn it on, then return to Settings → Security and login. If you get "Client not found" or a login error after entering the URL, the OAuth Client ID was mistyped, or something was entered in the Client Secret field. That field must stay empty. Re-enter Client ID `chatgpt-connector` exactly and leave Client Secret blank. If the Baselayer sign-in page says "We are sorry... Client Metadata fetch failed", go back and check that the Connection URL and Authentication method from step 2 are correct. Then open the plugin's Advanced OAuth settings and set Registration method to User-Defined OAuth Client with Client ID chatgpt-connector, secret blank, and Token endpoint auth method none, as described above. If sign-in completes but the connector shows an error, your account must belong to an organization with at least one enabled application. Sign in to the [Console](https://console.baselayer.com) to confirm, then reconnect. If a tool returns "Caller lacks the required permission", your role does not include that product. The [permissions table](/docs/mcp-tools#permissions) names the permission each tool needs; an organization admin can grant it in the Console under Members. For anything else, email [support@baselayer.com](mailto:support@baselayer.com). # Claude Source: https://docs.baselayer.com/docs/claude Connect Baselayer to Claude web, Desktop or Code, and run business verification from a chat. The same server works in Claude web, Claude Desktop, and Claude Code. In every case you sign in with your Baselayer account, so nothing here requires an API key. > [!NOTE] > > You need a Baselayer account with an active plan. If you do not have one, the sign-in page links to [self-serve sign-up](https://console.baselayer.com/signup). > > Custom connectors in Claude web and Desktop are available on all plans. On Team and Enterprise, only an organization Owner can add one, after which each member connects with their own Baselayer login. | Setting | Value | | - | - | | **Server URL** | `https://api.baselayer.com/mcp` | | **Authentication** | OAuth (sign in with your Baselayer account) | ## Claude Desktop & Web ### Entry point * Claude Desktop: click the **Connectors** icon in the left rail (the four-squares icon). The Connectors page opens on the **Discover** tab. * Claude web (claude.ai): * Free, Pro, and Max plans: open **Customize**, then **Connectors**, click **+**, and choose **Add custom connector**. * Team and Enterprise plans: an organization Owner opens **Organization settings**, then **Connectors**, clicks **Add**, and chooses **Custom**, then **Web**. Once added, each member opens the connector and clicks **Connect** to sign in with their own Baselayer login. ### Add Baselayer as a connector 1. Click **Add** in the top right. The **Add custom connector** dialog opens. 2. Enter **Baselayer** as the name and `https://api.baselayer.com/mcp` as the remote MCP server URL. 3. Under **Authentication**, select **Always required**. Every Baselayer tool needs a signed-in user. Do not pick "Required when the server asks" or "None". 4) Under **OAuth client**, select **Use your own OAuth client**. Enter the following values: | Field | Value | | - | - | | **OAuth Client ID** | `claude-connector` | | **OAuth Client Secret (optional)** | (leave empty) | The client ID is public and identical for every user. It carries no secret and grants nothing by itself; every tool call still runs as the person who signed in. > [!WARNING] > > Pick "Use your own OAuth client", not the recommended option. In Claude Desktop and Claude web, the default OAuth client option ("Use Anthropic's hosted client metadata") is not yet supported by Baselayer. Connect with Baselayer's pre-registered client ID, `claude-connector`, as described above. Claude Code is unaffected. 5. Leave **Managed authorization** off. (**Optional**) By default, tool calls run in your default organization's production application. To use a different organization, a sandbox application, or a federation instead, expand **Additional request headers** and click **Add header** for each one below, using the IDs from the Baselayer Console: | Header | Value | | - | - | | `X-Organization-ID` | the organization UUID | | `X-Application-ID` | the application UUID (e.g., sandbox application) | | `X-Federation-ID` | the federation UUID | Header values are stored by Claude and sent on every request alongside your OAuth token. They are not shown again after you save, so to change them remove the connector and add it again. A sandbox application returns the same deterministic test data the sandbox REST API does, and does not bill your account. See [Sandbox vs. production environments](/docs/sandbox-vs-production-environments). Otherwise, leave **Additional request headers** empty and continue. 6. Click **Add**. Claude opens the Baselayer connector page, which reads "You are not connected to Baselayer yet". 7. Click **Connect**. Your browser opens the Baselayer sign-in page at id.baselayer.com. 8. Sign in with your Baselayer credentials. If you do not have an account, use the **Sign up** link on that page. 9. On the consent screen, review the access being granted ("Search and verify businesses with Baselayer on your behalf") and click **Allow**. 10. The browser returns you to Claude, and the connector page shows Baselayer as connected with its tools listed. In a chat, click the **+** button, choose **Connectors**, and make sure Baselayer is toggled on. Then try one of the **Example prompts** below. ### Remove Baselayer as a connector To sign out without deleting your configuration, open the Baselayer connector page from **Connectors** and click **Disconnect**. This revokes your session. To remove the connector entirely (required before you can change stored header values or switch OAuth client options), open the Baselayer connector page from **Connectors**, click the **⋮** menu, and choose **Remove**. ## Claude Code ### Add Baselayer as a connector 1. Add the server from a terminal. Use `--scope user` to make it available in every project, or omit it to register it for the current project only. ```bash theme={null} claude mcp add --transport http --scope user baselayer https://api.baselayer.com/mcp ``` (**Optional**) By default, tool calls run in your default organization's production application. To use a different organization, a sandbox application, or a federation instead, add the same headers as extra `--header` flags, using the IDs from the Baselayer Console: ```bash theme={null} claude mcp add --transport http --scope user baselayer https://api.baselayer.com/mcp \ --header "X-Organization-ID: " \ --header "X-Application-ID: " ``` 2. Start Claude Code, run `/mcp`, select **baselayer**, and choose **Authenticate**. A browser window opens for you to sign in and approve access. 3. Once it returns, `/mcp` shows the server as connected and lists its tools. 4. To confirm Baselayer is registered and connected, run: ```bash theme={null} claude mcp list ``` ### Working across profiles Servers registered with `--scope user` belong to the Claude Code configuration directory they were added under. If you use several profiles via `CLAUDE_CONFIG_DIR`, register Baselayer in each one you want it in. ### Remove Baselayer as a connector ```bash theme={null} claude mcp remove baselayer ``` ## Example prompts * "Verify Acme Holdings LLC at 500 Main St, Austin TX 78701 and tell me whether the EIN 12-3456789 matches." * "Run a full KYB on Acme Holdings LLC with website analysis and industry classification, then summarize the risk signals." * "Screen Jane Doe against OFAC and PEP." * "Check for UCC filings, tax liens, litigation, and bankruptcies against Acme Holdings LLC in Texas." * "Find Ray's Famous Pizza's website and social profiles and summarize what customers say in reviews." Claude picks the right tool from the [tool list](/docs/mcp-tools) and polls for results when a product runs asynchronously, so you do not need to name tools yourself. ## Troubleshooting If the Baselayer sign-in page says "We are sorry... invalid request", the connector was added with "Use Anthropic's hosted client metadata" or with "No client ID, register one automatically". Remove it and add it again with **Use your own OAuth client** and the `claude-connector` client ID, as described above. If sign-in completes but the connector shows an error, your account must belong to an organization with at least one enabled application. Sign in to the [Console](https://console.baselayer.com) to confirm, then reconnect. If a tool returns "Caller lacks the required permission", your role does not include that product. The [permissions table](/docs/mcp-tools#permissions) names the permission each tool needs; an organization admin can grant it in the Console under Members. If Claude Code's `/mcp` says the server is not found, check `claude mcp list` in the same profile you are running Claude Code from. A server added under one `CLAUDE_CONFIG_DIR` is not visible to another. If results come from the wrong organization, or from production instead of sandbox, check the request headers on the connector. Claude does not show saved header values, so remove the connector and add it again with the right IDs. For anything else, email [support@baselayer.com](mailto:support@baselayer.com). # Consumer Checks: API Quickstart Source: https://docs.baselayer.com/docs/consumer-checks-api-quickstart Run a Person Search or a standalone check by API, read the results, and add the person to monitoring. This guide explains how to use the Baselayer API to: 1. Create a Person Search with multiple verification options 2. Poll for completion or listen for webhook events 3. Interpret the person verification results 4. Run standalone checks (OFAC, PEP, TIN, SCRA, MLA) 5. Add an individual to Portfolio Monitoring For background on person verification concepts, check types, and when to use each approach, see [Consumer Checks: Basics](/docs/consumer-checks-basics). *** ### Overview #### High-Level Flow 1. **Submit a Person Search** `POST /person_searches` 2. **Wait for completion** (poll or webhook) `GET /person_searches/{id}/status` or listen for `PersonSearch.completed` 3. **Retrieve results** `GET /person_searches/{id}` 4. **Optionally: add to portfolio monitoring** `POST /portfolio/items` with `person_search_id` *** ### Base URL & Authentication #### Base URL Use the appropriate base URL in your integration:`https://api.baselayer.com` In the examples below, we refer to this as: ```text theme={null} {{baseUrl}} ``` #### Authentication All requests are authenticated using an API key via the `X-API-Key` header: ```http theme={null} X-API-Key: {{apiKey}} ``` *** ### Step 1: Create a Person Search Use the **Person Search** endpoint to submit a new individual for verification. #### Endpoint ```http theme={null} POST /person_searches Content-Type: application/json ``` #### Request Body Example ```json theme={null} { "first_name": "John", "last_name": "Doe", "ssn": "123456789", "middle_name": "Michael", "date_of_birth": "1985-06-15", "gender": "M", "address": "123 Main St, Anytown, CA 12345", "phone_number": "+14013059855", "email": "john.doe@example.com", "options": [ "Order.Ofac", "Order.Pep", "Order.TinMatching", "Order.Liens", "Order.Litigations", "Order.Bankruptcy" ] } ``` #### Required Fields * `first_name` → first name of the person (2–255 characters) * `last_name` → last name of the person (2–255 characters) * `ssn` → Social Security Number, either full 9-digit (`"123456789"`) or last 4 (`"6789"`) * `options` → at least one option from the available checks #### Optional Fields * `middle_name` → middle name or initial * `suffix` → e.g., "Jr.", "Sr." * `title` → e.g., "Mr.", "Mrs." * `date_of_birth` → date of birth (format: `"1990-01-15"`; required for MLA checks) * `gender` → `"M"` or `"F"` * `marital_status` → e.g., `"married"`, `"single"`, `"divorced"` * `address` → the individual's address; the state is used to scope lien searches if `Order.Liens` is selected * `phone_number` → E.164 format (e.g., `"+14013059855"`) * `email` → email address > **Recommendation:** Submit as much information as available. Optional fields build richer person profiles in Baselayer and enable stronger matching over time. #### Available Options * `Order.Ofac` → OFAC sanctions screening * `Order.Pep` → Politically Exposed Persons screening * `Order.TinMatching` → IRS TIN verification * `Order.Liens` → Personal lien records * `Order.Litigations` → Litigation and docket records * `Order.Bankruptcy` → Personal bankruptcy records * `Order.Scra` → Servicemembers Civil Relief Act status (requires full 9-digit SSN) * `Order.Mla` → Military Lending Act coverage (requires full 9-digit SSN and `date_of_birth`) > **Note:** If the required inputs for `Order.Scra` or `Order.Mla` are not included in the request, those checks will not run. Ensure your payload includes full SSN and, for MLA, date of birth before selecting these options. #### Sample Response ```json theme={null} { "id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890", "state": "PENDING", "created_at": "2025-12-11T01:36:29.945076", "updated_at": null, "tin_matched": null, "person": { "id": "36e43bc6-c809-4fa4-958d-f09ff40b8156", "first_name": "John", "last_name": "Doe", "ssn": "XXXXX6789", "middle_name": "Michael", "date_of_birth": "1985-06-15", "gender": "M", "phone_number": "+14013059855", "email": "john.doe@example.com", "dockets": [], "liens": [], "watchlist_hits": [] }, "error": null, "warnings": [] } ``` #### Key Fields to Capture * `id` — the **person search id** (used for polling, retrieval, and portfolio monitoring) * `person.id` — the **person id** (persists across searches for the same individual) * `state` — `PENDING` at creation, `EXECUTING` while processing, then `COMPLETED` or `FAILED` (or `CANCELLED` if the request is cancelled before finishing) * `tin_matched` — `null` while pending, `true`/`false` once TIN verification completes (only present when `Order.TinMatching` is requested) *** ### Step 2: Wait for Completion Person Searches are asynchronous by default - please review our [Synchronous & Asynchronous Request Execution](/docs/synchronous-asynchronous-request-execution) guide for further details. You have two options for determining when results are ready: **polling** or **webhooks**. #### Option A: Polling Use the status endpoint to check search progress. ```http theme={null} GET /person_searches/{id}/status ``` ##### Sample Response (completed) ```json theme={null} { "id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890", "state": "COMPLETED", "error": null, "warnings": [], "person": { "id": "36e43bc6-c809-4fa4-958d-f09ff40b8156", "first_name": "John", "last_name": "Doe", "ssn": "XXXXX6789" } } ``` Poll until `state` is `COMPLETED` or `FAILED`. A reasonable polling interval is every 2–5 seconds. #### Option B: Webhooks Baselayer emits webhook events at each stage of the Person Search lifecycle. Configure your webhook endpoint in the Console under Settings → Webhooks. **`PersonSearch.submitted`** Emitted immediately when the search is created. Confirms receipt of the request. **`PersonSearch.completed`** Emitted when all requested checks have finished. The webhook payload includes the full `person` object with all results (dockets, liens, watchlist hits). **`PersonSearch.failed`** Emitted if the search could not be completed. The `error` field will describe the failure reason. **`PersonSearch.updated`** Emitted if a result changes later, for example when an IRS outage clears and `tin_matched` is filled in. ##### Webhook Payload Structure All Person Search webhook events share the same structure: ```json theme={null} { "__event__": { "type": "PersonSearch.completed", "origin": "api" }, "id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890", "state": "COMPLETED", "created_at": "2025-12-11T01:36:29.945076", "updated_at": "2025-12-11T01:36:35.123456", "person": { "id": "36e43bc6-c809-4fa4-958d-f09ff40b8156", "first_name": "John", "last_name": "Doe", "ssn": "XXXXX6789", "dockets": [...], "liens": [...], "watchlist_hits": [...] }, "error": null, "warnings": [] } ``` > **Tip:** Webhooks are the recommended approach for production integrations. They eliminate polling overhead and deliver results as soon as they are available. *** ### Step 3: Retrieve Full Results Once the search is complete, retrieve the full person record with all verification results. #### Endpoint ```http theme={null} GET /person_searches/{id} ``` #### Sample Response (completed with results) ```json theme={null} { "id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890", "state": "COMPLETED", "created_at": "2025-12-11T01:36:29.945076", "updated_at": "2025-12-11T01:36:35.123456", "tin_matched": true, "person": { "id": "36e43bc6-c809-4fa4-958d-f09ff40b8156", "first_name": "John", "last_name": "Doe", "ssn": "XXXXX6789", "middle_name": "Michael", "suffix": null, "title": null, "date_of_birth": "1985-06-15", "gender": "M", "marital_status": null, "phone_number": "+14013059855", "email": "john.doe@example.com", "created_at": "2025-12-11T01:36:29.000000Z", "updated_at": "2025-12-11T01:36:35.000000Z", "dockets": [ { "docket_number": "2024-CV-12345", "title": "Smith v. Doe", "risk_level": "medium", "match_level": "EXACT", "court": "Superior Court of California", "state": "CA", "date_filed": "2024-03-15" } ], "liens": [ { "filing_type": "consensual.ucc", "state": "CA", "filing_date": "2023-06-20", "status": "Active" } ], "watchlist_hits": [] }, "error": null, "warnings": [] } ``` #### Interpreting Key Result Fields **`tin_matched`**: IRS confirmation that the SSN is valid and belongs to the input name. `true` = confirmed, `false` = mismatch, `null` = pending (likely IRS outage). **`dockets`** — litigation and bankruptcy records. Use `risk_level` (high/medium/low) and `match_level` (EXACT/SIMILAR) to assess severity and relevance. For detailed evaluation guidance, see [Litigation & Bankruptcy Search: Best Practices](/docs/litigation-bankruptcy-search-best-practices). **`liens`** — personal lien filings including tax liens, judgment liens, and UCC filings. Review `status` to determine whether liens are active or released. For detailed evaluation guidance, see [Lien Search: Best Practices](/docs/lien-searching-best-practices). **`watchlist_hits`** — matches against OFAC and PEP lists. Any positive match should be treated as a high-priority review item. *** ### Step 4: Standalone Checks (Optional) For lightweight, targeted verifications, use the standalone endpoints. These do not require creating a Person Search and return results directly. #### TIN Verification Verify an individual's SSN against IRS records. ```http theme={null} POST /tin_verifications Content-Type: application/json ``` ```json theme={null} { "name": "John Doe", "tin": "123456789" } ``` > **Note:** An error will be raised if the IRS validation service is experiencing an outage. Check [status.baselayer.com](https://status.baselayer.com) for service updates. #### OFAC Screening Search for OFAC matches by name. ```http theme={null} POST /ofac/searches Content-Type: application/json ``` ```json theme={null} { "name": "John Doe", "similarity_threshold": 0.9, "limit": 5 } ``` * `similarity_threshold` → controls match sensitivity (0.0 to 1.0, default 0.9). Lower values return more potential matches; higher values return only close matches. * `limit` → number of results to return (default 1, max 50) #### PEP Screening Search for Politically Exposed Persons matches by name. ```http theme={null} POST /pep/searches Content-Type: application/json ``` ```json theme={null} { "name": "John Doe", "similarity_threshold": 0.9, "limit": 5 } ``` * `similarity_threshold` → controls match sensitivity (0.0 to 1.0, default 0.9). Lower values return more potential matches; higher values return only close matches. * `limit` → number of results to return (default 1, max 50) #### SCRA Status Check Servicemembers Civil Relief Act coverage. Requires **full 9-digit SSN** and evaluates coverage as of the specified `date_of_interest`. ```http theme={null} POST /scra/searches Content-Type: application/json ``` ```json theme={null} { "first_name": "John", "last_name": "Doe", "ssn": "123456789", "birth_date": "1985-06-15", "date_of_interest": "2025-12-11" } ``` #### MLA Coverage Check Military Lending Act covered borrower status. Requires **full 9-digit SSN and `birth_date`**. ```http theme={null} POST /mla/searches Content-Type: application/json ``` ```json theme={null} { "first_name": "John", "last_name": "Doe", "ssn": "123456789", "birth_date": "1985-06-15" } ``` *** ### Step 5: Add Individual to Portfolio Monitoring After completing a Person Search, you can add the individual to your monitored portfolio for ongoing surveillance. #### Endpoint ```http theme={null} POST /portfolio/items Content-Type: application/json ``` #### Request Body ```json theme={null} { "person_search_id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890", "group_id": "optional-group-uuid" } ``` > **Note:** `person_search_id` should be the `id` field from the Person Search response (Step 1). The `group_id` is optional and allows you to organize individuals into portfolio groups. Once added, Baselayer monitors the individual on the same frequency and policy structure used for business items. Changes to watchlists, liens, litigations, and other monitored attributes will appear in your portfolio updates and notifications. For comprehensive guidance on portfolio monitoring configuration, see [Portfolio Monitoring: Basics](/docs/portfolio-monitoring). *** ### End-to-End Flow Summary A typical integration to verify and monitor an individual with Baselayer looks like this: 1. **Submit the Person Search** * Call `POST /person_searches` with identity details and desired `options`. * Store the returned `id` (person search id) and `person.id`. 2. **Wait for completion** * Poll `GET /person_searches/{id}/status` until `state` is `COMPLETED` or `FAILED`. * Or listen for the `PersonSearch.completed` webhook. 3. **Review results** * Retrieve full results via `GET /person_searches/{id}`. * Evaluate `dockets`, `liens`, and `watchlist_hits` against your risk policy. 4. **Add to portfolio monitoring** (optional) * Call `POST /portfolio/items` with `person_search_id` from step 1. * Assign to a portfolio group if applicable. 5. **Receive ongoing updates** * Portfolio monitoring detects changes at your configured frequency. * Review updates in the Console or via `GET /portfolio/updates`. This flow ensures that the individuals behind every business in your portfolio are verified at onboarding and continuously monitored for changes. # Consumer Checks: Basics Source: https://docs.baselayer.com/docs/consumer-checks-basics Know which checks you can run on owners, officers and guarantors, and when to use Person Search or a standalone check. ## Verifying the People Behind the Business ### Why Consumer Checks Matter in KYB Business verification confirms that a company is real, registered, and operating as expected. But every business is ultimately run by people — and understanding those individuals is a critical layer of any complete onboarding or underwriting workflow. Whether you need to screen a guarantor against sanctions lists, verify the SSN of a sole proprietor, check an applicant's litigation history, or confirm a UBO is not a Politically Exposed Person, Baselayer's consumer check tools let you perform these verifications within the same platform you use for KYB. *** ### Two Approaches to Consumer Verification Baselayer offers two paths for verifying individuals, depending on the depth and structure your workflow requires. *** #### 1. Person Search (comprehensive, structured) The **Person Search** creates a persistent person record in Baselayer and runs one or more checks against it. This is the recommended approach when you need to verify the same individual across multiple dimensions (e.g., sanctions, liens, and litigations together) or when you intend to monitor that person over time via **Portfolio Monitoring**. A Person Search requires a name and SSN as inputs, and an `options` array that specifies which checks to run. The response returns a structured `person` object containing all results — dockets, liens, watchlist hits, etc. — in a single payload. **Required fields:** * `first_name` → legal first name * `last_name` → legal last name * `ssn` → full 9-digit SSN or last 4 digits * `options` → at least one check from the list below **Optional fields:** * `middle_name` → middle name or initial * `suffix` → e.g., "Jr.", "Sr." * `title` → e.g., "Mr.", "Mrs." * `date_of_birth` → date of birth (required for MLA checks) * `gender` → M or F * `marital_status` → e.g., married, single, divorced * `address` → the individual's address; the state will be used to scope lien searches if Order.Liens is selected * `phone_number` → E.164 format (e.g., "+14013059855") * `email` → email address > **Recommendation:** Submit as much information as available on the individual. Optional fields do not affect the core check quality, but they build richer person profiles within Baselayer — enabling stronger matching, more complete records, and better monitoring over time. **Available options:** * `Order.Ofac` → OFAC sanctions screening * `Order.Pep` → Politically Exposed Persons screening * `Order.TinMatching` → IRS TIN verification for the individual's SSN * `Order.Liens` → Personal lien filings * `Order.Litigations` → Personal litigation and docket records * `Order.Bankruptcy` → Personal bankruptcy records * `Order.Scra` → Servicemembers Civil Relief Act status (requires full 9-digit SSN) * `Order.Mla` → Military Lending Act coverage status (requires full 9-digit SSN and `date_of_birth`) > **Note:** If the required inputs for `Order.Scra` or `Order.Mla` are not included in the Person Search request, those checks will not run. **Baselayer Endpoints:** ``` POST /person_searches GET /person_searches/{id} GET /person_searches/{id}/status GET /person_searches ``` Complete API details: [Create Person Search](/api-reference/person-search/create-person-search) *** #### 2. Standalone Endpoints (lightweight, targeted) For cases where you need a single, specific check without creating a full person record, Baselayer offers independent verification endpoints. These are useful when you want to run a quick screening before committing to a full Person Search, or when your workflow only requires one type of check. **TIN Verification** Verify an individual's SSN against IRS records by name. Useful for sole proprietor verification or confirming the identity of a guarantor or UBO. ``` POST /tin_verifications ``` > **Note:** An error will be raised if the IRS validation service is experiencing an outage. Check [status.baselayer.com](https://status.baselayer.com) for service updates, and our [Guide: IRS Outage Handling](/docs/webhook-guide-businesssearchupdated) for complete details. Complete API details: [Submit TIN Verification](/api-reference/tin-verification/submit-tin-verification) **OFAC Screening** Search for matches on the OFAC Specially Designated Nationals list by name. ``` POST /ofac/searches ``` Complete API details: [Search OFAC](/api-reference/ofac/search-ofac) **PEP Screening** Search for Politically Exposed Persons matches by name. ``` POST /pep/searches ``` Complete API details: [Search PEP](/api-reference/pep/search-pep) **SCRA Status** Check whether an individual is covered under the Servicemembers Civil Relief Act, which affects loan terms and enforcement actions. ``` POST /scra/searches ``` Complete API details: [SCRA Search](/api-reference/scra-&-mla/scra-search) **MLA Coverage** Check whether an individual is a covered borrower under the Military Lending Act. ``` POST /mla/searches ``` Complete API details: [MLA Search](/api-reference/scra-&-mla/mla-search) *** ### When to Use Each Approach **Use Person Search when:** * You need to run multiple checks on the same individual * You want a persistent person record for audit and retrieval * You plan to monitor the individual over time via Portfolio Monitoring * You are verifying applicants, UBOs, or guarantors as part of a structured onboarding flow **Use standalone endpoints when:** * You only need one specific check (e.g., OFAC-only screening) * You want a lightweight pre-screening before a full Person Search * You are building a workflow where checks are triggered independently at different stages * Cost efficiency matters and you don't need the full Person Search record *** ## Integrating Consumer Checks into Business Onboarding The most common pattern for using consumer checks is alongside the business verification process. As you submit a Business Search during onboarding, you should also submit a Person Search for each individual included in the application. Typical individuals to verify: * **The person applying** — the primary contact or business owner submitting the application * **Ultimate Beneficial Owners (UBOs)** — individuals who own or control 25% or more of the business * **Guarantors** — personal guarantors on a loan or credit facility * **Authorized signers** — individuals with signatory authority on business accounts This parallel approach ensures that both the business entity and the people behind it are verified in a single onboarding workflow, reducing time-to-decision and eliminating the need for separate verification steps later. *** ## Person Search: Understanding the Response The Person Search response contains two distinct layers of information: the **search envelope** (status, IDs, TIN results) and the **person object** (the individual's profile and all check results). *** ### Search-Level Fields These fields sit at the top level of the response and describe the search itself: * `id` → the **person search id**. This is the identifier you will use to poll for status, retrieve results, and add the individual to Portfolio Monitoring. Persist this value alongside your application record. * `state` → tracks the lifecycle of the search: `PENDING` → `EXECUTING` → `COMPLETED` or `FAILED` (a request can also end as `CANCELLED`) * `error` → populated if the search could not be completed * `warnings` → informational messages (e.g., `"IRS Validation is unavailable."` during an IRS outage) #### TIN Matching (if `Order.TinMatching` was requested) When TIN matching is included in the search options, the response includes: * `tin_matched`: true / false / null\ IRS confirmation that the SSN is valid and belongs to the input name. `null` may indicate an IRS outage (see IRS outage handling below). These fields mirror the same TIN verification behavior available in the Business Search. For more detail on IRS outage handling, see the [Guide: IRS Outage Handling](/docs/webhook-guide-businesssearchupdated). *** ### The Person Object The `person` object contains the individual's profile and the results of all requested checks: #### Identity & Profile * `person.id` → the unique identifier of the **person record** itself. This persists across multiple searches for the same individual. * `first_name`, `last_name`, `ssn` (masked to the last four digits) → core identity fields * `middle_name`, `suffix`, `title`, `date_of_birth`, `gender`, `marital_status` → additional profile details, populated when provided in the request * `phone_number`, `email` → contact information stored with the person record **Our recommendation:** Submit as much information as available on the individual — including phone number, email, date of birth, gender, and address. These fields build richer person profiles within Baselayer, enabling stronger matching and more complete records over time. #### Watchlist Hits (if `Order.Ofac` or `Order.Pep` was requested) The `watchlist_hits` array contains matches against OFAC and PEP lists. Any positive match should be treated as a high-priority review item. For more detail on evaluating watchlist hits, see the [Watchlists & Sanctions: Business Search](/docs/watchlists-sanctions-basics) guide — the same evaluation principles apply to both business and individual hits. #### Dockets (if `Order.Litigations` was requested) The `dockets` array contains litigation and bankruptcy records associated with the individual. Each docket includes `risk_level` and `match_confidence` to help assess severity and relevance. For more detail on interpreting docket results, see [Litigation & Bankruptcy Search: Best Practices](/docs/litigation-bankruptcy-search-best-practices). #### Liens (if `Order.Liens` was requested) The `liens` array contains personal lien filings, including tax liens, judgment liens, and UCC filings tied to the individual. > **Note:** If you include `address` in your Person Search request, the state from that address will be used to scope the lien search. This is important for controlling lien search coverage and relevance. For more detail on lien interpretation and filing strategies, see [Lien Search: Best Practices](/docs/lien-searching-best-practices). *** ## Monitoring Individuals with Portfolio Monitoring Portfolio Monitoring is not limited to businesses. You can also add individuals to your monitored portfolio using a completed Person Search, enabling ongoing surveillance of the people behind the businesses you serve. ### How It Works When creating a Portfolio Item, you can pass a `person_search_id` instead of a `business_search_id`. This creates a portfolio item linked to an individual, which Baselayer will monitor on the same frequency and policy structure used for business items. ``` POST /portfolio/items { "person_search_id": "uuid" } ``` This is particularly valuable for: * **Sole proprietors** — where the individual and the business are effectively the same entity * **Guarantors on active loans** — monitoring for new liens, litigations, or sanctions that affect credit exposure * **High-risk UBOs** — ongoing surveillance of individuals flagged during onboarding The monitoring follows the same inheritance model as business monitoring: Portfolio → Group → Item. You can organize individuals into dedicated groups (e.g., "Guarantors" or "High-Risk UBOs") with their own monitoring policies and notification subscriptions. For comprehensive guidance on portfolio monitoring configuration, see [Portfolio Monitoring: Basics](/docs/portfolio-monitoring). *** ## Console vs. API Currently, consumer check functionality in the Baselayer Console is limited. Most person verification actions — including creating Person Searches, running standalone checks, and adding individuals to Portfolio Monitoring — are handled via the API. The API provides full access to all consumer check capabilities. All actions available in the console are also available via the API. Baselayer's complete API documentation can be found at [docs.baselayer.com](https://docs.baselayer.com). # Consumer Checks: Best Practices Source: https://docs.baselayer.com/docs/consumer-checks-best-practices Choose the right checks for each person, send the inputs that improve accuracy, and act on the results. This guide covers how to select the right checks for your use case, optimize inputs for accuracy, handle edge cases, design efficient workflows, and operationalize person monitoring. Make sure to review [Consumer Checks: Basics](/docs/consumer-checks-basics) before reading this guide. *** ## 1. Selecting the Right Checks Not every workflow requires every check. Selecting the appropriate `options` for your Person Search reduces cost, speeds up results, and keeps your review queues focused on what matters. *** #### Sanctions & Compliance (required for most regulated products) * `Order.Ofac` and `Order.Pep` — should be included for virtually all onboarding and underwriting workflows. These are typically non-negotiable for compliance. *** #### Lending & Credit * `Order.Liens` — personal liens affect collateral position and indicate financial stress * `Order.Litigations` — litigation history, directly impacts creditworthiness * `Order.Bankruptcy` — personal bankruptcy records, clear sign for credit risk * `Order.TinMatching` — confirms the applicant's identity through IRS records *** #### Military-Related * `Order.Scra` — required if your product is subject to SCRA protections (interest rate caps, foreclosure restrictions). Relevant for lending, servicing, and collections. **Requires full 9-digit SSN** — if only last-4 SSN is provided, this check will not run. * `Order.Mla` — required if your product falls under MLA coverage (payday loans, auto title loans, certain credit cards). Check before finalizing loan terms. **Requires full 9-digit SSN and `date_of_birth`** — if either is missing, this check will not run. *** #### Common Configurations by Use Case **Payment processor or marketplace vendor onboarding:** `Order.Ofac`, `Order.Pep` Sanctions screening for individuals associated with merchant applications. Typically sufficient when combined with a Business Search. **Business lending (applicant & guarantors):** `Order.Ofac`, `Order.Pep`, `Order.Liens`, `Order.Litigations`, `Order.Bankruptcy`, `Order.TinMatching` Full coverage for credit risk and identity verification. Run on the applicant, each UBO, and each guarantor. **Bank account opening:** `Order.Ofac`, `Order.Pep`, `Order.TinMatching` Identity verification and sanctions compliance. Litigations and liens are typically less relevant when no credit exposure exists. **Servicing & collections:** `Order.Scra`, `Order.Mla` Check military status before taking enforcement actions, adjusting rates, or pursuing collections. *** ## 2. Optimizing Inputs The quality and completeness of your inputs directly affects match confidence and result accuracy. *** #### SSN: Full vs. Last Four Baselayer accepts either a full 9-digit SSN or the last 4 digits. Both return the same quality of results — the difference is in **matching confidence**. Full SSN provides a stronger identity match, which reduces the likelihood of false positives in docket and lien results. **Full SSN is required for `Order.Scra` or `Order.Mla` options.** **Our recommendation:** Use the full SSN whenever your application flow collects it. Fall back to last-4 only when the full SSN is not available (e.g., early-stage pre-screening before a full application). *** #### Name Accuracy Provide the legal name as it appears on official documents. Common issues that reduce match quality: * Nicknames instead of legal first names (e.g., "Bill" instead of "William") * Missing middle names or initials — include `middle_name` when available * Incorrect suffixes — omit rather than guess if uncertain *** #### Address and Lien Scoping If you include `address` in your Person Search request, Baselayer uses the state from that address to scope lien searches (when `Order.Liens` is selected). This is an important operational decision: * **Providing an address** → lien search is scoped to that state, producing more relevant results with less noise * **Omitting the address** → lien search may cover a broader scope, potentially returning more results but with lower relevance **Our recommendation:** Always include the individual's address when requesting lien searches. This mirrors the domestic vs. all-state scope decision in Business Search lien configuration. *** #### Submit Everything You Have Beyond the required fields, Baselayer accepts: `date_of_birth`, `gender`, `marital_status`, `phone_number`, `email`, `address`, `suffix`, and `title`. These optional fields do not change the quality of the core checks, but they build richer person profiles within Baselayer. Richer profiles enable stronger matching, more complete records, and better monitoring outcomes over time. **Our recommendation:** Pass every field your application collects. The marginal effort is minimal, and the long-term value in profile completeness is significant. *** ## 3. Designing Your Verification Workflow #### Parallel Submission with Business Search The most efficient onboarding pattern is to submit both Business Search and Person Search requests at the same time. As soon as the application data is available: 1. Submit `POST /searches` for the business entity 2. Submit `POST /person_searches` for each individual in the application Both run concurrently. When each completes, evaluate results independently and combine them into a single onboarding decision. ```python theme={null} # Pseudocode: parallel submission during onboarding # Business verification business_search = POST /searches { "name": application.business_name, "address": application.business_address, "tin": application.ein, "options": ["Order.Enhanced"] } # Person verification for each individual FOR EACH person IN [applicant, ubos, guarantors]: person_search = POST /person_searches { "first_name": person.first_name, "last_name": person.last_name, "ssn": person.ssn, "middle_name": person.middle_name, "date_of_birth": person.date_of_birth, "address": person.address, "phone_number": person.phone_number, "email": person.email, "options": ["Order.Ofac", "Order.Pep", "Order.Liens", "Order.Litigations", "Order.TinMatching"] } ``` > **Tip:** Store both the `business_search_id` and all `person_search_id` values against the application record. You will use these to add items to Portfolio Monitoring after approval. *** #### When to Use Standalone Endpoints Instead Standalone endpoints are best suited for specific stages in your workflow: **Pre-screening:** Run `POST /ofac/searches` before collecting full application data to catch obvious sanctions hits early, avoiding unnecessary data collection from blocked individuals. Both OFAC and PEP standalone endpoints accept a `similarity_threshold` parameter (0.0 to 1.0, default 0.9) — consider lowering it slightly (e.g., 0.8) during pre-screening to cast a wider net, then rely on the Person Search for definitive results. **Sole proprietor TIN verification:** If you already know the applicant is a sole proprietor, use `POST /tin_verifications` for a fast, cost-efficient IRS check without the overhead of a full Person Search. See the [Sole Proprietorship Verification](/docs/sole-prop-verification) for more detail. **Servicing checks:** Use `POST /scra/searches` or `POST /mla/searches` independently when evaluating military status for loan servicing decisions. These are typically run at a different stage than onboarding. Both require full 9-digit SSN, and MLA additionally requires `birth_date`. *** ## 4. Evaluating Results #### Watchlist Hits (OFAC & PEP) Any positive watchlist hit should be treated as a high-priority review item. However, not every hit is a true match — false positives occur, especially with common names. **Recommended evaluation logic:** ```python theme={null} # Evaluate watchlist hits from person search response person = response.get("person", {}) watchlist_hits = person.get("watchlist_hits", []) FOR EACH hit IN watchlist_hits WHERE hit.count > 0: IF hit.code == "OFAC": flag = "RED" reason = "OFAC match detected" IF hit.code == "PEP": # Review the matched records in hit.details flag = "YELLOW" reason = "Potential PEP match - manual review required" IF no watchlist_hits with count > 0: flag = "PASS" ``` > **Note:** OFAC hits should always trigger review or rejection per your compliance policy. PEP status is not inherently disqualifying but requires enhanced due diligence. *** #### Dockets (Litigations & Bankruptcy) Use the `risk_level` and `match_level` fields to triage docket results: ```python theme={null} # Evaluate docket results dockets = person.get("dockets", []) medium_risk_count = 0 FOR EACH docket IN dockets: IF docket.risk_level == "high" AND docket.match_level == "EXACT": flag = "RED" reason = "High-risk litigation or bankruptcy with exact match" IF docket.risk_level == "medium": medium_risk_count += 1 IF medium_risk_count > 2: flag = "YELLOW" reason = "Multiple medium-risk litigation cases" ``` > **Note:** This logic provides basic docket risk assessment. Tailor thresholds to your product's risk appetite — lending products typically require stricter scrutiny than payment processing. *** #### Liens Active personal liens indicate financial stress and may affect your collateral position: ```python theme={null} # Evaluate lien results liens = person.get("liens", []) active_liens = [l for l in liens if l.status == "Active"] IF any active_liens with filing_type starting with "tax.": flag = "YELLOW" reason = "Active personal tax lien" IF len(active_liens) > 3: flag = "RED" reason = "Multiple active personal liens" ``` *** #### TIN Matching TIN verification confirms the individual's identity through IRS records. The response includes `tin_matched` (boolean), mirroring the same TIN verification behavior available in the Business Search. ```python theme={null} # TIN result is at the search level (not inside person object) tin_matched = response.get("tin_matched") IF tin_matched is True: # Identity confirmed with IRS PASS IF tin_matched is False: flag = "RED" reason = "SSN does not match name per IRS records" IF tin_matched is None: # IRS may be temporarily unavailable # Check warnings for "IRS Validation is unavailable." # Baselayer will auto-retry; listen for PersonSearch.updated webhook flag = "PENDING" reason = "IRS validation pending — outage detected" ``` *** ## 5. Monitoring Individuals #### Who to Monitor Not every individual verified at onboarding needs ongoing monitoring. Focus monitoring resources on individuals where a change in their status would directly impact your risk exposure: **Always monitor:** * Guarantors on active loans — new liens or litigations affect your recovery position * UBOs of high-risk businesses — sanctions or PEP changes require immediate action * Sole proprietors — where the individual and business risk are inseparable **Monitor selectively:** * Applicants on standard-risk products — monthly monitoring is typically sufficient * Authorized signers — only if they have significant decision-making authority **Skip monitoring for:** * Individuals on closed or fully repaid accounts * Low-risk, passive investors with no operational role *** #### Recommended Monitoring Configuration For individuals added to Portfolio Monitoring, configure your monitoring policy based on risk: **High-risk individuals (e.g., guarantors on large exposures, flagged UBOs):** * Monitoring frequency: weekly * Monitor for: OFAC, PEP, liens, litigations * Notification frequency: daily for sanctions, weekly for liens/litigations **Standard-risk individuals (e.g., primary applicants on approved accounts):** * Monitoring frequency: monthly * Monitor for: OFAC, PEP, litigations * Notification frequency: weekly **Compliance-only (e.g., marketplace vendor principals):** * Monitoring frequency: monthly * Monitor for: OFAC, PEP * Notification frequency: monthly *** #### Organizing Individuals in Portfolio Groups Use portfolio groups to separate individuals by role, risk tier, or product: * **Guarantors** — weekly monitoring, full attribute coverage * **UBOs** — monthly monitoring, sanctions-focused * **Sole Proprietors** — monthly monitoring, same configuration as associated business This structure ensures that monitoring resources are allocated proportionally to risk exposure. For comprehensive guidance on portfolio groups, policies, and notifications, see [Portfolio Monitoring: Best Practices](/docs/portfolio-monitoring-best-practices). *** ## 6. IRS Outage Handling TIN verification for individuals follows the same IRS outage pattern as business TIN verification. When the IRS service is temporarily unavailable: * `tin_matched` will return `null` * `warnings` will include `"IRS Validation is unavailable."` * Baselayer will automatically retry every 15 minutes for up to about 24 hours * Once the IRS service is restored, a `PersonSearch.updated` webhook is sent with the final TIN result **Recommended approach during outages:** * Process the Person Search normally for all non-TIN checks * Flag the TIN result as pending in your system * Listen for the updated webhook to finalize the TIN decision * If your policy requires TIN confirmation before approval, issue a conditional approval or hold the decision until the result arrives For more detail on IRS outage handling, see the [Guide: IRS Outage Handling](/docs/webhook-guide-businesssearchupdated). *** ## 7. Implementation Checklist **Setup** * [ ] API key configured for person search endpoints * [ ] Webhook endpoint configured for `PersonSearch.submitted`, `PersonSearch.completed`, `PersonSearch.failed`, `PersonSearch.updated` * [ ] Internal mapping between application records and person search IDs **Onboarding Integration** * [ ] Person Searches submitted in parallel with Business Searches during onboarding * [ ] Options configured per product and risk policy * [ ] Watchlist hit evaluation logic implemented * [ ] Docket and lien evaluation logic implemented (if applicable) * [ ] TIN matching evaluation logic implemented (if applicable) * [ ] IRS outage handling implemented **Portfolio Monitoring** * [ ] Approved individuals added to portfolio via `POST /portfolio/items` with `person_search_id` * [ ] Portfolio groups created for individuals (e.g., Guarantors, UBOs, Sole Props) * [ ] Monitoring policies configured per group * [ ] Notification subscriptions configured for individual-level changes For questions about implementation, contact your Baselayer account representative. # Credential Format Reference Source: https://docs.baselayer.com/docs/credential-format-reference Verify KYA credentials in your own code: the credential's format, keys and checks. This page is for teams that parse and verify KYA credentials in their own code. KYA credentials follow published standards: SD-JWT VC (draft-ietf-oauth-sd-jwt-vc-19) over Selective Disclosure for JWTs (RFC 9901), with revocation through OAuth Token Status Lists (draft-ietf-oauth-status-list-21). ## Encoding A presentation is one issuer-signed JWT, its Disclosures, and the agent's Key Binding JWT, joined with `~`: ```text theme={null} ~~~...~ ``` The mint returns everything up to and including the last `~`. The agent appends the Key Binding JWT when it presents. The issuer JWT header: ```json theme={null} { "alg": "EdDSA", "typ": "dc+sd-jwt", "kid": "" } ``` * `typ` is always `dc+sd-jwt`. Refuse anything else. * `alg` is always `EdDSA`, over an Ed25519 key (`kty: OKP`, `crv: Ed25519`). * `kid` is the RFC 7638 thumbprint of the signing key, published in the issuer's key set. ## Claims | Claim | Content | | - | - | | `vct` | Credential type URL. See "Credential types" below. | | `iss` | `https://registry.baselayer.com`, or `https://sandbox.registry.baselayer.com` for sandbox credentials. | | `sub` | Per-site subject ID. See "Subject" below. | | `aud` | The site's canonical audience. | | `jti` | Unique credential ID. The issuance API calls it `credential_id`, and the audit log calls it `jti`. | | `iat`, `exp` | Issued and expiry instants, in seconds since the epoch. | | `cnf` | `{"jwk": {"kty": "OKP", "crv": "Ed25519", "x": "..."}}`: the agent's public key. | | `status` | `{"status_list": {"idx": , "uri": ""}}`. | | `verification` | The checks that passed when Baselayer verified the person or business. Always readable. See [The verification block](#the-verification-block). | | `actor` | The link to the acting person. On business credentials only. Always readable. | | `_sd`, `_sd_alg` | Digests of the top-level Disclosures, and `sha-256`. Present when there are Disclosures. | Ignore top-level claims you do not recognize, so future additions never break your verifier. The issuer JWT payload of a person's credential that shares details (`level: L3`) looks like this: ```json theme={null} { "vct": "https://registry.baselayer.com/vct/kya/individual/v1", "iss": "https://registry.baselayer.com", "sub": "did:web:registry.baselayer.com:dids:shop.example:519fdc0c604eef0d4ced23ffff2e0ddd", "aud": "shop.example", "jti": "6f1c2b0e-8a54-4f4e-9d0a-2f8e1c3b7d21", "iat": 1775050000, "exp": 1775053600, "cnf": { "jwk": { "kty": "OKP", "crv": "Ed25519", "x": "11qYAYKxCrfVS_7TyWQHOg7hcvPapiMlrwIaaPcHURo" } }, "status": { "status_list": { "idx": 85, "uri": "https://registry.baselayer.com/statuslists/1" } }, "_sd": ["P3eJ9QO_-1k1ieR25P3XwrUZHERyNcj9ZeLYWM6jMOA", "..."], "_sd_alg": "sha-256", "verification": { "level": 3, "verified_at": 1772000000, "expires_at": 1803536000, "active_keys": ["dob_identity_match", "phone_possession", "ssn_identity_match", "watchlist_clear"], "possession_verified_at": 1772000000 } } ``` ## What each credential carries The `level` you mint with sets what is shared. It is separate from `verification.level`, which comes from the checks that passed: `2` for a confirmed phone or email, `3` for a confirmed phone plus a date of birth and identity number match. | Credential | Minted with `level` | What it carries | | - | - | - | | A person's, sharing the customer ID and checks only | `L2` | The standard claims and `verification`. No Disclosures. | | A person's, also sharing the details the site asks for | `L3` | The standard claims, `verification`, and one Disclosure per shared detail. | | A business's | `L3` | Two separate credentials: the business credential and the acting person's credential. See the note below the table. | > [!NOTE] > > **Business credentials** > > * The business credential carries the standard claims, `verification`, `actor` and business Disclosures. > * Each credential has its own `jti` and `status`. > * They share one `aud`, one `cnf` key and one validity window. ## Subject `sub` is a per-site ID: ```text theme={null} did:web:registry.baselayer.com:dids:: ``` * `` is the canonical audience, percent-encoded. A bare host stays as is. `https://shop.example` becomes `https%3A%2F%2Fshop.example`. * `` is 32 lowercase hex characters. It is the same for the same person (or business) at the same audience across every mint, and unrelated across audiences. Key your returning-customer records on `sub`, never on `jti`. A `jti` is new on every mint. ## The verification block The verification block says which checks passed when Baselayer verified the person or business. Read `active_keys` for policy. | Field | Meaning | | - | - | | `active_keys` | The checks that passed. See the values below. | | `verified_at`, `expires_at` | When the verification ran and when it lapses, in seconds. A credential's `exp` is never later than `expires_at`. | | `possession_verified_at` | Individual only. When the person last proved control of their phone. | | `level` | The verification level: `1`, `2` or `3`. Baselayer derives it from `active_keys`. Absent when the checks meet no level. In Agent Acceptance, a credential with `level` `3` gives the visit `identity_level` `L3`, and so on. | `active_keys` values on an individual credential: | Key | Meaning | | - | - | | `phone_possession` | The person controlled the phone at verification. | | `email_possession` | The person proved control of their email at verification. | | `dob_identity_match` | The date of birth is consistent with the identity. | | `ssn_identity_match` | The identity number is consistent with the identity. | | `watchlist_clear` | Sanctions and watchlist screening ran and found no hits. | `active_keys` values on a business credential: | Key | Meaning | | - | - | | `registry_record_found` | The business matched a record in its home state registry. | | `tax_id_match` | The IRS matched the business name and tax ID. | | `registration_active` | The home state filing is active and not dissolved. | | `actor_is_officer` | The acting person matches an officer on the registration. | | `watchlist_clear` | Sanctions and watchlist screening ran and found no hits. | `ssn_identity_match`, and the `ssn_last_4` and `hashes.ssn` paths below, are filled in by Baselayer from its own verification. In Baselayer's flow the person never types an SSN: they enter their phone, birthday and country, type the code Baselayer texts them, and confirm the details shown. How the verification level (`level`) follows the checks. A credential gets the highest level whose checks it holds in full: | `level` | Individual | Business | | - | - | - | | 1 | None. A platform credential is level `1`. | None | | 2 | `phone_possession`, or `email_possession` | None | | 3 | `phone_possession`, `dob_identity_match` and `ssn_identity_match` | `registry_record_found`, `tax_id_match` and `registration_active` | A business credential is level 3 or has no `level`. `watchlist_clear` and `actor_is_officer` never change the verification level. A verifier recomputes `level` from `active_keys` and refuses a credential whose stated `level` differs (`verification_level_mismatch`). ## The actor block Every business credential carries: ```json theme={null} { "actor": { "sub": "", "authorization": { "status": "verified", "basis": "evidence", "confirmed_at": 1775053328 } } } ``` * `actor.sub` equals the `sub` of the person's individual credential at the same audience. * `authorization.status` is always `verified`. Baselayer mints a business credential only with a verified operator link. * `basis` is `evidence` when the automatic checks verified the link, or `reviewer` when the minting organization decided it. * `confirmed_at` is when the link was last confirmed. When verifying a business pair, require: * The same `iss`. * The same `aud`. * The same `cnf` key. * The same nonce in both Key Binding JWTs. * `actor.sub` equal to the person credential's `sub`. * `actor.authorization.status` equal to `verified`. Refuse a business credential presented without the person's credential. ## Disclosures Each Disclosure is base64url of a JSON array `[salt, claim_name, claim_value]`. `claim_name` is the claim's own name, never a dotted path. Salts are 128 bits. Disclosure is nested. * Any object with selectively disclosed members has its own `_sd` array. For example, `address.locality` is disclosed by an `address` Disclosure whose value is an object with its own `_sd`, plus a `locality` Disclosure inside it. * Each non-empty `_sd` array also holds zero to three decoy digests that match no Disclosure. To check for tampering: 1. For each Disclosure, compute `base64url(SHA-256())`. 2. Confirm it appears in exactly one `_sd` array: in the payload, or in an object already disclosed. 3. If any digest is missing, refuse the whole presentation (`disclosure_digest_mismatch`). Digests with no matching Disclosure are decoys or details that were not shared, and are ignored. Detail paths, as dotted paths over the rebuilt claims. [Asking for Fields](/docs/kya-asking-for-fields#details-a-credential-can-share) lists the same paths in plain words. **Individual paths** * Name: `given_name`, `middle_name`, `family_name`, `name` * Contact: `email`, `phone_number` * Address: `address.street_address`, `address.locality`, `address.region`, `address.postal_code`, `address.country`, `address.usps_validated` * Birth and identity: `birthdate`, `birth_year`, `ssn_last_4` * Residency: `residency.country`, `residency.region` * Hashes: `hashes.name`, `hashes.email`, `hashes.phone_number`, `hashes.address`, `hashes.ssn` **Business paths** * Identity: `name`, `dbas`, `ein`, `structure` * Incorporation: `state_of_incorporation`, `country_of_incorporation`, `date_of_incorporation` * Address: `address.street_address`, `address.locality`, `address.region`, `address.postal_code`, `address.country`, `address.address_type` * Contact and web: `email`, `website`, `domain` * Status: `registration_status` * Hashes: `hashes.name`, `hashes.ein`, `hashes.email`, `hashes.address` Notes on values: * Instants are seconds since the epoch. `birthdate` and `date_of_incorporation` are ISO 8601 dates. * `hashes.*` values are `sha256:` over a normalized form of the verified value. * Business `structure` is lowercase, for example `llc`. * `registration_status` is `active`, `inactive` or `dissolved`. * `address.address_type` is `registered`, `mailing`, `physical` or `residential`. * Business `domain` is the registrable domain of the business's website, in punycode form for internationalized names. * On a business credential, `name`, `email` and `address` are the business's. The person's details are in the person's own credential. ## Credential types | `vct` | Type | | - | - | | `https://registry.baselayer.com/vct/kya/individual/v1` | Individual | | `https://registry.baselayer.com/vct/kya/business/v1` | Business | Sandbox credentials carry the same `vct` URLs. Each URL serves the type's metadata (display labels for each claim). Fetching it is optional. Verification never depends on it. ## Audience `aud` takes one of two forms, and you compare it to your own audience as an exact string: | Form | Canonical `aud` | Example | | - | - | - | | Bare host | Lowercase host, internationalized names as punycode | `shop.example` | | https identifier | `https://` plus the host, no path | `https://shop.example` | The two forms never merge. `shop.example`, `www.shop.example` and `https://shop.example` are three different audiences, each with its own `sub`. ## Issuer keys Find the signing keys from the issuer's metadata: ```text theme={null} GET /.well-known/jwt-vc-issuer ``` See the [API reference](/api-reference/registry/fetch-the-credential-issuers-jwt-vc-issuer-metadata). ```json theme={null} { "issuer": "https://registry.baselayer.com", "jwks": { "keys": [ { "kty": "OKP", "crv": "Ed25519", "x": "...", "kid": "...", "alg": "EdDSA", "use": "sig" } ] } } ``` * Require `issuer` to equal the credential's `iss`. * Pick the key whose `kid` matches the JWT header. * Decide the issuer before you fetch anything. Refuse an `iss` you do not trust without making a request. * Cache per `Cache-Control` (one hour). On an unknown `kid`, refetch once, then refuse. * During a key rotation, the old key stays published beside the new one, so credentials it signed keep verifying until they expire. The same keys are also served as a JWKS at `/.well-known/jwks.json` and as a DID document at `/.well-known/did.json`, for tools that expect those. All three are public, need no API key, and can be cached for an hour. ## Status list `status.status_list.uri` points to a signed status list, for example `https://registry.baselayer.com/statuslists/1`. * Each issuer fills list 1, then list 2, and so on. * A list that has not been started returns `404`. See the [API reference](/api-reference/registry/fetch-the-credential-status-list-token). The response is a JWT with `typ: statuslist+jwt` and content type `application/statuslist+jwt`, signed with the same issuer keys. Its claims: | Claim | Content | | - | - | | `iss` | The issuer. Require it to equal the credential's `iss`. | | `sub` | The list's own URL. Require it to equal `status.status_list.uri`. | | `iat`, `exp`, `ttl` | Issued, expiry and time to live, in seconds. Read `ttl` from each token. | | `status_list` | `{"bits": 1, "lst": ""}` | To check a credential: 1. Decode `lst` (base64url without padding). 2. Decompress it with zlib. 3. Read bit `idx`: byte `idx // 8`, bit `idx % 8`, least significant bit first. `1` means revoked. Each list holds 1,048,576 bits. Accept the token only inside its window: `iat` no more than 300 seconds ahead, `exp` in the future, and now earlier than `iat + ttl`. Cache it until `min(exp, iat + ttl)`. If the list cannot be fetched or does not verify, refuse the presentation. The list is shared by many credentials from the issuer, so fetching it doesn't identify which credential you are checking. ## Key Binding JWT | Part | Value | | - | - | | Header | `{"alg": "EdDSA", "typ": "kb+jwt"}` | | `iat` | When the agent signed it. Accept no more than 300 seconds ahead, and no older than your nonce lifetime. | | `aud` | Must equal your canonical audience. | | `nonce` | Must be one you issued and have not spent. Spend it atomically on acceptance. | | `sd_hash` | base64url of the SHA-256 of everything before the Key Binding JWT, including the last `~`. | It must verify against the credential's `cnf.jwk`. ## Order of checks Run these in order on each credential, and refuse at the first failure: | # | Check | Refusal | | - | - | - | | 1 | Parse the presentation. No repeated JOSE header names, no `crit`. | `malformed_presentation` | | 2 | `typ` is `dc+sd-jwt` and `vct` is a KYA type. | `unsupported_credential_type` | | 3 | `iss` is trusted (sandbox only if you opted in), then fetch its keys. | `untrusted_issuer`, `sandbox_issuer`, `issuer_resolution_failed` | | 4 | Issuer signature, `exp` in the future, `iat` (and `nbf`, when present) no more than 300 seconds ahead. | `unknown_signing_key`, `issuer_signature_invalid`, `credential_expired`, `credential_not_yet_valid` | | 5 | Status list bit is not set. | `credential_revoked`, `status_list_resolution_failed`, `status_list_invalid` | | 6 | Every Disclosure digest is in the signed digests. | `unsupported_digest_algorithm`, `disclosure_digest_mismatch` | | 7 | Key Binding JWT is present and valid, with your nonce and audience. | `key_binding_missing`, `key_binding_invalid`, `nonce_not_issued`, `nonce_replayed`, `audience_mismatch` | | 8 | The issuer-signed `aud` is yours, the verification level in `verification.level` is the one its `active_keys` give (see [The verification block](#the-verification-block)), and the shared details stay within your published scope. | `audience_mismatch`, `verification_level_mismatch`, `scope_violation` | On a business pair, run both credentials through these checks, then the pair checks from [The actor block](#the-actor-block): * A different issuer or `actor.sub` is `actor_mismatch`. * A different `cnf` key or nonce is `key_binding_invalid`. * An unverified link is `actor_not_authorized`. Spend the nonce only after every check passes. These are the same codes Agent Acceptance reports. [Handling Failures](/docs/kya-handling-failures) says what to tell the agent for each. # Customer Reviews Source: https://docs.baselayer.com/docs/customer-reviews Check that a business has real customers and is still open, using its review profiles on Google, Yelp, TripAdvisor and more. Reviews discovers customer review profiles associated with a business across Google, Yelp, TripAdvisor, Trustpilot, and other platforms. It returns aggregate ratings, review volume, operational status, identity data found on each platform, and - when requested - individual review text. Review data is particularly powerful for confirming a business is real and actively operating, and for cross-referencing identity details against the submitted application. *** ### When to use it * You want to confirm a business has an established customer-facing presence with real review history * You need to check operational status: whether a business is currently open, temporarily closed, or permanently closed * You are cross-referencing contact details (address, phone, website) found on review platforms against the submitted application to detect impersonation * You are assessing a consumer-facing business (restaurant, retail, hospitality, healthcare) where review presence is expected * You want to supplement weak website or social signals with third-party platform corroboration > Review presence is sector-dependent. Consumer-facing businesses are expected to have reviews; B2B and professional services firms often do not. Absence of reviews is not a risk signal for sectors where reviews are uncommon. See [Sector-specific guidance](/docs/web-presence-orderables#sector-specific-guidance) in the Online Presence: Best Practices guide. *** ### How to request it Reviews are available on both integration paths, with two request options that control how much data is returned. #### Via `POST /web_presence_requests` Use `Order.ReviewSummary` for profile-level data (rating, volume, metadata, identity fields). Use `Order.ReviewFull` together with `Order.ReviewSummary` when you also need the individual review entries with text and dates. ```json theme={null} { "name": "Lucali", "address": "575 Henry St, Brooklyn, NY 11231", "options": ["Order.ReviewSummary"] } ``` To include individual review text: ```json theme={null} { "name": "Lucali", "address": "575 Henry St, Brooklyn, NY 11231", "options": ["Order.ReviewSummary", "Order.ReviewFull"] } ``` Results are returned **inline** at `found_reviews[]`. > `Order.ReviewFull` returns everything in `Order.ReviewSummary` plus the individual `reviews[]` array. It is an add-on to `Order.ReviewSummary`, so send both. #### Via `POST /searches` with `Order.Enhanced` Reviews are included automatically as part of `Order.Enhanced` at `business.reviews[]`. Individual review text is not available on this path — only profile-level data (rating, volume, metadata, identity fields) is returned. > `Order.ReviewSummary` and `Order.ReviewFull` as standalone options are not available on `POST /searches`. Use `Order.Enhanced` or switch to `POST /web_presence_requests` for review data. *** ### Response fields #### `found_reviews[]` fields Each entry represents one review platform profile discovered for the business. | Field | Type | Description | | :- | :- | :- | | `source` | enum | Review platform: `google`, `yelp`, `trustpilot`, `tripadvisor`, `other`. | | `url` | string | Direct URL to the review profile on that platform. | | `confidence` | enum | Baselayer's confidence the review profile belongs to this business: `high`, `medium`, `low`. | | `rating` | float | Average numeric rating (e.g., `4.2`). | | `volume` | integer | Total number of reviews on that platform. | | `summary` | string \| null | Sentiment summary of reviews, when available. | | `address` | string \| null | Business address found on the review profile. | | `phone_number` | string \| null | Business phone number found on the review profile. | | `business_website` | string \| null | Business website found on the review profile. | | `reviews[]` | array | Individual review entries - see below. Only returned when `Order.ReviewFull` is requested on `POST /web_presence_requests`. | | `metadata` | object \| null | Platform-specific attributes — see below. Only populated for Google reviews; always `null` for Yelp, TripAdvisor, and Trustpilot. | > On `POST /searches` with `Order.Enhanced`, reviews are returned at `business.reviews[]`. On `POST /web_presence_requests`, they are returned at `found_reviews[]`. The object structure is identical, except `reviews[]` (individual entries) is only available via `POST /web_presence_requests`. #### `reviews[]` entry fields Individual review entries, returned only when `Order.ReviewFull` is requested on `POST /web_presence_requests`. | Field | Type | Description | | :- | :- | :- | | `date` | string | Review date (ISO 8601). | | `rating` | integer | Individual review rating. | | `text` | string | Review text content. | | `username` | string | Reviewer's display name. | #### `metadata` fields Platform-specific data, **only populated for Google reviews** — it is always `null` on Yelp, TripAdvisor, and Trustpilot entries. It is a best-effort enrichment, so it can also be `null` on a Google review. The object has exactly five keys, all of which are optional/nullable: | Field | Type | Description | | :- | :- | :- | | `open_state` | string \| null | Current operating status, in Google's own phrasing (e.g., `"Open"`, `"Open ⋅ Closes 10 PM"`, `"Temporarily closed"`, `"Permanently closed"`). The text is not normalized — match it case-insensitively, never on exact strings. | | `operating_hours` | object \| null | Operating hours keyed by lowercase English day name (`"monday"`, `"tuesday"`, …); not all seven days are guaranteed to be present. Values are Google's free-form strings, e.g. `"11 AM–10 PM"` (en dash), `"Closed"`, or `"Open 24 hours"`. | | `description` | string \| null | Business description from Google Maps. | | `types` | array \| null | Business type tags from Google Maps (list of strings; can be empty). | | `service_options` | object \| null | Snake_case keys with **boolean** values, e.g. `{"dine_in": true, "curbside_pickup": false}`. The key set varies by business category — do not assume any particular key is present. | A populated `metadata` object looks like this: ```json theme={null} { "open_state": "Open ⋅ Closes 10 PM", "operating_hours": { "monday": "11 AM–10 PM", "tuesday": "11 AM–10 PM", "wednesday": "Closed", "thursday": "11 AM–10 PM", "friday": "11 AM–11 PM", "saturday": "11 AM–11 PM", "sunday": "11 AM–9 PM" }, "description": "Brick-oven pizza restaurant known for its thin-crust pies.", "types": ["Pizza restaurant", "Italian restaurant"], "service_options": { "dine_in": true, "takeout": true, "delivery": false, "curbside_pickup": false } } ``` > When consuming `metadata`, treat every key as optional, tolerate keys you don't recognize, and prefer showing nothing over guessing when a value is missing. *** ### Interpreting results Reviews produce three types of value: **operational confirmation** (is this business currently active?), **reputation signals** (do customers engage with it?), and **identity corroboration** (do the details on review platforms match the application?). **Always filter by `confidence: high` before using a profile in automated decisions.** Medium and low confidence profiles may belong to an unrelated business. Only `high` confidence entries should influence decisioning. **`open_state` is the most direct operational signal available.** Check it on every Google review entry. A permanently-closed status is a high-risk flag regardless of other signals. A temporarily-closed status warrants clarification. `"Closed ⋅ Opens [time]"`-style values are normal outside business hours. Because the text is Google's own unnormalized phrasing, match it case-insensitively (e.g., look for "permanently closed" anywhere in the string) rather than comparing against exact strings. See [Reviews section](/docs/web-presence-orderables#reviews) in the Online Presence: Best Practices guide. **Combine `rating` and `volume`, neither is meaningful alone.** A high rating with fewer than 10 reviews is weak evidence. A rating below 3.0 with more than 20 reviews is a meaningful negative signal. **Cross-reference identity fields against the application.** The `address`, `phone_number`, and `business_website` fields in each review entry are independently sourced from the review platform. In impersonation cases, these fields will consistently point to the real business. See [Domain Impersonation Patterns](/docs/web-presence-orderables#domain-impersonation-patterns) in the Online Presence: Best Practices guide. *** ### Related guides * [Online Presence: Basics](/docs/online-presence-basics) — integration path decision guide and data model * [Online Presence: Best Practices](/docs/web-presence-orderables) — full decisioning framework including review signals * [Online Presence: Response Reference](/docs/online-presence-response-reference) — match values, match sources, and response shape by integration path * [Social Media Profiles](/docs/social-media-profiles) — complements reviews for consumer-facing business verification * [Web Presence API Reference](/api-reference/web-presence/post-web-presence-request) — full endpoint documentation # Death Master File Search Source: https://docs.baselayer.com/docs/death-master-file-search Check whether a person appears in the Social Security Administration's Death Master File. ## Death Master File Search Users can now use [POST /dmf/searches](/api-reference/death-master-file/post-dmf-search) to initiate a search against the Social Security Administration's Death Master File. Requires an individual's full name and SSN. Submitting a DMF search will emit a `DMFSearch.submitted` webhook event. Once the search is completed, a `DMFSearch.completed` webhook event will be emitted. If the search fails, a `DMFSearch.failed` webhook event will be emitted. Results can also be retrieved using [GET /dmf/searches/\{id}](/api-reference/death-master-file/get-dmf-search) using the request UUID returned from the initial POST request. #### Response Structure An example of a completed DMF search will look like this: ``` { "id": "a1ad1dab-d87f-4160-a7e4-a966dbe0294a", "code": "DMF", "count": 1, "details": [ { "dmf_id": "XXXXXXX", "ssn": "XXXXXXXXX", "name": "XXXXXXXXXXX", "death_date": "1983-11-01", "death_date_precision": "MONTH", "birth_date": "1908-08-05", "birth_date_precision": "DAY", "state_of_residency": null, "zip_code_of_residency": null } ], "state": "COMPLETED", "error": null } ``` While most of these fields are self-evident, it is worth noting the `death_date_precision` and `birth_date_precision` fields. **Death records prior to 2000 may contain only the month and year**. So the `_precision` fields, in this example, indicate the date of death can only be narrowed down to November, 1983, while the date of birth can be narrowed to the specific date. ### FAQs #### What is the Death Master File? The Death Master File (DMF) from the Social Security Administration (SSA) is a data source that contains more than 94 million records. The “file” is created from internal SSA records of deceased persons possessing social security numbers and whose deaths were reported to the SSA . **It is important to note our records are not a comprehensive record of all deaths in the country.** #### How frequently is Baselayer's Death Master File updated? Updates occur on a weekly basis. # Directory Listings Source: https://docs.baselayer.com/docs/directory-listings Confirm that independent directories and associations list a business, and cross-check its contact details. Directory Listings discovers entries for a business on online directories, industry associations, chamber of commerce sites, and government registries. Each listing provides independently sourced contact details, a business category, and in many cases officer names - making it a strong corroboration signal for both identity verification and industry classification. *** ### When to use it * You want to confirm that a business has a real-world presence independently recognized by third-party sources * You are verifying a local service business, contractor, or professional services firm where directory presence is expected * You need to cross-reference contact details (address, phone, website) against the submitted application to detect impersonation * You are verifying a sole proprietor who may have no website but appears in industry-specific registries > Directory presence is sector-dependent. Local services, contractors, healthcare, legal, and professional services firms are frequently listed in directories. Digital-native and B2B businesses may have fewer listings, absence is not a risk signal for these sectors. See [Sector-specific guidance](/docs/web-presence-orderables#sector-specific-guidance) in the Online Presence: Best Practices guide. *** ### How to request it Directory Listings is only available via `POST /web_presence_requests`. It is not available on `POST /searches`, including via `Order.Enhanced`. Include `Order.DirectoryListing` in the `options` array. Results are returned **inline** at `found_directory_listings[]`. ```json theme={null} { "name": "Hartwell Legal Group", "address": "73 Church St, Winder, GA 30680", "options": ["Order.DirectoryListing"] } ``` *** ### Response fields #### `found_directory_listings[]` fields Each entry represents one business listing discovered on a directory or aggregator site. | Field | Type | Description | | :- | :- | :- | | `source` | string | Directory domain where the listing was found (e.g., `bbb.org`, `reviews.birdeye.com`). | | `url` | string | URL of the directory page that was scraped. | | `category` | string \| null | Business category assigned by the directory site. Highly useful for NAICS alignment when present. `null` on sources that don't assign categories (e.g., government registries). | | `business_name` | string | Business name as listed on the directory. May be a DBA rather than the registered legal name. | | `phone_number` | string \| null | Phone number from the directory listing. | | `email` | string \| null | Email address from the directory listing. | | `business_website` | string \| null | Website URL listed on the directory page. | | `address` | string \| null | Physical address from the directory listing. | | `people[]` | array | Officers, principals, or key people listed on the directory page. Each entry includes `name` (required) and `title`. | *** ### Interpreting results Directory Listings produce two types of value: **presence corroboration** (is this business recognized by independent third-party sources?) and **identity cross-referencing** (do the contact details in listings match the application?). **Cross-reference contact fields against the application.** The `address`, `phone_number`, and `business_website` fields are independently sourced from each directory. In impersonation cases, these fields will consistently point to the real business — not the submitted application data. This is the same pattern documented for Reviews; directory data provides an additional independent source of ground truth. **Use `people[]` for officer cross-referencing.** Officers and principals listed in directories can be cross-referenced against submitted `officer_names` and `business.business_officers[]` from the Business Search response. An officer appearing consistently across directories, the website, and Secretary of State records is a strong identity signal. **Use listing count directionally, not as a hard threshold.** There is no minimum number of listings that constitutes a pass or fail. A business appearing across multiple independent directories signals an established real-world presence. Zero listings for a claimed multi-year local service business is worth noting, but not determinative. *** ### Related guides * [Online Presence: Basics](/docs/online-presence-basics) — integration path decision guide and data model * [Online Presence: Best Practices](/docs/web-presence-orderables) — full decisioning framework including directory listing signals * [Online Presence: Response Reference](/docs/online-presence-response-reference) — match values, match sources, and response shape by integration path * [Industry Prediction](/docs/industry-prediction-user-guide) — `category` in directory listings corroborates the predicted NAICS code * [Web Presence API Reference](/api-reference/web-presence/post-web-presence-request) — full endpoint documentation # Enhanced Search Source: https://docs.baselayer.com/docs/enhanced-search Raise officer and address match rates by adding online sources to a Business Search. Enhanced Search is the recommended way to run a Business Search when you want the full Online Presence dataset alongside registered records. It bundles Website Analysis, Industry Prediction, Social Profiles, and Reviews into a single `POST /searches` call, and - most importantly for match rates - merges addresses and officers discovered online back into `business.addresses[]` and `business.business_officers[]`. This is the single biggest lever for improving officer and address match rates without changing your submitted data. *** ### When to use it * You want to improve officer or address match rates without restructuring your onboarding form * You are onboarding newer businesses with thin Secretary of State records * You want the full Online Presence dataset returned in one call rather than running Business Search and Web Presence requests separately > **If your team is asking how to raise officer or address match rates, this is the answer.** Enhanced Search merges online-sourced candidates into `business.business_officers[]` and `business.addresses[]`. A submitted officer or address can match against a Secretary of State record OR an online record. *** ### How to request it Enhanced Search is only available via `POST /searches`. `Order.Enhanced` must be requested alongside `Order.WebsiteAnalysis` and `Order.NaicsPrediction` — without these, the request will fail. ```json theme={null} { "name": "Acme Corp", "address": "123 Main St, New York, NY 10001", "website": "acmecorp.com", "officer_names": ["Jane Smith"], "options": [ "Order.Enhanced", "Order.WebsiteAnalysis", "Order.NaicsPrediction" ] } ``` #### What's included `Order.Enhanced` covers the same four sub-products as requesting Website Analysis, Industry Prediction, Social Profiles, and Reviews individually, but it does something none of those individual orders do: it **merges discovered addresses and officers back into the business object**. * **Website Analysis**: returned via `orderables[]` tracking objects, not inline. Fetch via `GET /website_analysis_requests/{id}`. * **Industry Prediction**: returned via `orderables[]` tracking objects, not inline. Fetch via `GET /naics_prediction_requests/{id}`. * **Social Profiles**: returned inline at `business.social_profiles[]` * **Reviews** (profile-level data only): returned inline at `business.reviews[]` * **Expanded officer discovery**: candidates discovered online merged into `business.business_officers[]` * **Expanded address discovery**: candidates discovered online merged into `business.addresses[]` > **Not included in Enhanced Search:** > > * **Directory Listings**: only available via `POST /web_presence_requests` with `Order.DirectoryListing` > * **Individual review text**: `business.reviews[]` on this path returns profile-level data only. For per-review text and dates, use `Order.ReviewFull` on `POST /web_presence_requests`. #### Latency Because `Order.Enhanced` performs a broader discovery across multiple sources, it takes on average around 25 seconds to complete - longer than a standard `POST /searches` call. `Order.WebsiteAnalysis` also runs inside the search and adds time. `Order.NaicsPrediction` can finish after the search completes unless `Order.Enhanced` is requested. For high-value KYB use cases where match rate matters more than speed, it is the recommended default. #### When Business Search fails > If the submitted business doesn't match any registration record, `/searches` returns `state: FAILED` and **orderables are not triggered**. The `orderables[]` array will be empty and no online presence data will be returned - even when valid `options` were included in the request. > > If your platform onboards applicants who may not have an SoS registration, use `POST /web_presence_requests` instead to ensure online presence data is always returned. See [The Web Presence API](/docs/web-presence-api). *** ### Response fields Enhanced Search returns a standard Business Search response, with online presence data merged into existing fields and added in new ones. The fields that drive match-rate improvements are the expanded officer and address arrays. #### Expanded `business.business_officers[]` and `business.addresses[]` Each entry carries a `sources` field, an **array** indicating where that candidate was discovered. | `sources` value | Origin | | :- | :- | | `SOS` | Secretary of State filing | | `Online` | Discovered from the business's online presence (website, social, or reviews) | A single officer or address can carry both values: `sources: ["SOS", "Online"]`. This means the same candidate was found in the state registry **and** corroborated independently online. Example officer entry from Enhanced Search response: ```json theme={null} { "name": "Jane Smith", "sources": ["SOS", "Online"], "titles": ["CEO", "chief executive officer", "director"] } ``` #### Online presence fields | Field | Source | | :- | :- | | `business.social_profiles[]` | Same shape as `found_social_profiles[]` on `/web_presence_requests`. See the Social Profiles guide. | | `business.reviews[]` | Same shape as `found_reviews[]` (profile-level only). See the Reviews guide. | | Industry Prediction | Retrieved via `GET /naics_prediction_requests/{id}` using the orderable in `orderables[]`. | | Website Analysis | Retrieved via `GET /website_analysis_requests/{id}` using the orderable in `orderables[]`. | *** ### Interpreting results The objective of Enhanced Search is straightforward: **increase match rates by enriching officer and address profiles with online information**. Every interpretation rule below is in service of that goal. **Match rate improvements come from `Online` entries.** A submitted officer name or address that doesn't appear in SOS filings may still appear on the business's website, LinkedIn, or Google review profile. Enhanced Search makes those candidates available for matching automatically, your submitted data and matching logic don't need to change. **Use `sources` to differentiate signal strength.** A candidate with `sources: ["SOS"]` is a registered record. A candidate with `sources: ["Online"]` is corroborated from public-facing online sources. A candidate with `sources: ["SOS", "Online"]` is the strongest possible identity signal. If you need a stricter standard for a given decision, you can filter to `SOS`-only entries; if you want the broadest coverage, accept matches against both. **Don't treat absence of `Online` entries as a fail.** B2B businesses, professional services firms, and digital-native businesses often have minimal online presence. Match rates will still be high through SOS records alone. *** ### Related guides * [Online Presence: Basics](/docs/online-presence-basics) — integration path decision guide and data model * [Online Presence: Best Practices](/docs/web-presence-orderables) — full decisioning framework * [Online Presence: Response Reference](/docs/online-presence-response-reference) — full field definitions and path-specific response shapes * [Website Analysis](/docs/website-analysis-basics) — sub-product included in Enhanced * [Industry Prediction](/docs/industry-prediction-user-guide) — sub-product included in Enhanced * [Social Media Profiles](/docs/social-media-profiles) — sub-product included in Enhanced * [Customer Reviews](/docs/customer-reviews) — sub-product included in Enhanced (profile-level only) * [Directory Listings](/docs/directory-listings) — **not** included in Enhanced; request via `/web_presence_requests` * [Business Search API Reference](/api-reference/search/post-search) — full endpoint documentation # Guide: Exporting PDF Reports Source: https://docs.baselayer.com/docs/exporting-pdf-reports-in-baselayer Save a completed Business Search as a PDF for underwriting files, compliance records and audits. Baselayer generates comprehensive PDF reports for any completed Business Search. These reports include all verification results and ordered add-ons (Website Analysis, Industry Prediction, Liens, Litigation) in a single document - ideal for underwriting files, compliance documentation, and audit trails. This guide covers how to export PDFs through both the Console and API. For understanding what data appears in Business Search results, see [Business Search: Basics](/docs/business-search-basics). For verification workflows that lead to PDF export, see [Business Search: Best Practices](/docs/business-search-1). *** ## Prerequisites Before exporting a PDF report, ensure: * **Business Search is completed** - PDFs can only be generated for searches with `state: COMPLETED` * **Search results are available** - You have the search ID from a completed Business Search * **API key** (for API exports) - See [Authentication](/docs/authentication) **Note**: PDFs include only the products and add-ons that were ordered with the original search. If you didn't request Website Analysis during the search, or run a Lien Search on the business, they won't appear in the PDF. *** ## 1. What the PDF Report Contains Each PDF export is a comprehensive snapshot of the Business Search results at the time of generation. ### Core KYB Data (Always Included) Every PDF report contains: * **Business Identity** * Legal business name and structure, registration details and standing * **Verification Signals** * Business name, address, TIN, officer and website match level (if all provided) * **Risk Assessment** * KYB and Risk Ratings (A-F scale) * **Business Profile** * Addresses, officers and registered agents, registrations, watchlist screening results ### Optional Add-Ons (If Ordered with Search) The PDF includes additional sections only if these products were requested in the original search: * **Industry Prediction** (Order.NaicsPrediction) * NAICS, MCC, and SIC codes, industry keywords, confidence scores and risk classification * **Website Analysis** (Order.WebsiteAnalysis) * Discovered website URL, domain metadata, legitimacy indicators, information found on site * **Liens** (if lien search was conducted) * UCC filings, tax liens, including details and status * **Litigation & Bankruptcy** (if docket search was conducted) * Court cases and filings, bankruptcy proceedings **Important**: To include Industry Prediction and Website Analysis in the PDF, they must be ordered when you create the Business Search using the `options` parameter. Liens and litigation come from the most recent Lien and Docket Searches your organization ran on the business before exporting. You cannot retroactively add products to an existing PDF. This makes the PDF a complete, portable record of the entire KYB evaluation as it was performed. *** ## 2. Exporting a PDF in the Console **Step 1**: Navigate to the Business Search result page in the [Baselayer Console](https://console.baselayer.com) **Step 2**: Click the **Download PDF** button (icon) at the top right of the search results **Step 3**: The PDF will generate and download to your device automatically ![](https://mintcdn.com/baselayer-81245324/y8jjNyo-CIhfj2Df/images/Screenshot_2025-12-06_at_20.38.14.png?fit=max\&auto=format\&n=y8jjNyo-CIhfj2Df\&q=85\&s=52861f4087ef296d326783db41badba2) **When to use Console export:** * Manual underwriting review * One-off compliance documentation * Sharing results with team members who don't have API access * Quick verification for customer inquiries. *** ## 3. Exporting a PDF via API Generate and download a PDF report programmatically using the export endpoint: ```bash theme={null} curl --request POST \ --url https://api.baselayer.com/searches/{search_id}/export \ --header 'X-API-Key: ' \ --output business_report.pdf ``` **Path Parameter:** * `search_id` - The unique identifier of the completed Business Search **Response:** * Content-Type: `application/pdf` * Binary PDF file (streamed directly to the output file) **Response handling in code:** Python example: ```python theme={null} import requests search_id = "b2f7c648-d931-4cb6-b38d-9db8bf410d21" response = requests.post( f"https://api.baselayer.com/searches/{search_id}/export", headers={"X-API-Key": "YOUR_API_KEY"} ) if response.status_code == 200: with open(f"report_{search_id}.pdf", "wb") as f: f.write(response.content) print("PDF saved successfully") else: print(f"Error: {response.status_code}") ``` Node.js example: ```javascript theme={null} const fs = require('fs'); const https = require('https'); const searchId = 'b2f7c648-d931-4cb6-b38d-9db8bf410d21'; const file = fs.createWriteStream(`report_${searchId}.pdf`); const options = { hostname: 'api.baselayer.com', path: `/searches/${searchId}/export`, method: 'POST', headers: { 'X-API-Key': 'YOUR_API_KEY' } }; https.request(options, (response) => { response.pipe(file); file.on('finish', () => { file.close(); console.log('PDF saved successfully'); }); }).end(); ``` *** ## 4. Automating PDF Generation in Your Workflow Many teams integrate PDF exports directly into their underwriting and compliance workflows. Here are proven automation patterns: * **On Approval/Funding**: generate PDFs automatically when applications are approved * **Batch PDF Export for Audit**: export PDFs for all searches in a date range * **Webhook-Triggered Export**: generate PDF immediately when search completes ### Common Integration Points * **CRM/LOS**: Attach PDFs to customer records in Salesforce, HubSpot, or loan origination systems * **Document Storage**: Save to S3, Google Cloud Storage, Azure Blob, or internal document management * **Compliance Systems**: Route PDFs to audit trail systems or regulatory reporting tools * **Manual Review Queues**: Attach PDFs to flagged applications for analyst review * **Customer Portals**: Provide PDFs to customers for transparency and record-keeping Because the export endpoint only requires the search ID, integration is lightweight and can be added to any workflow step. *** ## 5. Common Issues ### "The export API returns 404 Not Found" **Cause**: Search ID doesn't exist or you don't have access to it. **Solutions:** * Verify the search ID is correct * Ensure the search belongs to your organization * Check that you're using the right API key ### "The PDF is missing Website Analysis / Industry data" **Cause**: These add-ons weren't requested when the Business Search was created. **Solution**: * Order add-ons must be specified in the original search request using the `options` parameter * You cannot add products to a completed search * To include add-ons, create a new Business Search with `options: ["Order.WebsiteAnalysis", "Order.NaicsPrediction"]` ### "Export endpoint returns 422" **Cause**: The search hasn't completed yet (state is still PENDING or EXECUTING). Failed searches and searches with no matched business also return 422 and can't be exported. **Solutions:** * Wait for the search to complete before exporting PDF * Check search status: `GET /searches/{id}/status` * Listen for `BusinessSearch.completed` webhook before triggering PDF export ### "PDF generation seems slow" **Expected timing**: PDF generation can take up to 30 seconds for reports with many add-ons. **If taking longer:** * Check your network connection * Verify Baselayer API status at status.baselayer.com * Contact support if consistently taking >30 seconds *** ## 6. Next Steps **Understand what's in the PDF:** * [Business Search: Basics](/docs/business-search-basics) - Overview of verification data included in reports * [Scores & Ratings](/docs/baselayer-scores-ratings) - Interpret KYB and Risk ratings in PDFs * [Online Presence: Best Practices](/docs/web-presence-orderables) - Add Website Analysis and Industry data to future reports **Build automated workflows:** * [Webhooks at Baselayer](/docs/webhooks-at-baselayer) - Trigger PDF export when searches complete * [Business Search: Batch Searches](/docs/batch-search-how-to-run-bulk-searches-in-baselayer) - Export PDFs for bulk verification results * [Portfolio Monitoring](/docs/portfolio-monitoring) - Generate compliance reports over time **API Documentation:** * [API Reference](/api-reference) - Complete endpoint specifications * [Authentication](/docs/authentication) - Manage API keys for automation *** ## 7. Summary PDF exports transform Business Search results into comprehensive, portable audit records that include all KYB verification data and ordered add-ons. **Key capabilities:** * **Console**: One-click download for manual workflows * **API**: Programmatic export for automation (`POST /searches/{id}/export`) * **Complete records**: All verification signals, ratings, and add-ons in one document * **Easy integration**: Binary PDF response works with any storage system **Use PDF exports to:** * Document underwriting decisions * Maintain compliance and audit trails * Automate end-to-end verification workflows * Share verification results with stakeholders For help automating PDF exports or integrating with your document management system, contact your Baselayer account manager. # Factoring & Equipment Financing Source: https://docs.baselayer.com/docs/factoring-equipment-financing How factoring and equipment finance teams use Baselayer to decide fast without skipping fraud, lien and lawsuit checks. ## Overview Factoring and equipment financing represent specialized lending products that require rapid verification to remain competitive. Unlike traditional term loans, these products face intense competition where **speed to funding determines market share**. The verification workflow must balance comprehensive risk assessment with the fastest possible decision time. **Key characteristics of factoring & equipment financing:** * **Speed-critical**: Fast approval is competitive advantage * **Specialized risk assessment**: Focus on collateral value and cash flow * **Credit risk focus**: Evaluating ability and willingness to repay * **Business credit scoring**: Paynet and similar specialized bureaus * **Cash flow underwriting**: Modern approach for faster decisions * **Legal exposure**: Identifying existing liens and bankruptcy risk This guide provides a standard verification workflow optimized for factoring and equipment financing underwriting teams seeking to maximize approval speed while maintaining robust risk controls. *** ## Verification Workflow Overview A typical factoring & equipment financing verification flow includes seven key steps plus an optional monitoring add-on: 1. **Fraud & Application Tracking**: Detect repeat fraud and credit stacking (Baselayer + Partner/s) 2. **Industry Screening**: Verify industry compliance (Baselayer) 3. **Consumer Credit Check**: Verify business owner identity and credit (Partner/s) 4. **Business Verification**: Validate business identity and registration (Baselayer) 5. **Legal Check**: Identify liens, litigation, and bankruptcy risk (Baselayer) 6. **Business Credit Check**: Assess business creditworthiness via Paynet or similar (Partner/s) 7. **Final Review**: Identity verification and cash flow underwriting (Partner/s) 8. **Add-On: Portfolio Monitoring**: Continuous monitoring of funded accounts (Baselayer) Each step uses a combination of Baselayer endpoints and third-party verification tools to enable fast, informed credit decisions. *** ## Step 1: Fraud & Application Tracking **Purpose**: Identify fraudulent applications early by analyzing business identity patterns, application velocity, and consortium intelligence. ### Required Tools * **Fraud screening provider** (for device/identity signals and digital intelligence) * **Baselayer**: Business identity network and [fraud consortium](/docs/the-baselayer-fraud-consortium) ### Baselayer Endpoints ```javascript Text theme={null} POST /searches GET /businesses/{business_id}/applications ``` ### Verification Logic ```javascript Text theme={null} // Submit business search response = POST /searches with business details // Check application velocity applications = GET /businesses/{business_id}/applications // Count recent applications applications_last_7_days = count(applications where created_at >= today - 7 days) applications_last_30_days = count(applications where created_at >= today - 30 days) // Evaluate velocity flags IF applications_last_7_days >= 4: flag = "RED" reason = "High application velocity - 4+ applications in 7 days" ELSE IF applications_last_30_days >= 4: flag = "YELLOW" reason = "Elevated application velocity - 4+ applications in 30 days" // Check fraud consortium (BFC entry appears in watchlist_hits for member organizations only) bfc = FIND entry IN response.watchlist_hits WHERE entry.code == "BFC" IF bfc EXISTS AND bfc.count > 0: flag = "RED" reason = "Business or individual in Baselayer Fraud Consortium" // Combine with third-party fraud screening IF fraud_screening_provider.risk_score > threshold: flag = "RED" reason = "Failed fraud screening" ``` > **Note**: Baselayer fraud consortium is only available for member entities who contribute regularly to the fraud database. For non-member organizations, the BFC entry is entirely absent from `watchlist_hits` (it is never returned as a `count: 0` placeholder), and BFC hits never appear in sandbox. ### Context Fraud screening for factoring and equipment financing is critical given the financial exposure. Application velocity tracking catches **credit stacking and repeat fraudsters** attempting to secure multiple financing arrangements simultaneously across different lenders - a common fraud pattern in equipment financing. *** ## Step 2: Industry Screening **Purpose**: Verify the business operates in an acceptable industry. ### Required Tools * **Baselayer**: [Industry prediction](/docs/industry-prediction-user-guide) ### Baselayer Endpoints ```javascript Text theme={null} POST /web_presence_requests ``` > **Tip**: The web presence request has 20-30 second latency. Consider initiating this request early in your workflow (e.g., during Step 1) to improve applicant experience. ### Verification Logic ```javascript Text theme={null} // Extract industry prediction from /web_presence_requests response industry = response.industry_prediction // Check for prohibited industries IF industry.keywords CONTAINS ANY prohibited_keyword: flag = "RED" reason = "Prohibited industry keyword detected" // Check prohibited NAICS codes with confidence threshold IF industry.code IN prohibited_naics_list: IF industry.accuracy >= 0.75: flag = "RED" reason = "Prohibited industry with high confidence" ELSE: flag = "YELLOW" reason = "Potential prohibited industry, needs review" ``` > **Note**: Prohibited keyword and NAICS code lists are proprietary and available to Baselayer customers upon request. Contact your account representative for access. ### Context Industry screening ensures financing to businesses in acceptable risk categories. Factoring and equipment financing providers typically avoid high-risk industries where collateral recovery or receivables collection is difficult. *** ## Step 3: Consumer Credit Check **Purpose**: Verify the identity of the business owner and screen for sanctions, PEP flags, and adverse media. ### Required Tools * **KYC provider** (for identity verification and AML screening) ### Context AML/KYC verification ensures the business owner is properly identified and screened for sanctions, PEP flags, and adverse media. While personal credit scores are less emphasized in factoring and equipment financing (which rely more heavily on specific assets), identity verification and sanctions screening remain critical for regulatory compliance. Baselayer works with hundreds of partners and can recommend ideal providers for every product and case. *** ## Step 4: Business Verification **Purpose**: Validate business identity, registration status, and compliance. ### Required Tools * **Baselayer**: [Business search](/docs/business-search-basics) ### Baselayer Endpoints ```javascript Text theme={null} POST /searches ``` > **Tip**: You can re-use the API response from the `POST /searches` request from Step 1 and avoid extra charges. ### Verification Logic ```javascript Text theme={null} // Extract match signals from /searches response business_id = response.business.id name_match = response.business_name_match address_match = response.business_address_match tin_matched = response.tin_matched registrations = response.business.registrations watchlist_hits = response.watchlist_hits months_in_business = response.business.months_in_business addresses = response.business.addresses // Check Baselayer match IF business_id == NULL: flag = "RED" reason = "No business match" // skip all other steps // Check name and address matching name_address_approved = FALSE IF name_match == "EXACT" AND address_match IN ["EXACT", "CITY", "STATE"]: name_address_approved = TRUE ELSE IF name_match == "SIMILAR" AND address_match == "EXACT": name_address_approved = TRUE IF NOT name_address_approved: flag = "RED" reason = "Weak name/address match" // Verify TIN IF tin_matched == NULL: # IRS outage - handle per policy # See Guide: IRS Outage Handling for detailed guidance flag = "YELLOW" reason = "TIN verification unavailable (IRS outage)" ELSE IF tin_matched == FALSE: flag = "RED" reason = "TIN does not match business name" // Check registrations domestic_active = FALSE FOR EACH registration IN registrations: IF registration.registration_type == "domestic" AND registration.status == "active": domestic_active = TRUE domestic_state = registration.state IF NOT domestic_active: flag = "RED" reason = "No active domestic registration" // If business operates in different state, verify foreign registration // Operating state is usually the one from the application address IF operating_state != domestic_state: foreign_active = FALSE FOR EACH registration IN registrations: IF registration.registration_type == "foreign" AND registration.state == operating_state AND registration.status == "active": foreign_active = TRUE IF NOT foreign_active: flag = "YELLOW" reason = "No active foreign registration in operating state" // Check watchlists IF ANY entry IN watchlist_hits WHERE entry.count > 0 AND entry.code != "IEO": flag = "RED" reason = "Positive sanctions or watchlist match" // Optional: Check business age (common requirement) IF months_in_business < 12: flag = "YELLOW" reason = "Business less than 12 months old - higher risk" // Optional: Check if equipment delivery address is commercial submitted_address = application.equipment_delivery_address FOR EACH address IN addresses: IF address.matches(submitted_address): // Check if address is residential IF address.rdi == "Residential": flag = "YELLOW" reason = "Equipment delivery address is residential" // Flag post office boxes or general delivery (cannot deliver equipment) IF address.delivery_type IN ["POST_OFFICE", "GENERAL_DELIVERY"]: flag = "RED" reason = "Equipment cannot be delivered to PO Box or general delivery" ``` > **Note:** Commercial address verification is particularly important for equipment financing to ensure assets are delivered to legitimate business locations. Residential addresses may indicate fraud or improper use. This check is less relevant for factoring, where the business location matters less than receivables quality. ### Context Business verification for factoring and equipment financing requires stringent identity matching to ensure the entity exists, is properly registered, and is not on sanctions lists. Many providers require **minimum business age (typically 6-12 months)** as a credit risk factor. *** ## Step 5: Legal Check **Purpose**: Identify existing liens, active litigation, and bankruptcy filings that indicate legal or financial distress. ### Required Tools * **Baselayer**: [Lien search](/docs/lien-search-basics), [litigation & bankruptcy search](/docs/litigation-bankruptcy-search-basics) (docket search) ### Baselayer Endpoints ```javascript Text theme={null} POST /lien_searches POST /docket_searches ``` ### Verification Logic #### Lien Search ```javascript Text theme={null} // Submit lien search using business_id from Step 4 lien_response = POST /lien_searches with business_id // wait for LiensSearch.completed, then GET /lien_searches/{id} // Extract lien details lien_details = lien_response.filings // Evaluate lien risk FOR EACH lien IN lien_details: IF lien.status == "Active": // Check for tax liens (highest priority - red flag) IF lien.filing_type.startswith("tax."): flag = "RED" reason = "Active tax lien found" ELSE: // Any other active lien is a yellow flag flag = "YELLOW" reason = "Active lien found" ``` > **Note**: This logic provides basic lien risk assessment. For more advanced lien analysis including document review and other detailed lien review strategies, see [Lien Search: Best Practices](/docs/lien-searching-best-practices). > > Lien search can be scoped to the domestic state only or expanded to all registered states (including foreign registrations). Most equipment financiers search for all registered states - with a particular focus on the collateral being discussed to ensure no other liens are filed on the asset. #### Litigation & Bankruptcy Search ```javascript Text theme={null} // Submit docket search using business_id from Step 4 docket_response = POST /docket_searches with business_id // wait for DocketSearch.completed, then GET /docket_searches/{id} // Evaluate litigation and bankruptcy risk medium_risk_count = 0 FOR EACH docket IN docket_response.dockets: // Check for high-risk cases with exact match IF docket.risk_level == "high" AND docket.match_level == "EXACT": flag = "RED" reason = "High-risk case with exact match (bankruptcy or significant litigation)" // Count medium-risk cases IF docket.risk_level == "medium": medium_risk_count = medium_risk_count + 1 // Flag if multiple medium-risk cases IF medium_risk_count > 2: flag = "YELLOW" reason = "Multiple medium-risk litigation cases found" ``` > **Note**: This logic provides basic docket risk assessment using Baselayer's `risk_level` and `match_level` scoring. For more advanced litigation analysis including case type evaluation, judgment detection, timeline analysis, and bankruptcy chapter assessment, see [Litigation & Bankruptcy Search: Best Practices](/docs/litigation-bankruptcy-search-best-practices). ### Context Legal checks are essential for factoring and equipment financing to understand existing creditor positions, litigation exposure, and bankruptcy risk. Liens affect collateral priority, while active litigation and bankruptcies signal financial distress and potential default risk. This check often determines loan structure, collateral requirements, and pricing. For detailed guides on lien and docket searches, see [Lien Search: Best Practices](/docs/lien-searching-best-practices) and [Litigation & Bankruptcy Search: Best Practices](/docs/litigation-bankruptcy-search-best-practices). *** ## Step 6: Business Credit Check **Purpose**: Assess business creditworthiness using specialized commercial credit bureaus. ### Required Tools * **Paynet** (specialized in equipment finance) or * **Other business credit bureau** (Dun & Bradstreet, Experian Business, Equifax Business) ### Context Business credit scores provide critical insight into payment history, trade lines, and credit utilization. **Paynet is the standard for equipment financing** as it aggregates data from thousands of lenders specifically in the equipment finance and leasing industry, making it highly predictive for this asset class. For factoring, trade payment data and receivables patterns are particularly valuable. Business credit scores help to provide a complete credit risk picture. This step is essential for competitive pricing and automated decisioning in modern factoring and equipment financing workflows. Baselayer works with hundreds of partners and can recommend ideal providers for every product and case. *** ## Step 7: Final Review **Purpose**: Perform final identity verification and complete financial underwriting analysis. ### Required Tools * **Identity verification provider** (for identity checks) * **Cash flow underwriting platform** (for automated financial analysis) ### Context The final review combines all previous checks with financial underwriting to make the credit decision. Modern factoring and equipment financing providers increasingly rely on **cash flow underwriting** to improve customer experience by: * Automating bank statement analysis * Analyzing revenue patterns and consistency * Assessing working capital adequacy * Reducing manual document review time This automated approach enables faster decisions while maintaining credit quality - a critical competitive advantage in time-sensitive financing markets. Baselayer works with hundreds of partners and can recommend ideal providers for every product and case. *** ## Add-On: Portfolio Monitoring **Purpose**: Continuously monitor funded accounts for changes that indicate increased credit risk or default probability. ### When to Use After a business is approved and receives funding, add them to portfolio monitoring to track: * New liens filed against the business * Litigation or bankruptcy filings * Changes in business registration status * Officer or address changes * Sanctions or PEP flags * Activity through Baselayer's Identity Network ### Baselayer Endpoints ```javascript Text theme={null} POST /portfolio/items ``` ### Implementation ```javascript Text theme={null} // After financing is approved and funded IF financing_status == "FUNDED": // Add business to portfolio monitoring portfolio_item = POST /portfolio/items { "business_search_id": business_search_id, "group_id": group_id // Optional: assign to risk-based group } // Monitoring begins automatically based on portfolio policy ``` ### Recommended Monitoring Configuration For factoring & equipment financing portfolios: **Monitoring Frequency**: Monthly (standard), Weekly (high-risk) **Monitor for**: * Liens (new UCC filings) * Litigations & Bankruptcies * OFAC/PEP flags * SoS Standing changes * Business profile changes (officers, addresses) * Identity Network activity (credit stacking detection) **Notification Frequency**: Monthly for standard portfolio, Weekly for high-risk segments ### Context Portfolio monitoring transforms one-time KYB into ongoing customer due diligence (CDD). For factoring and equipment financing providers, this is particularly valuable for: * **Early warning system**: Detect deteriorating credit quality before default * **Collateral protection**: Identify new liens that affect asset priority * **Portfolio management**: Identify accounts requiring increased monitoring * **Loss mitigation**: Intervene before situations become unrecoverable For comprehensive guidance on portfolio monitoring configuration, start with [Portfolio Monitoring: Basics](/docs/portfolio-monitoring). *** ## Implementation Checklist Use this checklist to implement the factoring & equipment financing verification workflow: **Setup** * [ ] Integrate fraud screening provider * [ ] Integrate Baselayer API * [ ] Integrate KYC provider * [ ] Integrate Paynet or business credit bureau * [ ] Integrate identity verification provider * [ ] Integrate cash flow underwriting platform * [ ] Request prohibited industry lists from Baselayer representative * [ ] Configure portfolio monitoring policies **Step 1: Fraud & Application Tracking** * [ ] Implement `POST /searches` endpoint * [ ] Implement `GET /businesses/{business_id}/applications` endpoint * [ ] Configure application velocity logic * [ ] Configure fraud consortium check (if member) * [ ] Integrate third-party fraud screening **Step 2: Industry** * [ ] Implement `POST /web_presence_requests` endpoint * [ ] Configure industry screening for prohibited industries **Step 3: Consumer Credit** * [ ] Implement KYC/AML verification **Step 4: Business Verification** * [ ] Implement standard KYB verification logic * [ ] Configure business age requirements (if applicable) * [ ] Configure address requirements (if applicable) **Step 5: Legal Check** * [ ] Implement `POST /lien_searches` endpoint * [ ] Implement `POST /docket_searches` endpoint * [ ] Configure lien search scope (domestic only vs. all states) and evaluation logic * [ ] Configure litigation and bankruptcy evaluation logic **Step 6: Business Credit** * [ ] Integrate Paynet or business credit bureau * [ ] Configure credit score thresholds **Step 7: Final Review** * [ ] Implement identity verification * [ ] Integrate cash flow underwriting platform * [ ] Configure manual review queues * [ ] Set up rejection workflows **Portfolio Monitoring** * [ ] Implement `POST /portfolio/items` endpoint * [ ] Configure monitoring policies (frequency, attributes) * [ ] Set up notification subscriptions by team * [ ] Create risk-based portfolio groups For questions about implementation or to request prohibited industry lists, contact your Baselayer account representative. # Organization Management at Baselayer Source: https://docs.baselayer.com/docs/federations-at-baselayer Set up an organization for each of your customers, send requests on their behalf, and receive all their webhooks at one endpoint. ## Introduction Baselayer allows partners and resellers to autonomously generate profiles for their customers, maintain customers’ data separated, and correctly associate each request with each end user. This guide serves as a reference point for the implementation of Baselayer across your customer base. ### Concepts * **Federation**: Institution overseeing the product and integrating directly with Baselayer * **Organization**: End customer, who reviews Baselayer results via the partner/reseller * **Application**: Environments available for each Organization, each application has its unique API key. Usually 2: production and sandbox (used for testing) ### Initial Set-Up Baselayer will provide you with your `federation_id`, an initial Federation API key, and access to the dashboard. An initial organization, with the same name as the federation, will also be created immediately. Once in the platform, you can click on “My Federation” to access the list of existing organizations, the Federation users, and the Federation API keys. All actions to manage your API keys, including creating new keys or deleting existing ones, can be completed there. *** ### Creating an Organization To start serving a new customer, you can create a new Organization in the platform or making a `POST /organizations` request to the API - using your Federation API keys. There are only 5 fields in the process of creating an Organization: * `name` (required): name of the organization * `domain_name` (optional): email domain associated with the organization * `type` (required): type of organization, this field is very relevant for Baselayer’s data quality and personalization, and has a defined set of options * `external_id` (optional): some of our customers require an internal id to be attached to the profile of each customer for identification purposes - this field is available for that goal * `contact` (optional): `name` and `email` of the organization's contact In case of the API request, you will receive a http_201 code in case of a successful response or http_422 in case of a validation error. *** ### Authentication Methods Any API request at an organization level can be initialized with the Organization's dedicated API keys, or with the Federation API key adding headers. In the following section we will explore the latter option: #### Header: `external_id` This is the preferred methodology. When using Federation API keys, include the Organization's `external_id` in your request headers: ```json theme={null} X-External-ID: ``` If your Federation API key is allowed in both environments, include the following header to target the sandbox environment. Sandbox-only keys add the `-sandbox` suffix for you, and keys limited to one environment reject a suffixed ID: ```json theme={null} X-External-ID: -sandbox ``` *** ## Users #### Federation Members Employees of Baselayer’s partners need to be added directly as “Federation Users”. This will enable them to seamlessly access every organization under the Federation. You can do so under the menu “My Federation” mentioned above. ![](https://mintcdn.com/baselayer-81245324/y8jjNyo-CIhfj2Df/images/Screenshot_2026-03-30_at_11.48.57.png?fit=max\&auto=format\&n=y8jjNyo-CIhfj2Df\&q=85\&s=ef5e52e13da32ecb2e27e34d670ae8fd) #### Organization Users of the end customer should be added as part of their specific Organization. Organization users will only be able to access their own dashboard, and only review the cases that were run by their organization. To perform this action, you can click on “My Organization” in the top-right menu and add them as a new team member. ![](https://mintcdn.com/baselayer-81245324/y8jjNyo-CIhfj2Df/images/Screenshot_2026-03-30_at_11.49.49.png?fit=max\&auto=format\&n=y8jjNyo-CIhfj2Df\&q=85\&s=2e121a54178cab15cbd13dd7284133b1) *** ## Federation Webhooks By default, webhook endpoints in Baselayer are scoped to individual Organizations. For partners managing multiple organizations under a Federation, this would require creating and maintaining a separate webhook endpoint and signing secret per customer, a significant operational burden. **Federation-level webhooks solve this.** A single endpoint registered at the Federation level receives events from all organizations under your Federation, across both production and sandbox environments. You manage one signing secret, and use the enriched `__event__` metadata to route events to the right customer in your system. *** ### Setting Up a Federation Webhook Endpoint Federation webhook endpoints can be created via the console or the API, following the same process as organization-level webhooks. **Via Console**: Navigate to **My Federation** and open the **Webhooks & Logs** tab. Click **Add Endpoint**, enter your HTTPS URL, configure your channel filters (see below), and save. Copy your signing secret immediately after creation. ![](https://mintcdn.com/baselayer-81245324/y8jjNyo-CIhfj2Df/images/Screenshot_2026-03-30_at_11.42.58.png?fit=max\&auto=format\&n=y8jjNyo-CIhfj2Df\&q=85\&s=3735da977955faca486b217bbe025038) **Via API**: Use your Federation API key and make a [`POST /federations/{federation_id}/webhooks`](/api-reference/federation-webhook-management/create-federation-webhook-endpoint) request. For signing secret setup and verification, follow the same process described in the [Webhooks at Baselayer guide](/docs/webhooks-at-baselayer). *** ### Channel Filters Because a Federation webhook receives events from every organization and application, Baselayer provides **channel filters** to pre-filter delivery before events reach your endpoint. Filters are configured at endpoint creation time and can be combined. | Channel | Filters to... | | - | - | | `production` | Only events from `Application.type == 'production'` | | `sandbox` | Only events from `Application.type == 'sandbox'` | | `Organization.` | Only events from a specific Organization | | `Application.` | Only events from a specific Application | **Example**: To receive only production events from a single organization, set both `production` and `Organization.` as channels on your endpoint. *** ### Routing Events with the `__event__` Envelope Every Federation webhook payload includes an enriched `__event__` object with routing metadata. Use these fields to attribute events to the correct customer in your system. ```json theme={null} { "__event__": { "type": "BusinessSearch.completed", "origin": "api", "application_id": "fabcf9e0-0c5d-4a8c-b69d-a18df208771b", "application_type": "production", "organization_id": "c9ffa7fa-13da-4c73-b672-22f1b24c3040", "external_id": "97882c6a-b542-4522-b7cb-8757e2d14272" }, "id": "536c0f0e-09d6-403d-8963-767f9bfd06ce", "state": "COMPLETED" } ``` | Field | Description | | - | - | | `type` | Event type (e.g. `BusinessSearch.completed`) | | `origin` | How the event was triggered (`api`, `console`, `mcp` or `onboarding`) | | `application_id` | ID of the Application that triggered the event | | `application_type` | `production` or `sandbox` | | `organization_id` | Baselayer's internal ID for the Organization | | `external_id` | Your internal customer ID, as stored on the Organization | `external_id` and `application_type` are the recommended fields for routing: it maps directly to the customer identifier you control, removing any dependency on Baselayer-internal IDs. # Getting Started with Baselayer API Source: https://docs.baselayer.com/docs/getting-started Know how Baselayer's products connect, which IDs carry you from one to the next, and how to make your first request. Baselayer's API is designed as a **waterfall architecture** - products build on each other to create a complete business profile. This guide explains how the pieces connect. > [!NOTE] > > Prefer to skip the code? Connect the Baselayer MCP to Claude or ChatGPT and run Baselayer searches in a normal conversation. See the [MCP Overview](/docs/mcp) to get set up. *** ## Before You Start 1. Get a Baselayer account. If you don't have one, use [self-serve sign-up](https://console.baselayer.com/signup). 2. In the [Baselayer console](https://console.baselayer.com), choose SANDBOX in the environment selector, open **API Keys** and copy a key. See [Authentication](/docs/authentication). 3. Send the key in the `X-API-Key` header. Sandbox requests are free and return pre-defined test data, so use the [sandbox test cases](/docs/sandbox-vs-production-environments#how-sandbox-data-works) rather than real businesses. *** ## The Waterfall Model ![Mapping of Baselayer API](https://mintcdn.com/baselayer-81245324/y8jjNyo-CIhfj2Df/images/Tabloid_4.png?fit=max\&auto=format\&n=y8jjNyo-CIhfj2Df\&q=85\&s=e8bcb7428ad08ff5b458558d48296885) Mapping of Baselayer API While Baselayer offers independent API routes for each product (Business Search, Online Presence, Liens Search, etc.), the platform is best understood as a **waterfall flow**: 1. **Start with Business Search** - This is your foundation 2. **Get a verified `business_id`** - This unlocks everything else 3. **Branch to specialized products** - Use the `business_id` to access liens, litigation, monitoring, etc. Each product can work standalone, but they're designed to work together. *** ## Understanding Key IDs Baselayer uses different ID types to organize data. Understanding these IDs is essential for navigating the API. | ID Type | Purpose | When You Get It | What It Unlocks | | - | - | - | - | | **search_id** | Identifies a Business Search request | Returned immediately from `POST /searches` | Check search status, retrieve results via `GET /searches/{search_id}`, add to portfolio monitoring | | **business_id** | Identifies a verified business entity | Included in completed search results (under `business.id`) | Access full business data via `GET /businesses/{business_id}`, initiate liens/litigation searches | | **liens_search_request_id** | Identifies a Lien Search request | Returned from `POST /lien_searches` | Check liens search status, retrieve results | | **filing_id** | Identifies a specific lien filing | Returned in liens search results | Retrieve detailed filing information via `GET /lien_searches/{liens_search_request_id}/filings/{filing_id}` | | **docket_search_request_id** | Identifies a Litigation/Bankruptcy Search request | Returned from `POST /docket_searches` | Check litigation search status, retrieve case list | | **docket_id** | Identifies a specific court case | Returned in docket search results | Retrieve case details, exhibits, documents | **Key Insight**: The `business_id` is your gateway. Once you have it from a Business Search, you can access all other Baselayer products for that business. **Note on Baselayer IDs**: Everything in Baselayer has a unique identifier: addresses, registrations, officers, lien filings, court cases, and more. These IDs enable: * **Direct retrieval**: use `GET /addresses/{address_id}`, `GET /registrations/{registration_id}`, etc. to fetch specific objects * **Network tracking**: follow activity and relationships across the Baselayer identity network * **Persistent references**: store IDs to retrieve updated information at any time If you persist these IDs in your system, you can always retrieve the latest data for that specific object. *** ## The Basic Flow ### Step 1: Initiate a Business Search Start with a Business Search. Minimum required fields are `name` and `address` (freeform). ```bash theme={null} curl --request POST \ --url https://api.baselayer.com/searches \ --header 'X-API-Key: your_api_key_here' \ --header 'Content-Type: application/json' \ --data '{ "name": "Baselayer Technologies Inc", "address": "149 New Montgomery St, San Francisco, CA 94105" }' ``` **Response** (`202 Accepted` in asynchronous mode; in synchronous mode, `201 Created` with the finished search): ```json theme={null} { "id": "a1b2c3d4-5678-90ab-cdef-1234567890ab", // search_id "state": "PENDING", "created_at": "2025-12-29T10:15:30Z" } ``` In asynchronous mode, the API immediately returns a `search_id` and begins processing in the background. *** ### Step 2: Get Results via Webhook or Polling **Recommended: Use Webhooks** When the search completes (typically 3-5 seconds without options), you'll receive a `BusinessSearch.completed` webhook: ```json theme={null} { "__event__": { "type": "BusinessSearch.completed" }, "id": "a1b2c3d4-5678-90ab-cdef-1234567890ab", // search_id "state": "COMPLETED", "business": { "id": "b9c8d7e6-1234-5678-90ab-fedcba098765", // business_id ← Save this! "name": "Baselayer Technologies Inc", "registrations": [ ... ], "business_officers": [ ... ], "addresses": [ ... ] // Full business profile included here }, "scores": [ ... ] } ``` **The search response contains the complete business profile** - you have everything you need to make underwriting decisions or initiate additional searches. **Alternative: Poll the Search Status** ```bash theme={null} curl --request GET \ --url https://api.baselayer.com/searches/a1b2c3d4-5678-90ab-cdef-1234567890ab \ --header 'X-API-Key: your_api_key_here' ``` See the [Webhooks guide](/docs/webhooks-at-baselayer) for setup details. *** ### Step 3: Branch to Specialized Products Now you can use the `business_id` from the search results to access other Baselayer products: #### Lien Search ```bash theme={null} curl --request POST \ --url https://api.baselayer.com/lien_searches \ --header 'X-API-Key: your_api_key_here' \ --header 'Content-Type: application/json' \ --data '{ "business_id": "b9c8d7e6-1234-5678-90ab-fedcba098765" }' ``` Returns a `liens_search_request_id` and runs in your API key's default mode (synchronous or asynchronous). Results include all found liens, each with its own `filing_id`. #### Litigation/Bankruptcy Search ```bash theme={null} curl --request POST \ --url https://api.baselayer.com/docket_searches \ --header 'X-API-Key: your_api_key_here' \ --header 'Content-Type: application/json' \ --data '{ "business_id": "b9c8d7e6-1234-5678-90ab-fedcba098765" }' ``` Returns a `docket_search_request_id` and runs in your API key's default mode (synchronous or asynchronous). Results include all found cases, each with its own `docket_id`. #### Portfolio Monitoring Add the search to ongoing monitoring: ```bash theme={null} curl --request POST \ --url https://api.baselayer.com/portfolio/items \ --header 'X-API-Key: your_api_key_here' \ --header 'Content-Type: application/json' \ --data '{ "business_search_id": "a1b2c3d4-5678-90ab-cdef-1234567890ab" }' ``` See the [Portfolio Monitoring guide](/docs/portfolio-monitoring) for details. *** ## Complete Flow Example Here's how a typical integration looks from start to finish: ```python theme={null} import requests import time API_KEY = "your_api_key_here" BASE_URL = "https://api.baselayer.com" # Step 1: Create business search response = requests.post( f"{BASE_URL}/searches", headers={"X-API-Key": API_KEY, "Content-Type": "application/json"}, json={ "name": "Baselayer Technologies Inc", "address": "149 New Montgomery St, San Francisco, CA 94105" } ) search_id = response.json()["id"] print(f"Search initiated: {search_id}") # Step 2: Wait for webhook OR poll for completion time.sleep(5) # Wait for processing (3-5 seconds without options) search_result = requests.get( f"{BASE_URL}/searches/{search_id}", headers={"X-API-Key": API_KEY} ).json() if search_result["state"] == "COMPLETED": # Business data is included in the search result business = search_result["business"] business_id = business["id"] print(f"Business verified: {business_id}") print(f"Business name: {business['name']}") # Step 3: Branch to other products using business_id # Example: Search for liens liens_response = requests.post( f"{BASE_URL}/lien_searches", headers={"X-API-Key": API_KEY, "Content-Type": "application/json"}, json={"business_id": business_id} ) liens_search_id = liens_response.json()["id"] print(f"Liens search initiated: {liens_search_id}") # Example: Add to portfolio monitoring portfolio_response = requests.post( f"{BASE_URL}/portfolio/items", headers={"X-API-Key": API_KEY, "Content-Type": "application/json"}, json={ "business_search_id": search_id } ) print(f"Added to portfolio monitoring") ``` *** ## When to Use Each Product ### Always Start Here **Business Search** - Your foundation for all other products. Provides: * Secretary of State registration verification * IRS TIN matching * OFAC/sanctions screening * Business identity and structure * Officer information * Risk scoring See: [Business Search guide](/docs/business-search) *** ### Optional Add-Ons (use business_id from search) **Lien Search** - When you need collateral or credit risk assessment * UCC liens (secured lending) * Tax liens (unpaid obligations) * Judgment liens See: [Lien Search guide](/docs/lien-search-basics) **Litigation & Bankruptcy Search** - When underwriting requires court record review * Federal and state court cases * Bankruptcy filings (Chapter 7, 11, 13) * Case details and exhibits See: [Litigation Search guide](/docs/litigation-bankruptcy-search-basics) **Portfolio Monitoring** - For ongoing risk management of existing customers * **Note:** portfolio monitoring uses `search_id`, not the `business_id`, for the API request * Automatic monitoring for changes and customizable alerting * SoS status updates, new liens, bankruptcies, sanctions hits See: [Portfolio Monitoring guide](/docs/portfolio-monitoring) *** ### Standalone Products (don't require business_id) **TIN Verification** - Standalone IRS validation * Can be used independently from Business Search * Real-time verification * Commonly used to verify the SSN of officers or sole proprietorships See: [TIN Verification guide](/api-reference/tin-verification/submit-tin-verification) **Online Presence (Industry Prediction, Website Analysis, Socials & Reviews)** - Can be ordered as part of Business Search or standalone * Website discovery and analysis * Industry classification (NAICS, MCC, SIC) * Digital legitimacy signals See: [Online Presence: Basics guide](/docs/online-presence-basics) for Web Presence options **OFAC/Watchlist Screening** - Included in Business Search or available standalone * Multiple sanctions and watchlists * PEP screening *** ## Important Concepts ### Asynchronous and Synchronous Execution Baselayer requests can run **asynchronously** - they return immediately with a request ID, then process in the background and notify you via webhook when complete. **Why?** Operations vary in complexity: * Basic Business Search: **3-5 seconds** (without additional options) * Other products (liens search or docket search): **2-10 seconds** * Specialized online presence products: **15-60 seconds** **Synchronous mode**: All task-based endpoints also support synchronous mode, which returns results in the response without requiring webhooks. New organizations default to synchronous mode, and the `Prefer` header sets the mode per request. See: [Webhooks at Baselayer](/docs/webhooks-at-baselayer) and [Synchronous & Asynchronous Request Execution](/docs/synchronous-asynchronous-request-execution) *** ## Quick Reference: Common API Patterns ### Pattern 1: Simple Business Verification ``` 1. POST /searches (get search_id) 2. Wait for BusinessSearch.completed webhook 3. Extract business_id and use results ``` ### Pattern 2: Business Verification + Liens ``` 1. POST /searches (get search_id) 2. Wait for BusinessSearch.completed webhook 3. Extract business_id 4. POST /lien_searches with business_id 5. Wait for LiensSearch.completed webhook 6. Process lien results ``` ### Pattern 3: Business Verification + Monitoring ``` 1. POST /searches (get search_id) 2. Wait for BusinessSearch.completed webhook 3. Extract business_id 4. POST /portfolio/items with search_id 5. Set up monitoring policy and notification subscriptions ``` *** ## Next Steps Now that you understand how Baselayer products connect, you're ready to: 1. **Set up authentication**: [Authentication guide](/docs/authentication) 2. **Configure webhooks**: [Webhooks at Baselayer](/docs/webhooks-at-baselayer) 3. **Choose your environment**: [Sandbox vs. Production](/docs/sandbox-vs-production-environments) 4. **Start with Business Search**: [Business Search guide](/docs/business-search) For detailed API specifications and request/response schemas, see the [API Reference](/api-reference). For questions about implementation or integration support, contact your Baselayer account manager. # Hosted Sessions and Direct Verifications Source: https://docs.baselayer.com/docs/hosted-sessions-and-direct-verifications Which routes, webhooks and states belong to a hosted enrollment session, and which to a direct verification. Baselayer verifies an identity in one of two ways. Each has its own routes, its own webhooks and its own identifier, and nothing mixes the two. Both end in the same pairwise references: `individual_ref` and, when a business is involved, `business_ref`. ## Choose a verification path | Use a [hosted enrollment session](/hosted-enrollment/sessions) when | Use a [direct verification](/docs/verifying-an-identity#path-a-submit-an-identity-you-already-collected) when | | - | - | | The applicant should complete a journey you published, on Baselayer's page instead of your forms. You get the results when they finish. | You already collected the identity yourself and your server sends it to Baselayer, server to server. | ## Technical differences | | Hosted enrollment session | Direct verification | | - | - | - | | Start | [`POST /onboarding/sessions`](/api-reference/onboarding/start-a-hosted-enrollment-session) | [`POST /issuance/identities/verifications`](/api-reference/identities/start-a-direct-verification) | | Identifier | `session_id` (the `id` that starting a session returns) | `verification_id` | | Read it | [`GET /onboarding/sessions/{session_id}`](/api-reference/onboarding/get-a-hosted-enrollment-session) | [`GET /issuance/identities/verifications/{verification_id}`](/api-reference/identities/get-a-direct-verification) | | Full outcome | [`GET /onboarding/sessions/{session_id}/results`](/api-reference/onboarding/get-a-hosted-enrollment-sessions-results) | The verification itself | | [Webhooks](/docs/webhooks-at-baselayer#setting-up-webhook-endpoints) | `OnboardingSession.*` | `Verification.*` | | `Idempotency-Key` | Not taken. A retry starts a second session. Use `reference_id` to tell them apart. | Required | ## Get the result ### Hosted ```http theme={null} GET /onboarding/sessions/{session_id}/results ``` * Wait for `OnboardingSession.completed`, then read the results route. The webhook is a summary; the results are the source of truth. * Before the session completes, the results route answers `409`. * A failed session sends `OnboardingSession.failed`. A reviewer decision sends `OnboardingSession.updated`. * Track sessions by `session_id` or `reference_id`. ### Direct ```http theme={null} GET /issuance/identities/verifications/{verification_id} ``` * Poll this route until `state` is terminal, or subscribe to `Verification.completed` and `Verification.failed`. Their payload is the verification exactly as this route returns it. * A reviewer decision sends `Verification.updated`. * List your direct verifications with [`GET /issuance/identities/verifications`](/api-reference/identities/list-direct-verifications). > [!NOTE] > > Use each identifier with its own routes: a `session_id` on the session routes, a `verification_id` on the verification routes. ## States A direct verification moves through these states: `PENDING` → `EXECUTING` → `WAITING` → `COMPLETED` It may also end in `FAILED` or `EXPIRED`. A verification stopped internally reports `FAILED`. > [!NOTE] > > **Compatibility note** > > The hosted session schema still lists `CANCELLED` for compatibility, but a session stopped internally reads `FAILED` on `GET /onboarding/sessions/{session_id}` and in its webhooks too. You can treat both resources' terminal states the same way. ## Verify someone again ### Hosted Start a new session. ### Direct To re-verify an individual you verified directly, call this route with no body and a fresh `Idempotency-Key`: ```http theme={null} POST /issuance/identities/individuals/{individual_ref}/reverify ``` See the [API reference](/api-reference/identities/re-verify-an-identity-from-its-stored-verification). * It answers `202` with a new direct verification. * The `individual_ref` never changes. * A retry with the same key returns the same verification. * A key already used for a different request answers `422`. * A new key while a verification is still running answers `409` with error code `6202`. * An individual with no stored verification to re-verify from answers `409` with error code `6203`. > [!NOTE] > > `POST /issuance/identities/verifications` starts a new verification from the details you send. To re-verify an existing `individual_ref`, use the route above. Next: [Mint a credential](/docs/minting-credentials) with the `individual_ref`. # How to Use Baselayer with LLMs Source: https://docs.baselayer.com/docs/how-to-use-baselayer-with-llms Set up Claude, ChatGPT or another AI assistant to write accurate Baselayer integration code, with ready-to-paste prompts for each product. ## How to Use Baselayer with AI Assistants AI assistants can significantly accelerate your Baselayer integration. By loading Baselayer's documentation index into your session, the model can generate accurate code, explain API responses, and guide you through implementation - without you needing to manually search through reference pages. This guide shows you how to set up your AI assistant correctly and provides copy-paste prompts for every major Baselayer product. > [!NOTE] > > Want your assistant to run Baselayer searches for you, not just write integration code? Connect the Baselayer MCP to Claude or ChatGPT. See the [MCP Overview](/docs/mcp) to get set up. *** ### Before You Start Complete both steps before using any prompt below. #### Step 1: Know your API key The only difference between the sandbox and production environments is your API key. Both keys are available in the [Baselayer console](https://console.baselayer.com). Use your sandbox key while building and testing, and switch to your production key when you're ready to go live. See [Sandbox vs. Production Environments](/docs/sandbox-vs-production-environments) for a full breakdown. #### Step 2: Load Baselayer's documentation into your AI session Baselayer provides a documentation index optimized for AI assistants at: ``` https://docs.baselayer.com/llms.txt ``` This file maps Baselayer's complete documentation - every guide, API reference, and webhook - as direct links to clean markdown files. Loading this index gives the AI accurate knowledge of Baselayer's endpoints, field names, and async patterns. Without it, the model will generate generic API code that is likely to be incorrect. **To load it, start every new session with this instruction:** > *"Please fetch and read [https://docs.baselayer.com/llms.txt](https://docs.baselayer.com/llms.txt) before we begin. Once you've read it, confirm and wait for my next message."* Wait for the model to confirm it has read the file before pasting any prompt below. If your AI assistant does not have web browsing enabled, visit the URL yourself, copy the full contents, and paste them at the top of your session instead. *** ### How to Use These Prompts Each prompt below is designed to be copied and pasted directly into your AI session after completing the steps above. Because the model has already loaded the documentation index, the prompts reference guide titles alongside their markdown source files - this gives the model precise context without relying on rendered web pages. The prompts are grouped into two phases: * **Building Your Integration**: Prompts 1–7 cover each major Baselayer product * **Testing and Edge Cases**: Prompts 8–9 cover sandbox setup and operational scenarios you will encounter before going to production *** ### Building Your Integration #### 1. Business Search *Start here if you are new to Baselayer or building your core KYB workflow.* ``` I'm working on a Baselayer integration and want to set up Business Search. Please reference the following guides from the documentation index you already loaded: - Business Verification Basics: /docs/business-verification-basics.md - Business Search: Basics: /docs/business-search-basics.md - Business Search: API Quickstart: /docs/business-search.md - POST /searches: /api-reference/search/post-search - GET /searches/{id}: /api-reference/search/get-search Help me: 1. Build a complete Business Search request body 2. Explain required vs. optional fields 3. Provide a working code example 4. Explain how to retrieve and interpret results 5. Suggest error handling and retry strategies ``` *** #### 2. Web Presence *Use this when you need to verify a business's online presence, find its website, or predict its industry.* ``` I'm working on a Baselayer integration and want to set up Web Presence. Please reference the following guides from the documentation index you already loaded: - Online Presence: Basics: /docs/online-presence-basics.md - Online Presence: Best Practices: /docs/web-presence-orderables.md - Sole Proprietorship Verification: /docs/sole-prop-verification.md - POST /web_presence_requests: /api-reference/web-presence/post-web-presence-request - GET /web_presence_requests/{id}: /api-reference/web-presence/get-web-presence-request Help me: 1. Create a complete Web Presence request 2. Explain available enrichment options 3. Show an example response and explain the key fields 4. Explain how to check job status and retrieve results 5. Suggest production best practices ``` *** #### 3. Lien Search *Use this if you are building a lending or credit product and need to check for existing liens or judgments.* ``` I'm working on a Baselayer integration and want to add Lien Search. Please reference the following guides from the documentation index you already loaded: - Liens, Judgments, and Public Records: /docs/liens-judgments-and-public-records.md - Lien Search: Best Practices: /docs/lien-searching-best-practices.md - POST /lien_searches: /api-reference/lien-search/start-liens-search - GET /lien_searches/{id}: /api-reference/lien-search/get-liens Help me: 1. Build a complete Lien Search request 2. Explain filtering options and search_states options 3. Provide a working code example 4. Explain how to retrieve and interpret results 5. Suggest error handling strategies ``` *** #### 4. Litigation and Docket Search *Use this to check for active or historical litigation and bankruptcy filings.* ``` I'm working on a Baselayer integration and want to add Litigation and Docket Search. Please reference the following guides from the documentation index you already loaded: - Litigation and Bankruptcy Records: /docs/litigation-and-bankruptcy-records.md - Litigation & Bankruptcy Search: Best Practices: /docs/litigation-bankruptcy-search-best-practices.md - POST /docket_searches: /api-reference/litigation-&-bankruptcy/start-docket-search - GET /docket_searches/{id}: /api-reference/litigation-&-bankruptcy/get-all-dockets-by-search-request-id - PUT /dockets/{docket_id}/details: /api-reference/litigation-&-bankruptcy/order-docket-details Help me: 1. Submit a docket search request 2. Explain filtering options 3. Provide a working code example 4. Explain how to retrieve and interpret results 5. Explain how to retrieve detailed docket information ``` *** #### 5. Business Pre-Fill *Use this if you are building your initial onboarding flow and want to auto-complete business information for applicants.* ``` I'm building an onboarding flow and want to use Baselayer Business Pre-Fill to auto-complete business information for applicants. Please reference the following guides from the documentation index you already loaded: - Business Pre-Fill: Basics: /docs/business-prefill-basics.md - Business Pre-Fill: API Quickstart: /docs/business-prefill-api-quickstart.md - Business Pre-Fill: Best Practices: /docs/business-prefill-best-practices.md - GET /prefill/businesses: /api-reference/prefill/business-prefill Help me: 1. Build a Pre-Fill request 2. Explain what data is returned 3. Show a full example response 4. Explain how to integrate this into an onboarding flow 5. Suggest UX and validation best practices ``` *** #### 6. Webhooks *Set this up alongside any other product - webhooks are how Baselayer notifies you when async jobs complete.* ``` I'm integrating Baselayer and want to set up webhooks for real-time event notifications. Please reference the following guides from the documentation index you already loaded: - Authentication: /docs/authentication.md - Webhooks at Baselayer: /docs/webhooks-at-baselayer.md - POST /webhooks: /api-reference/webhook-management/create-webhook-endpoint - Webhook Event — Business Search Completed: /api-reference/business-verification/business-search-completed Help me: 1. Register a webhook endpoint 2. Verify webhook signatures 3. Handle the most common webhook events 4. Implement retry handling 5. Provide a working Python or Node.js example ``` *** #### 7. Portfolio Monitoring *Use this once your core KYB workflow is in place and you need ongoing monitoring for businesses in your portfolio.* ``` I'm working on a Baselayer integration and want to set up Portfolio Monitoring. Please reference the following guides from the documentation index you already loaded: - Portfolio Monitoring: Basics: /docs/portfolio-monitoring.md - Portfolio Monitoring: API Quickstart: /docs/portfolio-monitoring-api-quickstart.md - Portfolio Monitoring: Best Practices: /docs/portfolio-monitoring-best-practices.md - POST /portfolio/items: /api-reference/portfolio-monitoring/create-portfolio-item Help me: 1. Create a portfolio item 2. Explain what data is monitored 3. Show a full request and response example 4. Explain how to handle monitoring alerts and events 5. Suggest production best practices ``` *** ### Testing and Edge Cases #### 8. Set Up and Test in Sandbox *Complete this before writing integration code. Your sandbox API key is available in the Baselayer console and gives you a safe environment to validate requests before switching to your production key.* ``` I'm building a Baselayer integration and want to test it safely before going to production. Please reference the following guides from the documentation index you already loaded: - Sandbox vs. Production Environments: /docs/sandbox-vs-production-environments.md - Authentication: /docs/authentication.md - Getting Started with Baselayer API: /docs/getting-started.md Help me: 1. Understand the key differences between sandbox and production 2. Configure authentication correctly for the sandbox environment 3. Run a test Business Search request in sandbox 4. Explain what test data is available and how to use it 5. Explain how to safely transition from sandbox to production ``` *** #### 9. Handle an IRS Pending Response *Use this if your Business Search is returning a pending IRS state and you are not sure how to handle it.* ``` I'm integrating Baselayer and need to understand how to handle IRS pending responses during a Business Search. Please reference the following guides from the documentation index you already loaded: - Guide: IRS Outage Handling: /docs/webhook-guide-businesssearchupdated.md - Business Search: Basics: /docs/business-search-basics.md - Webhooks at Baselayer: /docs/webhooks-at-baselayer.md Help me: 1. Understand what an IRS pending response means 2. Detect and handle this state in my integration 3. Use webhooks to be notified when the IRS response resolves 4. Implement retry logic and fallback strategies 5. Understand how this state affects my overall Business Search flow ``` *** ### Tips for Better Results **Specify your language and libraries.** After pasting a prompt, add a line like *"Use Python with the httpx library"* or *"Use Node.js with axios."* The AI will tailor all code examples accordingly. **Ask follow-up questions.** These prompts are starting points. If a response references a field or state you don't recognize, ask: *"What does a `state` of `PENDING` mean and how should I handle it in my workflow?"* **Verify field names against the API reference.** AI assistants can occasionally produce incorrect field names. If a generated request body doesn't match what you see in the [Baselayer API reference](/api-reference), ask the model to re-read the relevant endpoint file and correct its answer. **Start a new session for each product.** Context windows have limits. If you are moving from one product to another, start a fresh session, reload `llms.txt`, and use the appropriate prompt. # Industry Classification Systems Source: https://docs.baselayer.com/docs/industry-classification-systems Know how NAICS, MCC and SIC codes differ, and why a business's stated industry often can't be trusted. ## Why Industry Classification Matters Every business operates in an industry - restaurants, construction, software development, retail. But in business verification and financial services, knowing which industry isn't just helpful, it's essential. Industry classification determines: * **What products you can offer:** Some industries are restricted or prohibited for certain financial products (e.g., cannabis businesses face banking restrictions, gambling has limited credit access) * **How much risk you take on:** A restaurant has different default rates and fraud patterns than a software company * **What terms you offer:** Interest rates, loan amounts, and underwriting criteria typically vary by industry * **How you monitor behavior:** A construction company making large equipment purchases is normal; a consulting firm doing the same might signal fraud The challenge? Unlike personal identity (where everyone has an SSN), there's no universal system for classifying businesses. Instead, several systems coexist, each designed for different purposes. *** ## The Three Major Classification Systems #### NAICS (North American Industry Classification System) NAICS is the standard for government statistics and most business reporting in North America. **How it works:** * Hierarchical **6-digit code** developed by US, Canada, and Mexico * Most widely used for statistical analysis and government reporting * Updated every 5 years to reflect economic changes NAICS codes help you understand what a business actually does, enabling quick risk assessments and prohibited industry checks. **Structure Breakdown:** Sector (2 digits) → Subsector (3 digits) → Industry Group (4 digits) → NAICS Industry (5 digits) → National Industry (6 digits) * **Example**: 722511 = Full-Service Restaurants * 72 = Accommodation and Food Services * 722 = Food Services and Drinking Places * 7225 = Restaurants and Other Eating Places * 72251 = Restaurants and Other Eating Places * 722511 = Full-Service Restaurants > **Note:** Baselayer uses 2017 NAICS codes across all industry prediction and classification endpoints. The 2017 revision is the basis for all returned codes, filters, and industry-related fields. If you're cross-referencing against another system, confirm it also uses the 2017 standard. *** #### MCC (Merchant Category Code) If NAICS is for general business classification, MCC is specifically for payment transactions. Every merchant that accepts credit or debit cards is assigned an MCC by their payment processor. Some lenders prohibit businesses in high-risk MCCs. It also has been demonstrated that MCCs can help predict transaction patterns and fraud likelihood. **How it works:** * A **4-digit code** used by credit card networks (Visa, Mastercard, Amex) * More granular for retail and service industries than B2B services * Critical for payment processing and merchant risk assessment * **Determines interchange fees and processing rules** **Risk tiers:** Card networks categorize MCCs by risk level: * High-risk MCCs (gambling, adult entertainment, travel agencies, telemarketing): Higher processing fees, stricter requirements, potential for more fraud or chargebacks * Medium-risk MCCs: Most retail and service businesses * Low-risk MCCs (utilities, insurance, professional services): Lowest fees and fraud rates **Example**: 5812 = Eating Places, Restaurants *** #### SIC (Standard Industrial Classification) SIC is the older classification system, largely replaced by NAICS but still used in some contexts. Some data sources and compliance systems still reference SIC codes. Understanding the relationship between SIC and NAICS helps when working across multiple data providers. **How it works:** * A **4-digit code** * Less hierarchical and less granular than NAICS * Still used in some financial and regulatory contexts * Last updated in 1987 **When it's still used:** * SEC filings and some financial reporting * Legacy databases and older systems * Certain regulatory requirements *** ## The Industry Classification Challenge When a business applies for a loan, payment processing, or any financial service, you need to know their industry to assess risk and ensure compliance.\ But: #### Challenge 1: Businesses don't report industry consistently * Application forms may ask "What type of business are you?" with free-text fields * Applicants might say "retail" (too vague), "Amazon reseller" (not a standard category), or **misrepresent intentionally to bypass restrictions** #### Challenge 2: You can't rely on official registries * Secretary of State records typically don't include industry classification or NAICS codes * You can't rely on government data to accurately know what a business actually does #### Challenge 3: Self-reported industry may be inaccurate or fraudulent * A CBD company might claim to be "health and wellness" to avoid cannabis restrictions * High-risk merchants might describe themselves as low-risk businesses * Legitimate businesses might not know their correct NAICS code #### Challenge 4: Industries evolve faster than classification systems * Is a "creator economy platform" media, technology, or financial services? * How do you classify a business that's part e-commerce, part subscription service, part marketplace? *** ## How Industry Prediction Solves This Modern business verification platforms like Baselayer use AI-powered industry prediction to solve these challenges: #### What it does * Analyzes business name, address, website content, and other signals * Predicts the most likely NAICS code, MCC, and SIC classification * Provides confidence scores and supporting keywords * Works even when businesses don't self-report website, industry or provide incomplete information #### Why this matters * **Catch misrepresentation early:** If an applicant claims "consulting" but their website shows they're a cannabis dispensary, you can flag before extending credit * **Enable automated decisioning:** Block prohibited industries instantly without manual review * **Assess risk appropriately:** Apply correct underwriting criteria based on actual business type, not what they claim * **Ensure compliance:** Screen against your institution's restricted industry list accurately #### Example scenario * Applicant business name: "Green Valley Wellness Center" * Applicant stated industry: "Health and wellness retail" * Website analysis reveals: CBD products, marijuana accessories * Industry prediction: NAICS 453998 (All Other Miscellaneous Store Retailers (except Tobacco Stores)) * MCC: High-risk retail * Result: Flagged for review or auto-declined based on your cannabis policy For detailed information on how Baselayer's Industry Prediction works and how to use it in your verification workflow, see our [Industry Prediction](/docs/industry-prediction-user-guide). *** ## Key Takeaways 1. **Industry classification is fundamental to risk assessment** - different industries have vastly different risk profiles 2. **Three systems coexist:** NAICS (general), MCC (payments), SIC (legacy) 3. **Official sources don't usually help:** Secretary of State registries don't include industry data 4. **Self-reporting is unreliable:** Businesses misclassify accidentally or intentionally 5. **AI-powered prediction is essential:** Modern verification requires automated, accurate industry classification based on multiple signals 6. **Industry impacts everything:** From whether you can serve a customer to what terms you offer to how you monitor them # Industry Prediction Source: https://docs.baselayer.com/docs/industry-prediction-user-guide Classify a business's industry from its online presence, and screen it against restricted industry lists. Industry Prediction classifies a business's industry based on its online presence: website content, business name, address, and any other signals Baselayer discovers. It returns a 6-digit NAICS code, SIC and MCC codes, confidence score, risk level, keywords, and card network risk indicators. > **Note:** Baselayer uses 2017 NAICS codes across all industry prediction and classification endpoints. The 2017 revision is the basis for all returned codes, filters, and industry-related fields. If you're cross-referencing against another system, confirm it also uses the 2017 standard. *** ### When to use it * You need to screen applicants against prohibited or restricted industry lists * You want to validate user-submitted industry classification * You are running card network compliance checks (Mastercard BRAM, Visa risk tiers) * You want to classify industry for underwriting or risk-based decisioning * You need early industry classification before proceeding with a full Business Search *** ### How to request it Industry Prediction is available on both integration paths. #### Via `POST /web_presence_requests` Include `Order.NaicsPrediction` in the `options` array. Results are returned **inline** in the response at `industry_prediction`. ```json theme={null} { "name": "Lucali", "address": "575 Henry St, Brooklyn, NY 11231", "options": ["Order.NaicsPrediction"] } ``` #### Via `POST /searches` Include `Order.NaicsPrediction` in the `options` array. Results are **not inline** - Baselayer returns a `NAICSPredictionRequest` tracking object in `orderables[]`. Fetch the result using the URL in that object, or listen for the `NAICSPredictionRequest.completed` webhook. ```json theme={null} { "name": "Lucali", "address": "575 Henry St, Brooklyn, NY 11231", "options": ["Order.NaicsPrediction"] } ``` The search response will contain: ```json theme={null} { "orderables": [ { "type": "NAICSPredictionRequest", "id": "7f1f1bc6-119d-4613-af28-7f885d37cf2c", "url": "https://api.baselayer.com/naics_prediction_requests/7f1f1bc6-119d-4613-af28-7f885d37cf2c", "option": "Order.NaicsPrediction" } ] } ``` Fetch the result: ```bash theme={null} GET /naics_prediction_requests/{id} ``` The prediction is returned under `predicted_naics`. #### Via `Order.Enhanced` `Order.Enhanced` on `POST /searches` includes Industry Prediction automatically alongside Website Analysis, Social Profiles, Reviews, and expanded officer/address discovery. Send it together with `Order.WebsiteAnalysis` and `Order.NaicsPrediction`. See [Online Presence: Basics](/docs/online-presence-basics) for when to use Enhanced vs. individual orderables. *** ### Response fields #### Core fields | Field | Type | Description | | :- | :- | :- | | `code` | string | 6-digit NAICS code for the predicted industry (e.g., `722511`). | | `title` | string | Official NAICS title for the predicted code (e.g., `Full-Service Restaurants`). | | `accuracy` | float | Baselayer's confidence in the prediction, from 0 to 1. `≥ 0.75` is recommended for automated decisioning. | | `keywords[]` | array | 4–8 keywords extracted from the business's online presence describing core activity. Useful for detecting sensitive terms within permitted industries. | | `risk_level` | enum | Baselayer's normalized risk assessment: `no_risk`, `low`, `medium`, or `high`. | | `reasoning` | string | Natural-language explanation of why this NAICS code was selected, citing the evidence sources Baselayer used (website content, search results, Google Places, etc.) and occasionally noting runner-up codes considered. Useful for auditing predictions and explaining classifications to reviewers. | | `mcc_codes[]` | array | Merchant Category Code objects, see below. | | `sic_codes[]` | array | Standard Industry Code objects, see below. | #### `mcc_codes[]` entry fields | Field | Type | Description | | :- | :- | :- | | `code` | string | 4-digit Merchant Category Code. | | `description` | string | Human-readable MCC description. | | `mastercard_risk` | boolean | Whether Mastercard considers this MCC high-risk per their BRAM program. | | `visa_risk_tier` | integer \| null | Visa's risk tier: `1` (high risk), `2` (standard), `3` (emerging high risk), or `null`. | > A single industry prediction may return multiple MCC codes. Check all of them for `mastercard_risk` and `visa_risk_tier` - a single flagged entry is sufficient to trigger compliance controls. #### `sic_codes[]` entry fields | Field | Type | Description | | :- | :- | :- | | `code` | string | 4-digit Standard Industry Code. | | `description` | string | Human-readable SIC description. | *** ### Interpreting results Industry Prediction produces two types of signals: **industry classification** (what does this business do?) and **compliance screening** (is this business in a permitted sector?). The `accuracy` score determines how much confidence to place in the result. Importantly, accuracy is not a measure of whether the prediction is correct - it measures **how much data was available and how consistently it pointed in the same direction**. A low score means insufficient signal, not a wrong answer. Never auto-decline on a low accuracy score; route to manual review instead. **What drives accuracy:** The model draws on website content, social media profiles and online listings, public records and licenses, and business name analysis. A business with a detailed website, consistent information across platforms, and an industry-specific name will typically score higher than one with minimal online presence. The more signals available and the more they agree, the higher the accuracy. For the full decisioning framework - including confidence thresholds, prohibited industry list structure, keyword scanning, and card network compliance - see [Industry Prediction section](/docs/web-presence-orderables#industry-prediction) in the Best Practices guide: tiered review policy, NAICS hierarchy strategy, keyword watchlists, and MCC handling. The key fields to evaluate in every application: * `accuracy` - apply automated decisioning at `≥ 0.75`; require manual review below that threshold * `code` - check against your prohibited and restricted NAICS lists at 2-digit, 4-digit, and 6-digit levels * `keywords[]` - scan against your sensitive keyword watchlist for restricted activities within otherwise permitted sectors; a complete recommended keyword list is available from your account representative * `mcc_codes[].mastercard_risk` and `mcc_codes[].visa_risk_tier` - check all entries; any flagged MCC triggers card network compliance controls * `reasoning` - read when a prediction looks surprising, when a reviewer needs justification, or when debugging why a borderline classification went one way over another. It surfaces the evidence Baselayer relied on and occasionally runner-up codes that were considered. *** ### Related guides * [Online Presence: Basics](/docs/online-presence-basics) — integration path decision guide and data model * [Online Presence: Best Practices](/docs/web-presence-orderables) — full decisioning framework * [Online Presence: Response Reference](/docs/online-presence-response-reference) — match values, match sources, and response shape by integration path * [Website Analysis](/docs/website-analysis-basics) — request alongside Industry Prediction for best accuracy * [Industry Prediction API Reference](/api-reference/industry-prediction/get-industry-prediction) — full endpoint documentation # International Products: API Quickstart Source: https://docs.baselayer.com/docs/international-products-api-quickstart Verify a non-US business in a few calls: search by name and address, or by filing number for a precise match. ## International Business Search: API Quickstart This quickstart covers the **Business Verification** side of Baselayer International **Search** product, which returns corporate registration data for businesses in 76 supported jurisdictions. For the conceptual overview (and for international **Web Presence**), see [International Products: Basics](/docs/baselayer-international-products). > **Note**: International Business Search is **API-only** for now, and uses a separate route from the US Business Search (`/international/searches`, not `/searches`). The two are not interchangeable. *** ### Before you start * You need a Baselayer API key. Requests are authenticated the same way as every other Baselayer endpoint. See [Authentication](/docs/authentication). * You can develop against the sandbox before going live. See [Sandbox vs. Production Environments](/docs/sandbox-vs-production-environments). * Every request must include an `iso2_country_code` (ISO 3166-1 alpha-2, e.g. `GB`, `DE`, `CA`). It must be one of the 76 supported countries listed in the [Basics guide](/docs/baselayer-international-products). *** ### Step 1: Choose how you'll search `POST /international/searches` accepts two ways to identify a business. Both require `iso2_country_code`. | Mode | Provide | | - | - | | **Name + address** | `name` **and** `address` | | **Registration number** | `filing_number`, optionally with `name` and/or `address` | **Name + address is the standard approach, and all you need for the vast majority of searches**, treat it as your default. The registration number is a good **optional** input to offer alongside it. In many countries, owners and finance staff know their company's registration number by heart, so letting them enter it is fast and familiar. When `filing_number` is provided, the registry is searched by that number first; a `name`, if also provided, is used as a fallback when no company matches the number. With a `filing_number`, `name` and `address` are each optional; without one, both are required. > **Tip**: Label the registration-number field with the **local term** so users recognize it: for example, in Spain it's the **CIF**. See [Best Practices](/docs/international-products-best-practices) for more. *** ### Step 2 (optional add-on): Offer a registration lookup This step is entirely optional and not needed for a great result. If you find match rates in a particular market could be better, you can offer users a smoother path: look up candidates with `GET /international/registrations`, show them the list, and let them pick the right one. Then search using that result's `filing_number`. ```javascript Text theme={null} GET /international/registrations?iso2_country_code=GB&name=Acme%20Ltd ``` Query parameters: `iso2_country_code`, `name`, and/or `filing_number`. The endpoint returns a **list of matching registrations** to choose from. Take the `filing_number` of the chosen result and use it in Step 3. Think of this as a nice enhancement, not a requirement: a plain name + address search is a perfectly good one-step flow. *** ### Step 3: Create the search **By name + address:** ```javascript Text theme={null} POST /international/searches { "name": "Acme Ltd", "address": "1 Parliament St, London SW1A 2JR, United Kingdom", "iso2_country_code": "GB" } ``` **By filing number** (e.g. a `filing_number` chosen from Step 2): ```javascript Text theme={null} POST /international/searches { "filing_number": "01234567", "iso2_country_code": "GB" } ``` **Optional fields** (either mode): `officer_names`, `website`, `phone_number`, `email`, `alternative_names`, and `reference_id` (your internal tracking ID). **Enhanced Profile add-on:** to also return directors, ultimate beneficial owners, shareholders, and share capital where available, request the `Order.Enhanced` option. It is billed separately, and cost varies per country. ```javascript Text theme={null} POST /international/searches { "filing_number": "01234567", "iso2_country_code": "GB", "options": ["Order.Enhanced"] } ``` *** ### Step 4: Get the results International Business Search is asynchronous. The `POST` returns immediately with an `id`; retrieve results when the search completes, via webhook (recommended) or polling. ```javascript Text theme={null} GET /international/searches/{id} GET /international/searches ``` **Webhooks:** * `InternationalBusinessSearch.submitted`: accepted and processing * `InternationalBusinessSearch.completed`: results are available * `InternationalBusinessSearch.failed`: no associated business was found See the [Webhooks at Baselayer](/docs/webhooks-at-baselayer) to configure delivery. *** ### Step 5: Read the response A completed search returns a `business` object. These fields are present across all countries: * `name`: the official registered name * `file_number`: the registration/filing number in the local registry * `status`: normalized to `active`, `inactive`, or `unknown` * `country`: the ISO2 country code of the registration The response also tells you **how well your inputs matched** the company found at the registry, the same match signals the US Business Search returns: * `business_name_match`: how closely your `name` matched: `EXACT`, `SIMILAR`, or `NO_MATCH` (identical to the US). * `business_address_match`: how closely your `address` matched, at international granularity: `EXACT`, `CITY`, `REGION`, `COUNTRY`, or `NO_MATCH`. * `filing_number_match`: a boolean specific to international search: `true` if the `filing_number` you supplied located the company at the registry, `false` if the search fell back to the name, and `null` if you didn't supply a filing number. Any match field is `null` when the corresponding input wasn't provided. Use `business_name_match` and `business_address_match` for decisioning exactly as you do for US searches. The response also includes **`watchlist_hits`**: the company, any `alternative_names` you sent, and its current officers and beneficial owners are screened against OFAC, CSL, FBI, Canadian sanctions and OIG (plus PEP when you order `Order.Pep`), following your [Account Settings](/docs/account-settings). Each entry has `code`, `name`, `count` and `details`. A `count` of `0` means screened with no match; a list that's absent wasn't screened. A confirmed OFAC hit sets Risk to `0` / `F`. International Business Search also returns **KYB and Risk ratings on the same scale** as the US product, with the same grade bands (A ≥ 90, B ≥ 80, C ≥ 60; only A and B count as `verified`), so you can apply your existing thresholds. The KYB score only counts the inputs you sent. See the [international scoring section](/docs/baselayer-international-products#scores-and-ratings) and [Scores & Ratings](/docs/baselayer-scores-ratings). > **Important**: Data depth varies by country. Most countries return the core registration fields above; some return more. `status` is always normalized to `active` / `inactive` / `unknown`. *** ### End-to-End Flow Summary That's a complete international business verification: 1. **Identify the business**: by name + address (the default), or by registration number where the user has it. 2. **Create the search**: `POST /international/searches` with `iso2_country_code`, optionally adding `Order.Enhanced` for ownership data. 3. **Receive results**: via the `InternationalBusinessSearch.completed` webhook, or by polling `GET /international/searches/{id}`. 4. **Decide**: read the `business` object and apply your existing KYB and Risk thresholds. With this in place, you can verify businesses across 76 jurisdictions through the same request-and-webhook pattern you already use for US searches. *** ### Where to Go Next * **[International Products: Best Practices](/docs/international-products-best-practices)** — Offering and localizing the registration-number field, when to use Enhanced Profiles, what varies by country, and how to handle low match rates. * **[International Products: Basics](/docs/baselayer-international-products)** — The full overview: supported countries and international Web Presence. * **[Scores & Ratings](/docs/baselayer-scores-ratings)** — How KYB and Risk ratings are calculated and how to threshold on them. * **[Webhooks](/docs/webhooks-at-baselayer)** — Configuring delivery for `InternationalBusinessSearch` events. # International Products: Best Practices Source: https://docs.baselayer.com/docs/international-products-best-practices Get the most accurate international KYB results: choose the right search mode, disambiguate with registrations, and know what varies by country. ## International Business Search: Best Practices This guide covers how to get the best results from **International Business Search**. For a step-by-step walkthrough, see the [API Quickstart](/docs/international-products-api-quickstart); for the overview and country list, see [International Products: Basics](/docs/baselayer-international-products). *** ### Name + address is the standard, offer the registration number as an option `POST /international/searches` works well with just **name + address**, and that's all you need for the vast majority of verifications. You don't need the registration number to get good results. That said, **offering the registration number as an optional input is a nice touch**. In many countries, owners and finance staff know their company's registration number by heart, so letting them type it in is fast and familiar. * Pass `filing_number` (with `iso2_country_code`) whenever the user provides it. * When `filing_number` is provided, the registry is searched by that number first; a `name`, if also included, is used as a fallback when no company matches the number. * With a `filing_number`, `name` and `address` are optional, but **send whatever you have**: each input you provide is matched and counts toward the KYB score, and a name also gives the search a fallback if the number doesn't resolve. > **Tip**: **Localize the field label** to the term your users know. In Spain, for example, the registration number is the **CIF**. Labeling the input with the local term (rather than a generic "registration number") makes it obvious what to enter and improves completion. *** ### Optional: smooth out low match rates with a registration lookup If you notice match rates in a particular market aren't as high as you'd like, you can offer users a smoother path with `GET /international/registrations`: list the candidate registrations, let the user pick the right one, then search using that result's `filing_number`. **The flow:** 1. **List candidates**: `GET /international/registrations`returns a list of matching registrations. 2. **Let the user pick** the correct entity from that list. 3. **Search**: take the `filing_number` from the chosen result and pass it to `POST /international/searches` for the complete business profile. ```javascript Text theme={null} // 1. Find candidates GET /international/registrations?iso2_country_code=GB&name=Acme%20Ltd // 2. User selects the right one → take its filing_number // 3. Verify that exact entity POST /international/searches { "filing_number": "01234567", "iso2_country_code": "GB" } ``` This lets the user confirm the specific company they intended before you run the search, which can help in markets where name-based matching is trickier. > **Note**: This is a nice-to-have, not a requirement. A plain name + address search is the standard, fully-supported path and works well on its own. Reach for the registration lookup only if you want to improve the experience. *** ### Request Enhanced Profiles when you need ownership depth By default a search returns the core registration profile (name, file number, status, country and addresses). To also return **directors, ultimate beneficial owners (UBOs), shareholders, and share capital**, add the `Order.Enhanced` option: ```javascript Text theme={null} POST /international/searches { "filing_number": "01234567", "iso2_country_code": "GB", "options": ["Order.Enhanced"] } ``` Enhanced Profiles are **billed separately, per country**. Coverage and available fields vary by jurisdiction. Contact your account manager for more details. *** ### Expect data depth to vary by country International Business Search covers 76 jurisdictions through different corporate registries, and the depth of data differs between them. Design for this: * **Treat core fields as guaranteed, extras as best-effort.** `name`, `file_number`, `status`, and `country` are present everywhere; richer detail depends on the jurisdiction. * **Country availability can change** as registry access evolves. Confirm the current list in the [Basics guide](/docs/baselayer-international-products) or with your account manager. *** ### Reuse your US scoring and matching logic International Business Search returns **KYB and Risk ratings on the same scale** as the US product, with the same grade bands (A ≥ 90, B ≥ 80, C ≥ 60; only A and B count as `verified`). The KYB score only counts the inputs you sent, so a filing-number-only search is scored fairly against the registry. It also uses a very similar matching logic. You can apply the same thresholds and decisioning you already use for US searches, no separate calibration required. See [Scores & Ratings](/docs/baselayer-scores-ratings). Name matching also understands **local legal forms**: a full legal form and its abbreviation are treated as the same name in Spain, France, Germany, Austria, the Netherlands, Belgium and Italy (for example `SL` and `Sociedad Limitada`, or `GmbH`, `SARL` and `BV` and their long forms). You don't need to normalize these yourself. *** ### Use watchlist hits, and read them correctly Every international search screens the company, any `alternative_names` you send, and its current officers and beneficial owners against OFAC, CSL, FBI, Canadian sanctions and OIG, plus PEP when you add `Order.Pep`. Results appear in `watchlist_hits`. * **Send known trade names in `alternative_names`** so they're screened too. * **A `count` of `0` is a clean screen; an absent list is not.** A list is absent when it wasn't screened (turned off in your settings, or PEP not ordered). * **Tune lists and match strictness in [Account Settings](/docs/account-settings).** The same settings apply to US and international searches. * A confirmed OFAC hit already sets Risk to `0` / `F`, so your existing Risk thresholds will catch it. *** ### Read the match indicators like you do in the US Every result includes match signals that behave just like the US Business Search: * `business_name_match`: `EXACT` / `SIMILAR` / `NO_MATCH` (identical to the US). * `business_address_match`: `EXACT` / `CITY` / `REGION` / `COUNTRY` / `NO_MATCH` (international granularity). * `filing_number_match`: an international-only boolean - `true` if the registration number you sent located the company, `false` if the search fell back to name matching, and `null` if none was sent. Use `business_name_match` and `business_address_match` in your decisioning exactly as you do for US searches. `filing_number_match` is also a useful way to **monitor your registration-number option**: if it's frequently `false`, users are likely entering a number that doesn't resolve for that jurisdiction - a signal to revisit the field's label or help text (see *offer the registration number* above). *** ### Prefer webhooks over polling International searches are asynchronous. Subscribe to `InternationalBusinessSearch.completed` (and `.failed`) rather than polling `GET /international/searches/{id}` on a tight loop, it's more efficient and gives you results as soon as they're ready. See the [Webhooks at Baselayer](/docs/webhooks-at-baselayer). *** ### Know what International Business Search does *not* do * **No TIN verification**: IRS TIN matching is US-only. * **No online-presence add-ons on the search**: for website analysis, industry prediction, and other online-presence signals internationally, use the **Web Presence** endpoint (`POST /web_presence_requests`), which supports international requests via `iso2_country_code`. See [International Products: Basics](/docs/baselayer-international-products). * **Country-specific pricing**: negotiated separately from your US contract. *** ### Putting It All Together A strong international KYB integration: * Uses **name + address as the default**: and gets great results with it * Offers the **registration number as an optional, locally-labeled input** where users are likely to know it * Adds **Enhanced Profiles** only when you need ownership depth * **Reuses your existing US scoring and matching thresholds**, since they are similar * Falls back to the **registration lookup** if necessary Get those right and international verification behaves like a natural extension of your US flow: same ratings, same matching logic, same webhook pattern, with a bit of per-country awareness. *** ### Where to Go Next * [**International Products: API Quickstart**](/docs/international-products-api-quickstart): The step-by-step walkthrough, from request to response. * **[International Products: Basics](/docs/baselayer-international-products)**: Supported countries and international Web Presence. * **[Scores & Ratings](/docs/baselayer-scores-ratings)**: How KYB and Risk ratings are calculated. # What baselayer.js Reports Source: https://docs.baselayer.com/docs/kya-acceptance-browser-records Know exactly what baselayer.js sends from your pages, what it never sends, what it shows, and what happens to a human visit. For your web, privacy and security teams. Lists what [baselayer.js](/docs/kya-acceptance-quickstart) sends from your pages to Baselayer. ## For Security Review | Item | Detail | | - | - | | `js.baselayer.com` | Serves baselayer.js | | `.collect.baselayer.com` | Serves the detection script and receives what it collects | | `api.baselayer.com` | Receives the page records and answers each page's check | | Cookies | Two first-party cookies: `baselayer_visit` on every page, and `baselayer_recognition` once an agent's credential passes a step-up. See [Cookies](#cookies). | | Size | At most 12,300 bytes gzipped | | Loading | An ES module, so the browser loads it without blocking the page from rendering | | Sending | Every 5 seconds, sooner at 50 records, and when the page is hidden or closed | For the Content Security Policy entries, see [Set Up baselayer.js](/docs/kya-acceptance-quickstart#content-security-policy). ## Record Types baselayer.js sends four types of record, each with an `event_type`. Each carries a record ID, when it happened, the visit's cookie value and the page's path template. | `event_type` | When | What else it carries | | - | - | - | | `page_view` | A page opens, a single-page app changes route, or you call `track("page_view")` | On the landing page, the referrer's scheme and host | | `page_exit` | A page closes or the app leaves it | `dwell_ms` (time open), `visible_ms` (time visible) and `max_scroll_pct` (furthest scroll, 0 to 100) | | `navigation` | A single-page app changes route | The page left and the page opened, as templates, and `navigation_type` | | `interaction` | A click, or scrolling past 25, 50, 75 and 100 % | `interaction_type` (`click` or `scroll`), the target's role (such as `button` or `link`), and a hash of its `data-bl-id` attribute when it has one | At most 200 records are sent for one page. A `page_exit` always goes, and carries the number dropped past that limit as `dropped_count`. ## Path Templates A record carries a path template, never the URL. The query string and fragment are removed, and each segment shaped like an identifier becomes `{id}`: a UUID, a number of 4 or more digits, a long hex or mixed-case token, or anything holding `@`. `/orders/8812/items` is sent as `/orders/{id}/items`. Other segments are sent as they are. If your paths can hold a name or another personal value in a lowercase segment, pass your route templates in `routes` or exclude those pages with `excludePaths`. See [Options](/docs/kya-acceptance-quickstart#options). ## What Is Never Sent * Typed text, form values, query strings and fragments. * The text, value or `href` of an element anyone clicks. * Anything at all from a page that matches `excludePaths`. * Anything at all when `init` gets `consent: false`. ## Cookies The snippet keeps one first-party cookie on every page, `baselayer_visit`: 32 random hex characters, `SameSite=Lax`, `Secure` on https pages, 30 minutes from the last record. It is not `HttpOnly`. Its value travels inside the records and checks, never as a cookie sent to Baselayer. When an agent's credential passes a step-up, the snippet also sets `baselayer_recognition`: a signed token Baselayer issues that names the agent's key and its customer ID at your site, never personal details. It is `SameSite=Lax`, `Secure` on https pages, lives 10 minutes and is not `HttpOnly`. The snippet sends it with the page's next checks so the agent isn't asked again. ## Detection The snippet loads a detection script from your application's collect host, `https://.collect.baselayer.com`. The detection result stays with Baselayer, and the snippet uses it in its own checks; nothing needs forwarding. The snippet never receives a verdict about a visitor. On each page it asks Baselayer for the page's decision under your rules, and the answer carries only the decision: never the verdict, kind, score or detection session. On a step you enforce, it shows a step-up overlay or a block page; otherwise it changes nothing on your page. See [What Your Visitors See](/docs/kya-acceptance-quickstart#what-your-visitors-see). ## Only Automated Visitors Are Stored KYA records agent traffic only. The snippet can't tell a person from an agent, so it sends the same records for every visit. Baselayer holds a visit's records for up to 2 minutes while detection decides, and drops them unwritten when detection finds no automated visitor or gives no answer in time. To see browser records while you set up, test on [staging](/docs/kya-acceptance-quickstart#test-against-staging). ## Delivery Records are sent to the API origin you passed as `apiOrigin` every 5 seconds, sooner when 50 are queued, and when the page is hidden or closed. A failed send is retried with backoff. A record carries a unique ID, so a retried record is never counted twice. # Set Your Rules Source: https://docs.baselayer.com/docs/kya-acceptance-configuring Set the policy that decides what agents can do at each step, the audiences and origins Baselayer accepts, and the browser keys baselayer.js uses. For engineers. Covers the settings behind acceptance: the policy that decides each request, your audiences and the origins baselayer.js can run on, and browser keys. Every route takes your API key in `X-API-Key` and acts on that key's application. ## The Policy The policy decides what Baselayer recommends for each request. baselayer.js applies it to your pages. It is a list of steps, such as `browse`, `cart` and `checkout`, and an optional list of `scopes`. Each step names the requests it covers and holds rules tried in order; the first rule that matches decides. Steps are also tried in order, so put the most specific first. A request no rule of its step matches is decided by the step's `fallback`. A person is never decided by a step. A request that detection finds no automated visitor in is allowed before any rule runs. A rule's `when` matches on these members. Each takes a list, and a member left out matches anything. An empty list matches nothing. | Member | Values | | - | - | | `transport` | `browser`, `api`, `mcp` or `ucp` | | `visitor_type` | `agent`, `crawler` or `unknown`. `unknown` is a visitor detection has not classified, which can be a person whose detection hasn't finished. | | `trust_level` | How strongly the evidence backs the visitor, strongest first: `credentialed` (a Baselayer credential), `signed` (a verified signature, such as Web Bot Auth), `declared` (a User-Agent that the platform's published network range backs) or `undeclared` (nothing backs it) | | `claim` | The agent the request claims to be and whether that held up: `signature`, `ip_range`, `rdns`, `spoofed`, `unverifiable`, `cloud_browser`, `unobserved` or `unclaimed` | | `minimum_identity_level` | `L1`, `L2` or `L3`: matches a request whose identity level is at least this. A request with no identity level never matches. | A claim is `spoofed` when a request names a platform's agent but comes from outside that platform's published ranges. `rdns` and `cloud_browser` are only known after Baselayer has processed a request, never when baselayer.js decides, so a rule on them takes effect only when Baselayer reads stored records back. A rule's `outcome` is one of three: | `outcome` | Meaning | | - | - | | `allow` | Let the request through. | | `step_up` | Ask the agent for more before letting it through. It carries a `requirement`. | | `block` | Refuse the request. | A step's `enforcement_mode` is `monitor`, where decisions are recorded and never applied, or `enforce`. ### The Fallback Every step has a `fallback`: what it decides, by visitor type, when no rule matches. It names all three of `agent`, `crawler` and `unknown`, and each is an `outcome` and, for a `step_up` only, a `requirement`. ```json theme={null} { "agent": { "outcome": "step_up", "requirement": { "required_keys": ["email_possession"], "credential": {"type": "account"} } }, "crawler": {"outcome": "block"}, "unknown": {"outcome": "allow"} } ``` A fallback decision has no rule and the reason `fallback`. The step's `enforcement_mode` applies to it as to a rule's. ### What Step Up Asks For A `step_up` carries a `requirement`: the keys the agent's KYA credential must prove, and the credential the person gets when they approve. `required_keys` is one of four sets, all required: | `required_keys` | Level | | - | - | | `["email_possession"]` | Level 2 · Verified Email | | `["phone_possession"]` | Level 2 · Verified Phone | | `["email_possession", "phone_possession"]` | Level 2 · Verified Phone and Email | | `["dob_identity_match", "phone_possession", "ssn_identity_match"]` | Level 3 · Verified Identity | Any other set is refused. Baselayer stores the keys sorted. The requirement's `identity_level`, `L2` or `L3`, is worked out from the keys on every read. It is never stored, and a value you send is ignored. `credential` is required and says what the person gets on approval: | `credential` | Meaning | | - | - | | `{"type": "account"}` | The person's Baselayer account holds the credential. An account needs `email_possession` among the keys, so a phone-only or Level 3 requirement uses `ephemeral`. It takes no `ttl_seconds`. | | `{"type": "ephemeral", "ttl_seconds": 3600}` | A credential for this agent session alone, which expires. `ttl_seconds` runs from 300 to 604800 and is 3600 when left out. A read always shows it. | `scope` names one of the policy's [scopes](#scopes), or is `null` to ask for the keys alone. `purpose` and `fields` are read-only: every read fills them in from the scope, and a replace overwrites what it is sent. With no scope they are `null` and empty. ```json theme={null} { "required_keys": ["email_possession"], "scope": "contact", "credential": {"type": "account"} } ``` On your pages, baselayer.js shows an enforced `step_up` to the agent and checks the credential it presents. See [What Your Visitors See](/docs/kya-acceptance-quickstart#what-your-visitors-see). ### Scopes `scopes` name the sets of fields a step-up asks the person to share. A scope has a `name` (1 to 64 lowercase letters, digits and `_`, unique in the policy), the `purpose` shown to the person on the consent screen (up to 500 characters) and its `fields`, each once. Baselayer stores them sorted. ```json theme={null} { "scopes": [ { "name": "contact", "purpose": "To send order updates.", "fields": ["email"] } ], "steps": [] } ``` A scope is part of the policy, so changing one makes a new policy version, with the same `ETag`, `If-Match` and monitor mode as any other change. The keys a rule requires decide which fields its scope may hold. The Level 3 keys back every field. Otherwise only a Level 2 field whose key is among them: | `required_keys` | Fields the scope may hold | | - | - | | `["email_possession"]` | `email` | | `["phone_possession"]` | `phone_number` | | `["email_possession", "phone_possession"]` | `email` and `phone_number` | | The Level 3 keys | Any of the 22 person fields | `GET /acceptance/policy` lists every field a scope may name in `available_fields`, with the key that proves it. For what each field is, see [Fields a Scope Can List](/docs/kya-asking-for-fields#fields-a-scope-can-list). A scope no rule or fallback names is kept, with an `unused_scope` warning. ### Steps and Matching A step's `name` is your own key for it: 1 to 32 lowercase letters, digits and `_`, used once in the policy. Decisions and visits carry it. A step's `match` says which requests it covers: | Member | Matches | | - | - | | `paths` | Path patterns. `*` matches one segment and `**` any number. | | `methods` | HTTP methods, applied to `paths` only. Empty means any. | | `mcp_tools` | MCP tool names called by an agent. `*` matches any characters. | | `ucp_operations` | Commerce operation names called by an agent, such as `checkout.complete`, `.`-separated, with the same wildcards as `paths`. | An empty list matches nothing, so a plain web site leaves `mcp_tools` and `ucp_operations` as `[]`. A step that matches nothing, or one that has `methods` and no `paths`, is refused. A request path is matched without its query string and fragment. A request no step claims is allowed. A step an earlier step fully shadows is refused. One it partly shadows is kept, with a `partly_shadowed_step` warning. ### Crawlers and Search Engines An enforced `step_up` is shown to every visitor it covers, search engine crawlers included, and a crawler can't answer it. To keep your pages indexed, put a rule ahead of the step-up that lets proven crawlers through: `visitor_type` `["crawler"]`, `trust_level` `["signed", "declared"]`, `outcome` `allow`. Setting the fallback's `crawler` to `allow` instead lets every crawler through that no rule matched, proven or not. ### The Default Policy A new application starts on policy version 1, Baselayer's default: one step, `default`, that matches every request, in `monitor` mode. Its one rule, `suspect`, steps a `spoofed` agent or crawler up to Level 2 with `["email_possession"]` held on an `account`. Its fallback allows every agent, crawler and unknown visitor. A new version applies with no deploy. ### Warnings A policy that is valid but probably not what you meant is stored with `warnings`. Each has a `code`, a `message` for a person, and the `step`, `rule` or `scope` it concerns: | `code` | Flags | | - | - | | `partly_shadowed_step` | An earlier step claims some of the requests a later one does. | | `unreachable_rule` | An earlier rule matches every request a later one does. | | `unreachable_fallback` | A rule matches every visitor, so the step's fallback never runs. | | `targets_unknown_visitors` | A rule or fallback blocks or steps up `unknown` visitors, which can include people whose detection hasn't finished. | | `unused_scope` | A scope no rule or fallback names. | ### Limits A replace past any of these is refused with a `422` naming the field: | Limit | Value | | - | - | | Steps per policy | 50 | | Rules per step | 50 | | Scopes per policy | 50 | | Patterns in each of `paths`, `mcp_tools` and `ucp_operations` | 20 | | Patterns across all steps | 100 | | Characters per pattern | 256 | | `**` per pattern | 4 | ### Read the Current Policy Needs the `acceptance_policy:read` permission. ```bash theme={null} curl -i "https://api.baselayer.com/acceptance/policy" \ -H "X-API-Key: $BASELAYER_API_KEY" ``` The response carries an `ETag` header. Keep it: you send it back to replace the policy. To poll for a change, send it as `If-None-Match`: the answer is `304` with no body until the policy or your audiences change. > [accordion] Response > > ```json theme={null} > { > "policy_version_id": "87e11d3c-d5c3-4ab8-a2cd-a6238b2f47fe", > "version_number": 2, > "environment": "production", > "policy_hash": "sha256:d3c18d1cf04c69761b451e4f26a78612291c05b62a68ab282811aa1ee9899c5d", > "created_at": "2026-05-04T14:00:00Z", > "created_by": { > "type": "API_KEY", > "label": "Policy automation" > }, > "minimum_policy_schema_version": 1, > "policy": { > "scopes": [ > { > "name": "contact", > "purpose": "To send order updates.", > "fields": [ > "email" > ] > } > ], > "steps": [ > { > "name": "checkout", > "match": { > "paths": [ > "/checkout/place" > ], > "methods": [ > "POST" > ], > "mcp_tools": [ > "checkout" > ], > "ucp_operations": [] > }, > "enforcement_mode": "monitor", > "rules": [ > { > "name": "search-engines", > "when": { > "transport": null, > "visitor_type": [ > "crawler" > ], > "trust_level": [ > "signed", > "declared" > ], > "claim": null > }, > "outcome": "allow", > "requirement": null > }, > { > "name": "spoofed", > "when": { > "transport": null, > "visitor_type": [ > "agent", > "crawler" > ], > "trust_level": null, > "claim": [ > "spoofed" > ] > }, > "outcome": "block", > "requirement": null > }, > { > "name": "agents-verify-email", > "when": { > "transport": null, > "visitor_type": [ > "agent" > ], > "trust_level": null, > "claim": null > }, > "outcome": "step_up", > "requirement": { > "required_keys": [ > "email_possession" > ], > "scope": "contact", > "purpose": "To send order updates.", > "fields": [ > "email" > ], > "credential": { > "type": "account" > }, > "identity_level": "L2" > } > } > ], > "fallback": { > "agent": { > "outcome": "allow", > "requirement": null > }, > "crawler": { > "outcome": "block", > "requirement": null > }, > "unknown": { > "outcome": "allow", > "requirement": null > } > } > }, > { > "name": "browse", > "match": { > "paths": [ > "/**" > ], > "methods": [], > "mcp_tools": [ > "*" > ], > "ucp_operations": [] > }, > "enforcement_mode": "enforce", > "rules": [], > "fallback": { > "agent": { > "outcome": "allow", > "requirement": null > }, > "crawler": { > "outcome": "allow", > "requirement": null > }, > "unknown": { > "outcome": "allow", > "requirement": null > } > } > } > ] > }, > "warnings": [], > "audiences": [ > "shop.example" > ], > "available_fields": [ > { > "field": "email", > "identity_level": "L2", > "proved_by": "email_possession" > }, > { > "field": "phone_number", > "identity_level": "L2", > "proved_by": "phone_possession" > }, > { > "field": "name", > "identity_level": "L3", > "proved_by": null > } > ] > } > ``` > > `available_fields` is trimmed here: a read lists all 22 fields. `policy_hash` is the hash of the policy body. Each decision names the policy version it ran, so you can always tell which policy made it. `audiences` are your registered audiences, as [`/acceptance/domains`](#audiences-and-allowed-origins) returns them. `available_fields` and `audiences` are read-only: they are not part of `policy`. ### Replace the Policy Needs the `acceptance_policy:update` permission. Send the whole policy, exactly as a read returns it under `policy`, with the `ETag` you read as `If-Match`: ```bash theme={null} curl -X PUT "https://api.baselayer.com/acceptance/policy" \ -H "X-API-Key: $BASELAYER_API_KEY" \ -H "Content-Type: application/json" \ -H 'If-Match: ""' \ -d @policy.json ``` `policy.json`: ```json theme={null} { "scopes": [ { "name": "contact", "purpose": "To send order updates.", "fields": [ "email" ] } ], "steps": [ { "name": "checkout", "match": { "paths": [ "/checkout/place" ], "methods": [ "POST" ], "mcp_tools": [ "checkout" ], "ucp_operations": [] }, "enforcement_mode": "monitor", "rules": [ { "name": "search-engines", "when": { "visitor_type": [ "crawler" ], "trust_level": [ "signed", "declared" ] }, "outcome": "allow" }, { "name": "spoofed", "when": { "visitor_type": [ "agent", "crawler" ], "claim": [ "spoofed" ] }, "outcome": "block" }, { "name": "agents-verify-email", "when": { "visitor_type": [ "agent" ] }, "outcome": "step_up", "requirement": { "required_keys": [ "email_possession" ], "scope": "contact", "credential": { "type": "account" } } } ], "fallback": { "agent": { "outcome": "allow" }, "crawler": { "outcome": "block" }, "unknown": { "outcome": "allow" } } }, { "name": "browse", "match": { "paths": [ "/**" ], "methods": [], "mcp_tools": [ "*" ], "ucp_operations": [] }, "enforcement_mode": "enforce", "rules": [], "fallback": { "agent": { "outcome": "allow" }, "crawler": { "outcome": "allow" }, "unknown": { "outcome": "allow" } } } ] } ``` The response is the new current version. If someone else replaced the policy after your read, the replace is refused with `412` `policy_version_stale` and nothing changes: read it again and reapply your change. A request with no `If-Match` is refused with `428` `if_match_required`. A policy that breaks a rule above is refused with `422` `validation_failed`; each error names the field that is wrong and has its own `type`: | `type` | Why | | - | - | | `required_keys_not_a_recipe` | `required_keys` isn't one of the four sets. | | `account_requires_email` | An `account` credential without `email_possession`. | | `ttl_seconds_out_of_range` | `ttl_seconds` isn't 300 to 604800. | | `ttl_seconds_not_allowed` | An `account` credential with `ttl_seconds`. | | `scope_not_in_policy` | A requirement's `scope` names none of the policy's `scopes`. | | `field_not_backed_by_keys` | A field of the scope needs keys the requirement doesn't ask for. | ### Earlier Versions Versions are never changed or deleted. `GET /acceptance/policy/versions` lists them, newest first, and `GET /acceptance/policy/versions/{policy_version_id}` returns one exactly as it ran, which is the version a decision's `policy.version_id` names. ## Audiences and Allowed Origins Two lists sit beside the policy, and changing them mints no policy version: * `audiences`: where a KYA credential can be presented. A credential's audience must be one of them. Each is a bare lowercase domain, such as `shop.example`, or `https://`. * `allowed_origins`: where baselayer.js may run. Each is `https://` and a host, with a port only when it isn't the default, such as `https://shop.example`, or `http://` on `localhost`, `127.0.0.1` or `[::1]` for local testing, such as `http://localhost:8080`. A page on any other origin has its records and checks refused, and an application with no allowed origins accepts none. For a step-up on your pages to verify a credential, each allowed origin's host needs an audience that names it, bare or as `https://`. Each response lists `origin_without_audience` in `warnings` for an origin that has none. Reading needs `acceptance_audiences:read`: ```bash theme={null} curl -i "https://api.baselayer.com/acceptance/domains" \ -H "X-API-Key: $BASELAYER_API_KEY" ``` ```json theme={null} { "audiences": [ "https://shop.example", "shop.example" ], "allowed_origins": [ "https://shop.example", "https://staging.shop.example" ], "warnings": [ { "code": "origin_without_audience", "origin": "https://staging.shop.example", "message": "Browser step-ups on this origin cannot verify a credential: no audience matches staging.shop.example." } ] } ``` Replacing needs `acceptance_audiences:update`, and changing `allowed_origins` also needs `acceptance_origins:update`, which a default API key does not have: an organization admin has it. Send both lists whole, with the response's `ETag` as `If-Match`. Each value must already be in the form above and is refused rather than rewritten. Both lists are stored sorted. ```bash theme={null} curl -X PUT "https://api.baselayer.com/acceptance/domains" \ -H "X-API-Key: $BASELAYER_API_KEY" \ -H "Content-Type: application/json" \ -H 'If-Match: ""' \ -d '{"audiences": ["https://shop.example", "shop.example"], "allowed_origins": ["https://shop.example"]}' ``` | Status | `type` | Why | | - | - | - | | `422` | `audience_not_canonical` | An audience isn't in canonical form, or is repeated. `metadata` names it. | | `422` | `origin_invalid` | An origin isn't in the form above, or is repeated. `metadata` names it. | | `428` | `if_match_required` | No `If-Match` | | `412` | `domains_stale` | Someone changed the lists after your read. Read them again and reapply your change. | | `403` | | `allowed_origins` changed without `acceptance_origins:update` | A change applies to the next presentations and browser checks. Treat browser records as reports, not proof: anyone can copy your browser key and claim an allowed origin. ## Browser Keys A browser key lets baselayer.js send records and checks for your application. It is public, like a publishable key: it ships in your page, and your allowed origins stop its use elsewhere. An application has at most 2 keys, so you can deploy a replacement before you delete the old one. ### Create a Key Needs the `organizations_apikeys:create` permission. `name` says what the key is for, such as the site it ships on, in 1 to 100 characters: ```bash theme={null} curl -X POST "https://api.baselayer.com/acceptance/browser_keys" \ -H "X-API-Key: $BASELAYER_API_KEY" \ -H "Content-Type: application/json" \ -d '{"name": "shop.example"}' ``` ```json theme={null} { "browser_key_id": "5b0c7e2a-1f3d-4a6b-9c8e-2d4f6a8b0c1e", "browser_key": "blpk_8kQ2xV7mN4pR9sT1uW3yZ5aB6cD8eF0gH2iJ4kL6mN8", "name": "shop.example", "environment": "production", "created_at": "2026-05-04T14:05:00Z", "created_by": { "type": "API_KEY", "label": "Setup key" } } ``` The answer is `201`, with the key's URL in `Location`. Baselayer accepts a new key usually within about 20 seconds. With 2 keys already, the create is refused with `409` `browser_key_limit_reached`: delete one first. ### List and Read Keys Needs `organizations_apikeys:read`. `GET /acceptance/browser_keys` lists your keys, newest first, and `GET /acceptance/browser_keys/{browser_key_id}` returns one. Both include `browser_key`, so you can read a key again at any time. ### Replace a Key Create a new key, deploy it to your pages, then delete the old one. ### Delete a Key `DELETE /acceptance/browser_keys/{browser_key_id}` needs `organizations_apikeys:delete` and answers `204`. The key leaves the list, and Baselayer stops accepting it usually within about 20 seconds, and within about 5 minutes once publishing is healthy. Deleting it again answers `404`. # Set Up baselayer.js Source: https://docs.baselayer.com/docs/kya-acceptance-quickstart Load baselayer.js on your pages so Baselayer can see which visits are agents and apply your rules to them. For your web team. baselayer.js is a small browser module that tells Baselayer what happens on your pages: page views, page exits, navigations and interactions. Baselayer uses it to show you which visits are agents and what they did. On each page it also asks Baselayer for the page's decision under [your rules](/docs/kya-acceptance-configuring), and on a step you enforce it shows a step-up or a block. See [What Your Visitors See](#what-your-visitors-see). The snippet never receives a verdict about a visitor. Baselayer stores only the visits detection finds to be automated. See [What baselayer.js Reports](/docs/kya-acceptance-browser-records). ## What You Need | Value | What it is | Where it comes from | | - | - | - | | Application ID | Your KYA application's ID, a UUID | Your Baselayer team | | Browser key | A public key that lets the snippet send records for your application | see [Browser Keys](/docs/kya-acceptance-configuring#browser-keys) | | API origin | `https://api.baselayer.com` | The same host as the rest of the API | Add every origin your pages are served from to your application's allowed origins, and register an audience for each of their hosts. A page on any other origin has its records and checks refused. See [Audiences and Allowed Origins](/docs/kya-acceptance-configuring#audiences-and-allowed-origins). A browser key is public: it ships in your page. Keep your API key on your server. ## Install baselayer.js is one ES module. Pick how to load it: | Option | When to use it | How | | - | - | - | | Module script | Modern sites | ` ``` A classic script cannot use `import` or a top-level `await`, so it loads the module with a dynamic `import()` and waits on the promise: ```html theme={null} ``` The examples below are module scripts, where a top-level `await` works. A module is loaded once per page, so importing it again returns the same running snippet. ### Options | Option | Meaning | | - | - | | `applicationId` | Your application's ID | | `browserKey` | Your browser key | | `apiOrigin` | Baselayer's API origin: `https` and no path | | `consent` | `false` sets no cookie, loads no detection script, sends nothing and checks nothing. Defaults to `true`. | | `excludePaths` | Path patterns never recorded or checked. None by default. | | `routes` | Your route templates, such as `"/orders/{order_id}"`, tried in order, so a page is reported by its route rather than its raw path | A malformed option throws a `TypeError`. Calling `init` again with valid options replaces the running session. No page is excluded by default: checkout and payment pages are recorded like any other unless you list them in `excludePaths`. A pattern ending in `/*` matches the pages below a path but not the path itself, so `/your/page/*` covers `/your/page/details` and you list `/your/page` too. A `*` right after text matches the rest of the path, so `/cart/checkout*` covers `/cart/checkout` and `/cart/checkout-guest`. Paths are matched ignoring case, a trailing slash, the query string and the fragment. ```js theme={null} excludePaths: ["/checkout", "/checkout/*", "/payment", "/payment/*", "/billing/*"], ``` ### Content Security Policy A page with a Content Security Policy must allow: * `script-src https://js.baselayer.com` and `https://.collect.baselayer.com`; * `connect-src https://.collect.baselayer.com https://api.baselayer.com`, where the snippet sends its records and checks. If the policy blocks the detection script, the snippet carries on without it. baselayer.js leaves `window` alone. To let other scripts on your page call it, assign it yourself: `window.baselayer = baselayer`. ## What Your Visitors See On each page load and single-page-app route change, the snippet asks Baselayer for the page's decision under your rules. Nothing is checked on an excluded page or with `consent: false`. The snippet adds no header to your page's own requests. | Decision | What the page shows | | - | - | | `allow` | Nothing | | `step_up` | A step-up overlay | | `block` | A block page, a refusal with nothing to do | Only a step in `enforce` mode shows anything. A step in `monitor` mode records what it would have decided, and the page carries on. The overlay and the block page are a modal dialog in your page's own DOM, so an agent that reads the page or its accessibility tree finds them. The rest of the page can't be used while one is up. The overlay says what the step requires, such as `Level 2 · Verified Email`, gives an AI agent the steps to get a KYA credential, and has a field where the agent submits its credential presentation. A presentation that meets the requirement removes the overlay. One that doesn't shows why, with a fresh nonce to try again. Once an agent's credential passes, the snippet sets a first-party `baselayer_recognition` cookie, so later checks recognize the agent without a new presentation. **It fails open.** A check with no detection token within 5 seconds, a check that gets no answer in time, a network error or an error status is an `allow`: a check never breaks your page. When the detection token arrives late, within 2 minutes, the snippet sends the check once more and shows its answer. **Enforcement is cooperative.** baselayer.js runs in the browser, so an agent that drives a browser by script can remove the overlay or the snippet itself. To enforce a step on requests that matter, such as placing an order, check the credential on your server in your own code. See the [Credential Format Reference](/docs/credential-format-reference). To choose what a step-up asks for, see [What Step Up Asks For](/docs/kya-acceptance-configuring#what-step-up-asks-for). ## Record a Page View Yourself The snippet records page views, page exits and single-page-app route changes on its own. `track("page_view")` queues a page view when your app shows a new page without changing the URL. It returns `true` when the record was queued. Any other type returns `false`. ```html theme={null} ``` ## Stop the Snippet `destroy()` sends the current page's exit, sends what is queued, stops the detection script and removes the snippet's history hooks. A single-page app calls it when it leaves the pages the snippet serves. ```html theme={null} ``` ## Pin a Release `/v1/baselayer.js` is always the current release, cached for 5 minutes. To pin one release, load `/v1//baselayer.js`, for example `https://js.baselayer.com/v1//baselayer.js`. Your Baselayer team tells you which releases are available. Baselayer never republishes a pinned release, and it is cached for a year. ## Test Against Staging Baselayer's staging environment serves its own build of the snippet. Use a staging application ID and a staging browser key, which your Baselayer team provides, and point both origins at staging: ```html theme={null} ``` Use staging values throughout: each build talks only to its own environment. If your page has a Content Security Policy, allow `https://.collect.staging.live.baselayer.com`, `https://js.staging.baselayer.com` and `https://api.staging.baselayer.com` in place of the production hosts. ## Check It Works Test browser visits on [staging](#test-against-staging), with your staging application ID and browser key. Open a page with the snippet, then list your visits with your staging API key. A visit appears about a minute after its first record: ```bash theme={null} curl "https://api.staging.baselayer.com/acceptance/visits?limit=1" \ -H "X-API-Key: $BASELAYER_STAGING_API_KEY" ``` Baselayer stores agent visits only, so on staging, test with an automated browser if your own visit does not appear. See [Reading Agent Activity](/docs/kya-acceptance-reading-activity) for what the response holds. # Reading Agent Activity Source: https://docs.baselayer.com/docs/kya-acceptance-reading-activity Read the visits Baselayer saw at your site, what each agent did, and how far its identity got, with your API key. For engineers and analysts. Once [baselayer.js](/docs/kya-acceptance-quickstart) is running, the acceptance API answers what agents did at your site: every visit, each visit's timeline and decisions, and every decision across visits. ## What You Can Learn | Question | Where the answer is | | - | - | | Which agents visited this week? | [Your visits](#list-your-visits), filtered by `visitor_type=agent` | | What did one agent do? | [A visit's timeline](#read-a-visits-timeline) | | How many visits presented a KYA credential? | [Your visits](#list-your-visits), filtered by `trust_level=credentialed` | | Which agents did your rules block or step up? | [Your decisions](#list-all-decisions), filtered by `outcome=block` or `outcome=step_up` | | Which visits came from an agent that lied about who it was? | [Your visits](#list-your-visits), filtered by `claim=spoofed` | Your developer can pull these into your analytics tool. ## Authenticating Send your API key in the `X-API-Key` header, as for every Baselayer request. See [Authentication](/docs/authentication). The visits reads need the `acceptance_visits:read` permission, and the decisions reads need `acceptance_decisions:read`. Every read answers for the application your key belongs to: a sandbox key reads your sandbox application, and a production key reads your production application. You never pass an application ID. ## Lists and Pages Every list returns a bare JSON array, a page at a time. | Parameter | Meaning | | - | - | | `limit` | Records per page, 1 to 1000. Defaults to 10. | | `cursor` | The `X-Next-Cursor` value from the previous page. Cannot be used with `offset`. | | `offset` | Records to skip. Cannot be used with `cursor`. | | `sort` | The field to sort on. Each list names its own fields and its default. | | `sort_direction` | `asc` or `desc`. Defaults to the field's own direction. | Each page carries these headers: | Header | Meaning | | - | - | | `X-Next-Cursor` | Pass it as `cursor` to get the next page. Absent on the last page. | | `X-Total-Count` | Records matching the request. Sent on the first cursor page and on every offset page. | | `X-Total-Pages` | Pages at the current `limit`. Sent with `X-Total-Count`. | Use `cursor` to walk a long list: a page never skips or repeats a record when new visits arrive. ## Dates and Time Zones The visits list and the decisions list take a date range: | Parameter | Meaning | | - | - | | `start_date` | First day, `YYYY-MM-DD`, inclusive | | `end_date` | Last day, `YYYY-MM-DD`, inclusive | | `tz` | The IANA time zone the days are read in, such as `America/New_York`. Defaults to `UTC`. | A visit is read on the day it started, and a decision on the day it was decided. ## Freshness and Retries Visits are rebuilt about once a minute, so a visit, its timeline and its decisions show a record about a minute after it is reported. When the acceptance data cannot be read for a moment, a read answers `503` with a `Retry-After` header and this body. Wait that many seconds and send the request again. ```json theme={null} { "type": "acceptance_reads_unavailable", "code": 7252, "message": "Acceptance data is temporarily unavailable. Retry after the Retry-After interval.", "metadata": {}, "request_id": "3c9e5b1a7d244f8ea6b092d1e4c7f305" } ``` Branch your code on `type`. `message` is for people to read. ## List Your Visits A visit is one visitor's run of records at your site, until 30 minutes pass without one. Visits are newest first by default (`sort=started_at`, or `sort=last_seen_at`). Filters take one value or several (`identity_level=L2&identity_level=L3`): `visitor_type`, `trust_level`, `claim`, `agent_platform`, `agent_name`, `identity_level`, `active_key`, `key_thumbprint`, `credential_id`, `subject`, `attestation_type`, `state` and `transport`, as well as the date range. Values of one filter match any of them, and different filters must all match. `identity_level`, `active_key`, `credential_id` and `subject` look at KYA credentials the visit presented that Baselayer verified: `active_key` finds visits whose credentials hold a key such as `email_possession`. ```bash theme={null} curl "https://api.baselayer.com/acceptance/visits?visitor_type=agent&start_date=2026-05-01&end_date=2026-05-07&tz=America/New_York&limit=1" \ -H "X-API-Key: $BASELAYER_API_KEY" ``` ```json theme={null} [ { "visit_id": "01a2b3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b", "environment": "production", "transport": "api", "state": "ended", "started_at": "2026-05-04T15:02:11Z", "last_seen_at": "2026-05-04T15:06:40Z", "first_step": "browse", "last_step": "checkout", "decision_count": 3, "identity": { "visitor_type": "agent", "trust_level": "declared", "claim": "ip_range", "agent_platform": "openai", "agent_name": "chatgpt-user", "attestations": [] }, "journey": { "page_count": 3, "path_templates": [ "/products/{id}", "/cart", "/checkout/place" ] }, "detection": null } ] ``` `identity` is who the visitor is, as far as the evidence goes: | Member | Meaning | | - | - | | `visitor_type` | What is behind the visit: `agent`, `crawler` or `unknown` before any evidence | | `trust_level` | The strongest positive evidence, strongest first: `credentialed`, `signed`, `declared` and `undeclared`. `undeclared` is also what a visit reads before any evidence. | | `claim` | The agent the visit's requests claimed to be and whether that held up: `spoofed` if any request was, else the strongest confirmation (`signature`, `rdns` or `ip_range`), else `unverifiable`, `cloud_browser`, `unobserved` or `unclaimed` | | `agent_platform` | The company behind `agent_name`; `null` when none | | `agent_name` | The agent, such as `claudebot` or `gptbot`. A `spoofed` visit keeps the name it claimed. | | `attestations` | How the visitor proved who it is, passed or failed. See [Attestations](#attestations). | `journey` lists the pages a visit viewed and the requests it made, up to the first 20 templates, and is `null` for a visit with neither. `detection` is what browser detection made of the visit, and is `null` before any detection result. ## Get One Visit `GET /acceptance/visits/{visit_id}` returns the visit with each attestation in full, including the consumer a Visa TAP signature named, and detection's whole read: its score history, the behaviours it observed, the network and device it saw and how it recognized the visitor across visits. ```bash theme={null} curl "https://api.baselayer.com/acceptance/visits/01a2b3c4-5d6e-7f80-9a1b-2c3d4e5f6a7c" \ -H "X-API-Key: $BASELAYER_API_KEY" ``` ```json theme={null} { "visit_id": "01a2b3c4-5d6e-7f80-9a1b-2c3d4e5f6a7c", "environment": "production", "transport": "api", "state": "ended", "started_at": "2026-05-04T16:10:02Z", "last_seen_at": "2026-05-04T16:14:30Z", "first_step": "browse", "last_step": "checkout", "decision_count": 3, "identity": { "visitor_type": "agent", "trust_level": "credentialed", "claim": "signature", "agent_platform": null, "agent_name": null, "attestations": [ { "type": "baselayer", "status": "verified", "checked_at": "2026-05-04T16:10:02Z", "key_thumbprint": "NzbLsXh8uDCcd-6MNwXF4W_7noWXFZAfHkxZsRGC9Xs", "failure_reason": null, "credential_id": "urn:uuid:2b1e4c6a-8f3d-4e2b-9a71-5c0d3e8f1a22", "subject": "did:key:z6MkhaXgBZDvotDkL5257faiztiGiC2QtKLGpbnnEGta2doK", "identity_level": "L2", "credential_type": "account", "expires_at": null, "scope": "contact", "active_keys": [ "email_possession" ], "disclosed": [ { "field": "email", "value": "test@example.com" } ] } ] }, "journey": { "page_count": 3, "path_templates": [ "/products/{id}", "/cart", "/checkout/place" ] }, "detection": null } ``` ## Attestations An attestation is one proof a visitor presented, and each has a `type`: | `type` | What it is | | - | - | | `baselayer` | A KYA credential | | `web_bot_auth` | A Web Bot Auth signature | | `visa_tap` | A Visa Trusted Agent Protocol signature | All three carry `status`, `checked_at` and `key_thumbprint`. `status` is `verified`, `invalid` or `unverified`, and `key_thumbprint` is the key it was checked with, `null` unless it verified. An `invalid` attestation carries a `failure_reason` that says why it was refused. A `baselayer` attestation adds the credential's `credential_id`, `subject`, `identity_level`, `credential_type`, `scope`, `active_keys` and `disclosed` fields. `subject` is the credential's `sub`: the same site-specific customer ID your credential check sees, so you can match a visit to your customer. See [Matching Customers](/docs/kya-matching-customers). A `web_bot_auth` attestation adds the `signer`, and a `visa_tap` one its `intent`. ## Read a Visit's Timeline `GET /acceptance/visits/{visit_id}/timeline` lists what happened, oldest first (`sort=occurred_at`, `sort_direction=asc`; ties break on `record_id`). Each item's `type` says what it is. Filter with `type`, which you can repeat. | `type` | What it is | | - | - | | `page_view` | The visitor viewed a page. Its `dwell_ms`, `visible_ms` and `max_scroll_pct` arrive when the page closes, and are `null` until then. | | `navigation` | The visitor moved from one page to another | | `interaction` | The visitor clicked or scrolled | | `form_field` | A form field failed the browser's validation. Never its value. | | `request` | A request Baselayer recorded, with its `decision` when your policy ran on it | | `browser_check` | Baselayer checked the visitor's browser and decided | | `detection_update` | A detection result that arrived after the page | ```bash theme={null} curl "https://api.baselayer.com/acceptance/visits/01a2b3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b/timeline?limit=50" \ -H "X-API-Key: $BASELAYER_API_KEY" ``` ```json theme={null} [ { "record_id": "01a2b3c4-5d6e-7f80-9a1b-2c3d4e5f6a7d", "occurred_at": "2026-05-04T15:02:11Z", "path_template": "/products/{id}", "type": "request", "method": "GET", "status": 200, "latency_ms": 41, "transport": "api", "user_agent": "ChatGPT-User/1.0", "claim": "ip_range", "decision": { "decision_id": "6f1d2a8e-3b4c-4d5e-8f60-718293a4b5c6", "outcome": "allow", "enforcement_mode": "enforce", "merchant_outcome": "allow", "step": "browse", "rule": null, "reasons": [ "ip_range_match", "fallback" ] } }, { "record_id": "01a2b3c4-5d6e-7f80-9a1b-2c3d4e5f6a7e", "occurred_at": "2026-05-04T15:03:20Z", "path_template": "/cart", "type": "page_view", "referrer_origin": null, "dwell_ms": 8200, "visible_ms": 8000, "max_scroll_pct": 60 } ] ``` A `decision` on a timeline item is brief: its `decision_id`, `outcome`, `enforcement_mode`, `merchant_outcome`, `step`, `rule` and `reasons`. `rule` is `null` when the step's fallback decided. `merchant_outcome` is `null` for a browser check. ## Read a Visit's Decisions `GET /acceptance/visits/{visit_id}/decisions` lists every decision made during the visit, newest first (`sort=decided_at`, `sort_direction=desc`; ties break on the decision's ID), in full. Filter with `step` and `outcome`. This read needs the `acceptance_decisions:read` permission. ```bash theme={null} curl "https://api.baselayer.com/acceptance/visits/01a2b3c4-5d6e-7f80-9a1b-2c3d4e5f6a7c/decisions?limit=1" \ -H "X-API-Key: $BASELAYER_API_KEY" ``` ```json theme={null} [ { "decision_id": "6f1d2a8e-3b4c-4d5e-8f60-718293a4b5c7", "decided_at": "2026-05-04T16:14:30Z", "transport": "browser", "step": "checkout", "outcome": "allow", "enforcement_mode": "enforce", "merchant_outcome": null, "reasons": [ "baselayer_verified" ], "policy": { "version_id": "87e11d3c-d5c3-4ab8-a2cd-a6238b2f47fe", "label": null, "rule": "agents-verify-email", "is_hash_mismatch": false }, "identity": { "visitor_type": "agent", "trust_level": "credentialed", "claim": "signature", "agent_platform": null, "agent_name": null, "attestations": [ { "type": "baselayer", "status": "verified", "checked_at": "2026-05-04T16:10:02Z", "key_thumbprint": "NzbLsXh8uDCcd-6MNwXF4W_7noWXFZAfHkxZsRGC9Xs", "failure_reason": null, "credential_id": "urn:uuid:2b1e4c6a-8f3d-4e2b-9a71-5c0d3e8f1a22", "subject": "did:key:z6MkhaXgBZDvotDkL5257faiztiGiC2QtKLGpbnnEGta2doK", "identity_level": "L2", "credential_type": "account", "expires_at": null, "scope": "contact", "active_keys": [ "email_possession" ], "disclosed": [] } ] }, "detection": null, "evidence": [ { "source": "baselayer", "visitor_type": "agent", "trust_level": "credentialed", "detail": { "source": "baselayer", "credential_id": "urn:uuid:2b1e4c6a-8f3d-4e2b-9a71-5c0d3e8f1a22", "identity_level": "L2", "key_thumbprint": "NzbLsXh8uDCcd-6MNwXF4W_7noWXFZAfHkxZsRGC9Xs", "arrived_by": "presentation" } } ], "requirement": { "required_keys": [ "email_possession" ], "scope": "contact", "purpose": "To send order updates.", "fields": [ "email" ], "credential": { "type": "account" }, "identity_level": "L2" }, "missing_keys": [], "expires_at": null, "sdk": null } ] ``` `outcome` is what the policy recommended: `allow`, `step_up` or `block`. `enforcement_mode` is `monitor` or `enforce`. `merchant_outcome` is what your site then did, and `null` for a browser check. `policy` names the version and rule that decided: `rule` is `null` when the step's fallback did. On a `step_up`, `requirement` is what the rule asked for and `missing_keys` the keys the credential lacked. On an `allow`, `requirement` is what the visitor's credential met. `evidence` has one entry for each reader that contributed, such as the credential check or the network ranges, with what it saw. `sdk` is `null` for a browser check. ## List All Decisions `GET /acceptance/decisions` lists every decision at your application across visits, in the same shape and order as a visit's decisions, and needs `acceptance_decisions:read`. Filter with `step`, `outcome`, `visitor_type`, `trust_level`, `visit_id` and the date range. `GET /acceptance/decisions/{decision_id}` returns one. ```bash theme={null} curl "https://api.baselayer.com/acceptance/decisions?outcome=step_up&outcome=block&start_date=2026-05-01&end_date=2026-05-07" \ -H "X-API-Key: $BASELAYER_API_KEY" ``` ## Reading Identity Levels A `baselayer` attestation's `identity_level`, and the `identity_level` filter, run from `L1` to `L3`: | Level | Meaning | | - | - | | `L1` | Which platform runs the agent: it declared or signed as a known platform, or presented a platform credential | | `L2` | The same person each time, without who they are: a verified per-person identifier, or a KYA credential with a confirmed phone or email | | `L3` | A verified person or business: only a KYA credential with a full identity match for a person, or a verified business | A KYA credential's level comes from the keys it holds, as [Set Your Rules](/docs/kya-acceptance-configuring#what-step-up-asks-for) shows. `identity_level` is `null` on an attestation whose credential meets no level. # Accepting Agents at Your Site Source: https://docs.baselayer.com/docs/kya-accepting-agents See which agents visit your site, know who's behind each one, and decide what each may do. For teams that run a site, app, API or MCP server that agents use. AI agents already browse, search and buy on your site for real customers. Most look like regular visitors or anonymous bots, so today you either block them and lose the sale, or let them through without knowing who they are. Baselayer shows you every agent, tells you who stands behind it, and lets you decide what each one may do. ## How It Works Most sites adopt it in three steps. Each one is useful on its own. **1. See every agent** Install Baselayer and watch. You see each agent visit, which platform it comes from, how strongly it's identified and where it went, from the first page to checkout. A new site starts watch-only, so nothing changes for your visitors. See [Reading Agent Activity](/docs/kya-acceptance-reading-activity). **2. Know who's behind it** When an agent presents a KYA credential, you learn the verified person or business it acts for, which checks Baselayer ran, and only the details you asked for. You also get a customer ID that stays the same at your site, so you can recognize returning customers and connect their account, loyalty and order history. Without a credential, you can still see which platform runs the agent. See [Asking for Fields](/docs/kya-asking-for-fields) and [Matching Customers](/docs/kya-matching-customers). **3. Decide what each agent may do** Set rules for each step, such as browse, cart and checkout: let an agent through, ask it for proof, or block it. Your rules decide, and your server or baselayer.js on your pages answers. See [Set Your Rules](/docs/kya-acceptance-configuring). ## One Place for Every Signal Agents identify themselves in different ways, or not at all. Baselayer reads every signal on every request and joins them into one answer, so you don't have to integrate each one yourself: * Detection on your pages * The agent platform's published network ranges and user agent * Signed requests, such as Web Bot Auth * KYA credentials A visitor's records join into one visit, and the strongest evidence wins. As new ways for agents to identify themselves come to market, Baselayer adds them. Your rules keep working, because they match on how strongly an agent is identified, not on where the evidence came from. ## How Sure You Can Be Baselayer tells you how strongly each agent is identified, from weakest to strongest: | What you know | How | | - | - | | It's probably an agent | Detection says the visit behaves like an automated browser. | | Which platform runs it | The agent says what it is, and its network matches the platform's published range. | | That it really is that platform | The agent signs its requests with a key that can be verified. | | Who it acts for | The agent presents a KYA credential for a verified person or business. | Your rules can require any of these at any step. A common setup: let agents browse freely, and ask for a credential before checkout. ## When an Agent Shows a Credential On your pages, baselayer.js checks the credential. At your API or MCP server, your own code does, following the [Credential Format Reference](/docs/credential-format-reference). Either way, the check confirms that Baselayer issued it for your site, that it hasn't expired or been revoked, that nothing in it was changed, and that the agent showing it is the one it was issued to. A credential that passes gives you: * A customer ID that is the same each time this customer returns to your site. Another site gets a different ID for the same person. * The checks that passed, such as a confirmed phone or a clear watchlist result. * Only the fields you asked for in your rules, never more. * When the credential expires. A credential never carries spending authority or payment details. The check tells you what is true about the agent. What it may do is up to you. See [Credentials Explained](/docs/kya-credentials-explained). ## Where to Start | You want to... | Add | Who does it | | - | - | - | | See browser agents on your pages, with no change to your app | [baselayer.js](/docs/kya-acceptance-quickstart), one script on your pages | Web team | | Check the credentials agents present at your API or MCP server | Your own credential check, following the [Credential Format Reference](/docs/credential-format-reference) | Backend team | Start with either. [Install Options](/docs/kya-install-options) compares them. ## What You Need | To... | You need | | - | - | | See agent activity | A Baselayer API key, plus an application ID and a browser key for baselayer.js | | Check credentials only | No Baselayer API key. The check uses Baselayer's published signing keys and revocation list. | ## Next Steps * [Install Options](/docs/kya-install-options): choose where Baselayer runs at your site. * [Credential Format Reference](/docs/credential-format-reference): check credentials in your own code. * [Set Your Rules](/docs/kya-acceptance-configuring): decide what agents can do at each step. * [Handling Failures](/docs/kya-handling-failures): know why a credential was refused and what to tell the agent. * [What baselayer.js Reports](/docs/kya-acceptance-browser-records): what is sent from your pages, and what never is. # Asking for Fields Source: https://docs.baselayer.com/docs/kya-asking-for-fields Get only the customer details you need at each step, and turn away credentials that share more. Ask for only what the current step needs. A sign-in step might request an email, while checkout might request a name and address. You name those fields in your rules, as a scope. A step-up that names the scope tells the agent which fields to share and why, and a credential that shares anything else is refused. This page covers naming a scope and checking what a credential shares. Setting the rules is in [Set Your Rules](/docs/kya-acceptance-configuring). ## How a Scope Moves Through the Flow 1. You name a scope in your rules, with the fields it shares and the reason you ask. 2. A rule's `step_up` requirement names that scope and the keys the credential must prove. 3. When a request meets that rule, your server or baselayer.js answers with a step-up. It carries the requirement, with the scope's `purpose` and `fields`. 4. The agent asks its person to approve sharing those fields, and gets a credential minted with exactly them. 5. Your token route checks the presented credential against the requirement. It holds every required key and shares exactly the scope's fields, or it is refused. ## Name a Scope Scopes are part of your policy. Each has a `name`, a `purpose` the person reads on the consent screen, and the `fields` it shares: ```json theme={null} { "scopes": [ { "name": "contact", "purpose": "To send order updates.", "fields": ["email"] } ], "steps": [] } ``` A requirement names it with `"scope": "contact"`. See [Scopes](/docs/kya-acceptance-configuring#scopes) for the limits and the errors a replace can return. ### Fields a Scope Can List These are the details a credential can carry. The technical name is what a scope's `fields` and `disclosed_fields` use. A scope names person fields only for now. The business fields are for minting a business credential. > [accordion] View all person fields > > | Detail | Technical name | > | - | - | > | First name | `given_name` | > | Middle name | `middle_name` | > | Last name | `family_name` | > | Full name | `name` | > | Email address | `email` | > | Phone number | `phone_number` | > | Street address | `address.street_address` | > | City | `address.locality` | > | State or region | `address.region` | > | ZIP or postal code | `address.postal_code` | > | Country | `address.country` | > | Whether the address was validated by USPS | `address.usps_validated` | > | Date of birth | `birthdate` | > | Birth year | `birth_year` | > | Last four digits of the SSN | `ssn_last_4` | > | Country of residence | `residency.country` | > | State or region of residence | `residency.region` | > | Matching hash of the name | `hashes.name` | > | Matching hash of the email | `hashes.email` | > | Matching hash of the phone number | `hashes.phone_number` | > | Matching hash of the address | `hashes.address` | > | Matching hash of the SSN | `hashes.ssn` | > [accordion] View all business fields > > | Detail | Technical name | > | - | - | > | Legal name | `name` | > | Trade names (DBAs) | `dbas` | > | EIN (federal tax ID) | `ein` | > | Business structure, such as `llc` | `structure` | > | State of incorporation | `state_of_incorporation` | > | Country of incorporation | `country_of_incorporation` | > | Date of incorporation | `date_of_incorporation` | > | Street address | `address.street_address` | > | City | `address.locality` | > | State or region | `address.region` | > | ZIP or postal code | `address.postal_code` | > | Country | `address.country` | > | Address type: registered, mailing, physical or residential | `address.address_type` | > | Email address | `email` | > | Website | `website` | > | Website domain, such as `acme.co.uk` | `domain` | > | Registration status: active, inactive or dissolved | `registration_status` | > | Matching hash of the legal name | `hashes.name` | > | Matching hash of the EIN | `hashes.ein` | > | Matching hash of the email | `hashes.email` | > | Matching hash of the address | `hashes.address` | When a platform mints a business credential, the business details go in `disclosed_fields` and the acting person's details go in `actor_disclosed_fields`, using the person field names. ### Readable Values or Hashes A credential can share a detail in one of two ways. The platform sets the mode when it mints: * `CLEARTEXT_AND_HASH` (default) shares the requested paths. These can be readable values, like `email` or `address.postal_code`, and matching hashes, like `hashes.email`. * `HASH_ONLY` shares only matching hashes. Each requested field is swapped for its hash: * `email` → `hashes.email` * `given_name` → `hashes.name` * `address.*` → `hashes.address` Left out: `address.usps_validated`, `address.address_type`, and details with no hash (`birthdate`, `birth_year`, residency). A matching hash is `sha256:` followed by a hex digest of a normalized value. A site can compute the same hash from its own records and match a customer without ever receiving the value. ### Which Fields Your Keys Can Back The keys a requirement asks for decide which fields its scope may hold. The Level 3 keys back every field. Otherwise only a Level 2 field whose key is among them: | `required_keys` | Fields the scope may hold | | - | - | | `["email_possession"]` | `email` | | `["phone_possession"]` | `phone_number` | | `["email_possession", "phone_possession"]` | `email` and `phone_number` | | `["dob_identity_match", "phone_possession", "ssn_identity_match"]` | Any person field | `GET /acceptance/policy` lists every field a scope may name in `available_fields`, with the key that proves it. A policy that names a field the keys can't back is refused with `field_not_backed_by_keys`. ## Ask for the Fields When your rules step up a request, answer with the step-up for that rule. Its `requirement` carries the scope's `purpose` and `fields`: ```json theme={null} { "type": "step_up", "audience": "shop.example", "nonce": "n_7q2x9...", "requirement": { "required_keys": ["email_possession"], "identity_level": "L2", "scope": "contact", "purpose": "To send order updates.", "fields": ["email"], "credential": {"type": "account"} }, "missing_keys": [], "agent_link_url": "https://api.baselayer.com/agent-links" } ``` The agent mints a credential for those fields and sends it to your token route with the nonce. ## Enforce the Requirement The credential the agent presents back must hold every required key and share exactly the scope's fields: * The shared fields are checked against the requirement. A requirement with no scope shares nothing beyond the keys. * A credential is refused with `scope_violation` if it lacks a required key or shares any field other than the scope's `fields`. Answer with the step-up again, naming the keys it lacked in `missing_keys`. * The whole credential is refused, so you only ever read what your step asks for. * After the check, confirm the fields your step needs are present, then make your site's decision. On your pages, baselayer.js runs this check. To run it in your own code, see the [Credential Format Reference](/docs/credential-format-reference#order-of-checks). ## Read the Fields The shared fields are the credential's disclosures, each at its dotted path, such as `hashes.email`. To decode them, see [Disclosures](/docs/credential-format-reference#disclosures). # Business Agents Source: https://docs.baselayer.com/docs/kya-business-agents Know which business an agent acts for and which person authorized it, checked together. An agent can act for a business instead of a single person. It then presents a business credential together with the credential of the person acting for the business, so you know both who the company is and who is behind this agent. ## A Business Credential Comes With a Person A business credential is issued only for a verified business. It is always presented and checked together with the acting person's credential. A business credential presented alone is refused with `actor_mismatch`. ## How the Pair Is Presented Both credentials are presented under one nonce, signed by the same agent key. In a token exchange, the business credential arrives as `subject_token` and the person's credential as `actor_token`. The two are checked as one unit. If either fails, the whole presentation is refused. ## What You Get | Claim | On a business pair | | - | - | | `sub` | The business's stable ID at your site. | | `act.sub` | The acting person's ID. | | `verification.active_keys` | The checks that passed for the business only. | | `act.verification.active_keys` | The checks that passed for the person only. | | `exp` and `act.exp` | Each credential's expiry. Your token should expire at the earlier. | | `claims` | Fields shared about the business. | | `act.claims` | Fields shared about the person. | | `act.authorization` | How Baselayer confirmed the person may act for the business. | ## What the Pair Checks Add On top of the normal checks for each credential, the pair adds: | Check | Failure | | - | - | | Both credentials come from the same issuer | `actor_mismatch` | | Both are bound to the same agent key | `key_binding_invalid` | | Both use the same nonce | `key_binding_invalid` | | The business credential names this person as its actor | `actor_mismatch` | | Baselayer has verified that this person may act for the business | `actor_not_authorized` | ## Verify the Pair At your token route, check the business credential (`subject_token`) and the person's credential (`actor_token`) as one unit, with the checks above. Without an `actor_token`, a person credential also passes the normal checks, so confirm the subject is a business credential before you treat it as one, and refuse anything else with `unsupported_credential_type`. The [Credential Format Reference](/docs/credential-format-reference#the-actor-block) has the actor block's format. Your token then carries `sub` (the business) and `act.sub` (the person). ## Checking What Baselayer Verified Each credential carries its own checks. `verification.active_keys` lists the business's checks and says nothing about the person. `act.verification.active_keys` lists the person's. For any rule that should cover both, such as a clear watchlist result, require the check in both lists, so a screened business can't carry an unscreened person through. # Credentials Explained Source: https://docs.baselayer.com/docs/kya-credentials-explained Understand what a site can learn about the person or business behind an agent. An agent presents a KYA credential to a site to show who it acts for. The credential identifies the person or business the agent represents and says what Baselayer verified about them. Baselayer signs it as an [SD-JWT](/docs/credential-format-reference), so the site can trust where it came from and spot any change. ## What a credential tells a site | The site's question | What the credential answers | | - | - | | Who does the agent represent? | A person, or a business and the person acting for it. | | Is this the same customer as last time? | A customer ID that's the same every time they come back to this site. | | What did Baselayer verify? | The checks that passed, such as a confirmed phone or a clear watchlist screening. | | What details does the site get? | The details the site asked for, and nothing more. | ## What information a site receives AGENT CREDENTIAL Verified identity ACTIVE Jordan Avery AUDIENCE shop.example EXPIRES In 1 hour ISSUED Just now Verified by Baselayer cred_7f3a…c91e Example: what a store gets when it asks for a name, email and shipping address. ### Customer ID Every credential includes an ID for this customer at this site. The site can use it to recognize a returning customer, for example to bring back a saved cart. Another site gets a different ID for the same customer. ### Identity details A credential is about a person or a business. When an agent acts for a business, the acting person's details travel in their own credential alongside the business credential. A credential can carry these details. > [accordion] View all person fields > > | Detail | Technical name | > | - | - | > | First name | `given_name` | > | Middle name | `middle_name` | > | Last name | `family_name` | > | Full name | `name` | > | Email address | `email` | > | Phone number | `phone_number` | > | Street address | `address.street_address` | > | City | `address.locality` | > | State or region | `address.region` | > | ZIP or postal code | `address.postal_code` | > | Country | `address.country` | > | Whether the address was validated by USPS | `address.usps_validated` | > | Date of birth | `birthdate` | > | Birth year | `birth_year` | > | Last four digits of the SSN | `ssn_last_4` | > | Country of residence | `residency.country` | > | State or region of residence | `residency.region` | > | Matching hash of the name | `hashes.name` | > | Matching hash of the email | `hashes.email` | > | Matching hash of the phone number | `hashes.phone_number` | > | Matching hash of the address | `hashes.address` | > | Matching hash of the SSN | `hashes.ssn` | > [accordion] View all business fields > > | Detail | Technical name | > | - | - | > | Legal name | `name` | > | Trade names (DBAs) | `dbas` | > | EIN (federal tax ID) | `ein` | > | Business structure, such as `llc` | `structure` | > | State of incorporation | `state_of_incorporation` | > | Country of incorporation | `country_of_incorporation` | > | Date of incorporation | `date_of_incorporation` | > | Street address | `address.street_address` | > | City | `address.locality` | > | State or region | `address.region` | > | ZIP or postal code | `address.postal_code` | > | Country | `address.country` | > | Address type: registered, mailing, physical or residential | `address.address_type` | > | Email address | `email` | > | Website | `website` | > | Website domain, such as `acme.co.uk` | `domain` | > | Registration status: active, inactive or dissolved | `registration_status` | > | Matching hash of the legal name | `hashes.name` | > | Matching hash of the EIN | `hashes.ein` | > | Matching hash of the email | `hashes.email` | > | Matching hash of the address | `hashes.address` | A business credential also confirms that the person behind the agent is verified to act for that business. See [Who Can Act for a Business](/docs/kya-who-can-act-for-a-business). The site gets only the details it asked for. It lists what it needs in its rules, as a scope with the reason it asks. Baselayer never adds more, and a site that checks the requirement refuses a credential that carries extra. To ask for fields, see [Asking for Fields](/docs/kya-asking-for-fields). ### What Baselayer verified The credential lists the checks that passed when Baselayer verified the person or business. > [accordion] View all person checks > > | Check | Technical name | > | - | - | > | Phone confirmed with a texted code | `phone_possession` | > | Email confirmed with a code | `email_possession` | > | Date of birth matched the identity | `dob_identity_match` | > | Identity number matched the identity | `ssn_identity_match` | > | Watchlists clear | `watchlist_clear` | > > Baselayer fills identity number details from its own verification. The person never types an SSN. > [accordion] View all business checks > > | Check | Technical name | > | - | - | > | Matched a record in its home state registry | `registry_record_found` | > | IRS matched the business name and tax ID | `tax_id_match` | > | State registration is active | `registration_active` | > | The acting person is an officer on the registration | `actor_is_officer` | > | Watchlists clear | `watchlist_clear` | In your own code, you can require specific checks, such as a clear watchlist result before checkout. For how checks are carried inside the credential, see [the verification block](/docs/credential-format-reference#the-verification-block). ## Built-in safeguards | Safeguard | In plain language | | - | - | | Identity, not permission | It says who the agent acts for. The site still decides what the agent may do, including whether it can pay. | | Agent-bound | It's tied to the agent's own key, so another agent can't present it. | | Site-bound | It names the site it was made for and answers a one-time challenge, so it can't be used at another site or replayed. | | Different ID at each site | Each site gets its own customer ID for the same person or business. | | Short-lived | It works for one hour by default, up to 24 hours, and can be [revoked](/docs/kya-managing-and-revoking) earlier. | ## Where to go next See what you can do with KYA credentials: * [Accepting Agents at Your Site](/docs/kya-accepting-agents): see every agent visit and set what each may do. * [Let Shopping Agents Check Out](/docs/kya-playbook-merchants): let verified agents shop, sign in and check out at your store. * [Give an Agent a Verified Identity](/docs/kya-playbook-agent-builders): let sites recognize the people behind your agents. * [Know Who's Behind Agent Traffic at the Edge](/docs/kya-playbook-edge): check who an agent represents before its request reaches your origin. * [Agents Acting for a Business](/docs/kya-playbook-b2b): show which business an agent represents and who is acting for it. # Handling Failures Source: https://docs.baselayer.com/docs/kya-handling-failures Know why a credential was refused and what to tell the agent. When a credential check fails, it fails with one code, a lowercase string such as `audience_mismatch`. The [Credential Format Reference](/docs/credential-format-reference#order-of-checks) lists the checks in the order they run, and Agent Acceptance reports the same code on a refused credential. Only two credential failures are retryable. Both mean Baselayer couldn't be reached from your side, not that anything is wrong with the credential. Every other failure is final: the same presentation will fail again. ## Responding to the Agent Put the code in `kya_error` in the JSON body so the agent can tell what went wrong. | Kind | HTTP status | `error` | | - | - | - | | Retryable | `503` | (no error field; the code is in `kya_error`) | | `unknown_disclosure_scope` | `400` | `invalid_scope` | | Every other failure | `400` | `invalid_request` | Agents treat any `5xx` as worth retrying and any `4xx` as final. ## Your Application Creates the Response Your own route logic produces these two before it checks a credential. | Code | Meaning | Action | | - | - | - | | `no_credential_presented` | The request had no credential. | Respond `401` with a step-up so the agent knows what to present. See [Ask for the Fields](/docs/kya-asking-for-fields#ask-for-the-fields). | | `unknown_disclosure_scope` | The agent named a scope your rules don't have. | Answer with the step-up for the step, which names the scope to use. | ## Try Again Later These are the only two `503` cases. Your server couldn't fetch one of Baselayer's public files. You choose whether to fail open or closed. If you fail closed, return `503` so the agent tries again later. Never accept a credential you couldn't check. | Code | Meaning | Action | | - | - | - | | `issuer_resolution_failed` | Baselayer's signing keys couldn't be fetched. | Fail open, or return `503`. | | `status_list_resolution_failed` | Baselayer's revocation list couldn't be fetched. | Fail open, or return `503`. | ## Present a Corrected or Fresh Credential These are final for this presentation. The agent or its builder can often fix the input and present again. | Code | Meaning | Action | | - | - | - | | `malformed_presentation` | The credential couldn't be read. | Tell the agent the credential is malformed. | | `unsupported_credential_type` | This isn't a KYA credential type. | Tell the agent to present a KYA credential. | | `sandbox_issuer` | A sandbox (test) credential, and sandbox credentials are off. | In testing, trust the sandbox issuer. In production, refuse. See [KYA Sandbox and Testing](/docs/kya-sandbox-and-testing). | | `credential_expired` | The credential has expired. | Tell the agent to present a fresh credential. | | `credential_not_yet_valid` | The credential's start time is in the future. | Tell the agent to present a valid credential. If this happens often, check your server clock. | | `key_binding_missing` | The agent didn't sign the presentation. | Tell the agent to sign with its key and your nonce. | | `key_binding_invalid` | The agent's signature is wrong, or doesn't cover this presentation. On a business pair, the two credentials use different keys or nonces. | Tell the agent to fetch a new nonce and present again. | | `nonce_not_issued` | You never issued this nonce, or it expired. | Tell the agent to fetch a new nonce. On many servers, check that they share one nonce store. | | `nonce_replayed` | This nonce was already used. | Tell the agent to fetch a new nonce. If you didn't expect a second use, this may be a replay. | | `audience_mismatch` | The credential was issued for another site, or signed for another audience. | Check that the audience you check against is your domain exactly as credentials are minted for you. Otherwise refuse. | | `audience_not_registered` | With Agent Acceptance on, the credential's audience isn't one you registered. | Register every form your credentials are minted for. See [Audiences and Allowed Origins](/docs/kya-acceptance-configuring#audiences-and-allowed-origins). | | `actor_mismatch` | The business and person credentials don't belong together, or a business credential came without its person's credential. | Tell the agent to present the business credential with the acting person's credential. | | `scope_violation` | The credential lacks a key your requirement asks for, or shares fields other than the requirement's scope. The whole credential is refused. | Answer with the step-up again, naming the keys it lacked in `missing_keys`. For fields, the agent needs a credential for exactly the scope's fields. | ## Refuse and Investigate These point to a credential that can't be trusted. Refuse, and log the failure. | Code | Meaning | Action | | - | - | - | | `untrusted_issuer` | Baselayer didn't issue this credential. | Refuse. | | `unknown_signing_key` | The credential names a signing key Baselayer doesn't publish. | Refuse. | | `issuer_signature_invalid` | The signature doesn't match. The credential was changed or forged. | Refuse. | | `status_list_invalid` | The revocation list couldn't be trusted. | Refuse. | | `credential_revoked` | The credential has been revoked. | Refuse. Treat it the same as an expired credential. | | `unsupported_digest_algorithm` | The credential uses a hashing method KYA doesn't accept. | Refuse. | | `disclosure_digest_mismatch` | A shared field doesn't match what Baselayer signed. A value was changed. | Refuse. | | `actor_not_authorized` | Baselayer hasn't verified that this person may act for the business. | Refuse. | | `verification_level_mismatch` | The checks the credential lists don't back up the verification it claims. | Refuse. | | `verification_missing` | The credential doesn't say how it was verified. | Refuse. | ## Credential Refusals in Agent Acceptance With Agent Acceptance on, a refused credential is also reported on the request's decision, as an attestation of type `baselayer` with `status` `invalid`. Its `failure_reason` is the same code, such as `audience_not_registered`. See [Attestations](/docs/kya-acceptance-reading-activity#attestations). ## Acceptance Errors These come from Baselayer's acceptance API when you change your settings or read activity, not from the credential check. | Status | Code | Meaning | Action | | - | - | - | - | | `412` | `policy_version_stale` or `domains_stale` | Someone changed your rules, audiences or allowed origins after your read. Nothing changed. | Read again, reapply your change, and send the new `If-Match`. | | `428` | `if_match_required` | A replace was sent with no `If-Match`. | Read first and send its `ETag` as `If-Match`. | | `422` | `validation_failed` | A replaced policy breaks a rule, such as a `required_keys` set that isn't one of the four, a scope a requirement names that your policy lacks, or a scope field the keys can't back. Each error names the field and has its own `type`. | Fix the field it names. See [Replace the Policy](/docs/kya-acceptance-configuring#replace-the-policy). | | `422` | `audience_not_canonical` or `origin_invalid` | An audience or allowed origin isn't in canonical form, or is repeated. `metadata` names it. | Send it in the form [Audiences and Allowed Origins](/docs/kya-acceptance-configuring#audiences-and-allowed-origins) shows. | | `409` | `browser_key_limit_reached` | You already have 2 browser keys. | Delete one, then create the new key. | | `503` | `acceptance_reads_unavailable` | Activity can't be read for a moment. | Wait the `Retry-After` seconds, then read again. | ## Next Steps * [Credential Format Reference](/docs/credential-format-reference): every check, in the order it runs. * [KYA Sandbox and Testing](/docs/kya-sandbox-and-testing): test the full flow with test data. # Install Options Source: https://docs.baselayer.com/docs/kya-install-options See what each way of adding Baselayer takes and what it shows you, and which one fits your stack. For engineers and whoever runs your site's CDN. ## Your Options | Option | What it takes | What you get | Who does it | | - | - | - | - | | Tag on your pages (baselayer.js) | One script on your shared page template, with your application ID and browser key. | Browser agents that load your pages, including ones that act like regular shoppers: where they go and what they do. On steps you enforce, it shows agents your step-ups and blocks. | Web team | | Your own code | Check the KYA credentials agents present at your API or MCP server, following the [Credential Format Reference](/docs/credential-format-reference). | The verified customer behind each agent that presents a credential to your server. | Backend team | You load baselayer.js straight from Baselayer with one script tag, so there's nothing to install. Test the tag on staging with a staging application ID and browser key. See [Test Against Staging](/docs/kya-acceptance-quickstart#test-against-staging). ## What You Need For the tag, an application ID from your Baselayer team, a browser key, and your site's origins in your allowed origins (see [Set Up baselayer.js](/docs/kya-acceptance-quickstart)). ## Which Should I Pick * Start with the tag. It works on its own. * Check credentials in your own code when agents reach your API or MCP server rather than your pages. * Start watch-only. Your rules record what they would decide without applying it until you turn on `enforce`. See [Set Your Rules](/docs/kya-acceptance-configuring). ## By Stack * Any website: [Set Up baselayer.js](/docs/kya-acceptance-quickstart). * Your API or MCP server: check credentials in your own code. See the [Credential Format Reference](/docs/credential-format-reference). * Cloudflare, Akamai or another CDN: talk to your Baselayer team. ## Next Steps * [Set Up baselayer.js](/docs/kya-acceptance-quickstart): add the tag to your pages. * [Credential Format Reference](/docs/credential-format-reference): check credentials in your own code. * [Set Your Rules](/docs/kya-acceptance-configuring): decide what agents can do at each step. * [What baselayer.js Reports](/docs/kya-acceptance-browser-records): see what the tag sends and what it never sends. # Managing and Revoking Credentials Source: https://docs.baselayer.com/docs/kya-managing-and-revoking Find credentials Baselayer minted for your organization and revoke one before it expires. Credentials are short-lived and minted on demand, but Baselayer keeps a record of every credential it mints for your organization. Use these records to answer "was this agent allowed, for whom, and was it revoked?", and to stop a credential before it expires. Each record is keyed by `credential_id`, returned by the mint. It is the same value as the `jti` inside the credential. Sites that log the `jti` of credentials they accept can hand it to you in a dispute, and you can look it up here. ## Find a credential List the credentials your organization minted, newest first. To find active credentials for a person, filter by `individual_ref` and `state=ACTIVE`: ```http theme={null} GET /issuance/credentials?individual_ref={individual_ref}&state=ACTIVE ``` See every filter in the [API Reference](/api-reference/credentials/list-your-organizations-credential-records). To read one record: ```http theme={null} GET /issuance/credentials/{credential_id} ``` See the [API reference](/api-reference/credentials/resolve-one-credential-record-by-its-credential_id). If your API key is allowed to mint credentials, the response also includes `credential`: the credential string the mint returned. It is stored encrypted, and it is bound to the agent's key, so it cannot be presented without the agent's private key. A `credential_id` your organization did not issue returns `404`, the same as one that does not exist. ## Read the credential record | Field | Why it matters | | - | - | | `credential_id` | The credential to look up or revoke. It matches `jti`. | | `state` | `ACTIVE`, `EXPIRED` or `REVOKED`, as of the request. | | `status` | `VALID` or `REVOKED`. Tracks revocation only. | | `individual_ref`, `business_ref` | Who it represents. | | `audience` | Which site it was minted for. | | `issued_at`, `expires_at` | Its lifetime. | | `disclosed_fields` | What it shared. | | `active_keys` | The verification checks it attests. | | `revoked_at`, `revocation_reason`, `revoked_by` | When, why and by whom it was revoked. Null while valid. | See every record field in the [API Reference](/api-reference/credentials/resolve-one-credential-record-by-its-credential_id). ## List issuances and revocations To see every issuance and revocation of your organization's credentials as one stream, newest first by default: ```http theme={null} GET /issuance/credentials/events ``` See the [API reference](/api-reference/credentials/list-your-organizations-credential-events). Filter with `event_type` (`ISSUED` or `REVOKED`, repeat it for both) and a date range. `GET /issuance/credentials/events/export` returns every event the same filters match as a CSV file. See the [API reference](/api-reference/credentials/export-your-organizations-credential-events). ## Revoke it ```http theme={null} POST /issuance/credentials/{credential_id}/revoke ``` ```json theme={null} { "reason": "agent_key_compromise" } ``` See the [API reference](/api-reference/credentials/revoke-one-credential). | `reason` | Use it when | | - | - | | `agent_key_compromise` | The agent's private key may have leaked. | | `identity_superseded` | The person's or business's details changed. | | `identity_withdrawn` | The person or business withdrew. | | `operator_link_revoked` | The person may no longer act for the business. | | `fraud_suspected` | You suspect fraud. | A credential Baselayer revoked shows the reason `administrative_action`. The response is the updated record, with `status: REVOKED`. ### Revocation rules * It stops this one credential. The person or business can still be minted a new one right away. * It deletes nothing. The record stays readable with its reason, time and who revoked it. * It is idempotent. Revoking an already revoked credential changes nothing and keeps the first reason and revoker. * It cannot be undone. Mint a new credential instead. Rejecting an operator link blocks new business credentials for that person and business. To stop credentials already minted for the pair, revoke them with `operator_link_revoked`. See [Who Can Act for a Business](/docs/kya-who-can-act-for-a-business). ## What the site sees Revoking sets the credential's bit on a status list that Baselayer publishes and signs. Sites check that list on every presentation, and may keep their copy until the list's own refresh time, so sites see the revocation in near-real time. A revoked credential is refused as `credential_revoked`. The list is shared by many credentials, so fetching it doesn't identify which credential or person a site is checking. The list lives at: ```text theme={null} https://registry.baselayer.com/statuslists/{list_id} ``` Sandbox credentials use `https://sandbox.registry.baselayer.com`. See the [Credential Format Reference](/docs/credential-format-reference) for how to read it. ## Troubleshooting | Problem | Fix | | - | - | | `404` on lookup or revoke | The `credential_id` is not from your organization, or is from your other environment (sandbox or production). | | `422` with code `6304` on the list | The `audience` filter is not a valid audience. Use a bare domain or an https address with no path. | | A revoked credential still worked briefly | Sites may use a cached status list until its refresh time. | | The list shows `status: VALID` for an old credential | `status` only tracks revocation. Filter with `state=EXPIRED` to find expired ones. | # Matching Customers Source: https://docs.baselayer.com/docs/kya-matching-customers Connect an agent to the customer account you already have for that person. There are two ways to know who an agent's customer is: the stable customer ID, and hashes you can compare against your own records. ## The Stable Customer ID `sub` is a stable ID for this customer at your site. The same person gets the same ID on every visit. Another site gets a different ID for the same person. 1. Store it against the customer's account. 2. On the next visit, look it up in your own database. 3. If you find it, this is a returning customer. A credential check keeps no record of who it has seen. With Agent Acceptance on, Baselayer keeps the agent visits your site reports, including the credential's site-specific ID as `subject`. That `subject` is the same ID as the credential's `sub`, so you can find a returning customer's visits in [Reading Agent Activity](/docs/kya-acceptance-reading-activity). ## Hashes A credential can share a value as a hash instead of in plain text, for example `hashes.email`. The hash looks like `sha256:`. 1. Hash the value you have on file, normalized the way Baselayer normalizes it. 2. Compare it with the shared hash. 3. If they match, the customer's value is the same as yours, and you never received the plain text. 4. Before you link the agent to that account, confirm ownership as in [Linking an Agent to an Existing Account](#linking-an-agent-to-an-existing-account). Baselayer cleans up each value before hashing (for example, it lowercases emails and turns phone numbers into international format), so small formatting differences still match: * Phone numbers without a country code are read as US numbers. * Address parts are all optional, `country` defaults to US, and each part is in standard USPS form. * EIN and SSN keep digits only, so `12-3456789` and `123456789` hash the same. | Value | Shared as | | - | - | | Email | `hashes.email` | | Name | `hashes.name` | | Phone | `hashes.phone_number` | | Address | `hashes.address` | | EIN | `hashes.ein` (business credentials) | | SSN | `hashes.ssn` | Baselayer fills in `hashes.ssn` from its own verification, and in Baselayer's hosted flow the person never types an SSN. Match it only against an SSN you already hold on file. On a single credential the hashes are in its `claims`. On a business pair, the business's are in `claims` and the acting person's in `act.claims`. ## Linking an Agent to an Existing Account A matching hash shows a value matches one you hold, not that the agent's customer owns the account. Email addresses get recycled. | Situation | What to do | | - | - | | `sub` is already linked to an account | Sign the agent in to that account. | | No link yet, and the email hash matches exactly one account | Confirm ownership first, with an email to that address or your normal sign-in. Then save `sub` on the account and grant its access. | | The hash matches several accounts, or none | Use your normal account checks. | Before allowing sensitive actions, you can also require specific checks in the credential's `verification.active_keys`, such as: * `watchlist_clear` for a clear watchlist result * `phone_possession` for a confirmed phone ## Next Steps * [Handling Failures](/docs/kya-handling-failures): know why a credential was refused and what to tell the agent. * [Business Agents](/docs/kya-business-agents): check an agent acting for a business. # Know Your Agent: Basics Source: https://docs.baselayer.com/docs/kya-overview Know which AI agents reach your site and who they act for, and give your own agents an identity any site can check. Know Your Agent (KYA) has two sides, joined by the KYA credential. One side gives agents a verified identity. The other side checks it, and sees every agent that arrives. | | Who it's for | What it does | | - | - | - | | [Accept agents](#accept-agents) | Sites, apps, APIs and MCP servers that agents visit | See every agent visit and how strongly it's identified, check credentials, recognize returning customers, and set what each agent may do. | | [Give agents an identity](#give-agents-an-identity) | Anyone whose agents act for a person or business: agent platforms, businesses running their own agents, and the apps people use them through | Baselayer verifies the person or business once, then mints a short-lived credential the agent shows to each site. | ## Where to start ### If agents come to your site, app or API | I want to... | Start with | Then build with | | - | - | - | | See which agents visit and what they do | [Install Options](/docs/kya-install-options) | [Set Up baselayer.js](/docs/kya-acceptance-quickstart), [Reading Agent Activity](/docs/kya-acceptance-reading-activity) | | Recognize the returning customer behind an agent | [Let Shopping Agents Check Out](/docs/kya-playbook-merchants) | [Matching Customers](/docs/kya-matching-customers), [Asking for Fields](/docs/kya-asking-for-fields) | | Require proof before an agent checks out or signs in | [Accepting Agents at Your Site](/docs/kya-accepting-agents) | [Set Your Rules](/docs/kya-acceptance-configuring), [Asking for Fields](/docs/kya-asking-for-fields), [Handling Failures](/docs/kya-handling-failures) | | Handle agent traffic at my CDN or edge | [Know Who's Behind Agent Traffic at the Edge](/docs/kya-playbook-edge) | [Install Options](/docs/kya-install-options), [Credential Format Reference](/docs/credential-format-reference) | | Accept agents acting for a business | [Business Agents](/docs/kya-business-agents) | [Who Can Act for a Business](/docs/kya-who-can-act-for-a-business) | ### If you build or run agents | I want to... | Start with | Then build with | | - | - | - | | Give my agents a verified identity | [Give an Agent a Verified Identity](/docs/kya-playbook-agent-builders) | [Verifying an Identity](/docs/verifying-an-identity), [Minting Credentials](/docs/minting-credentials), [Presenting a Credential](/docs/presenting-and-verifying-a-credential) | | Let my agents act for a business | [Agents Acting for a Business](/docs/kya-playbook-b2b) | [Who Can Act for a Business](/docs/kya-who-can-act-for-a-business), [Minting Credentials](/docs/minting-credentials) | | See what a person sees when they verify | [Hosted Enrollment Playground](/hosted-enrollment/playground) | [Verifying an Identity](/docs/verifying-an-identity) | ### For everyone | I want to... | Start with | Then build with | | - | - | - | | Understand what a credential tells a site | [Credentials Explained](/docs/kya-credentials-explained) | [Credential Format Reference](/docs/credential-format-reference) | | Review security and privacy | [What baselayer.js Reports](/docs/kya-acceptance-browser-records) | [Credentials Explained](/docs/kya-credentials-explained), [Managing and Revoking Credentials](/docs/kya-managing-and-revoking), [Audit Log](/docs/audit-log) | | Test before going live | [KYA Sandbox and Testing](/docs/kya-sandbox-and-testing) | [Set Up baselayer.js](/docs/kya-acceptance-quickstart#test-against-staging) (testing on staging) | ## Get access Email [support@baselayer.com](mailto:support@baselayer.com) to get your keys and a sandbox to test in. | You | What you need | | - | - | | A site that wants to see agent activity | A Baselayer API key, plus an application ID and a browser key for baselayer.js. See [Install Options](/docs/kya-install-options). | | A site that only checks credentials | No Baselayer API key. The check uses Baselayer's published signing keys and revocation list. | | A platform or business that verifies people and mints credentials | A Baselayer organization and an API key. See [Authentication](/docs/authentication). | ## Accept agents AI agents already browse, search and buy on your site. Most look like regular visitors or anonymous bots. Agent Acceptance tells you which visits are agents, how strongly each one is identified, and who stands behind it. Then you decide what each may do. How strongly an agent is identified, weakest to strongest: | Evidence | What it means | | - | - | | Scored | Detection says the visit behaves like an automated browser. | | Declared | The agent says what it is, and its network matches the platform's published range. | | Verified | The agent signs its requests with a key that can be verified. | | Credentialed | The agent presents a KYA credential, so you know the verified person or business behind it. | What you see, starting in watch-only mode: * Every agent visit, from the first page to checkout. * Which agent platforms visit, and how strongly each is identified. * Returning customers, recognized by an ID unique to your site, when their agent presents a credential. * Which agent visits end in a purchase, if you report purchases. **1. Install** Add the [baselayer.js](/docs/kya-acceptance-quickstart) tag to your pages, check credentials in your own code at your server, or both. See [Install Options](/docs/kya-install-options). **2. Watch** Every decision your rules would make is recorded, and nothing changes for visitors. See [Reading Agent Activity](/docs/kya-acceptance-reading-activity). **3. Set your rules** For each step, such as browse, cart and checkout, choose what each kind of agent gets: allow, step up or block. Baselayer supplies the facts, and your rules decide. See [Set Your Rules](/docs/kya-acceptance-configuring). Only visits detection finds to be automated are stored, and typed text and form values are never sent. See [What baselayer.js Reports](/docs/kya-acceptance-browser-records). ## Give agents an identity To most sites, your agent looks like any other bot, so it gets blocked, challenged or handed back to the person. A KYA credential lets your agent prove that a verified person or business stands behind it, so sites that accept KYA can let it browse, sign in and check out. * The person verifies once with Baselayer. Your agent then gets a credential for each site it visits, with no new sign-up at each one. * Each site gets its own stable ID for the customer, so it can recognize them and connect their account, loyalty and order history. A different site gets a different ID for the same person. * A credential includes only the fields the site's rules ask for, never more. * Each credential is short-lived, signed by Baselayer and bound to your agent's key, so a copied credential can't be replayed. You can revoke it at any time. Built on open standards: SD-JWT VC credentials, OAuth 2.0 token exchange, signed revocation lists, and keys published as JWKS and DID documents, so any site can check a credential with standard libraries. A credential says who is behind the agent and which checks Baselayer ran. It does not include spending authority or payment details. **1. Verify once** * The platform sends the person through Baselayer's [hosted enrollment](/hosted-enrollment/overview) flow, or submits identity details it already collected. * In the hosted flow, the person enters their phone number, date of birth and country, types the code Baselayer texts them, and confirms their details. * The platform receives a stable `individual_ref`, plus a `business_ref` when a business is verified. Runs once per person or business. See [Verifying an Identity](/docs/verifying-an-identity). **2. Mint for a site** * The platform's backend asks Baselayer to mint a credential for one site, using the audience the site returns with its nonce. * The credential is bound to the agent's public key and can include only the verified fields the site's rules ask for. Runs for each site, and again when the credential expires. See [Minting Credentials](/docs/minting-credentials) and the [list of fields a credential can share](/docs/kya-credentials-explained#identity-details). **3. Present** * The agent gets a one-time nonce from the site and signs the presentation with its private key. * It then exchanges the presentation for the site's access token. Runs each session. See [Presenting a Credential](/docs/presenting-and-verifying-a-credential). **4. Check** * The site, app, or API checks Baselayer's signature, the credential's revocation status, the agent's signature, and that the credential was issued for it. * It then reads the shared details and decides what the agent may do. Runs on each presentation. See [Accepting Agents at Your Site](/docs/kya-accepting-agents) and the [Credential Format Reference](/docs/credential-format-reference). The platform can revoke a credential through Baselayer at any time. See [Managing and Revoking Credentials](/docs/kya-managing-and-revoking). It can also look up verification, issuance, and revocation events for a person, business, or credential it already holds. See [Audit Log](/docs/audit-log). ## Support Questions or issues? Email [support@baselayer.com](mailto:support@baselayer.com) or check status.baselayer.com. # Give an Agent a Verified Identity Source: https://docs.baselayer.com/docs/kya-playbook-agent-builders Let sites recognize the people behind your agents, without giving the agents your users’ passwords. ## Overview An agent acts for real people, but to most sites it looks like any other bot. It gets blocked, sent through guest checkout, or asked for a password it shouldn't hold. Sites have no way to know who it acts for. Sites that use Agent Acceptance can tell agents apart even without a credential, from the platform an agent declares, the requests it signs, and bot detection. None of that says which person the agent acts for. A credential is the strongest proof a site can get. See [Accepting Agents at Your Site](/docs/kya-accepting-agents). Key challenges for agent builders: * Proving to a site that a verified person is behind the agent * Doing that without handing the agent the person's passwords * Sharing only what each site needs, and nothing more * Cutting off an agent fast if its key is compromised or something changes With KYA, Baselayer verifies the person once. When their agent needs to identify itself to a site, your backend asks Baselayer to mint a short-lived credential for that site. This works the same whether you run an agent platform or your business runs its own agents. * Each credential works at one site and only with the agent key it was issued for. * You can revoke a credential at any time, and sites refuse it in near-real time. * The credential carries identity, not spending authority or payment details. ## Choose what a credential shares A person's credential can share only the customer ID and the checks that passed, or also the details the site's profile asks for. You pick with the mint's `level`. A business credential always takes `level: L3`. See [Agents Acting for a Business](/docs/kya-playbook-b2b). | What the site gets | Mint with `level` | Use it when | | - | - | - | | The customer ID for this site and the checks that passed. No personal details. | `L2` | The site only needs to recognize a returning customer. | | The same, plus the details the site's rules ask for. | `L3` | The site needs verified details, such as an email to find an account or an address to ship to. | The `level` you send (`L2` or `L3`) sets what the credential shares. The `verification.level` inside the credential (`2` or `3`) records which checks passed, and Baselayer sets it from those checks, not from your mint. The same person gets the same customer ID at one site across agents, keys, sessions and credentials. A different site gets a different ID. ## How it works **1. Verify the person once** You send the person through Hosted Enrollment, a Baselayer-hosted flow in your brand. They enter their phone number, date of birth and country, type the code Baselayer texts them, and confirm their details. If you already collected the person's details, you can send them through the API instead. Either way, the result is a stable `individual_ref`. People verified through the API don't go through the phone and email checks, so their credentials carry no `verification.level`. See [Hosted Enrollment](/hosted-enrollment/overview) and [Verifying an Identity](/docs/verifying-an-identity). **2. Create a key for the agent** Each agent generates and holds an Ed25519 key pair. The private key stays with the agent. You send only the public key when you ask Baselayer to mint a credential. **3. Find out what the site needs** The agent requests a protected page. The site answers `401` with a step-up. Its `requirement` names the keys the credential must prove and the exact fields the site may read. **4. Get a nonce** The agent calls the site's `POST /nonces` and gets a single-use nonce and the site's audience. **5. Mint a credential for that site** Your backend calls Baselayer with your API key, the site's audience, the agent's public key, the `level` and the fields the site's requirement lists. Minting runs on your backend, so the API key stays off the agent. See [Minting Credentials](/docs/minting-credentials). **6. Present it** The agent signs the site's nonce and audience with its private key, then presents the credential to the site. If the site accepts it, the site returns its own access token. See [Presenting a Credential](/docs/presenting-and-verifying-a-credential) for the full exchange. You can list the credentials Baselayer minted for you, look up a credential by ID, and revoke one before it expires. See [Managing and Revoking Credentials](/docs/kya-managing-and-revoking) and [Audit Log](/docs/audit-log). ## Your first credential Run one credential end to end in sandbox: 1. Email [support@baselayer.com](mailto:support@baselayer.com) to get your keys and a sandbox to test in. 2. Verify the test person. With Sandbox selected, enroll them through your hosted enrollment flow with the phone number and date of birth in [Run a full sandbox test](/docs/kya-sandbox-and-testing#run-a-full-sandbox-test). 3. Mint a credential with your sandbox key and the test person's `individual_ref`. See [Minting Credentials](/docs/minting-credentials). To test a production person instead, use the [test mint](/docs/minting-credentials#test-credentials). 4. Present it to your test site, with sandbox credentials turned on there. See [Presenting a Credential](/docs/presenting-and-verifying-a-credential) and [Let your test site accept sandbox credentials](/docs/kya-sandbox-and-testing#let-your-test-site-accept-sandbox-credentials). ## What each party sees | Party | What they see | | - | - | | Site | A presentation signed by Baselayer and the agent. If it passes, the site receives a stable, site-specific customer ID, the checks that passed, and the available fields its rules allow. | | Agent | A single-use nonce, followed by the site's access token if the presentation is accepted. | | Person | A texted code during hosted enrollment. They verify once, not at every site. Each site can receive only the fields its rules ask for. | | Baselayer | The person's details during verification and each mint request from you. What it sees at the site depends on the site's setup. If the site checks the credential only, Baselayer sees requests for its public signing keys and revocation list, and the site makes the access decision in its own code. If the site uses Agent Acceptance, Baselayer also sees the agent's requests at that site and runs the site's rules. Only visits detection finds to be automated are stored. | ## Recommended settings | Setting | Recommendation | | - | - | | Fields | Request only the fields listed in the site's requirement. A credential that shares more is refused by the site as `scope_violation`. | | Preview | Use the mint preview to see what a credential would share and skip before minting. | | Presets | Use a preset such as `consumer_ecommerce` when its fields match the site's requirement exactly. Otherwise list the scope's fields. See [Presets](/docs/minting-credentials#presets). | | Hashes | Share a hash like `hashes.email` only when the site's requirement asks for it. | | Lifetime | Keep the one-hour default. The maximum is 24 hours. Minting is a routine call, so mint again when a credential expires. | | Keys | Use a separate key for each agent. Keep the private key with the agent, or in a KMS. | | Audience | Use the audience the site returns with its nonce. Sites are matched exactly, so `shop.example` and `www.shop.example` are different. | | Revocation | Revoke with the reason that fits, such as `agent_key_compromise` or `identity_withdrawn`. Sites pick up a revocation in near-real time. | | Testing | Use a sandbox API key. Sandbox credentials come from a separate issuer, and sites accept them once they turn on sandbox. | ## Next steps * Verify a person or business: [Verifying an Identity](/docs/verifying-an-identity) * Mint the credential: [Minting Credentials](/docs/minting-credentials) * Present it to a site: [Presenting a Credential](/docs/presenting-and-verifying-a-credential) * See how sites accept agents: [Accepting Agents at Your Site](/docs/kya-accepting-agents) # Agents Acting for a Business Source: https://docs.baselayer.com/docs/kya-playbook-b2b Prove which business your agent represents and which verified person is acting for it. ## Overview In B2B, an agent may act for a business through a particular person. A supplier portal or procurement system needs to know both: which business the agent represents and which person is acting for it. Verifying that the business exists doesn't prove that the person may act on its behalf. For example, an agent for Harbor Concrete reorders parts from Acme Supply's portal. Acme needs to know that the agent represents Harbor Concrete, which verified person is behind it, and that the person is verified to act for Harbor Concrete. Acme still decides whether to allow the reorder. Key challenges: * Identifying the business an agent represents * Identifying the person behind the agent * Confirming that the person is verified to act for the business * Evaluating the business and person separately when a rule applies to both With KYA, the agent presents a business credential and the acting person's credential. * Baselayer mints the two together and binds them to the same agent key. * It mints a business credential only when the operator link between the person and the business is `VERIFIED`. * The credentials establish identity and the relationship between the two. | Role | Responsibility | | - | - | | Agent platform, or a business running its own agents | Verifies the person and business, reviews their operator link if needed, and asks Baselayer to mint the credentials. | | The site | Checks the credential presentation and decides what the agent may do. | ## How it works **1. Verify the person and the business together** Do one of these: * Use a Hosted Enrollment journey that collects a business. * Send a business verification to [`POST /issuance/identities/verifications`](/api-reference/identities/start-a-direct-verification) with both the person and the business. Include the business's tax ID (`tin`) so the link can verify on its own. The response includes an `individual_ref`, a `business_ref` and the link's status. See [Verifying an Identity](/docs/verifying-an-identity). **2. Check the operator link** The link is `VERIFIED` when: * A tax ID was provided. * The IRS matched it to the business name. * The business was verified against its state registry. If a check fell short, the link is `UNDER_REVIEW` and its `shortfalls` say which. **3. Review links that need a decision** 1. List links with `status=UNDER_REVIEW`. 2. Look at the evidence. 3. Approve or reject each one. Decisions apply only to your organization. See [Who Can Act for a Business](/docs/kya-who-can-act-for-a-business). **4. Mint the business credential** Ask Baselayer to mint for the person and the business with `level: L3`, the only `level` a business credential takes. `level: L2` is refused with error code `6320`. The mint returns two credentials minted together: the business's and the person's. Each carries only the fields allowed by the site's published scope. A mint for a link that isn't `VERIFIED` is refused with error code `6300`. See [Minting Credentials](/docs/minting-credentials). **5. The agent presents the pair** The agent signs both credentials with the same key and the same nonce. In the token exchange: * The business credential goes as `subject_token`. * The person's goes as `actor_token`. **6. Verify the pair as one** The site checks the business credential (`subject_token`) and the person's (`actor_token`) together, as one unit. If either credential fails, the whole presentation is refused. A business credential sent without its person is refused with `actor_mismatch`. See [Business Agents](/docs/kya-business-agents). **7. Check both the business and the person** Each credential carries its own checks. * `verification.active_keys` lists the business's checks only. * `act.verification.active_keys` lists the person's checks only. For any rule that should cover both, such as a clear watchlist result, require both. A check that passed for the business may not have passed for the person. ## What each party sees | Party | What they see | | - | - | | Agent platform, or a business running its own agents | The person and business references, the operator link status, and the credentials Baselayer mints. | | The site | IDs, verification results, expiry and shared fields, listed below the table. | | Agent | A one-time nonce, then the site's token if the presentation is accepted. | | Person | The verification flow when first enrolled. They don't repeat it for every presentation. | | Baselayer | The identity verifications and mint requests. What it sees at the site depends on the site's setup. If the site checks credentials only, Baselayer sees requests for its public signing keys and revocation list, and the site checks credentials in its own code. If the site uses Agent Acceptance, Baselayer also sees the agent's requests at that site and runs the site's rules. Only visits detection finds to be automated are stored. | The site sees: * A site-specific ID for the business (`sub`). * The acting person's site-specific ID (`act.sub`). * Separate verification results for each (`verification.active_keys` and `act.verification.active_keys`). * Their expiry. * Any shared fields. ## Recommended settings | Setting | Recommendation | | - | - | | Tax ID | Include `tin` when verifying the business. When the IRS and registry match, the operator link verifies automatically. Without it, the link waits for review. | | Preset | `b2b_ecommerce` shares the person's name, email and phone, and the business's name and basic registration details. Use it when those fields match what the site's rules ask for. A mint applies no preset unless it names one. See [Presets](/docs/minting-credentials#presets). | | Gating | For a rule that should cover both credentials, require the check in both `verification.active_keys` and `act.verification.active_keys`. The first alone covers only the business. | | Officer match | Treat `officer_match` as supporting evidence in a review. Many states don't list officers, so it doesn't verify or hold a link on its own. | | Rejection | Rejecting a link blocks new business credentials for that pair until the decision changes. Credentials already minted keep working until you revoke them. | | Sandbox | Test with a sandbox key. Sandbox and production links are separate. | ## Next steps * Verify the relationship: [Who Can Act for a Business](/docs/kya-who-can-act-for-a-business) * Mint the credential pair: [Minting Credentials](/docs/minting-credentials) * Check the pair at the site: [Business Agents](/docs/kya-business-agents) # Know Who's Behind Agent Traffic at the Edge Source: https://docs.baselayer.com/docs/kya-playbook-edge Check who an agent represents before its request reaches your origin. ## Overview At the edge, an agent acting for a verified customer can look the same as any other automated request. Most agent traffic carries no credential at all. Key challenges for edge and bot management teams: * Identifying agents acting for verified people * Checking that identity before the request reaches the origin * Passing a clear result to the origin without making it parse credentials * Preventing nonce reuse across every edge location * Adding identity to existing bot rules rather than replacing them KYA lets an agent present proof of the person it represents. The edge worker checks that proof in your own code and passes the result to the origin. Your existing bot rules still decide how to handle traffic without valid KYA proof. What you can learn about an agent, weakest to strongest: | Evidence | What it means | | - | - | | Scored | Detection says the request behaves like an automated browser. | | Declared | The agent says what it is, and its network matches the platform's published range. | | Verified | The agent signs its requests with a key that can be verified. | | Credentialed | The agent presents a KYA credential, so you know the verified person or business behind it. | ## Run it at the edge Run the credential check in your own Worker. It answers the nonce and token routes, checks credentials as the [Credential Format Reference](/docs/credential-format-reference) describes, and passes the result to your origin. See [Install Options](/docs/kya-install-options) for other ways to add Baselayer. Your site must be in your own Cloudflare account (zone), since hosted site builders can't run a Worker on your main domain. ## What happens to a request These steps are for agents that carry a KYA credential. **1. The agent asks for access** The edge answers `401` with a step-up that names the keys the credential must prove and the fields the site asks for. **2. The agent gets a nonce** The edge issues a one-time nonce from a store shared across all locations. **3. The agent presents its credential** It sends the credential and its signed proof to the token endpoint. **4. The edge checks the presentation** The worker checks the credential, agent signature, audience, nonce, expiry, revocation status and the requirement. See [Order of Checks](/docs/credential-format-reference#order-of-checks). **5. The edge passes the result to the origin** It removes any matching headers from the incoming request, then adds trusted headers with the result. **6. The origin decides** It applies its own access and risk rules. It doesn't need to parse the credential. ## What the edge deployment requires * Signing keys and revocation lists cached per worker instance * One nonce store shared by every location * An atomic check-and-spend for nonces * Result headers agreed between the edge and origin teams * The edge strips those headers from every incoming request before adding its own, so an agent can't claim it already passed * A log-first rollout before the result changes traffic handling ## What each component sees | Component | What it sees | | - | - | | Edge worker | The credential presentation and the complete verification result. | | Origin | Only the trusted result the edge adds to the request. | | Agent | A one-time nonce, then the site's token if accepted. | | Baselayer, credential check only | Requests for its public signing keys and revocation lists, which can be cached and don't identify the credential being checked. | ## What a refusal means A credential either passes or fails with a typed reason, such as `credential_expired`, `credential_revoked`, `audience_mismatch` or `nonce_replayed`. A failure says only that the credential or presentation couldn't be accepted. The edge or origin decides how to handle the request. Each nonce works once, and each credential works only for the site it was minted for and only with the agent key it was bound to. A credential copied off the wire can't be replayed. See [Handling Failures](/docs/kya-handling-failures) for every code. ## Recommended settings | Setting | Recommendation | | - | - | | Key caches | One per worker instance, reused across requests, for Baselayer's signing keys and revocation list. The check runs in your worker, with no call to Baselayer per request. | | `audience` | The site's domain, exactly as credentials are minted for it. `shop.example` and `www.shop.example` are different. | | Nonce store | One shared store for all locations, backed by Redis, a database or a Durable Object. See the note below the table. | | Result headers | Names the edge and origin teams agree on. Strip them from incoming requests. | | Rollout | Log every check first. Let the result affect traffic only after the team has reviewed the results and defined its policy. | | Outages | `issuer_resolution_failed` and `status_list_resolution_failed` are the only retryable failures. Decide whether to fail open (treat the agent as an unverified visitor) or closed (return `503`). Never accept a credential you couldn't check. | | Caching | Baselayer's signing keys are cached for 1 hour. The revocation list is cached until its own refresh time, so a revoked credential stops passing within that window. | | Credential lifetime | 1 hour by default, 24 hours at most. | | Sandbox | Trust the sandbox issuer only in testing. See [KYA Sandbox and Testing](/docs/kya-sandbox-and-testing). | > [!NOTE] > > **Nonce store** > > * A store in one process's memory works within that process only. > * Spending a nonce must check and spend it in one atomic step: in Redis, use `GETDEL`. Workers KV can't do this, so pick another store. ## Next steps * Choose how to install: [Install Options](/docs/kya-install-options) * Implement the check: [Credential Format Reference](/docs/credential-format-reference) * Handle refusals and outages: [Handling Failures](/docs/kya-handling-failures) # Let Shopping Agents Check Out Source: https://docs.baselayer.com/docs/kya-playbook-merchants Let verified agents shop, sign in and check out, and recognize the customer behind each one. ## Overview Shopping agents arrive at your site on behalf of real customers, but they usually look like regular visitors or anonymous bots. You can't tell which visits are agents, who each one represents, or how to connect it to an existing account with its loyalty status and order history. Key challenges for merchants: * Seeing which visits are agents at all * Distinguishing an agent acting for a verified person from an anonymous bot * Recognizing the same customer when their agent returns * Connecting the agent to the customer’s existing account * Getting the details needed at checkout without collecting more than required * Supporting verified agents without disrupting checkout for everyone else With KYA, you see every agent that visits and how strongly it's identified. When an agent presents a credential, you check it in your own code and receive a stable, site-specific customer ID, the verification checks that passed, and any available fields your rules ask for. You then decide what the agent may do. Most stores adopt KYA in three steps. Each one is useful on its own: 1. See every agent. Install in watch-only mode and see each agent visit and how strongly it's identified. Nothing changes for shoppers. 2. Recognize returning customers. When an agent presents a KYA credential, you get a customer ID that is stable at your site. 3. Ask for proof at checkout. Require a credential, and the checks you need, before an agent can buy. ## Will This Affect My Shoppers? * A new site starts watch-only, and nothing changes for visitors. * Baselayer never blocks anyone itself. Your rules decide what each kind of visitor gets, and the starting rules let people through. * Only visits detection finds to be automated are stored. * You can leave any page out of the tag. * If Baselayer can't be reached, your pages keep working. ## What happens when an agent arrives These steps are for agents that carry a KYA credential. Agents without one are still seen and identified as far as the evidence goes, such as a declared platform or a signed request, and your rules decide what they may do. See [Set Your Rules](/docs/kya-acceptance-configuring). **1. Your site asks for proof** A protected page returns `401` with a step-up that names the keys the credential must prove and the fields your rules ask for at that step. **2. The agent gets a credential** The agent gets a credential with no more than the fields your requirement lists. **3. The agent presents it** The agent gets a one-time nonce and sends the signed presentation to your token endpoint. **4. Your site checks it** Your site checks the credential, the agent's signature, the audience, the nonce, the expiry, the revocation status and your requirement. **5. Your site decides** Your site connects the site-specific ID to your customer records and applies your own rules. For example, it can let any verified customer browse and require specific checks before checkout, such as a clear watchlist result. It returns an access token when appropriate. ## What each party sees | Party | What they see | | - | - | | Your site | A stable customer ID for your site, the shared fields for that scope, the checks that passed when Baselayer verified the person (such as phone confirmed or watchlists clear) and the expiry. Or a typed failure reason. | | Agent | A single-use nonce, then your own session token if the credential is accepted. | | Person | No additional step on a return visit when the agent already has a valid credential. The credential can include only the fields your rules ask for. | | Baselayer, credential check only | Requests for its public signing keys and the shared revocation list, both cached. These don't identify which customer is being checked. | | Baselayer, with the tag on your pages | The browser agent visits and decisions baselayer.js reports. Only visits detection finds to be automated are stored. | ## What adopting takes Email [support@baselayer.com](mailto:support@baselayer.com) to get your keys and a sandbox to test in. * Install the tag, watch-only first. See [Install Options](/docs/kya-install-options). * Name the fields you ask for as scopes in your rules. See [Asking for Fields](/docs/kya-asking-for-fields). * Add a nonce route and a token route. * Check credentials in your own code. See the [Credential Format Reference](/docs/credential-format-reference). * Store the site-specific customer ID with customer accounts. * Decide which actions require which proof. See [Set Your Rules](/docs/kya-acceptance-configuring). * Log every credential check before letting the result change anyone's access. ## Recognizing returning customers Your site receives a stable, site-specific ID for the person. * When an agent returns with another KYA credential for your site, the ID is the same across agents and sessions. * You can store it with the customer's account and use it for loyalty, order history and cart recovery. * A different site receives a different ID for the same person. See [Matching Customers](/docs/kya-matching-customers). ## Recommended settings | Setting | Recommendation | | - | - | | `audience` | Your domain, exactly as credentials are minted for it. The site is matched exactly: `shop.example` and `www.shop.example` are two different sites with two different IDs. If agents reach you on both, accept both, and register both as audiences (see [Audiences and Allowed Origins](/docs/kya-acceptance-configuring#audiences-and-allowed-origins)). | | Scopes | One per step. List only the field paths that step needs. A credential that shares more is refused with `scope_violation`. | | Customer lookup | Store the credential's `sub` with the customer's account and look them up by it. A credential check keeps no record of who it has seen. | | Account linking | Treat an email hash match as a lead, not proof. Confirm ownership before granting account access. | | Session length | End each session by the credential's `exp`. | | Nonce store | Required. A store in one process's memory works for one long-lived process. On more than one server, give every instance the same store, backed by Redis or a database, that checks and spends a nonce in one atomic step. | | Key caches | Keep Baselayer's signing keys and revocation list cached per process, and reuse them across requests. | | Sandbox | Trust the sandbox issuer only in testing. See [KYA Sandbox and Testing](/docs/kya-sandbox-and-testing). | | Outages | Decide ahead of time whether to fail open (treat the agent as an unverified visitor) or closed (return `503`) on `issuer_resolution_failed` and `status_list_resolution_failed`. | ## Next steps * See how accepting agents works: [Accepting Agents at Your Site](/docs/kya-accepting-agents) * Name the fields you ask for: [Asking for Fields](/docs/kya-asking-for-fields) * Test before production: [KYA Sandbox and Testing](/docs/kya-sandbox-and-testing) # Playground Source: https://docs.baselayer.com/docs/kya-playground Pick a site and send the agent. See what the site gets, then try to break it. Know Your Agent playground # KYA Sandbox and Testing Source: https://docs.baselayer.com/docs/kya-sandbox-and-testing Test the full KYA flow with test data before you touch production. If you only want to see what a person sees when they verify, start with the [Hosted Enrollment Playground](/hosted-enrollment/playground). KYA follows the same rule as the rest of Baselayer: the API key you call with decides the environment. * A sandbox key works in your sandbox application, and a production key works in your production application. * The endpoints and request shapes are the same. See [Sandbox vs. Production Environments](/docs/sandbox-vs-production-environments) for keys and the console environment selector. For KYA, the two environments stay fully separate, and sandbox credentials are signed by their own issuer. ## Choose a testing path Sandbox is for credentials: sandbox keys and a test person. Staging is for Agent Acceptance. | What you want to test | What you need | | - | - | | Test the full flow with test people and businesses | A sandbox application and sandbox API key. See [Run a full sandbox test](#run-a-full-sandbox-test). | | Test a production person at a test site without minting a production credential | The test credential endpoint with a production API key. See [Test a production identity without minting a production credential](#test-a-production-identity-without-minting-a-production-credential). | | Test Agent Acceptance at your site | Baselayer's staging environment, with a staging application ID and browser key from your Baselayer team. See [Test Against Staging](/docs/kya-acceptance-quickstart#test-against-staging). | ## Run a full sandbox test A full sandbox test has four steps: verify the test person and business, mint a credential, present it to your test site, and check it there. All of it uses your sandbox application and a sandbox API key. ### 1. Verify the test person and business You create a test person the same way as in production: someone completes your hosted enrollment flow while your sandbox application is selected. In sandbox, the person check runs against test data and the business check answers from Baselayer's seeded sandbox businesses, so enter the values below exactly. To enroll the test person: 1. In the console, select Sandbox, then open your [enrollment flow](/hosted-enrollment/journeys) from Enrollment Flows. Hosted enrollment must be turned on for your organization (see [Hosted Enrollment](/hosted-enrollment/overview)). 2. Leave the country as United States, then enter the phone number `+1 210-555-8890` and the date of birth `1997-03-11`. 3. At the code step, enter any six digits except `000000` (for example `123456`). 4. Confirm the details shown. The person is verified. To add the test business in the same flow: | Field | Value | | - | - | | Legal name | `Joe's Burger Shack LLC` | | EIN | `831234567` | | Address | `2345 Main Street, Houston, TX 77002` | The test business is an active Texas LLC. Its business check comes back verified with a matching tax ID and no watchlist hits, so the test person's link to it is `VERIFIED` without a manual review, and you can mint business credentials for the pair right away. See [Who Can Act for a Business](/docs/kya-who-can-act-for-a-business). Once enrolled, the test person appears under People and the test business under Businesses, only while Sandbox is selected. Use their `individual_ref` and `business_ref` in the next step. ### 2. Mint a credential Mint with your sandbox key, using the test person's `individual_ref` (and `business_ref` for a business credential). The request is the same as in production. See [Minting Credentials](/docs/minting-credentials). The credential is signed by the sandbox issuer. ### 3. Present it to your test site Present the credential to your test site the same way an agent would in production. First turn on sandbox credentials at your test site. See [Let your test site accept sandbox credentials](#let-your-test-site-accept-sandbox-credentials). ### 4. Check it The test site checks the credential the same way as in production. ## Let your test site accept sandbox credentials Sandbox credentials are test data, signed by the sandbox issuer. A production check refuses them with the code `sandbox_issuer`. To accept them in your own test site, trust the sandbox issuer as well as the production one, in test environments only, and fetch its keys and status lists from `https://sandbox.registry.baselayer.com`. See [Issuer Keys](/docs/credential-format-reference#issuer-keys). A business presentation must use one issuer for both of its credentials, so a sandbox credential can never be paired with a production one. ### Testing as a site A site that only accepts credentials needs a sandbox credential minted for its own audience. If you have a Baselayer sandbox application, run the [full sandbox test](#run-a-full-sandbox-test) yourself with your test site's domain as the `audience`. If you don't, ask the agent platform you work with to mint one for your test site's domain with its sandbox key. ## How sandbox and production stay separate Every KYA record belongs to the application it was created in: people, businesses, operator links, issued credentials and audit log entries. * People and businesses you verify with a sandbox key appear only in sandbox lists and lookups. Production lists never return them. * An `individual_ref` or `business_ref` from your sandbox application returns `404` when you look it up with a production key, and the other way around. It reads exactly like a reference that does not exist. One exception: once you mint a test credential for a production person or business, the credential list and audit log filters accept that production reference with a sandbox key. * Credentials you mint in sandbox show up only in your sandbox `GET /issuance/credentials` list, and can only be revoked with a sandbox key. * Your sandbox is yours. If another organization enrolls the same test person, theirs is a separate person with separate references, and neither organization can see the other's. ## Test a production identity without minting a production credential Use this when you want to test a production person or business at a test site. ```http theme={null} POST /issuance/credentials/test ``` See the [API reference](/api-reference/credentials/mint-a-test-credential-for-a-person-or-a-business-operator). This endpoint takes the same body as `POST /issuance/credentials` and mints the same credential, signed by the sandbox issuer. It works with a production key too, for a person or business verified in production, so you can test a real person's credential at a site's staging environment without minting a production credential. [`POST /issuance/credentials/test/preview`](/api-reference/credentials/preview-what-a-level-3-test-mint-would-disclose) previews it. * The test credential is recorded in your sandbox application, so it appears in your sandbox credential list. * Its `sub` is its own per-site ID, separate from the one a production mint gives the same person at the same site. * Sites with sandbox credentials turned on accept it. * It needs an `Idempotency-Key`, like a production mint, and your organization needs a sandbox application. ## Sandbox issuer reference Credentials minted with a sandbox key are signed by Baselayer's sandbox issuer, with its own signing key and its own revocation status list. | | Production | Sandbox | | - | - | - | | Issuer (`iss`) | `https://registry.baselayer.com` | `https://sandbox.registry.baselayer.com` | | Signing keys | `https://registry.baselayer.com/.well-known/jwt-vc-issuer` | `https://sandbox.registry.baselayer.com/.well-known/jwt-vc-issuer` | | Status lists | `https://registry.baselayer.com/statuslists/{list_id}` | `https://sandbox.registry.baselayer.com/statuslists/{list_id}` | Everything else in a sandbox credential is shaped exactly like production, including its `vct` (credential type) URL, which names the production registry for both. Revoking a sandbox credential only touches the sandbox status list. ## Troubleshooting | Problem | Fix | | - | - | | A reference you just created returns `404` | Check that you are using a key from the same application (sandbox or production) the person was verified in. | | The site refuses your credential with `sandbox_issuer` | You minted with a sandbox key. Mint with a production key, or have the site's test environment trust the sandbox issuer. | | Your sandbox has no people to mint for | Enroll the test person through your hosted enrollment flow with Sandbox selected. | # Who Can Act for a Business Source: https://docs.baselayer.com/docs/kya-who-can-act-for-a-business Make sure only people verified to act for a business can get credentials for it. An operator link records that one verified person may act for one verified business. You need a `VERIFIED` link before you can mint a business credential for that person and business. Every business credential tells the site two things: who the business is, and that the person behind the agent is verified to act for it. The operator link is where that second statement comes from. Without it, a verified business and a verified person are just two unrelated records. **1. Verify the person and business together** The result records an operator link for that pair. **2. Baselayer checks the link** If the business's tax ID matched and its registry check passed, the link is verified on its own. Otherwise it waits for your review. **3. Your organization decides when needed** Approve or reject a link that is `UNDER_REVIEW`. **4. Mint once the link is verified** Baselayer mints a business credential only when the link is `VERIFIED`. ## How the link works A link is created when one of your own verifications covers a person and a business together: * a direct verification with `"type": "BUSINESS"` on `POST /issuance/identities/verifications`, which carries both `individual` and `business`, or * a [hosted enrollment session](/hosted-enrollment/sessions) whose journey collects a business. The verification's result includes `individual_ref`, `business_ref` and `business_operator_link_status`. These are the only ways to create a link, and you can decide on a pair once one of your own verifications covers it. ### How automatic verification works A link becomes `VERIFIED` on its own when all three checks pass. Each check has a shortfall code that shows when it fails: * A tax ID (TIN) was provided for the business. Shortfall: `TIN_NOT_PROVIDED`. * The IRS matched that tax ID to the business name. Shortfall: `TIN_NOT_MATCHED`. * The business was verified against its state registry. Shortfall: `KYB_NOT_VERIFIED`. If any check falls short, the link is `UNDER_REVIEW` and its `shortfalls` list says which. > [!TIP] > > Send `tin` with the business so the link can verify automatically. A business without a tax ID can still be verified, but its link waits for your review. ### Officer matching Baselayer also compares the person's name to the officers on the registry record. The result is `officer_match`: `EXACT`, `PARTIAL`, `NONE` or `NOT_EVALUATED`. Use it as supporting evidence in your review, separate from the three checks above. Many states don't list officers, so it doesn't verify or hold a link on its own. ### Your links are yours Your status for a link never changes because of another organization's verification or decision, and yours never changes theirs. Sandbox and production links are also separate. ## Link statuses | Status | What it means | Can you mint a business credential? | | - | - | - | | `VERIFIED` | The person may act for the business. Either the three checks all passed, or your organization approved the link. | Yes | | `UNDER_REVIEW` | One or more checks fell short. The link waits for your decision. | No | | `REJECTED` | Your organization rejected the link. It stays rejected until you decide again, whatever later verifications find. | No | ## Review an operator link Find the links waiting on you: ```http theme={null} GET /issuance/identities/operator_links?status=UNDER_REVIEW ``` See the [API reference](/api-reference/identities/list-your-organizations-operator-links). Each row names both sides by your own references and names, and shows where the link stands: | Row field | What it holds | | - | - | | `individual_ref`, `individual_display_name` | The person. | | `business_ref`, `business_legal_name` | The business. | | `status`, `shortfalls` | The link's status and any checks that fell short. | | `decided_at`, `decided_by`, `decision_reason` | Who decided it and when. | | `review_flagged_at` | When a later verification flagged the link for review. The link keeps its status. | See every filter and sort option in the [API Reference](/api-reference/identities/list-your-organizations-operator-links). Then look up one link with its evidence: ```http theme={null} GET /issuance/identities/businesses/{business_ref}/operator_links/{individual_ref} ``` See the [API reference](/api-reference/identities/get-one-operator-link-with-its-evidence). It returns the link with its `evidence`: the check results a business credential minted for this pair right now would rest on. | Evidence field | Meaning | | - | - | | `tin_provided` | Whether a tax ID was collected. | | `tin_matched` | Whether the IRS matched it. Null when no answer came back. | | `kyb_verified` | Whether the registry verified the business. Null when no answer came back. | | `officer_match` | How the person's name compared to the registry's officers. | | `matched_officer_name`, `matched_officer_title` | The officer who matched, if any. | | `evaluated_at` | When the checks finished. | You can also see links from either side: * A person's links: the `businesses` list on `GET /issuance/identities/individuals/{individual_ref}`. Rejected links are not listed there. * A business's people: `GET /issuance/identities/businesses/{business_ref}`. ## Approve or reject ```http theme={null} POST /issuance/identities/businesses/{business_ref}/operator_links/{individual_ref}/decide ``` See the [API reference](/api-reference/identities/verify-or-reject-that-an-individual-operates-a-business). ```json theme={null} { "decision": "VERIFIED", "reason": "Confirmed by phone with the business owner." } ``` | Field | Notes | | - | - | | `decision` | `VERIFIED` to approve the link, `REJECTED` to refuse it. Required. | | `reason` | Optional. Up to 2000 characters, kept with the decision for your own records. | The response is the link, as the list shows it. | Decision | New business credentials for the pair | Credentials already minted | | - | - | - | | `VERIFIED` | Allowed. This approves the relationship only. | Not affected. | | `REJECTED` | Blocked until you decide again. | Stay valid until they expire or you revoke them, for example with the reason `operator_link_revoked`. | > [!NOTE] > > **Approval covers the relationship only** > > The credential still states, and is dated by, what your own verifications found. If that is more than a year old, the mint is refused with `6301`. > > * Re-verify the person if their verification lapsed. > * Send a new `type: BUSINESS` verification for the pair if the business evidence lapsed. > [!NOTE] > > A new decision replaces the earlier one, with its own decider, time and reason. Sending the link's current status again records a new decision without changing the status. A decision applies to your organization only. ## What a verified link allows Baselayer signs a business credential only when the link is `VERIFIED`. For any other status, a mint with `type: BUSINESS` (and its preview) is refused with `409` and the error code `6300`. See [Troubleshooting](#troubleshooting). ```http theme={null} POST /issuance/credentials ``` The site that receives the credential checks the same thing. A business credential whose person link is not verified is refused there too. A business credential records how its link was verified, in `actor.authorization.basis`: `evidence` when the checks passed, or `reviewer` when your organization decided it. Once a reviewer has decided a link, it stays `reviewer`. ## Troubleshooting | Problem | Fix | | - | - | | `409` with code `6300` (`business_credential_operator_link_not_verified`) when minting a business credential | Look up the link. If it is `UNDER_REVIEW`, fix the `shortfalls` or approve it. If it is `REJECTED`, only a new `VERIFIED` decision changes it. | | Link is `UNDER_REVIEW` with `TIN_NOT_PROVIDED` | The verification had no tax ID for the business. Send `tin` in the business details. | | `404` on lookup or decide | One of the references is not yours, belongs to the other environment, or your verifications never covered this pair. All three read the same. | | New business credentials are refused after a rejection | Expected. Rejecting a link blocks new mints for the pair. Credentials already minted stay valid until you revoke them. | # Business Lending Playbook Source: https://docs.baselayer.com/docs/lending How business lenders use Baselayer to verify applicants, check liens and lawsuits, and monitor borrowers after funding. Modern SMB lending requires a verification stack that addresses fraud, identity, and credit risk in a single coherent workflow. Most lenders start the waterfall with fraud and digital intelligence checks: products like Sentilink, or Socure handle synthetic identity detection, device signals, and consumer KYC on the applicant side. Baselayer handles the rest: it covers the business entity itself, handling business verification, lien and litigation screening, and credit assessment signals that consumer fraud tools do not reach. After Baselayer, the workflow continues into financial underwriting:personal credit reports on the owner or guarantor, cash flow analysis, and bank account verification. Together, these layers form a complete picture of the business and the person behind it. **Key challenges for lenders:** * **Credit risk assessment**: Evaluating ability and willingness to repay * **Legal exposure**: Identifying existing liens, litigation, and bankruptcy risk * **Fraud prevention**: Detecting synthetic businesses and serial defaulters * **Regulatory compliance**: Meeting CDD requirements and AML obligations * **Portfolio management**: Monitoring borrowers for signs of financial distress This guide provides a standard verification workflow optimized for business lending underwriting teams, from initial application through ongoing portfolio monitoring. *** ### A Note on Sole Proprietors Before implementing this workflow, determine whether your policy approves sole proprietors. Sole proprietors - individuals operating without a registered legal entity - are common applicants in small business lending but require a fundamentally different verification approach, since Secretary of State registration data does not exist for them. If your product accepts sole proprietors, review the [Sole Proprietorship Verification](/docs/sole-prop-verification). Our recommendation is to set up a separate waterfall and decisioning criteria specifically for these entities. The workflow below applies to registered businesses (LLCs, corporations, and partnerships). *** ## Verification Workflow Overview A standard business lending verification flow includes six steps: 1. **Fraud & Identity Screening**: pre-Baselayer fraud signals on the applicant (Partner/s) 2. **Industry & Web Presence Screening**: industry risk and website legitimacy check (Baselayer) 3. **Business Verification**: entity match, TIN validation, SoS registration, velocity, and consortium (Baselayer) 4. **Credit Assessment**: lien and litigation screening to assess financial health (Baselayer) 5. **Personal Credit Report**: credit history and FICO score on the owner or guarantor (Partner/s) 6. **Financial Analysis**: cash flow underwriting and bank account verification (Partner/s) **Add-on:** Portfolio Monitoring - ongoing monitoring of funded borrowers (Baselayer) *** ## Step 1: Fraud & Identity Screening **Purpose**: Screen the applicant for fraud signals before committing to a full business verification. ### Context Fraud and identity screening typically runs on the individual applicant - the business owner, authorized signer or guarantor - before any business-level verification begins. This step catches synthetic identities, stolen credentials, and known fraud patterns early, before incurring the cost of a full business search. Common checks at this stage include identity document verification, device fingerprinting, behavioral signals, and shared fraud databases. Baselayer works with hundreds of partners and can recommend ideal providers for every product and use case. *** ## Step 2: Industry & Web Presence Screening **Purpose**: Confirm the business operates in an eligible industry and that its web presence is consistent with a legitimate operating business. ### Configuration Questions * Which NAICS codes or industry groups does your credit policy exclude? * Are there specific high-risk keywords that trigger a decline regardless of NAICS classification? * Will you review the applicant's website to check for domain consistency? ### Baselayer Recommendation * Decline if a prohibited keyword is detected in the industry classification * Decline if a prohibited NAICS code is returned with confidence ≥ 0.75; manual review if confidence is lower * Flag for review if the submitted domain does not match the domain found by Baselayer, and the discovered domain is email-deliverable (a real, operational domain exists for this business, so submitting a different one is suspicious) * Flag for review if the submitted domain was registered less than 90 days ago > **Tip:** If you do not collect the applicant's website, pass us the domain extracted from their email address as the website input. This enables all domain-level checks to run on the most available signal. ### Baselayer Products Used * **[Web Presence Request](/docs/online-presence-basics)**: industry prediction, website analysis, domain signals ### Verification Logic ```javascript Text theme={null} // Extract web presence signals industry = response.industry_prediction website_analysis = response.website_analysis // discovered domain analysis input_website_analysis = response.input_website_analysis // submitted domain analysis // Check prohibited industry keywords IF industry.keywords CONTAINS ANY prohibited_keyword: flag = "RED" reason = "Prohibited industry keyword detected" // Check prohibited NAICS codes with confidence threshold IF industry.code IN prohibited_naics_list: IF industry.accuracy >= 0.75: flag = "RED" reason = "Prohibited industry" ELSE: flag = "YELLOW" reason = "Potential prohibited industry - needs review" // Check if submitted domain was recently registered (under 90 days) IF input_website_analysis.whois_record.domain_created_at > today - 90 days: flag = "YELLOW" reason = "Submitted domain registered less than 90 days ago" // Check for suspicious domain mismatch: // applicant submitted a domain that differs from what Baselayer found, // but the discovered domain is real and can receive email IF response.business_website_match == FALSE: IF input_website_analysis.url != NULL: IF website_analysis.email_deliverable == TRUE: flag = "YELLOW" reason = "Submitted domain does not match discovered domain - business has a real, operational web presence" ``` > **Note**: Prohibited NAICS code and keyword lists are defined by your credit policy. Contact your Baselayer representative for access to industry reference lists used by other lenders. ### Context Industry screening runs before business verification to catch ineligible businesses early and cheaply. A match on a prohibited NAICS code or keyword is typically a terminal check - there is no value in proceeding to verification for a business in a category your program does not serve. Domain signals are strong fraud indicators in lending. A submitted website that does not match the discovered website suggests the applicant may have fabricated their online presence. A domain registered under 90 days before application is a common pattern in synthetic business fraud, where fraudsters quickly set up websites to pass basic screening. *** ## Step 3: Business Verification **Purpose**: Confirm the business exists, is registered and in good standing, matches the submitted information, and shows no fraud or velocity signals. ### Configuration Questions * What is your minimum time-in-business requirement? (Most common is 12+ months) * Will you always collect and submit EIN for TIN validation? (strongly recommended) * Do you need to verify the owner's SSN of the officers or guarantors? * Are there entity types your program does not support (e.g., non-profits, trusts)? * How should DE/NJ registrations be handled? * Are you a Baselayer Fraud Consortium member? Do you want to use the Identity Network data? ### Baselayer Recommendation * Business must be found, no match is an automatic decline * `tin_matched` must be `TRUE` - TIN mismatch is an automatic decline * Name and address: `business_name_match = SIMILAR` + `business_address_match = EXACT`, OR `business_name_match = EXACT` + `business_address_match ≠ NO_MATCH` * At least one active SoS registration required * `months_in_business` must be 12+ months (calculated from `incorporation_date`) * **DE/NJ handling**: approve if any other active registration exists * Identity Network: flag for manual review if more than 2 application activities in the last 30 days * Fraud Consortium: decline if the business appears in the Baselayer Exclusion List ### Baselayer Products Used * **[Business Search](/docs/business-search-basics)**: entity match, TIN validation, SoS registration data, watchlist screening, Identity Network * **Application History** (`GET /businesses/{id}/applications`): velocity check * **Exclusions** (`GET /businesses/{id}/exclusions`): [fraud consortium](/docs/the-baselayer-fraud-consortium) screening ### Verification Logic ```javascript Text theme={null} // Extract core match signals from /searches response business_id = response.business.id name_match = response.business_name_match address_match = response.business_address_match tin_matched = response.tin_matched registrations = response.business.registrations // Business must be found IF business_id == NULL: flag = "RED" reason = "No business match found" // Stop — do not proceed to remaining checks // TIN must validate with IRS IF tin_matched != TRUE: flag = "RED" reason = "TIN does not match IRS records" // Name and address match combination IF name_match == "SIMILAR" AND address_match == "EXACT": flag = "PASS" ELSE IF name_match == "EXACT" AND address_match != "NO_MATCH": flag = "PASS" ELSE: flag = "RED" reason = "Insufficient name and address match" // Active SoS registration required active_registrations = [r for r in registrations where r.status == "active"] IF COUNT(active_registrations) == 0: flag = "RED" reason = "No active Secretary of State registration" // Time-in-business: domestic registration must be 12+ months old IF response.business.months_in_business < 12 months: flag = "YELLOW" reason = "Business registered less than 12 months ago" // DE/NJ domestic registration handling other_active = [r for r in active_registrations where r.state NOT IN ["DE", "NJ"]] IF response.business.incorporation_state IN ["DE", "NJ"] AND COUNT(other_active) == 0: flag = "YELLOW" reason = "DE/NJ incorporation with no other active registration" // Business structure filter IF response.business.structure IN excluded_entity_types: flag = "RED" reason = "Business structure not eligible" // Application velocity applications = GET /businesses/{business_id}/applications recent_applications = [a for a in applications where a.created_at >= today - 30 days] IF COUNT(recent_applications) > 2: flag = "YELLOW" reason = "More than 2 applications in the last 30 days" // Fraud consortium and exclusions exclusions = GET /businesses/{business_id}/exclusions IF COUNT(exclusions) > 0: flag = "RED" reason = "Business in Baselayer Exclusion List" ``` > **Note**: The Fraud Consortium and Identity Network are available to Baselayer member entities who contribute to the shared database. Contact your Baselayer representative to join and unlock these checks. ### Context Business verification is the core of the Baselayer workflow. It confirms the entity is real, matches IRS records, has an active legal registration, and does not appear in fraud databases. TIN validation is a hard requirement for lending. An EIN that does not match the business name with the IRS is a strong fraud signal: it may indicate a fabricated entity, a recycled EIN, or a name discrepancy that will create problems at underwriting. TIN validation is included in the standard business search when an EIN is submitted. Application velocity is particularly relevant in lending because sophisticated fraud rings often test multiple lenders with the same business identity in a short window. More than two applications in 30 days is a signal worth surfacing for manual review, even if the individual application looks clean. *** ## Step 4: Credit Assessment **Purpose**: Evaluate the business's lien and litigation profile to identify financial distress, existing creditor obligations, and legal exposure. Credit assessment criteria will vary widely depending on the product and customer base of the lender. ### Configuration Questions * What is the maximum number of active UCC liens ahead your program accepts? (Most common is 1, and being in second-priority position) * What is your lookback period for tax liens? (Baselayer recommends 5 years) * What is your lookback period for bankruptcies? (Baselayer recommends 5 years) * Are there specific litigation case types you always flag (e.g., evictions, class actions, regulatory actions)? * Do you want to run lien and litigation searches on the business only, or also on officers and guarantors? ### Baselayer Recommendation * Maximum 1 active UCC lien: being third or further in repayment priority significantly reduces recovery likelihood in default * Any tax lien filed in the last 5 years → manual review required * Any bankruptcy filed in the last 5 years → manual review required * Any high-risk litigation case with exact name match → manual review required * Start with the business only; extend to officers and guarantors when ready - see [Lien Search for Individuals](/docs/lien-search-for-individuals) and [Litigation & Bankruptcy Search for Individuals](/docs/litigation-bankruptcy-search-for-individuals) ### Baselayer Products Used * **[Lien Search](/docs/lien-search-basics)**: UCC filings, tax liens, judgment liens * **[Docket Search](/docs/litigation-bankruptcy-search-basics)**: litigation and bankruptcy proceedings ### Verification Logic ```javascript Text theme={null} // --- LIEN ASSESSMENT --- lien_response = POST /lien_searches with business_id // wait for LiensSearch.completed, then GET /lien_searches/{id} active_ucc_count = 0 FOR EACH filing IN lien_response.filings: // Tax liens: flag any filed in the last 5 years, regardless of current status IF filing.filing_type.startswith("tax."): IF filing.filing_date >= today - 5 years: flag = "YELLOW" reason = "Tax lien filed in last 5 years - manual review required" // For UCC liens, only count currently effective filings IF filing.status != "Active": CONTINUE IF filing.lapse_date != NULL AND filing.lapse_date < today: CONTINUE // Count active UCC filings IF filing.filing_type.startswith("consensual."): active_ucc_count += 1 // Flag if more than 1 active UCC IF active_ucc_count > 1: flag = "YELLOW" reason = "More than 1 active UCC lien - review repayment priority" // --- LITIGATION & BANKRUPTCY ASSESSMENT --- docket_response = POST /docket_searches with business_id // wait for DocketSearch.completed, then GET /docket_searches/{id} FOR EACH docket IN docket_response.dockets: IF docket.match_level != "EXACT": CONTINUE // Bankruptcy: flag any filed in the last 5 years IF docket.is_bankruptcy == TRUE: IF docket.date_filed >= today - 5 years: flag = "YELLOW" reason = "Bankruptcy filed in last 5 years - manual review required" // High-risk litigation IF docket.risk_level == "high": flag = "YELLOW" reason = "High-risk litigation case - manual review required" ``` > **Note**: Thresholds above (1 active UCC, 5-year lookbacks) reflect Baselayer's standard starting point for small business lending. Adjust to match your credit policy and risk appetite. > > **Note**: This logic runs on the business only. To extend coverage to officers or guarantors, see [Lien Search for Individuals](/docs/lien-search-for-individuals) and [Litigation & Bankruptcy Search for Individuals](/docs/litigation-bankruptcy-search-for-individuals). ### Context Context is critical at this stage. A single UCC lien from a bank is normal for a small business with a term loan. Three active UCCs from different lenders, combined with a tax lien filed last year, is a materially different picture. The 1-active-UCC recommendation reflects repayment priority. If a borrower defaults, secured creditors are paid in order of filing. Being third or fourth in line significantly reduces recovery likelihood. Lenders should understand their collateral position before extending credit. Tax liens and bankruptcies are the strongest distress signals in this dataset. An IRS lien means the business has failed to pay federal taxes, a significant indicator of cash flow problems. A bankruptcy in the last five years means the business has already restructured or liquidated debt under court supervision. Both warrant at minimum a manual review regardless of the apparent strength of the rest of the application. > **Note**: For advanced lien interpretation including collateral scope, amendment history, and senior lender identification, see [Lien Search: Best Practices](/docs/lien-searching-best-practices). For litigation interpretation, see [Litigation & Bankruptcy Search: Best Practices](/docs/litigation-bankruptcy-search-best-practices). *** ## Step 5: Personal Credit Report **Purpose**: Assess the personal credit history and financial standing of the business owner or guarantor. ### Configuration Questions * Will you pull a personal credit report on all applicants, or only on those providing a personal guarantee? * Which credit bureaus do you use (Experian, Equifax, TransUnion)? * What is your minimum FICO score threshold? * Do you use a soft pull for pre-qualification and a hard pull at funding? ### Context Personal credit remains a strong predictor of repayment behavior in small business lending, particularly for businesses with limited credit history. For businesses under 3 years old, or where the owner's personal assets back the loan, the guarantor's credit profile is often as important as the business's. A personal credit report surfaces derogatory marks, existing personal debt obligations, and credit utilization patterns that do not appear in business records. Combined with the business-level signals from Steps 2–4, it provides a complete view of the financial risk associated with both the entity and the individual behind it. Baselayer works with hundreds of partners and can recommend ideal providers for every product and use case. *** ## Step 6: Financial Analysis **Purpose**: Verify the business's financial health and cash flow capacity to service the loan. ### Configuration Questions * Will you require bank account verification, or rely on stated financials? * Which bank data providers do you use (Plaid, Finicity, MX, or similar)? * What minimum monthly revenue or cash flow do you require? * Do you use cash flow underwriting as the primary credit signal, or as a secondary check? * Will you require tax returns or bank statements for larger ticket sizes? ### Context Financial analysis is typically the final gate before a credit decision. For small business lending, cash flow underwriting - analyzing actual bank transaction data rather than stated financials - has become the standard approach, particularly for short-duration or revenue-based products. Bank account verification via Plaid, Finicity, or similar providers gives lenders direct access to transaction history, average daily balances, and revenue consistency. For larger ticket sizes or longer loan durations, tax returns and financial statements remain important alongside bank data. The combination of verified bank cash flow and tax-reported income provides a more complete picture of the business's financial health than either source alone. Baselayer works with hundreds of partners and can recommend ideal providers for every product and use case. *** ## Add-On: Portfolio Monitoring **Purpose**: Continuously monitor funded borrowers for changes that signal increased risk. ### When to Use After funding, add each borrower to portfolio monitoring to track: * New liens or tax liens filed * New litigation or bankruptcy proceedings * SoS registration status changes (delinquent, dissolved, revoked) * Officer changes * New activity in the Baselayer Identity Network or Fraud Consortium ### Baselayer Products Used * **[Portfolio Monitoring](/docs/portfolio-monitoring)**: `POST /portfolio/items` ### Verification Logic ```javascript Text theme={null} // Add business to portfolio monitoring after funding IF application.status == "FUNDED": portfolio_item = POST /portfolio/items { "business_search_id": business_search_id } ``` ### Recommended Configuration * **Monitoring frequency**: monthly for standard portfolios; weekly for higher-risk borrowers * **Monitor for**: lien changes, bankruptcy events, SoS standing, identity network activity ### Context One-time KYB at origination captures the business profile at a single point in time. Portfolio monitoring extends that coverage across the life of the loan, surfacing early warning signs before they become defaults. New tax liens, SoS standing changes, and bankruptcy filings are among the strongest predictors of repayment problems - and they often appear weeks or months before a payment is missed. For comprehensive guidance on monitoring configuration, see [Portfolio Monitoring: Basics](/docs/portfolio-monitoring). *** ## Implementation Checklist **Setup** * [ ] Define a sole prop-specific criteria if required * [ ] Confirm digital intelligence and KYC providers for Step 1 * [ ] Define prohibited NAICS codes and keyword list * [ ] Confirm minimum time-in-business threshold * [ ] Confirm whether SSN verification is required for owners or guarantors * [ ] Define excluded entity types (e.g., non-profits, foreign entities) * [ ] Confirm DE/NJ handling policy * [ ] Enroll in Baselayer Fraud Consortium (contact your rep) * [ ] Define lien thresholds: max active UCCs and tax lien lookback period * [ ] Define bankruptcy lookback period * [ ] Confirm whether officer/guarantor lien and litigation searches are in scope * [ ] Confirm bank data and credit report providers for Steps 5–6 **Step 2: Industry & Web Presence Screening** * [ ] Configure `POST /web_presence_requests` * [ ] Load prohibited NAICS codes and keyword lists * [ ] Enable submitted website vs. found website comparison **Step 3: Business Verification** * [ ] Configure `POST /searches` with TIN submission * [ ] Implement name/address match logic * [ ] Implement TIN validation check * [ ] Implement SoS registration age and status checks * [ ] Implement DE/NJ registration handling * [ ] Implement application velocity check via `GET /businesses/{id}/applications` * [ ] Implement exclusions check via `GET /businesses/{id}/exclusions` **Step 4: Credit Assessment** * [ ] Configure `POST /lien_searches` * [ ] Implement lien effectiveness check (status + lapse date) * [ ] Implement tax lien classification and lookback logic * [ ] Implement active UCC count threshold * [ ] Configure `POST /docket_searches` * [ ] Implement bankruptcy lookback logic * [ ] Implement high-risk litigation flagging **Steps 5–6: Personal Credit & Financial Analysis** * [ ] Integrate credit bureau provider and configure FICO threshold * [ ] Integrate bank data provider (Plaid, Finicity, or similar) * [ ] Define minimum cash flow or revenue thresholds **Portfolio Monitoring (Add-On)** * [ ] Configure `POST /portfolio/items` on funding event * [ ] Define monitoring frequency and alert thresholds For questions about implementation or to customize this workflow for your product, contact your Baselayer account representative. # Lien Filing Source: https://docs.baselayer.com/docs/lien-filing-1 File liens through the API: build a draft over time, submit it, and amend it later with a UCC-3. ### Introduction This guide explains how to use the API endpoints for filing liens. A lien is a legal claim or right against a property, typically used as security for a debt or obligation. Filing a lien allows a creditor to secure their interest in a debtor's property. The lien filing process in this API is designed to be flexible and user-friendly, mimicking the experience of working on a draft document. Users can gradually fill out the lien filing form over time, saving their progress as they go, without the need to submit it immediately. This approach allows for careful review and collaboration before final submission. ### Endpoints Overview 1. Create a Lien Filing Submission 2. Get Lien Filing Submissions 3. Get a Specific Lien Filing Submission 4. Update a Lien Filing Submission 5. Submit a Lien Filing 6. Cancel a Lien Filing Submission 7. Delete a Lien Filing Submission 8. Manage Attachments ### The Draft-Like Nature of Lien Filings One of the key features of this API is its support for a draft-like workflow: 1. **Minimal Initial Creation**: A lien filing can be created with virtually no payload, requiring only the `business_id` in the URL parameters. This allows users to initiate a filing and fill in details later. 2. **Gradual Population**: Users can add or update information in multiple steps, similar to how one might work on a draft document. This is particularly useful for complex filings that may require input from multiple parties or departments. 3. **Save and Resume**: The API allows users to save their progress at any point and resume work on the filing later. This is ideal for situations where all information may not be immediately available. 4. **Review and Revision**: Before submission, users can review the entire filing, make revisions as needed, and ensure all details are correct. 5. **Final Submission**: Only when the user is satisfied with all the details do they submit the filing for processing. ### Step-by-Step Guide #### 1. Create a Lien Filing Submission ##### Example: Creating a Minimal Lien Filing To start a lien filing with minimal information: ``` POST /businesses/{business_id}/lien_submissions ``` You can send an empty JSON object as the payload: ```json theme={null} {} ``` This will create a draft lien filing associated with the specified business. The response will include a `filing_id` that you can use for subsequent updates. #### 1a. Create a Lien Filing Submission for an Individual To start a lien filing for an individual, you must first create a person to associate the lien filing with ##### Example: Creating a Minimal Lien Filing for an Individual ``` POST /people ``` Example payload (see full documentation of this route [here](/api-reference/people/create-person) ): ```json theme={null} { "first_name": "John", "last_name": "Doe", "ssn": "123456789" } ``` The [response](/api-reference/people/create-person) from this route contains an `id` for the created person. Use this on the create individual lien filing endpoint ``` POST /people/{person_id}/lien_submissions ``` Payloads are identical between lien filings for individuals and businesses. To create a minimal lien filing use an empty JSON object ```json theme={null} {} ``` ##### Example: Creating a Fully Filled out Lien Filing Same as filing with minimal payload, use the create lien filing endpoint: ``` POST /businesses/{business_id}/lien_submissions ``` Example payload: ```json theme={null} { "filing_type": "UCC1", "state": "AL", "debtors": [ { "mailing_address": "7812 2nd NW Ave", "city": "Bradenton", "state": "FL", "postal_code": "34210", "capacity": "NONE_OF_THE_ABOVE", "organization_type": "C_CORPORATION", "organization_name": "J.B, INC.", "type": "ORGANIZATION" } ], "secured_parties": [ { "mailing_address": "205 Franklin Street", "city": "Brooklyn", "state": "NY", "postal_code": "11222", "organization_type": "SOLE_PROPRIETORSHIP", "organization_name": "At at Joe's", "type": "ORGANIZATION" } ], "reference_data": "123456", "submission_filing_name": "My new lien filing", "collateral_statements": { "collateral_statement_designation": "NONE", "text": "All inventory, equipment, accounts, and proceeds now owned or hereafter acquired by the debtor, including but not limited to the property located at 123 Main Street, Anytown, CA 90210.", "type": "TEXT" }, "search_to_reflect": true } ``` This will create a draft lien filing submission. #### 2. Get Lien Filing Submissions To retrieve a list of lien filing submissions: ``` GET /lien_submissions ``` You can use query parameters to filter and paginate the results: * `limit`: Maximum number of submissions to return (default: 10) * `offset`: Number of submissions to skip (default: 0) * `q`: Search by filing number, filing name, or debtor name * `status`: Filter by submission status #### 3. Get a Specific Lien Filing Submission To retrieve details of a specific lien filing submission: ``` GET /lien_submissions/{filing_id} ``` #### 4. Update a Lien Filing Submission The update endpoint allows for flexible and gradual updates to your lien filing submission. It's important to understand how the update process works to effectively manage your lien filing information. ##### Endpoint ``` PATCH /lien_submissions/{filing_id} ``` ##### Update Behavior When updating a lien filing submission, keep the following behaviors in mind: 1. **Partial Updates**: You can send a partial payload containing only the fields you want to update. Fields not included in the payload will retain their current values. 2. **Overwriting Values**: When you include a field in your update payload, it will overwrite the current value for that field entirely. 3. **Array Fields**: For array fields (like `debtors` or `secured_parties`), sending an array will replace the entire existing array. To add or remove individual items, you need to send the complete updated array. 4. **Nested Objects**: For nested objects (like `collateral_statements`), sending the object will replace the entire existing object. 5. **Null Values**: If you explicitly set a field to `null`, it will clear the value of that field. ##### Examples of Update Behavior Let's walk through some examples to illustrate these behaviors: ###### Initial Lien Filing State: ```json theme={null} { "submission_filing_name": "2023 Equipment Lien", "reference_data": "New manufacturing equipment", "debtors": [ { "mailing_address": "7812 2nd NW Ave", "city": "Bradenton", "state": "FL", "postal_code": "34210", "capacity": "NONE_OF_THE_ABOVE", "organization_type": "C_CORPORATION", "organization_name": "J.B, INC.", "type": "ORGANIZATION" } ], "secured_parties": [], "collateral_statements": { "type": "TEXT", "text": "All manufacturing equipment purchased from Acme Manufacturing on 1/1/2023", "collateral_statement_designation": "NONE" } } ``` ###### Example 1: Updating a Single Field To update just the `submission_filing_name`: ```json theme={null} { "filing_type": "UCC1", "submission_filing_name": "2023 Updated Equipment Lien" } ``` This will change only the `submission_filing_name` while leaving all other fields unchanged. ###### Example 2: Updating an Array Field To add a secured party: ```json theme={null} { "filing_type": "UCC1", "secured_parties": [ { "type": "ORGANIZATION", "organization_name": "Acme Finance Inc", "organization_type": "C_CORPORATION", "mailing_address": "456 Business Ave", "city": "Metropolis", "state": "NY", "postal_code": "10001" } ] } ``` This will replace the empty `secured_parties` array with the new array containing one secured party. ###### Example 3: Updating a Nested Object To update the collateral statement: ```json theme={null} { "filing_type": "UCC1", "collateral_statements": { "type": "TEXT", "text": "All manufacturing equipment purchased from Acme Manufacturing on 1/1/2023, including CNC Machine (Serial: CN12345)", "collateral_statement_designation": "NONE" } } ``` This will replace the entire `collateral_statements` object with the new one. ###### Example 4: Clearing a Field To clear the `reference_data`: ```json theme={null} { "filing_type": "UCC1", "reference_data": null } ``` This will set the `reference_data` field to null, effectively clearing its value. ##### Best Practices for Updating 1. **Fetch Before Update**: If you're unsure about the current state of the lien filing, fetch it first using the GET endpoint before making updates. 2. **Incremental Updates**: Make small, focused updates rather than trying to update everything at once. This reduces the risk of unintended changes. 3. **Review Changes**: After each update, fetch the lien filing again to confirm that the changes were applied as expected. 4. **Be Cautious with Arrays**: When updating array fields, be sure to include all existing items you want to keep, not just the new ones you're adding. 5. **Use Null Carefully**: Only set fields to null when you explicitly want to clear their values. By understanding these update behaviors, you can effectively manage your lien filing submissions, gradually building and refining them until they're ready for final submission. #### 5. Submit a Lien Filing When you're ready to submit your lien filing, you'll use the submit endpoint. This process involves a series of validations to ensure that all required information is present and correctly formatted. ##### Endpoint ``` POST /lien_submissions/{filing_id}/submit ``` This will change the status of the submission to `Requested` and initiate the filing process. ##### Validation Process When you call the submit endpoint, the system performs a series of checks on your lien filing submission. Here's an overview of the validation process: 1. **Submission Status Check**: * The system first checks if the submission is in a valid status for submission (Draft or NeedsAttention). * If the submission is already in a submitted or processed state, the submission will be rejected. 2. **Jurisdiction Validation**: * The system verifies that the filing jurisdiction (state) is supported. * If the jurisdiction is not supported, the submission will be rejected. 3. **Required Fields Check**: * The system ensures all required fields are present. These include: * Email contact * Filing name * Jurisdiction state * Collateral * Jurisdiction county for Louisiana, Georgia and Oklahoma * Principal indebted amount for Tennessee * Documentary tax stamp information for Florida * Authorizing party for UCC-3 amendments * If any required field is missing, the submission will be rejected. 4. **Party Information Validation**: * The system checks that there is at least one secured party. * For each party (debtor and secured), it validates: * For individuals: first name and last name are present * For organizations: organization name is present * Address information is complete (street, city, state, postal code) * If any party information is incomplete, the submission will be rejected. 5. **Collateral Statement Check**: * If the collateral statement type is set to "Attachments", the system verifies that at least one attachment is present. * If the type is "Text", it checks that the text field is not empty. * If the collateral statement is missing or incomplete, the submission will be rejected. ##### Example Validation Errors Here are some example error responses you might receive if validation fails: 1. Missing party information: ```json theme={null} { "code": 454, "message": "Cannot submit a lien filing due to missing lien party street address. The lien party street address is required.", "uri": null, "metadata": {}, "request_id": "..." } ``` 2. Unsupported jurisdiction: ```json theme={null} { "code": 438, "message": "Cannot submit a lien filing due to unsupported jurisdiction state.", "uri": null, "metadata": { "reason": "Lien filing is currently not supported in AK.", "unsupported_jurisdiction_states": ["AK", "HI"] }, "request_id": "..." } ``` 3. Missing required field: ```json theme={null} { "code": 440, "message": "Cannot submit a lien filing due to missing email contact.", "uri": null, "metadata": {}, "request_id": "..." } ``` 4. Missing collateral statement: ```json theme={null} { "code": 459, "message": "Cannot submit a lien filing due to missing attachments. When the collateral statement type is 'Attachments', the lien filing requires at least one attachment.", "uri": null, "metadata": {}, "request_id": "..." } ``` ##### Understanding Validation Error Responses When a validation error occurs, the API will return a JSON response with the following structure: * `code`: An integer representing the specific error code. Each validation problem has its own code (for example 438, 440 or 454). * `message`: A message describing why the lien filing couldn't be submitted. * `uri`: This field is typically null for validation errors. * `metadata`: An object containing additional details about the error: * `reason`: A specific description of what caused the validation to fail. * Additional fields may be present depending on the nature of the error (e.g., `unsupported_jurisdiction_states`). ##### Best Practices for Handling Validation Errors 1. **Check the `message`** : Always look at the `message`, and the `reason` field in the `metadata` object when present, for specific information about what needs to be corrected. 2. **Systematic Error Handling**: Develop your client application to handle these structured error responses systematically. This can help automate the process of identifying and correcting errors. 3. **Logging**: Consider logging these error responses for debugging and audit purposes. 4. **User Feedback**: If you're developing a user interface, translate these error messages into user-friendly notifications to guide users in correcting their submissions. 5. **Incremental Corrections**: Address one error at a time. After correcting an error, attempt to submit again, as there may be multiple validation issues that need to be resolved sequentially. ##### Best Practices for Submission 1. **Pre-submission Review**: Before submitting, use the GET endpoint to review all details of your lien filing submission. 2. **Incremental Updates**: If you find any missing or incorrect information, use the UPDATE endpoint to correct it before attempting to submit again. 3. **Handle Validation Errors**: If you receive a validation error, carefully read the error message, make the necessary corrections, and then try to submit again. 4. **Attachment Management**: If using attachments for collateral statements, ensure all necessary documents are uploaded before submission. 5. **Status Tracking**: After a successful submission, continue to monitor the status of your lien filing using the GET endpoint, as further processing may be required. By understanding this validation process, you can ensure that your lien filing submissions are complete and accurate, reducing the likelihood of delays or rejections in the filing process. #### 6. Cancel a Lien Filing Submission To cancel a lien filing submission that is in "Needs Attention" status: ``` POST /lien_submissions/{filing_id}/cancel ``` #### 7. Delete a Lien Filing Submission To delete a draft lien filing submission: ``` DELETE /lien_submissions/{filing_id} ``` #### 8. Manage Attachments ##### Upload Attachments To upload attachments for a lien filing submission: ``` POST /lien_submissions/{filing_id}/attachments ``` Use multipart/form-data to upload PDF files. ##### Get Attachments To retrieve a list of attachments for a lien filing submission: ``` GET /lien_submissions/{filing_id}/attachments ``` ##### Delete an Attachment To delete a specific attachment: ``` DELETE /lien_submissions/{filing_id}/attachments/{attachment_id} ``` ##### Download an Attachment To download a specific attachment: ``` GET /lien_submissions/{filing_id}/attachments/{attachment_id} ``` ### Secured Party Masking Secured party masking is a feature that allows you to protect the identity of a secured party in a lien filing. This can be useful in situations where privacy is a concern or when the secured party's identity should not be publicly disclosed. #### How Secured Party Masking Works When you create or update a secured party in a lien filing, you can set the `masked` field to `true`. This instructs the system to hide the secured party's information in public records and certain API responses. #### Using Secured Party Masking To use secured party masking, include the `masked` field when adding or updating a secured party: ```json theme={null} { "filing_type": "UCC1", "secured_parties": [ { "type": "ORGANIZATION", "organization_name": "Confidential Lender LLC", "organization_type": "LLC", "mailing_address": "789 Private Lane", "city": "Secretville", "state": "CA", "postal_code": "90210", "masked": true } ] } ``` #### Effects of Masking When a secured party is masked: 1. The secured party's information will not be visible in public records or searches. 2. The API will return limited information about the masked secured party in most responses. 3. The full information of the masked secured party will only be available to authorized users through specific API endpoints. #### Unmasking a Secured Party If you need to unmask a previously masked secured party, you can update the lien filing and set `masked` to `false`. Masking can only be changed while the filing is a Draft; after that, changes are refused with a 409. ```json theme={null} { "filing_type": "UCC1", "secured_parties": [ { "type": "ORGANIZATION", "organization_name": "Confidential Lender LLC", "organization_type": "LLC", "mailing_address": "789 Private Lane", "city": "Secretville", "state": "CA", "postal_code": "90210", "masked": false } ] } ``` #### Best Practices for Secured Party Masking 1. **Use Judiciously**: Only mask secured parties when there's a legitimate need for privacy. 2. **Consistent Application**: If you're masking one secured party in a filing, consider whether other parties should also be masked for consistency. 3. **Record Keeping**: Maintain internal records of masked secured parties, as their information may not be readily available in public searches. 4. **Legal Compliance**: Ensure that masking complies with all applicable laws and regulations in your jurisdiction. 5. **Authorized Access**: Implement proper authorization checks in your application to ensure that only authorized users can view unmasked information. 6. **Updates and Amendments**: Remember that changing the masked status (either masking or unmasking) may require filing an amendment to the lien in some jurisdictions. By using secured party masking effectively, you can balance the need for public record-keeping with the privacy concerns of certain secured parties involved in lien filings. ### Filing a UCC-3 (Amendment) A UCC-3 form is used to amend, continue, assign, terminate, or make other changes to an existing UCC-1 filing. It's an essential tool for maintaining accurate and up-to-date lien records. Here are the main types of UCC-3 filings: 1. **Termination**: Indicates that the secured party no longer claims a security interest in the collateral. 2. **Continuation**: Extends the effectiveness of the original filing for an additional period. 3. **Assignment**: Transfers all or part of the secured party's rights to a new secured party. There are two types of assignments: * **Full Assignment**: The entire interest in the collateral is transferred to a new secured party. The original secured party relinquishes all rights to the collateral, and all future actions related to the financing statement will be handled by the new secured party. * **Partial Assignment**: Only a portion of the interest in the collateral is transferred to a new secured party. The original secured party retains some rights to the collateral. Both the original and new secured parties may have rights to take actions related to the financing statement, but only for their respective portions of the collateral. 4. **Debtor Amendment**: Used to add, delete, or modify information about one or more debtors associated with the financing statement. This could include updating a debtor's name, address, or other identifying information. 5. **Secured Party Amendment**: Allows for the addition, deletion, or modification of information about one or more secured parties. This might involve updating a secured party's contact details or adding a new secured party to the filing. 6. **Collateral Amendment**: Enables changes to the description of the collateral covered by the financing statement. This could involve adding new items to the collateral list, removing items, or clarifying the existing collateral description. #### Using the API to File a UCC-3 To file a UCC-3 using our API, follow these steps: 1. **Route**: * URL: `/lien_submissions/{filing_id}/amend` * Method: POST 2. **Path Parameters**: * `filing_id` (UUID): The unique identifier of the original lien filing you want to amend. 3. **Request Body**: To start a UCC-3 lien filing document, the request should at minimum include a JSON object with the following properties: * `filing_type` (string): Should be set to "UCC3" for amendments. * `amendment_action` (object): Specifies the type and details of the amendment action. * `authorizing_party` (object): The party authorizing the amendment. Required to submit. The `amendment_action` field is polymorphic and can accept different structures based on the type of amendment (see the API reference for possible structures). 4. **Response**: * On success (HTTP 201), you'll receive a JSON object containing details of the created UCC-3 filing submission. * If the original filing is not found, you'll get a 404 error. 5. **Important Notes**: * Ensure you have the correct `filing_id` for the original lien you want to amend. * The `amendment_action` field is crucial for specifying the type and details of your amendment. Make sure to provide the correct structure based on your amendment type. * If you set `amendment_action` to `null`, it will preserve the existing server value for this field, causing no changes. * Always verify the information before submitting, as amendments can have significant legal implications. #### Example of UCC-3 request payloads (for both creation `POST` and update `PATCH` route methods) The examples below only focus on all the different possible `amendment_action` payloads, remaining required fields still have to be provided in order to have a complete filings that successfully passes the validation on `POST /lien_submissions/{filing_id}/submit`. See the [Create New UCC3 Lien Filing Submission](/api-reference/lien-filing/create-new-ucc3-lien-filing-submission) for the full model definition. ##### Continuation The continuation structure is used when you want to extend the effectiveness of the original filing for an additional period. ```json theme={null} { "filing_type": "UCC3", "amendment_action": { "type": "CONTINUATION" } } ``` ##### Termination The termination structure is used when you want to indicate that the financing statement is no longer effective with respect to the interest of the secured party authorizing the termination. This effectively ends the security interest in the collateral. ```json theme={null} { "filing_type": "UCC3", "amendment_action": { "type": "TERMINATION" } } ``` ##### Partial Assignment The partial assignment structure is used when you want to transfer only a portion of the rights to the collateral to a new secured party. Here's an explanation of the key components: * `type`: Set to "PARTIAL" to indicate a partial transfer of rights. * `secured_parties`: An array of new secured parties receiving the assigned rights. * `collateral_statements`: Specifies the collateral being assigned. This structure allows you to specify which portion of the collateral is being assigned and to whom, providing flexibility in transferring secured interests. ```json theme={null} { "filing_type": "UCC3", "amendment_action": { "type": "ASSIGNMENT", "assignment": { "type": "PARTIAL", "secured_parties": [ { "type": "ORGANIZATION", "organization_name": "Quantum Dynamics Solutions, LLC", "mailing_address": "789 Innovation Boulevard", "city": "Tech Harbor", "state": "CA", "postal_code": "94105" } ], "collateral_statements": { "collateral_statement_designation": "NONE", "text": "The new collateral statement.", "type": "TEXT" } } } } ``` ##### Full Assignment The full assignment structure is used when you want to transfer all rights to the collateral to a new secured party. Here's an explanation of the key components: * `type`: Set to "FULL" to indicate a complete transfer of rights. * `secured_parties`: An array of new secured parties receiving the assigned rights. This structure allows you to specify the new secured party or parties who will be taking over the entire security interest. Unlike partial assignment, there's no need to specify collateral statements as the entire security interest is being transferred. ```json theme={null} { "filing_type": "UCC3", "amendment_action": { "type": "ASSIGNMENT", "assignment": { "type": "FULL", "secured_parties": [ { "type": "ORGANIZATION", "organization_name": "Quantum Dynamics Solutions, LLC", "mailing_address": "789 Innovation Boulevard", "city": "Tech Harbor", "state": "CA", "postal_code": "94105" } ] } } } ``` ##### Debtor amendment — adding debtors This structure is used for adding new debtors to an existing UCC filing through a UCC-3 amendment. It allows you to specify one or more debtors to be added to the filing. Each debtor object in the array includes essential information such as the organization name, type, and address details. This structure ensures that all necessary information for adding new debtors is provided in a clear and organized manner. ```json theme={null} { "filing_type": "UCC3", "amendment_action": { "type": "DEBTOR_AMENDMENT", "amendment": { "type": "ADD", "debtors": [ { "type": "ORGANIZATION", "organization_name": "Acme, Inc", "organization_type": "LLC", "mailing_address": "123 St", "city": "City", "state": "AL", "postal_code": "1345" } ] } } } ``` ##### Debtor edit amendment This structure is used for modifying existing debtor information in a UCC filing through a UCC-3 amendment. It allows you to update the details of one or more debtors already present in the filing. The `amendment` object includes: * `type`: Set to "EDIT" to indicate that this is an edit operation. * `amending_debtors`: An array of objects, each representing a debtor to be modified. Each object in the `amending_debtors` array contains: * `amending_debtor_id`: The unique identifier of the existing debtor to be modified. * `new_debtor`: An object containing the updated information for the debtor. The `new_debtor` object includes all the fields that can be updated for a debtor, such as organization name, type, and address details. This structure ensures that you can precisely specify which debtors to modify and what information to update. ```json theme={null} { "filing_type": "UCC3", "amendment_action": { "type": "DEBTOR_AMENDMENT", "amendment": { "type": "EDIT", "amending_debtors": [ { "amending_debtor_id": "9919e101-a60f-40ac-8e5a-ee642ecb3819", "new_debtor": { "type": "ORGANIZATION", "organization_name": "GREENTECH SOLUTIONS, INC.", "organization_type": "C_CORPORATION", "mailing_address": "789 Innovation Drive", "city": "Austin", "state": "TX", "postal_code": "78701" } } ] } } } ``` ##### Debtor removal amendment This structure is used for removing existing debtors from a UCC filing through a UCC-3 amendment. It allows you to delete one or more debtors that are currently associated with the filing. The `amendment` object includes: * `type`: Set to "DELETE" to indicate that this is a removal operation. * `deleted_debtor_ids`: An array of strings, each representing the unique identifier of a debtor to be removed from the filing. This structure provides a straightforward way to specify which debtors should be deleted from the UCC filing. By using the unique identifiers, you can ensure that the correct debtors are removed without ambiguity. ```json theme={null} { "filing_type": "UCC3", "amendment_action": { "type": "DEBTOR_AMENDMENT", "amendment": { "type": "DELETE", "deleted_debtor_ids": [ "9919e101-a60f-40ac-8e5a-ee642ecb3819" ] } } } ``` ##### Add, Restate and Delete Collateral Statement Amendment This structure is used for adding, editing, or removing collateral statements in a UCC filing through a UCC-3 amendment. The structure remains consistent across these operations, but the meaning changes based on the `collateral_amendment_type`. * For `ADD`, the provided collateral statement is added to the existing collateral. * For `RESTATE`, the provided collateral statement replaces all existing collateral statements. * For `DELETE`, the provided collateral statement is removed from the existing collateral. The `amendment_action` object includes: * `type`: Set to "COLLATERAL_AMENDMENT" to indicate that this is a collateral-related amendment. * `collateral_amendment_type`: Specifies the type of amendment (`ADD`, `RESTATE`, or `DELETE`). * `collateral_statements`: Contains the collateral information, which can be of type `TEXT` or `ATTACHMENTS` (not shown in this example). This structure allows for flexible modification of collateral information in the UCC filing, enabling you to add new collateral, update existing information, or remove specific collateral statements as needed. ```json theme={null} { "filing_type": "UCC3", "amendment_action": { "type": "COLLATERAL_AMENDMENT", "collateral_amendment_type": "ADD", "collateral_statements": { "type": "TEXT", "text": "All equipment, inventory, and accounts receivable now owned or hereafter acquired by the debtor." } } } ``` ### Best Practices for Using the Lien Filing API To make the most effective use of the lien filing API and ensure smooth processing of your lien filings, consider the following best practices: 1. **Flexible Population Approach**: * You have the flexibility to populate a lien filing in two main ways:\ a) Full Payload: You can create or update a lien filing with a complete payload containing all necessary information at once.\ b) Gradual Population: You can start with minimal information and gradually add or update details over time. * Choose the approach that best fits your workflow or application design: * For integrations with user interfaces where users might save drafts and return later, the gradual population approach works well. * For automated systems with all information available upfront, using a full payload might be more efficient. 2. **Start with Minimal Information** (if using gradual population): * Begin by creating a lien filing with just the required `business_id` in the URL. * This allows you to get a `filing_id` early in the process, which you can use for subsequent updates. 3. **Incremental Updates** (for gradual population): * Build your lien filing gradually by making small, focused updates rather than trying to populate all information at once. * This approach reduces the risk of errors and allows for easier tracking of changes. 4. **Regular Saving**: * Whether using full payload or gradual population, save your progress frequently by making API calls to update the lien filing. * This prevents loss of work and allows collaboration if multiple people are working on the filing. 5. **Fetch Before Update**: * Before making updates, especially to complex fields like arrays, fetch the current state of the lien filing. * This ensures you have the most up-to-date information and helps prevent unintended overwrites. 6. **Careful Array Handling**: * When updating array fields (like `debtors` or `secured_parties`), always include all existing items you want to keep, not just the new ones. * Remember that sending an array will replace the entire existing array. 7. **Validate As You Go**: * Regularly check the lien filing for completeness and accuracy, especially before submission. * Use the `GET` endpoint to review all details of your lien filing submission. 8. **Handle Validation Errors Systematically**: * Develop a systematic approach to handling validation errors returned by the API. * Address one error at a time, making corrections and resubmitting until all issues are resolved. 9. **Use Secured Party Masking Judiciously**: * Only use the masking feature when there's a legitimate need for privacy. * Ensure consistency in masking across related parties in a filing. 10. **Manage Attachments Carefully**: * If using attachments for collateral statements, ensure all necessary documents are uploaded before submission. * Remember that changing from text to attachments (or vice versa) for collateral statements will replace the existing content. 11. **Monitor Submission Status**: * After submission, continue to monitor the status of your lien filing using the GET endpoint. * Be prepared to respond promptly if the status changes to `Needs Attention`. 12. **Implement Proper Error Handling**: * Develop robust error handling in your application to deal with various API responses. * Log error responses for debugging and audit purposes. 13. **Consider User Experience**: * If developing a user interface, translate API responses and error messages into user-friendly notifications. * Design your interface to support both full payload and gradual population approaches, allowing users to save drafts and return to them later. 14. **Stay Informed About Jurisdictional Requirements**: * Be aware that lien filing requirements can vary by jurisdiction. * Regularly check for updates to the API or changes in lien filing regulations that may affect your process. 15. **Secure Access to Sensitive Information**: * Implement proper authorization checks in your application to ensure that only authorized users can view sensitive information, especially for masked secured parties. By following these best practices, you can create a more efficient and error-resistant process for managing lien filings through the API, whether you're using a full payload approach or gradually populating the filing. Remember that lien filing is often a complex legal process, and while this API aims to streamline it, it's always advisable to consult with legal professionals when dealing with complex filings or unique situations. ### Jurisdiction County In the states of **Louisiana**, **Georgia**, and **Oklahoma**, providing county information is essential for lien filings because these states have specific local requirements that mandate the identification of the county where the property is located. This is necessary to ensure that the lien is properly recorded and recognized within the correct jurisdiction. # Lien Search: API Quickstart Source: https://docs.baselayer.com/docs/lien-search-api-quickstart Run a lien search by API, read the filings, and download lien documents. This guide walks through the full lien search implementation: submitting a search, retrieving results, and downloading lien documents. Before starting, review [Lien Search: Basics](/docs/lien-search-basics) for an overview of how the product works, and [Liens, Judgments, and Public Records](/docs/liens-judgments-and-public-records) for lien terminology. *** ### Prerequisites * An active Baselayer API key * A completed Business Search: you will need either the `business_id` or `business_search_id` from that result * Familiarity with Baselayer's Business Search API: see [Business Search: API Quickstart](/docs/business-search) if needed *** ### Base URL & Authentication **Base URL:** ``` Production: https://api.baselayer.com ``` **Authentication:** All requests require an API key in the `X-API-Key` header: ```http theme={null} X-API-Key: YOUR_API_KEY ``` *** ## Step 1: Submit the Lien Search `POST /lien_searches` accepts three request variants depending on what identifiers you have available. Choose the one that fits your integration. *** ### Option A: Search by `business_id` Use the `business_id` from a previous Baselayer Business Search. The search targets the domestic state of the business unless `search_states` is specified. ```bash theme={null} curl --request POST \ --url https://api.baselayer.com/lien_searches \ --header 'X-API-Key: YOUR_API_KEY' \ --header 'Content-Type: application/json' \ --data '{ "business_id": "f7688172-2e5f-400b-9e3f-8d2f93eabd79" }' ``` To search specific states instead of the domestic state: ```bash theme={null} curl --request POST \ --url https://api.baselayer.com/lien_searches \ --header 'X-API-Key: YOUR_API_KEY' \ --header 'Content-Type: application/json' \ --data '{ "business_id": "f7688172-2e5f-400b-9e3f-8d2f93eabd79", "search_states": ["CA", "FL"] }' ``` *** ### Option B: Search by `business_search_id` with `additional_search_entities` Use the `id` from a Business Search response. This variant supports `additional_search_entities`, which lets you search for linked individuals or alternate business names in the same API call - without making separate requests. This is the recommended approach when your workflow requires lien coverage for business officers, guarantors, or beneficial owners alongside the primary business. ```bash theme={null} curl --request POST \ --url https://api.baselayer.com/lien_searches \ --header 'X-API-Key: YOUR_API_KEY' \ --header 'Content-Type: application/json' \ --data '{ "business_search_id": "1504f313-9721-4006-b813-82faf6c6f02d", "additional_search_entities": [ { "name": "Jane Smith", "type": "Person", "search_states": ["DE"] }, { "name": "Smith Holdings LLC", "type": "Business", "search_states": ["DE", "CA"] } ] }' ``` **`additional_search_entities` fields:** | Field | Required | Description | | - | - | - | | `name` | Yes | Name of the individual or business to search | | `type` | Yes | `"Person"` or `"Business"` | | `search_states` | Yes | Array of two-letter state codes to search for this entity | > **Note:** `search_states` is required for each entity in `additional_search_entities`. The main business will still default to its domestic state unless you override it with a top-level `search_states` field. For full guidance on when and how to use `additional_search_entities`, see [Lien Search: Best Practices](/docs/lien-searching-best-practices). *** ### Option C: Search by `person_id` Use a `person_id` from an existing Baselayer person record. `search_states` is required for person-based searches. ```bash theme={null} curl --request POST \ --url https://api.baselayer.com/lien_searches \ --header 'X-API-Key: YOUR_API_KEY' \ --header 'Content-Type: application/json' \ --data '{ "person_id": "f9458925-bea9-4551-9913-31c21658d3d7", "search_states": ["DE", "NJ"] }' ``` For a full guide on searching individuals, see [Lien Search for Individuals](/docs/lien-search-for-individuals). *** ### Execution Mode Lien searches support both synchronous and asynchronous execution. Results are returned directly in the response body on synchronous requests. For async execution, consume results via webhooks (`LiensSearch.completed`) or by polling `/lien_searches/{lien_search_request_id}`. One exception: ad-hoc (name-based) lien searches never emit webhooks. For those, poll `GET /lien_searches/adhoc/{lien_search_request_id}` or use synchronous execution. See [Synchronous & Asynchronous Request Execution](/docs/synchronous-asynchronous-request-execution) for setup guidance. *** ## Step 2: Retrieve Results **Synchronous (default):** Results are returned directly in the `POST` response body. Skip ahead to **Step 3 — Parse the Response**. **Asynchronous:** Consume results via the `LiensSearch.completed` webhook or poll `/lien_searches/{lien_search_request_id}/status` until `state` is `COMPLETED`, then retrieve the full result with `GET /lien_searches/{lien_search_request_id}`. Note that ad-hoc (name-based) lien searches never emit webhooks. For those, poll `GET /lien_searches/adhoc/{lien_search_request_id}` or use synchronous execution. See [Synchronous & Asynchronous Request Execution](/docs/synchronous-asynchronous-request-execution) for full guidance. *** ## Step 3: Parse the Response The core content of a completed search is the `filings` array. **Example response:** ```json theme={null} { "id": "5442a0ec-4172-47fa-8001-a2d62fc99f44", "state": "COMPLETED", "business_id": "f7688172-2e5f-400b-9e3f-8d2f93eabd79", "business_search_id": "1504f313-9721-4006-b813-82faf6c6f02d", "searched_states": ["DE"], "last_updated_at": "2024-06-01", "search_entities": [ { "name": "Acme Logistics Inc", "normalized_name": "acme logistics inc", "type": "Business", "search_states": ["DE"] }, { "name": "Jane Smith", "normalized_name": "jane smith", "type": "Person", "search_states": ["DE"] } ], "filings": [ { "id": "a1b2c3d4-0001-0001-0001-000000000001", "state": "DE", "filing_number": "2019-0045321-1", "filing_type": "consensual.ucc", "filing_date": "2019-03-12", "lapse_date": "2029-03-12", "status": "Active", "number_of_pages": 3, "document_filename": "2019-0045321-1.pdf", "match_level": "EXACT", "search_entity_name": "Acme Logistics Inc", "search_entity_type": "Business", "last_updated_at": "2024-06-01", "parties": [ { "role": "Secured Party", "name": "First National Bank", "type": "Secured Party" }, { "role": "Debtor", "name": "Acme Logistics Inc", "type": "Debtor" } ], "collateral_statements": [ { "text": "All assets", "sort_order": 0 } ], "amendments": [ { "filing_number": "2024-0045321-2", "filing_type": "continuation", "filing_date": "2024-01-15", "number_of_pages": 1 } ] }, { "id": "a1b2c3d4-0001-0001-0001-000000000002", "state": "DE", "filing_number": "2023-0091234-1", "filing_type": "tax.federal_irs", "filing_date": "2023-07-20", "lapse_date": null, "status": "Active", "number_of_pages": null, "document_filename": null, "match_level": "EXACT", "search_entity_name": "Acme Logistics Inc", "search_entity_type": "Business", "last_updated_at": "2024-06-01", "parties": [ { "role": "Secured Party", "name": "Internal Revenue Service", "type": "Secured Party" }, { "role": "Debtor", "name": "Acme Logistics Inc", "type": "Debtor" } ], "collateral_statements": [], "amendments": [] } ] } ``` **Key fields to evaluate on each filing:** | Field | What to check | | - | - | | `filing_type` | Normalized type, use this for classification (see [Lien Search: Basics](/docs/lien-search-basics) for the full enum) | | `status` | Whether the lien is currently active, terminated, or lapsed | | `lapse_date` | Whether the lien is still within its effective period | | `search_entity_name` | Which entity in your request this filing matched, useful when searching multiple entities | | `amendments` | Lifecycle history, look for `termination` or `continuation` entries | | `collateral_statements` | Scope of pledged assets | | `document_filename` | Non-null means a document PDF is available | > **Active lien check:** The top-level `status` is derived by Baselayer from the filing, its amendments, and its lapse date (per the UCC §9-515 rollup rules): a termination amendment produces `Terminated`, a continuation filed within the statutory window keeps the filing `Active`, and otherwise the lapse date decides `Active` vs `Lapsed`. Treat `status` as the authoritative open/closed signal, with `amendments[]` and `lapse_date` as supporting evidence; you do not need to re-derive liveness yourself. For full guidance on interpreting and classifying results, see [Lien Search: Best Practices](/docs/lien-searching-best-practices). *** ## Step 4: Retrieve Lien Documents PDF documents are available for many filings at no additional cost. **Check availability:** `document_filename` is non-null on the filing. **Retrieve the document:** ```bash theme={null} curl --request GET \ --url https://api.baselayer.com/lien_searches/SEARCH_ID/filings/FILING_ID \ --header 'X-API-Key: YOUR_API_KEY' \ --location \ --output lien_document.pdf ``` This endpoint responds with a **307 redirect** to a signed URL for a consolidated PDF of all documents associated with that filing — make sure your HTTP client follows redirects (`--location` in curl; `requests` follows them by default). > `number_of_pages` is descriptive only and does not guarantee a retrievable document. Rely on `document_filename` being non-null. *** ## Full Example: Business + Guarantor Lien Search (Synchronous) ```python theme={null} import requests API_KEY = "YOUR_API_KEY" BASE_URL = "https://api.baselayer.com" headers = { "X-API-Key": API_KEY, "Content-Type": "application/json" } # Step 1: Submit lien search — business + guarantor in one call payload = { "business_search_id": "1504f313-9721-4006-b813-82faf6c6f02d", "additional_search_entities": [ { "name": "Jane Smith", # Personal guarantor "type": "Person", "search_states": ["DE"] } ] } response = requests.post(f"{BASE_URL}/lien_searches", json=payload, headers=headers) result = response.json() # Results are only final once the search is COMPLETED if result.get("state") != "COMPLETED": raise RuntimeError(f"Search not finished (state: {result.get('state')}). Wait for LiensSearch.completed, then GET /lien_searches/{result['id']}") filings = result.get("filings", []) for filing in filings: filing_type = filing.get("filing_type", "") status = filing.get("status") entity = filing.get("search_entity_name") # Effectiveness check: status is authoritative (already reflects amendments and lapse) is_active = status == "Active" if not is_active: continue label = f"[{entity}]" if filing_type.startswith("tax."): print(f"HIGH RISK {label} Active tax lien: {filing_type} (filed {filing['filing_date']})") elif filing_type.startswith("judicial."): print(f"HIGH RISK {label} Active judgment lien: {filing_type} (filed {filing['filing_date']})") else: print(f"ACTIVE LIEN {label} {filing_type} (filed {filing['filing_date']})") # Log collateral scope for stmt in filing.get("collateral_statements", []): print(f" Collateral: {stmt['text']}") # Retrieve document if available if filing.get("document_filename"): doc = requests.get( f"{BASE_URL}/lien_searches/{result['id']}/filings/{filing['id']}", headers=headers ) with open(f"lien_{filing['id']}.pdf", "wb") as f: f.write(doc.content) print(f" Document saved: lien_{filing['id']}.pdf") ``` *** ## Where to Go Next * **[Lien Search: Best Practices](/docs/lien-searching-best-practices)** — State scope strategy, risk classification, `additional_search_entities` guidance, and decisioning frameworks * **[Lien Search for Individuals](/docs/lien-search-for-individuals)** — Searching liens for sole proprietors, guarantors, and beneficial owners * **[Lien Search: Basics](/docs/lien-search-basics)** — Full response field reference including the `filing_type` enum # Lien Search: Basics Source: https://docs.baselayer.com/docs/lien-search-basics Know which liens Lien Search finds, which states it covers, and what each field in the result means. This guide covers how Baselayer's Lien Search product works: what it searches, how results are returned, and what the response contains. For background on lien types, UCC filings, and key terminology, see [Liens, Judgments, and Public Records](/docs/liens-judgments-and-public-records) before reading this guide. For step-by-step API implementation, see [Lien Search: API Quickstart](/docs/lien-search-api-quickstart). *** ## 1. What Baselayer Searches A Baselayer lien search retrieves public lien filings from Secretary of State (SoS) registries across the United States. **Baselayer returns:** * UCC filings (UCC-1, UCC-3, UCC-5) * Federal tax liens (IRS) * State tax liens * County and municipal tax liens * Judgment liens (where available) * Associated lien documents (PDFs), where available by state **Coverage and refresh rates** vary by state. Contact your Baselayer representative for the current coverage map and data freshness details for states relevant to your use case. *** ## 2. Execution Mode Lien searches support both synchronous and asynchronous execution, controlled via the `Prefer` header or your API key's default mode. For full details, see [Synchronous & Asynchronous Request Execution](/docs/synchronous-asynchronous-request-execution). Lien-specific webhook events emitted during async execution: | Event | When it fires | | :- | :- | | `LiensSearch.submitted` | Search has been accepted and is in progress | | `LiensSearch.completed` | Results are ready for retrieval | | `LiensSearch.failed` | Search has failed to execute | > **Note:** Ad-hoc (name-based) lien searches never emit webhooks. Use the synchronous response, or poll `GET /lien_searches/adhoc/{lien_search_request_id}` when executing asynchronously. *** ## 3. State Coverage Model Lien filings follow the **debtor's state of formation** under UCC rules. This means the domestic state - the state where the business is incorporated or formed - is where UCC liens are **perfected** and effective. **By default, Baselayer searches only the domestic state.** Omitting `search_states` from the request is the recommended approach for most customers. Every state searched incurs a direct data cost. Searching all foreign-registered states without reason adds unnecessary spend without meaningfully improving lien coverage. **When to add additional states:** * The business is incorporated in one state but operates primarily in another — in this case, search both the incorporation state and the state of the business's submitted address. * Collateral is physically located in a specific non-domestic state (common in equipment financing or inventory-backed lending). * The product or customer base requires a more thorough analysis including lien searches in all registered states. * The product involves non-standard asset classes tied to a specific geography. > **Note:** Tax liens may occasionally appear in foreign-registered states when the business has tax obligations there - for example, sales tax, payroll tax, or franchise tax. These are typically smaller and lower risk than domestic tax liens, unless the business's primary operations are outside its domestic state. **Why searching all 50 states is never the right choice** A business name is not a unique identifier at the national level. The same name can belong to entirely unrelated, independently incorporated companies across different states. Searching all 50 states expands the pool of unrelated businesses whose filings will appear in your results, creating false positives that require manual review to dismiss. The domestic state (and, when warranted, additional foreign states with a specific rationale) is always the right scope. Broader is not better here. *** ## 4. Three Ways to Initiate a Lien Search Baselayer supports three request types for `POST /lien_searches`, depending on what identifiers you have available: **Option 1: Using a `business_id`** Use a `business_id` from a previous Baselayer Business Search. The search targets the business's domestic state unless `search_states` is provided. **Option 2: Using a `business_search_id` with optional `additional_search_entities`** Use the `id` returned directly from a Business Search response. This variant also supports `additional_search_entities`, which allows you to search for linked individuals (officers, guarantors, beneficial owners) or alternate business names in the same API call. This is the most powerful request type and the recommended approach when you need lien coverage beyond the primary business entity. **Option 3: Using a `person_id`** Use a `person_id` from a previous Baselayer person record. When using this option, `search_states` is required. This is covered in detail in [Lien Search for Individuals](/docs/lien-search-for-individuals). *** ## 5. Response Structure The primary content of the API response is the `filings` array: one object per lien filing found. **Top-level response fields:** | Field | Type | Description | | - | - | - | | `id` | UUID | Unique identifier of the lien search request | | `state` | string | Current state of the request (`PENDING`, `EXECUTING`, `COMPLETED`, `FAILED`, `CANCELLED`) | | `search_entities` | array | The entities searched - see Section 5.1 | | `filings` | array | List of lien filing objects - see Section 5.2 | | `searched_states` | array | States included in the search | | `business_id` | UUID \| null | Business associated with the search, if applicable | | `person_id` | UUID \| null | Person associated with the search, if applicable | | `business_search_id` | UUID \| null | Business search ID used to initiate the request, if applicable | | `last_updated_at` | date | Date the result was last refreshed | | `error` | string \| null | Error message if the search failed | *** ### 5.1 Search Entities The `search_entities` array lists every entity included in the search, the primary business and any additional entities submitted via `additional_search_entities`. Each entry includes: | Field | Description | | - | - | | `name` | Name of the entity as submitted | | `normalized_name` | Name as normalized by Baselayer for matching against registry records | | `type` | `"Business"` or `"Person"` | | `search_states` | States searched for this entity | The `normalized_name` is the name Baselayer actually used when querying each state's registry. Reviewing it helps understand which name variants were matched, particularly for businesses with abbreviations, punctuation, or common alternate forms. *** ### 5.2 Filing Object Fields Each object in the `filings` array represents a single lien filing. | Field | Description | | - | - | | `id` | Unique identifier of the filing; used for document retrieval | | `state` | US state where the lien was filed | | `filing_number` | Unique identifier in the state's SoS registry | | `filing_type` | Normalized filing classification - see Section 5.3 | | `filing_date` | Date the security interest was officially recorded | | `lapse_date` | Date the filing expires if not continued (typically 5 years from `filing_date`) | | `status` | Current status of the filing (`Active`, `Terminated`, `Lapsed`). Baselayer derives this from the filing and its amendments, so it already reflects terminations and continuations; treat it as the authoritative open/closed signal | | `number_of_pages` | Number of pages in the associated document, if available. Descriptive only — it is not a promise that a document can be retrieved; check `document_filename` for that | | `document_filename` | Non-null if a lien document PDF is available for download | | `parties` | List of parties associated with the filing - see Section 5.4 | | `amendments` | Chronological list of amendment filings against this record - see Section 5.5 | | `collateral_statements` | Textual descriptions of the assets covered by the lien - see Section 5.6 | | `match_level` | How closely this filing matched the searched entity name - see Section 5.7 | | `search_entity_name` | Name of the entity this filing was matched against | | `search_entity_type` | Type of the matched entity: `"Business"` or `"Person"` | | `last_updated_at` | Date this filing record was last refreshed | *** ### 5.3 Filing Type (`filing_type`) The `filing_type` field is Baselayer's normalized classification of each lien filing. It is consistent across all states and is the field to use for programmatic classification logic. **Consensual liens** (created by agreement between lender and borrower): | Value | Description | | - | - | | `consensual.ucc` | Standard UCC financing statement | | `consensual.ucc_public_finance` | UCC filing related to public sector financing | | `consensual.ucc_manufactured_home` | UCC filing for manufactured home collateral | | `consensual.ucc_transmitting_utility` | UCC filing for transmitting utility collateral | | `consensual.other` | Other consensual lien type | **Statutory liens** (created by operation of law): | Value | Description | | - | - | | `statutory.hospital_medical` | Medical or hospital lien | | `statutory.agricultural` | Agricultural lien | | `statutory.other` | Other statutory lien | **Judicial liens** (arising from court proceedings): | Value | Description | | - | - | | `judicial.judgment` | Court judgment lien | | `judicial.attachment` | Pre-judgment attachment lien | | `judicial.execution` | Lien arising from execution of a judgment | | `judicial.other` | Other judicial lien | **Tax liens** (filed by government authorities): | Value | Description | | - | - | | `tax.federal_irs` | IRS federal tax lien | | `tax.federal_estate` | Federal estate tax lien | | `tax.federal_other` | Other federal tax lien | | `tax.state_unemployment` | State unemployment tax lien | | `tax.state_income_sales_franchise` | State income, sales, or franchise tax lien | | `tax.state_other` | Other state tax lien | | `tax.local_property_tax` | Local property tax lien | | `tax.local_other` | Other local/municipal tax lien | | `tax.other` | Other tax lien | **Detecting tax liens:** Any filing where `filing_type` starts with `tax.` is a government-originated tax lien. No keyword matching on raw registry strings is required. **Detecting judicial liens:** Any filing where `filing_type` starts with `judicial.` results from a court proceeding. *** ### 5.4 Parties The `parties` array lists all parties associated with a filing. Each party includes: | Field | Description | | - | - | | `id` | Unique identifier of the party record | | `role` | `"Debtor"`, `"Secured Party"`, or `"Record Owner"` | | `name` | Name of the party | | `address` | Full address of the party, including geocoordinates where available | *** ### 5.5 Amendments The `amendments` array contains a chronological record of all follow-on filings made against the original lien. Each amendment includes: | Field | Description | | - | - | | `filing_number` | The amendment's unique identifier in the state registry | | `filing_type` | Type of amendment — see enum table below | | `filing_date` | Date the amendment was filed | | `number_of_pages` | Number of pages in the amendment document | **Amendment `filing_type` values:** Raw amendment codes from each state registry are normalized into this fourteen-value set at ingestion. Codes that cannot be mapped become `unspecified`. | Value | Description | | - | - | | `termination` | Lien formally ended - debt satisfied or security interest released by the secured party | | `continuation` | Lien perfection extended beyond its original lapse date - secured party is actively maintaining the filing | | `assignment` | Security interest transferred to a new secured party - common when loans are sold or refinanced | | `debtor_amendment.add` | A debtor was added to the filing | | `debtor_amendment.remove` | A debtor was removed from the filing | | `debtor_amendment.update` | Debtor information was updated (name, address, or entity type) | | `secured_party_amendment.add` | A secured party was added to the filing | | `secured_party_amendment.remove` | A secured party was removed from the filing | | `secured_party_amendment.update` | Secured party information was updated | | `collateral_amendment.add` | Additional collateral was added to the filing | | `collateral_amendment.remove` | Collateral was removed from the filing - reduces the scope of the lien | | `collateral_amendment.update` | Collateral description was modified | | `informational` | Informational statement only - no change to lien status or terms | | `unspecified` | Amendment type could not be mapped from the state registry's raw code | Reading the amendments array gives you the full lifecycle of a lien, but you do not need to parse it to determine whether the lien is open or closed. The top-level `status` field already incorporates amendment effects under the UCC §9-515 rollup rules: a `termination` amendment produces `status: "Terminated"`, a `continuation` filed within the statutory window keeps the filing `Active`, and otherwise the lapse date decides `Active` vs `Lapsed`. **Treat `status` as the authoritative open/closed signal and `amendments[]` as supporting evidence.** A `continuation` confirms the secured party is actively maintaining the filing. `collateral_amendment.remove` or `collateral_amendment.update` entries may indicate restructuring or partial release of pledged assets and are worth reviewing in larger-ticket underwriting. *** ### 5.6 Collateral Statements The `collateral_statements` array contains textual descriptions of the assets covered by the lien, exactly as recorded in the state registry. Each entry includes: | Field | Description | | - | - | | `text` | Collateral description as filed (e.g. `"All assets"`, `"2022 Blue Honda Civic"`, `"Accounts receivable"`) | | `sort_order` | Display order when multiple collateral statements are present | Collateral statements are particularly useful for determining the scope of a lien. A broad "all assets" description indicates a blanket lien; specific descriptions (equipment, vehicles, inventory) indicate a narrower security interest limited to particular asset categories. *** ### 5.7 Match Level The `match_level` field indicates how closely the filing's debtor name matched the searched entity name. Possible values are `EXACT`, `SIMILAR`, and `NO_MATCH`. Baselayer applies a strict matching process, so all returned filings will carry an `EXACT` or `SIMILAR` match level. *** ### 5.8 Document Availability PDF documents are available for many filings at no additional cost, subject to state availability and filing date. To check availability: inspect `document_filename` on any filing object. A non-null value indicates a document is available. To retrieve the document: ``` GET /lien_searches/{liens_search_request_id}/filings/{filing_id} ``` This returns a **307 redirect** to a signed URL for a consolidated PDF of all documents associated with that filing — configure your HTTP client to follow redirects. Not all states provide documents digitally; availability of historical filings (particularly pre-2010) varies. > **Note:** `number_of_pages` is descriptive metadata only. A filing can report a page count without having a retrievable document — `document_filename` being non-null is the only reliable signal that a download is available. *** ## 6. Where to Go Next * **[Lien Search: API Quickstart](/docs/lien-search-api-quickstart)** — Step-by-step implementation with full code examples * **[Lien Search: Best Practices](/docs/lien-searching-best-practices)** — State scope strategy, risk classification, and decisioning frameworks * **[Lien Search for Individuals](/docs/lien-search-for-individuals)** — Searching liens for sole proprietors, officers, guarantors, and beneficial owners * **[Liens, Judgments, and Public Records](/docs/liens-judgments-and-public-records)** — Background on lien types, UCC filings, and key terminology # Lien Search for Individuals Source: https://docs.baselayer.com/docs/lien-search-for-individuals Search liens on sole proprietors, officers, guarantors and owners when their personal debts affect a credit decision. This guide covers how to search liens for individuals in Baselayer: sole proprietors, business officers, personal guarantors, and beneficial owners. Before reading this guide, review: * [Lien Search: Basics](/docs/lien-search-basics) - how lien searches work, state coverage, and the complete response field reference * [Lien Search: API Quickstart](/docs/lien-search-api-quickstart) - implementation patterns for business lien searches * [Lien Search: Best Practices](/docs/lien-searching-best-practices) - classification and decisioning frameworks *** ## 1. Why Search Individuals For some business types and lending products, searching only the business entity is insufficient. Individual lien searches are warranted when the personal financial profile of an owner, officer, or guarantor is material to the credit decision. **When individual lien searches add signal:** **Sole proprietors and single-member LLCs** There is no meaningful legal separation between the individual and the business. Personal liens - particularly tax liens and judgment liens - directly affect the business's ability to service debt. A sole proprietor's personal IRS lien is as relevant as a business tax lien. **Personal guarantors** When an officer or owner is guaranteeing the loan personally, their lien profile is part of the risk assessment. A guarantor with multiple active tax liens or judgments significantly changes the risk picture. **Beneficial owners** For higher-risk programs, larger ticket sizes, or regulated financial institutions, extending lien coverage to beneficial owners provides a more complete view of the financial obligations attached to the people behind the business. **Business officers for closely-held companies** In small businesses where one or two individuals control all assets and operations, officer-level lien data can surface risks that are not visible at the entity level alone. *** ## 2. Three Ways to Search Individual Liens Baselayer supports three approaches for searching individual liens, depending on what information is available at the time of the request. *** ### Option A: `additional_search_entities` in a Business Lien Search The `BusinessSearch` request variant for `POST /lien_searches` supports an `additional_search_entities` array. This lets you search for individuals alongside the primary business in a single API call - no separate requests needed. ```bash theme={null} curl --request POST \ --url https://api.baselayer.com/lien_searches \ --header 'X-API-Key: YOUR_API_KEY' \ --header 'Content-Type: application/json' \ --data '{ "business_search_id": "1504f313-9721-4006-b813-82faf6c6f02d", "additional_search_entities": [ { "name": "Jane Smith", "type": "Person", "search_states": ["DE"] }, { "name": "Robert Johnson", "type": "Person", "search_states": ["FL"] } ] }' ``` Each filing in the response includes `search_entity_name` and `search_entity_type`, so you can immediately identify whether a filing matched the primary business or one of the named individuals. This is the recommended approach when you are running a business lien search and want to include officer or guarantor coverage simultaneously. For full details on `additional_search_entities`, see [Lien Search: API Quickstart](/docs/lien-search-api-quickstart) and [Lien Search: Best Practices](/docs/lien-searching-best-practices). *** ### Option B: Direct Lien Search Using a `person_id` If you already have a `person_id` from a previous Baselayer person record, you can run a lien search directly against that individual. `search_states` is required for all person-based lien searches. ```bash theme={null} curl --request POST \ --url https://api.baselayer.com/lien_searches \ --header 'X-API-Key: YOUR_API_KEY' \ --header 'Content-Type: application/json' \ --data '{ "person_id": "f9458925-bea9-4551-9913-31c21658d3d7", "search_states": ["DE", "FL"] }' ``` This approach is useful when running a standalone individual lien search outside the context of a business search — for example, when re-screening a guarantor periodically, or when the individual is the primary subject of the inquiry. *** ### Option C: Person Search with Lien Option If you do not yet have a `person_id`, you can initiate a person search with lien data included directly in the response by passing the appropriate lien option in a `POST /person_searches` request. This creates a person record and runs the lien search in a single step, returning both the person profile and lien filings together. This approach is best when the individual is new to Baselayer and you want to avoid a two-step flow (create person → search liens). Pass `"options": ["Order.Liens"]` and include the person's `address`; its state is used for the lien search. Results come back on the person search, not through `LiensSearch` webhooks. *** ## 3. State Selection for Individuals Unlike business lien searches - where the domestic state is a well-defined default - individual lien searches require you to specify `search_states` explicitly. There is no domestic state equivalent for individuals. **Guidance for selecting states:** * **Use the individual's state of residence** as the primary state. This is where personal UCC filings, judgment liens, and state tax liens are most likely to be filed. * **Add the business's domestic state** if the individual's residence is different, particularly for sole proprietors or closely-held business owners who may have mixed personal and business filings. * **For guarantors**, use the state associated with their address as provided during the application. If unknown, the business's primary operating state is a reasonable proxy. > The same false positive risk applies to individuals as to businesses: searching many states for a person with a common name will surface unrelated individuals' filings. Keep state scope targeted. *** ## 4. Interpreting Individual Lien Results The response structure and field definitions are identical to business lien searches. The same `filing_type` enum, `status`-based effectiveness check, and `collateral_statements` all apply. Refer to [Lien Search: Basics](/docs/lien-search-basics) for the complete field reference. **Key differences when evaluating individual filings:** **Tax liens carry even more weight for individuals** A `tax.federal_irs` or state tax lien against an individual signals unresolved personal tax obligations. For sole proprietors, this is directly equivalent to a business tax lien. For guarantors, it raises questions about the guarantor's ability to fulfill the guarantee. **Judgment liens signal personal disputes** Judicial liens (`judicial.judgment`, `judicial.execution`) against individuals indicate a court has ruled against them personally. These are significant for guarantors, as existing judgments reduce the practical value of the guarantee. **Apply the same effectiveness check** Treat a filing as currently enforceable only when `status == "Active"`. The `status` field is derived by Baselayer and already incorporates amendment effects (terminations, continuations) and the lapse date; treat it as the authoritative open/closed signal, with `amendments[]` and `lapse_date` as supporting evidence. *** ## 5. Recommended Workflow The following pattern covers the common lending use case — a business with a personal guarantor: ```python theme={null} import requests API_KEY = "YOUR_API_KEY" BASE_URL = "https://api.baselayer.com" headers = {"X-API-Key": API_KEY, "Content-Type": "application/json"} # Single API call: search business + guarantor simultaneously payload = { "business_search_id": "1504f313-9721-4006-b813-82faf6c6f02d", "additional_search_entities": [ { "name": "Jane Smith", # Personal guarantor "type": "Person", "search_states": ["DE"] # Guarantor's state of residence } ] } response = requests.post(f"{BASE_URL}/lien_searches", json=payload, headers=headers) result = response.json() high_risk = [] for filing in result.get("filings", []): status = filing.get("status") filing_type = filing.get("filing_type", "") entity_name = filing.get("search_entity_name") entity_type = filing.get("search_entity_type") # Effectiveness check: status is authoritative (already reflects amendments and lapse) is_active = status == "Active" if not is_active: continue subject = f"{entity_type}: {entity_name}" if filing_type.startswith("tax."): high_risk.append(f"[{subject}] Active tax lien: {filing_type}") elif filing_type.startswith("judicial."): high_risk.append(f"[{subject}] Active judgment lien: {filing_type}") if high_risk: print("HIGH RISK — escalate to underwriting:") for reason in high_risk: print(f" - {reason}") else: print("No high-risk lien signals detected.") ``` *** ## 6. Where to Go Next * **[Lien Search: Best Practices](/docs/lien-searching-best-practices)** — Full risk classification framework and `additional_search_entities` guidance * **[Lien Search: API Quickstart](/docs/lien-search-api-quickstart)** — Complete implementation guide with all request variants * **[Lien Search: Basics](/docs/lien-search-basics)** — Response field reference, `filing_type` enum, and amendment details * **[Liens, Judgments, and Public Records](/docs/liens-judgments-and-public-records)** — Background on lien types and UCC structure # Lien Search: Best Practices Source: https://docs.baselayer.com/docs/lien-searching-best-practices Choose which states to search, tell active liens from old ones, and turn lien data into credit decisions. This guide covers how to get the most out of Baselayer Lien Search: which states to search, how to classify and prioritize filings, and how to operationalize lien data into automated decisions. Make sure to review [Lien Search: Basics](/docs/lien-search-basics) and complete the [Lien Search: API Quickstart](/docs/lien-search-api-quickstart) before reading this guide. In addition to lien searches, Baselayer allows Enterprise Customers to file liens seamlessly and automatically, removing the operational lift traditionally involved in securing a loan. For a full walkthrough, explore the [Lien Filing guide](/docs/lien-filing-1) or contact your Baselayer representative. *** ## 1. State Scope Strategy ### Default: Search the Domestic State Only Omitting `search_states` is the right default for most customers. Baselayer will search only the domestic state - the state of incorporation or formation - where UCC liens are perfected under Article 9 of the UCC. This approach balances coverage with cost. Every state searched incurs a direct data cost, and foreign-registered states rarely contain UCC filings that are not already reflected in the domestic state. ### When to Add Additional States Add specific states only when the situation warrants it: **The business operates primarily outside its domestic state** Some businesses incorporate in Delaware or Wyoming for legal reasons but operate entirely in another state. In these cases, search both the domestic state (incorporation) and the state of the business's submitted address. Both states covers the meaningful risk without over-expanding scope. **Collateral is physically located in a non-domestic state** Equipment financing, inventory-backed lending, and real estate-related products often involve collateral tied to a specific location. Under UCC rules, fixture filings and certain goods liens are filed where the collateral is located — not necessarily in the domestic state. Add the relevant state when the collateral's location is known. **Non-standard asset classes** Products involving aircraft, railcars, or other specialized collateral categories may follow different jurisdiction rules. Consult your Baselayer representative for guidance on specific asset classes. ### What About Tax Liens in Foreign States? Tax liens may appear in foreign-registered states when the business has tax obligations there - for example, sales tax, payroll tax, or franchise tax owed to a state where the business operates. These are typically smaller and lower risk than domestic tax liens. Unless the business's primary operations are in a non-domestic state, foreign state tax liens are rarely the most material signal. > **In summary:** Default to domestic state only. Add states purposefully when you have a specific reason - not as a precaution. ### Why You Shouldn't Search All 50 States A business name is not a unique identifier at the national level. The same name can belong to entirely unrelated, independently incorporated companies across different states. Searching all 50 states expands the pool of unrelated businesses whose filings will appear in your results, creating false positives that require manual review to dismiss. The domestic state (and, when warranted, additional foreign states with a specific rationale) is always the right scope. *** ## 2. Establishing Whether a Lien Is Currently Effective Before classifying any filing, establish whether it is currently active and enforceable. **A lien is currently effective if `status == "Active"`.** The top-level `status` is derived by Baselayer rather than passed through raw from the state registry. It already incorporates the effects of amendments under the UCC §9-515 rollup rules: a `termination` amendment produces `status: "Terminated"`, a `continuation` filed within the statutory window keeps the filing `Active`, and otherwise the lapse date decides `Active` vs `Lapsed`. Treat `status` as the authoritative open/closed signal, with the `amendments` array and `lapse_date` as supporting evidence. ```python theme={null} def is_effective(filing: dict) -> bool: return filing.get("status") == "Active" ``` Terminated and lapsed liens should not be counted as active obligations, but they do provide useful historical context: prior borrowing behavior, refinancing patterns, or resolved tax issues. *** ## 3. Classifying Filings by Type Use the `filing_type` field for all classification logic. It is normalized by Baselayer across all states and is consistent regardless of how each state's registry labels filings internally. ### Identifying New Debt Events: UCC-1 vs UCC-3 **Only initial financing statements represent new debt events.** Amendment filings (continuations, assignments, terminations) update or maintain an existing filing. They do not represent additional borrowing. When assessing leverage or debt accumulation, count only effective filings where `filing_type` starts with `consensual.` - each one represents a distinct secured lending relationship. The `amendments` array on each filing records its history (continuations, assignments, terminations), but you don't need to parse it to determine whether the filing is active. The `status` field on the filing itself is authoritative — it already incorporates amendment effects — with `amendments` and `lapse_date` as supporting evidence. ### Identifying Tax Liens Any filing where `filing_type` starts with `tax.` is a government-originated tax lien. ```python theme={null} def is_tax_lien(filing: dict) -> bool: return filing.get("filing_type", "").startswith("tax.") ``` **Tax lien subtypes and their risk weight:** | `filing_type` | Typical signal | | - | - | | `tax.federal_irs` | Highest severity - unpaid federal taxes, strong distress signal | | `tax.federal_estate` | Estate context; verify whether the business is the relevant entity | | `tax.state_income_sales_franchise` | Significant - unpaid state income or sales tax | | `tax.state_unemployment` | Moderate - unpaid payroll taxes; investigate if active | | `tax.local_property_tax` | Moderate - unpaid property taxes on business premises | | `tax.federal_other` / `tax.state_other` / `tax.local_other` / `tax.other` | Investigate to determine severity | ### Identifying Judicial Liens Any filing where `filing_type` starts with `judicial.` results from a court proceeding. These indicate a legal dispute has been resolved against the business and an unpaid obligation exists. ```python theme={null} def is_judicial_lien(filing: dict) -> bool: return filing.get("filing_type", "").startswith("judicial.") ``` ### Reading the Amendment History The `amendments` array provides the full lifecycle of a lien filing. Key amendment `filing_type` values to evaluate: | Amendment `filing_type` | What it means | | - | - | | `termination` | Lien formally ended - debt satisfied or security released | | `continuation` | Lien extended before expiry - secured party still active | | `assignment` | Security interest transferred to a new lender - identify the current holder | | `debtor_amendment.add` / `remove` / `update` | Debtor information changed - relevant for identity continuity | | `secured_party_amendment.add` / `remove` / `update` | Lender details changed - may follow a loan sale or assignment | | `collateral_amendment.add` / `remove` / `update` | Collateral scope changed - may indicate restructuring or partial asset release | | `informational` | No change to lien status or terms | | `unspecified` | Amendment type not classified by the state registry | A filing with a recent `continuation` confirms the secured party is actively maintaining the lien. A `termination` resolves the lien. ### Reading Collateral Statements The `collateral_statements` array describes the assets pledged under the lien. Use this to assess the scope of existing encumbrances on the business's assets: * **"All assets" or "All personal property"**: blanket lien; all business assets are pledged. This is the most restrictive and typically indicates a senior secured lender. * **Specific asset categories** (equipment, inventory, accounts receivable): narrower lien; other assets remain unencumbered. * **Specific items** (e.g. a particular vehicle or piece of equipment): minimal encumbrance on the broader business. Collateral scope is particularly relevant in ABL, factoring, and working capital products where available collateral directly affects deal structure. *** ## 4. Identifying the Senior Secured Lender Understanding who holds the primary security interest is especially valuable for asset-backed lending, factoring, and working capital products. **To identify the senior secured lender:** 1. Filter to effective active filings where `filing_type` starts with `consensual.` 2. Sort by `filing_date` ascending 3. Look for the earliest filing with a broad collateral description ("all assets", "all personal property") in `collateral_statements` 4. Check the `amendments` array for a recent `continuation` - this confirms the lien remains perfected **Why this matters:** * A broad "all assets" lien held by an institutional lender typically indicates a senior secured position * New financing may be subordinate to this lender - paid only after the senior lender in a default * Equipment-specific or inventory-specific liens may be junior or isolated to particular asset categories * An `assignment` amendment signals the senior lender may have changed - use the amendment record to identify the current holder **Credit stacking signals:** Multiple active consensual filings from different secured parties suggest the business has layered financing. This is common in some industries but warrants review, particularly when combined with recent filings or tax liens. *** ## 5. Using `additional_search_entities` for Officers and Guarantors The `BusinessSearch` request variant supports `additional_search_entities`, which allows you to search for linked individuals or alternate business names alongside the primary business in a single API call. ```json theme={null} { "business_search_id": "1504f313-9721-4006-b813-82faf6c6f02d", "additional_search_entities": [ { "name": "Jane Smith", "type": "Person", "search_states": ["DE"] }, { "name": "Smith Holdings LLC", "type": "Business", "search_states": ["DE", "NY"] } ] } ``` Each filing in the response includes `search_entity_name` and `search_entity_type`, so you can immediately identify which entity each filing matched — the primary business, or one of the additional entities. **When to use `additional_search_entities`:** * **Sole proprietors and single-member LLCs**: the business and owner are financially intertwined; personal liens are directly relevant * **Personal guarantors**: when an officer or owner is providing a personal guarantee, their lien profile is material to the credit decision * **Beneficial owners**: for higher-risk or larger-ticket products, lien coverage of the beneficial ownership chain adds signal * **Alternative or sister entities**: when a business operates under multiple arms, additional entity searches improve coverage **State selection for individuals:** `search_states` is required for each individual in `additional_search_entities`. The domestic state of the business is a reasonable starting point for principals who likely reside or operate there. For guarantors in other states, use the state associated with their personal or business address. > For a full walkthrough of individual lien searches, see [Lien Search for Individuals](/docs/lien-search-for-individuals). *** ## 6. Risk Classification Framework Lien signals vary widely in severity. The framework below provides a starting point - adjust thresholds to match your product, ticket size, and risk appetite. ### High-Risk Signals (Escalate to Review) These patterns reliably correlate with financial distress, heavy leverage, or unresolved obligations. They should surface to underwriting regardless of ticket size or automation strategy. | Signal | Condition | | - | - | | Active tax lien | Effective filing where `filing_type.startswith("tax.")` | | Active judicial lien | Effective filing where `filing_type.startswith("judicial.")` | | New consensual filing within 90 days | Effective filing where `filing_type.startswith("consensual.")` and `filing_date` within 90 days | | 3+ active consensual filings within 18 months | Three or more effective consensual filings with `filing_date` within 18 months | ```python theme={null} from datetime import date, timedelta def classify_lien_risk(filings: list) -> dict: today = date.today() high_risk_reasons = [] recent_consensual = [] for filing in filings: if not is_effective(filing): continue filing_type = filing.get("filing_type", "") filing_date = date.fromisoformat(filing.get("filing_date", "1900-01-01")) if filing_type.startswith("tax."): high_risk_reasons.append( f"Active tax lien: {filing_type} (filed {filing_date})" ) elif filing_type.startswith("judicial."): high_risk_reasons.append( f"Active judgment lien: {filing_type} (filed {filing_date})" ) if filing_type.startswith("consensual."): if filing_date >= today - timedelta(days=90): high_risk_reasons.append( f"New consensual lien within 90 days (filed {filing_date})" ) if filing_date >= today - timedelta(days=548): # ~18 months recent_consensual.append(filing) if len(recent_consensual) >= 3: high_risk_reasons.append( f"{len(recent_consensual)} active consensual filings in last 18 months" ) return { "risk_level": "high" if high_risk_reasons else "standard", "reasons": high_risk_reasons } ``` ### Contextual Lien Activity (Background Signal) Most businesses have zero to a few liens that do not indicate distress. These should be included in the underwriting file but should not trigger escalation on their own: * Terminated or lapsed liens * Single active consensual filing without other risk signals * Filings older than 18–24 months with no recent activity * Equipment-specific or industry-standard secured financing with narrow collateral scope * Long-standing broad liens that have been continued without modification ### Calibrating by Ticket Size and Product Type **Small-ticket or high-velocity products:** Reserve escalation for high-risk signals only. Contextual lien activity should appear in the decisioning record as a non-blocking flag ("Liens present") but should not route to manual review by default. If a case is already under review for other reasons, include the full lien context for the underwriter. **Large-ticket or long-duration products:** Include all lien data in the underwriting file. Clearly highlight high-risk signals for deeper scrutiny — collateral scope review, secured party seniority, amendment history. Treat other liens as standard background context. *** ## 7. When to Retrieve Lien Documents Documents are available at no additional cost for most filings. Retrieve them selectively based on the scenario. **Situations that warrant document retrieval:** * Validating priority in ABL, factoring, or working capital underwriting * Reviewing collateral statements when the scope of pledged assets is material to the deal * Investigating a suspicious amendment pattern (e.g. collateral was removed or the secured party changed unexpectedly) * Confirming the terms of a termination * Large-ticket deals where the underwriter needs the complete lien record **How to retrieve:** Check `document_filename != null` on the filing object, then call: ``` GET /lien_searches/{liens_search_request_id}/filings/{filing_id} ``` Not all states provide digital documents, and historical coverage varies (particularly for filings before 2010). Where documents are unavailable, the structured filing data remains authoritative for decisioning purposes. *** ## 8. Where to Go Next * **[Lien Search: API Quickstart](/docs/lien-search-api-quickstart)** — Step-by-step implementation with full code examples * **[Lien Search for Individuals](/docs/lien-search-for-individuals)** — Searching sole proprietors, guarantors, and beneficial owners * **[Lien Search: Basics](/docs/lien-search-basics)** — Full response field reference including the `filing_type` enum * **[Liens, Judgments, and Public Records](/docs/liens-judgments-and-public-records)** — Background on lien types, UCC structure, and terminology # Liens, Judgments, and Public Records Source: https://docs.baselayer.com/docs/liens-judgments-and-public-records Learn how liens and judgments work, and what they reveal about a business's debt and financial health. ## Why Lien Searches Matter Liens represent legal claims against a business's assets, filed by lenders, tax authorities, or other creditors. Understanding a business's lien profile is essential for assessing financial health, creditworthiness, and available collateral. Lien searches help answer critical questions: * *Is the business already using collateral to secure debt?* * *Are there outstanding tax obligations indicating financial distress?* * *How much debt has the business taken on, and when?* * *Are other lenders already perfected before you?* * *What collateral is available for new lending?* Lien data reveals debt levels, identifies priority of claims (who gets paid first if the business fails), and flags financial distress through tax liens or excessive secured borrowing. These insights inform credit decisioning, fraud screening, and risk assessment. *** ### UCC Liens (Uniform Commercial Code Filings) Legal claims against a business's assets used as collateral for secured loans. UCC filings are recorded with the Secretary of State when a lender provides secured financing to a business. **Key characteristics:** * Create security interests in business assets (inventory, equipment, accounts receivable, or all assets) * Filed in the business's domestic state (state of incorporation/formation) * Public record accessible through Secretary of State searches * Establish lender priority in case of default or bankruptcy **Why UCC liens matter:** * Indicate existing debt obligations and leverage * Show which assets are already pledged as collateral * Reveal credit relationships and financing patterns * Help assess available collateral for new lending *** ### UCC Filing Types #### UCC-1 (Initial Financing Statement) A UCC-1 creates a new secured credit relationship and represents a lender taking a security interest in business assets. **Key points:** * **Represents new debt**: only UCC-1 filings should be counted as new debt events * Includes: debtor information, secured party details, collateral description * Effective for 5 years (longer for manufactured-home and public-finance filings) unless continued * Most important filing type for assessing debt levels **What it indicates:** * Business took on new secured financing * Specific assets or "all assets" pledged as collateral * Identity of lender (secured party) - except if "masked" *** #### UCC-3 (Amendments, Continuations, Assignments, Terminations) A UCC-3 filing updates, maintains, or ends an existing UCC-1 filing. It does not represent new debt. **UCC-3 subtypes:** **Continuation:** * Extends the effectiveness of an existing UCC-1 beyond its lapse date * Filed within 6 months before lapse date * Extends lien for another 5 years * Does not indicate new borrowing **Amendment:** * Updates information on existing UCC-1 (collateral description, debtor/secured party details) * Corrects errors or reflects changes in loan terms * Does not represent additional debt **Assignment:** * Transfers the security interest from one secured party to another * Common when loans are sold or refinanced * Lien continues with new secured party **Termination:** * Formally ends the security interest * Filed by secured party when debt is paid off * Indicates loan has been satisfied **Critical note:** UCC-3 filings should not be counted as additional liens when assessing leverage, they modify existing UCC-1 filings. *** #### UCC-5 (Information Statement) A UCC-5 is a correction or information statement filed by the **debtor** (not the secured party) to address issues with existing UCC filings. **Purpose:** * **Correct inaccurate information**: fix errors in name, address, or collateral descriptions * **Dispute unauthorized filings**: indicate a UCC-1 was filed without proper authorization * **Provide clarifying information**: add context about disputed or problematic filings **Key characteristics:** * Filed by the debtor, not the secured party (unique among UCC types) * Does not create, amend, or terminate a security interest * Informational only; doesn't directly change the legal status of the original filing * Relatively uncommon compared to UCC-1 and UCC-3 **Why UCC-5 matters for verification:** * May indicate disputes between lender and borrower * Could signal unauthorized or fraudulent filings * Shows active disagreement about debt, collateral, or lien validity * Provides important context when lien information appears questionable **Risk implications:** * UCC-5 disputing authorization suggests potential fraud or coercion * Multiple UCC-5 filings may indicate borrower-lender conflict * Should trigger investigation into the underlying dispute * Does not change the lien's effectiveness, but flags it for review *** ### Lien Status #### Active Lien A lien that is currently effective and enforceable according to the state's registry. * Within its effective period (not lapsed) * Not formally terminated * Secured party maintains perfected security interest * Must be considered when assessing debt and collateral availability *** #### Terminated / Released Lien A lien formally ended by the secured party through filing a UCC-3 Termination. * Indicates debt has been satisfied or security interest released * No longer enforceable * Should not be counted as active debt * Historical record of past financing relationships *** #### Lapsed Lien A lien that expired because its effective period ended without a continuation filing. * UCC-1 filings typically lapse after 5 years from filing date * Secured party failed to file continuation before lapse date * No longer perfected or enforceable * May indicate abandoned debt, refinanced loan, or administrative oversight Lapsed liens suggest the debt may have been paid off, refinanced, or the lender chose not to maintain perfection. They should not be counted as active obligations but may provide historical context. *** ### Tax Liens Government claims filed for unpaid taxes by federal, state, county, or municipal tax authorities. **Types:** * **Federal tax liens**: IRS filings for unpaid federal taxes * **State tax liens**: state revenue department filings * **County/municipal tax liens**: local government tax claims **Why tax liens are critical:** * **Major red flag for financial distress** - business cannot pay tax obligations * Higher priority than most other creditors in bankruptcy * Indicates cash flow problems or business mismanagement * May signal broader financial instability **Risk assessment:** * Single tax lien: warrants investigation (temporary cash issue vs. pattern) * Multiple tax liens: severe financial distress signal * Recent tax liens: active financial problems * Released tax liens: past issues, assess if resolved *** ### Judgment Liens Court-ordered claims resulting from lawsuits where the business lost and owes money. **Characteristics:** * Filed with state or county recorders after court judgment * Attach to business assets to secure payment * Result from unpaid debts, breach of contract, or other legal liability * Can be substantial and affect creditworthiness **Why judgment liens matter:** * Indicate unpaid obligations and legal disputes * Affect available collateral and debt priority * May represent significant unexpected liabilities *** ### Key Terminology #### Domestic State The state where the business is incorporated or formed. **Why it matters:** * Under UCC rules, liens are perfected in the domestic state * Most important state to search for UCC filings * Foreign-qualified states rarely contain UCC filings unless collateral is physically located there **Example:** A Delaware LLC operating in California must file UCC liens in Delaware, not California (unless specific collateral is located in California). **Exception:** In specific situations, liens may be filed in states other than the domestic state. Most commonly when physical collateral (equipment, inventory, fixtures) is located in that state, or for real estate-related collateral. However, the domestic state remains the primary and most important jurisdiction for lien searches. *** #### Foreign State Registration Registration of a business in a state other than its domestic state, often required for operating, hiring employees, or tax purposes. * Allows business to legally operate in that state * Not used for UCC filings unless collateral is located there * Common for businesses operating across multiple states *** #### Secured Party The creditor or lender holding the security interest created by the lien filing. * Entity with legal claim to collateral * Has priority rights to assets in case of default * Can repossess or foreclose on collateral if loan not repaid * Listed on UCC-1 filing *** #### Debtor The business or individual whose assets are subject to the security interest. * Borrower in the secured lending relationship * Assets are pledged as collateral * Listed on UCC-1 filing * Must match business entity name exactly for valid perfection *** #### Collateral The textual description of assets covered by the lien filing. **Common collateral descriptions:** * **"All-asset"**: blanket lien covering everything the business owns * **"Inventory and equipment"**: specific asset categories * **"Accounts receivable"**: money owed to the business by customers * **"Specific equipment"**: detailed description of particular assets **Why collateral matters:** * Determines what assets are pledged * Affects available collateral for new lending * Broad descriptions ("all asset") limit financing options more than specific collateral *** #### Senior Secured Lender The creditor with first priority claim on business assets, typically the earliest active UCC-1 with broad collateral description ("all asset"). **Why identifying the senior lender matters:** * Determines debt priority and repayment order in default/bankruptcy * New financing may be subordinate (paid after senior lender) * Affects risk assessment and loan terms * Senior position offers most security; junior positions carry more risk **Priority determination:** * First to file typically has priority (with exceptions) * "All asset" UCC-1 usually indicates senior position * Later lenders may be unsecured or subordinated *** #### Lien Masking A practice where lenders file UCC liens using a nominee or service company name instead of their own identity, keeping the secured party confidential. **How it works:** * Lender chooses to mask their identity in the public UCC filing * A service company or nominee name appears as the secured party of record * The actual lender's identity is not disclosed in public Secretary of State records **Why lenders mask liens:** * **Competitive confidentiality**: prevents competitors from learning about lending relationships * **Privacy**: keeps financing arrangements private from public scrutiny **What this means for verification:** Consequentially, the secured party name on the UCC filing may not be the actual lender. This makes it more difficult to identify who holds security interests in a business's assets. **Example:** A lender files a UCC-1 with "TAH Services LLC" listed as the secured party instead of their own name. Public searches show TAH Services LLC, not the actual lending institution. # Litigation and Bankruptcy Records Source: https://docs.baselayer.com/docs/litigation-and-bankruptcy-records Learn how lawsuits and bankruptcy filings work, and what they say about a business's risk. ## Why Litigation and Bankruptcy Searches Matter A business's legal history reveals operational stability, financial health, and potential liability risks. Court records provide evidence of disputes, judgments, and financial distress that may not appear in credit reports or financial statements. Litigation and bankruptcy searches help answer critical questions: * *Is the business involved in ongoing legal disputes?* * *Are there judgments against the business indicating unpaid debts?* * *Has the business filed for bankruptcy or been forced into involuntary bankruptcy?* * *Does the business have a pattern of disputes with customers, vendors, or partners?* * *Are there pending lawsuits that could create significant future liability?* Court records are public and comprehensive, making them essential data sources for assessing business risk before extending credit, entering partnerships, or making investment decisions. *** ### What is a Docket? A **docket** is the official record of all proceedings and filings in a legal case, maintained by the court. **Origin of the term:** The word "docket" originally referred to a small piece of paper or label attached to documents summarizing their contents - similar to a table of contents or index. In legal contexts, it evolved to mean the court's official register or log of all actions taken in a case. **What a docket contains:** * Case header information (case number, parties, attorneys, judge) * Chronological list of all filings (complaints, motions, briefs, evidence) * Court actions and orders (hearings scheduled, rulings issued, judgments entered) * Status updates (pending, dismissed, settled, closed) **Why "docket" matters:** When you "search dockets" or "pull docket records," you're accessing the complete chronological history of a court case - not just the outcome, but every step taken. This provides context that case summaries alone cannot capture. *** ### Litigation Records (Dockets) Court records documenting lawsuits and legal proceedings involving a business as plaintiff, defendant, or other party. **What dockets contain:** * Case information (case number, filing date, court, case type) * Parties involved (plaintiff, defendant, attorneys) * Case status (pending, dismissed, judgment entered, settled, etc.) * Docket entries (chronological record of filings, hearings, motions, orders) * Judgments and outcomes * Damages awarded or settlements (when disclosed) *** ### Court Systems and Jurisdictions Litigation records exist across multiple court systems with different coverage and access methods. #### Federal Courts Cases involving federal law, interstate disputes, bankruptcy, or cases where parties are from different states and amount exceeds \$75,000. **Key federal court types:** * **District Courts**: trial courts for civil and criminal federal cases * **Bankruptcy Courts**: exclusively handle bankruptcy filings * **Court of Appeals**: review decisions from district courts * **Supreme Court**: highest appellate court (limited cases) *** #### State Courts Cases involving state law, smaller disputes, family matters, and most civil litigation. **Key state court types:** * **Superior/Circuit Courts**: general jurisdiction trial courts (most civil and criminal cases) * **Appellate Courts**: review lower court decisions * **Supreme Court**: highest state court (varies by state) *** #### County Courts Local courts handling smaller disputes, traffic matters, and preliminary hearings. **Typical jurisdiction:** * Small claims (disputes under $5,000-$10,000 depending on state) * Landlord-tenant disputes * Local ordinance violations * Preliminary criminal hearings *** ### Litigation as Plaintiff vs. Defendant Understanding whether a business is suing or being sued provides context for risk assessment. #### Business as Plaintiff A business filing lawsuits against others. **Common scenarios:** * Collecting unpaid debts from customers * Enforcing contracts or non-competes * Protecting intellectual property * Pursuing fraud or breach claims **Risk interpretation:** * **Moderate volume**: normal business activity, especially for B2B companies * **High volume**: may indicate collections-heavy business model or poor customer vetting * **Excessive plaintiff activity**: could suggest aggressive litigation strategy or operational problems *** #### Business as Defendant A business being sued by others. **Common scenarios:** * Breach of contract claims * Non-payment of debts to vendors/suppliers * Consumer complaints or product liability * Employment disputes * Regulatory violations **Risk interpretation:** * **High defendant volume**: serious red flag indicating operational, financial, or compliance issues * **Recent judgments against**: unpaid debts, damages owed, liability exposure * **Pattern of similar cases**: systemic problems (e.g., multiple employment disputes, consumer class actions) *** ### Bankruptcy Filings Legal proceedings where a business or individual seeks relief from debts they cannot pay, either through liquidation or reorganization. Bankruptcy filings are court proceedings with significant implications for creditworthiness and business viability. *** #### Chapter 7 Bankruptcy (Liquidation) **Business ceases operations** and liquidates assets to pay creditors. **Key characteristics:** * Business stops operating * Assets sold to pay creditors * Remaining debts discharged (individuals only; a business entity is dissolved, not discharged) * Business entity typically dissolved **Risk assessment:** * **Active Chapter 7**: business is shutting down, automatic decline for new credit * **Discharged Chapter 7**: business no longer exists or individual discharged debts * For individuals/sole proprietors: recent discharge may indicate past financial distress but debts eliminated *** #### Chapter 11 Bankruptcy (Reorganization) **Business continues operating** while restructuring debt under court supervision and creditor committee oversight. **Key characteristics:** * Business remains operational during bankruptcy * Proposes reorganization plan to reduce/restructure debt * Must be approved by creditors and court * Can emerge successfully with reduced debt burden * May take months to years to complete **Risk assessment:** * **Active Chapter 11**: extreme caution, business under financial distress and court supervision * **Recent emergence from Chapter 11**: business restructured but still carries significant risk * **Failed Chapter 11 → Chapter 7**: business could not reorganize, now liquidating Under certain situations Chapter 11 might be less concerning: a strategic bankruptcy (e.g., asbestos liability management), or a large corporation with one troubled division. *** #### Chapter 13 Bankruptcy (Individual Debt Adjustment) Debt repayment plan for individuals, including sole proprietors, with regular income. **Key characteristics:** * Individual (not business entity) reorganizes personal debts * Proposes 3-5 year repayment plan * Keeps assets while making payments * Common for sole proprietors mixing business and personal finances **Risk assessment:** * **Active Chapter 13**: individual under financial stress, making court-supervised payments * **Recent Chapter 13**: completed repayment, debts satisfied, less concerning than Chapter 7 *** #### Involuntary Bankruptcy Creditors force a business into bankruptcy when the business has not paid debts. Involuntary bankruptcies are usually filed as Chapter 7 to force liquidation. Although less common, creditors can also file an involuntary Chapter 11 to force a reorganization. **Characteristics:** * Filed by creditors, not the business * Requires multiple creditors or single creditor with sufficient claim * Business must be generally not paying debts as they come due * Strong signal of severe financial distress **Risk assessment:** Involuntary bankruptcy is an extremely negative indicator. Creditors are so concerned about non-payment they're forcing bankruptcy proceedings. *** ### Bankruptcy Timeline and Status Understanding bankruptcy status is critical for risk assessment. **Key statuses:** * **Petition filed**: bankruptcy initiated, business under automatic stay (creditors cannot collect) * **Active/Pending**: case ongoing, reorganization plan being negotiated or assets being liquidated * **Plan confirmed**: court approved reorganization plan (Chapter 11/13) * **Discharged**: debts eliminated, case closed * **Dismissed**: case thrown out, debts still owed * **Converted**: changed from one chapter to another (e.g., Chapter 11 → Chapter 7) # Litigation & Bankruptcy Search: API Quickstart Source: https://docs.baselayer.com/docs/litigation-bankruptcy-search-api-quickstart Run a docket search by API, read the results, and pull case details and documents when you need them. This guide walks through the full docket search implementation: submitting a search, retrieving results, and requesting case details and documents when needed. Before starting, review [Litigation & Bankruptcy Search: Basics](/docs/litigation-bankruptcy-search-basics) for an overview of how the product works, and [Litigation and Bankruptcy Records](/docs/litigation-and-bankruptcy-records) for court and case terminology. *** ### Prerequisites * An active Baselayer API key * A completed Business Search: you will need either the `business_id` or `business_search_id` from that result * Familiarity with Baselayer's Business Search API: see [Business Search: API Quickstart](/docs/business-search) if needed *** ### Base URL & Authentication ``` Production: https://api.baselayer.com ``` All requests require an API key in the `X-API-Key` header: ```http theme={null} X-API-Key: YOUR_API_KEY ``` *** ## Step 1: Submit the Docket Search `POST /docket_searches` accepts three request variants depending on what identifiers you have available. *** ### Option A: Search by `business_id` ```bash theme={null} curl --request POST \ --url https://api.baselayer.com/docket_searches \ --header 'X-API-Key: YOUR_API_KEY' \ --header 'Content-Type: application/json' \ --data '{ "business_id": "f7688172-2e5f-400b-9e3f-8d2f93eabd79" }' ``` *** ### Option B: Search by `business_search_id` with `additional_search_entities` Use the `id` from a Business Search response. This variant supports `additional_search_entities` to search linked individuals or alternate business names in the same call. ```bash theme={null} curl --request POST \ --url https://api.baselayer.com/docket_searches \ --header 'X-API-Key: YOUR_API_KEY' \ --header 'Content-Type: application/json' \ --data '{ "business_search_id": "1504f313-9721-4006-b813-82faf6c6f02d", "additional_search_entities": [ { "name": "Jane Smith", "type": "Person" } ] }' ``` For full guidance on `additional_search_entities`, see [Litigation & Bankruptcy Search: Best Practices](/docs/litigation-bankruptcy-search-best-practices) and [Litigation & Bankruptcy Search for Individuals](/docs/litigation-bankruptcy-search-for-individuals). *** ### Option C: Search by `person_id` ```bash theme={null} curl --request POST \ --url https://api.baselayer.com/docket_searches \ --header 'X-API-Key: YOUR_API_KEY' \ --header 'Content-Type: application/json' \ --data '{ "person_id": "f9458925-bea9-4551-9913-31c21658d3d7" }' ``` For a full guide on searching individuals, see [Litigation & Bankruptcy Search for Individuals](/docs/litigation-bankruptcy-search-for-individuals). *** ### Scoping to Litigations, Bankruptcies, or Both By default, Baselayer searches for both litigations and bankruptcy proceedings. Use the `options` field to scope the search if needed: ```bash theme={null} # Litigation only --data '{ "business_id": "...", "options": ["Order.Litigations"] }' # Bankruptcy only --data '{ "business_id": "...", "options": ["Order.Bankruptcy"] }' # Both (default — same as omitting the field) --data '{ "business_id": "...", "options": ["Order.Litigations", "Order.Bankruptcy"] }' ``` Most customers search for both. Scoping to one type is useful when your workflow treats litigation and bankruptcy as separate decisioning steps, or when cost efficiency matters at high volume. *** ### Execution Mode Docket searches support both synchronous and asynchronous execution. Results are returned directly in the response body on synchronous requests. For async execution, consume results via webhooks (`DocketSearch.completed`) or by polling `/docket_searches/{id}`. See [Synchronous & Asynchronous Request Execution](/docs/synchronous-asynchronous-request-execution) for setup guidance. *** ## Step 2: Retrieve Results **Synchronous (default):** Results are returned in the `POST` response body. Skip ahead to **Step 3: Parse the Response**. **Asynchronous:** Consume results via the `DocketSearch.completed` webhook or poll `/docket_searches/{id}` until `state` is `COMPLETED`. See [Synchronous & Asynchronous Request Execution](/docs/synchronous-asynchronous-request-execution) for full guidance. *** ## Step 3: Parse the Response A completed search returns a response containing a `dockets` array. **Example response:** ```json theme={null} { "id": "7b3c1a20-0001-0001-0001-000000000001", "state": "COMPLETED", "business_id": "f7688172-2e5f-400b-9e3f-8d2f93eabd79", "last_updated_at": "2024-06-01T12:00:00Z", "dockets": [ { "id": "d0001111-0001-0001-0001-000000000001", "title": "First National Bank v. Acme Logistics Inc", "docket_number": "2023-CV-004521", "court": "DE Superior Court", "date_filed": "2023-04-10", "case_type": "Contract Dispute", "status": "Open", "normalized_status": "open", "is_bankruptcy": false, "bankruptcy_type": null, "risk_level": "medium", "match_level": "EXACT", "last_synced_at": "2024-05-30T08:00:00Z" }, { "id": "d0001111-0001-0001-0001-000000000002", "title": "In re Acme Logistics Inc", "docket_number": "2022-BK-001234", "court": "US Bankruptcy Court, District of Delaware", "date_filed": "2022-09-01", "case_type": "Chapter 11", "status": "Closed", "normalized_status": "closed", "is_bankruptcy": true, "bankruptcy_type": "Chapter 11", "risk_level": "no_risk", "match_level": "EXACT", "last_synced_at": "2024-05-30T08:00:00Z" } ] } ``` **Key fields to evaluate on each docket:** | Field | What to check | | - | - | | `is_bankruptcy` | Flag immediately if `true` - see Best Practices for threshold guidance | | `risk_level` | `high` cases should always surface to underwriting | | `normalized_status` | `open` cases with recent `date_filed` carry higher risk | | `match_level` | `EXACT` for automated decisioning; `SIMILAR` for deeper due diligence | | `case_type` | Use to classify and filter by your internal must-review list | | `date_filed` | Recency matters - a 2-year-old open case is more material than a 10-year-old closed one | For full guidance on interpreting and acting on results, see [Litigation & Bankruptcy Search: Best Practices](/docs/litigation-bankruptcy-search-best-practices). *** ## Step 4: Request Case Details (Optional) Case details provide the full chronological timeline of a case: all filings, hearings, motions, and court orders. > Most customers do not need case details for standard workflows. Request them selectively for cases that warrant deeper review. **Request details for a specific docket:** ```bash theme={null} curl --request PUT \ --url https://api.baselayer.com/dockets/DOCKET_ID/details \ --header 'X-API-Key: YOUR_API_KEY' ``` This initiates retrieval and emits `DocketDetailsSearch.submitted` and `DocketDetailsSearch.completed` webhook events. **Retrieve the details:** ```bash theme={null} curl --request GET \ --url https://api.baselayer.com/dockets/DOCKET_ID/details \ --header 'X-API-Key: YOUR_API_KEY' ``` The response includes an `updates` array: a chronological record of all case events. Some updates may reference exhibits (court documents) associated with that event. *** ## Step 5: Retrieve Exhibits (Optional) Exhibits are court documents referenced in case details. Availability varies by court and jurisdiction. **Check availability:** Each exhibit in the `updates` array includes an `is_available` field. **Retrieve an available exhibit:** ```bash theme={null} curl --request GET \ --url https://api.baselayer.com/dockets/exhibits/EXHIBIT_ID \ --location \ --header 'X-API-Key: YOUR_API_KEY' \ --output exhibit.pdf ``` If `is_available` is `false`, the document must be ordered explicitly: ```bash theme={null} curl --request PUT \ --url https://api.baselayer.com/dockets/exhibits/EXHIBIT_ID \ --header 'X-API-Key: YOUR_API_KEY' ``` *** ## Full Example: Business Docket Search (Synchronous) ```python theme={null} import requests from datetime import date, timedelta API_KEY = "YOUR_API_KEY" BASE_URL = "https://api.baselayer.com" headers = { "X-API-Key": API_KEY, "Content-Type": "application/json" } # Step 1: Submit search — business + guarantor in one call payload = { "business_search_id": "1504f313-9721-4006-b813-82faf6c6f02d", "additional_search_entities": [ { "name": "Jane Smith", "type": "Person" } ] } response = requests.post(f"{BASE_URL}/docket_searches", json=payload, headers=headers) result = response.json() # Results are only final once the search is COMPLETED if result.get("state") != "COMPLETED": raise RuntimeError(f"Search not finished (state: {result.get('state')}). Wait for DocketSearch.completed, then GET /docket_searches/{result['id']}") high_risk = [] review_later = [] cutoff = str(date.today() - timedelta(days=365 * 5)) # 5-year recency threshold for docket in result.get("dockets", []): # Only process EXACT matches by default if docket.get("match_level") != "EXACT": continue risk_level = docket.get("risk_level") is_bankruptcy = docket.get("is_bankruptcy") date_filed = docket.get("date_filed", "") normalized_status = docket.get("normalized_status") if is_bankruptcy or risk_level == "high": high_risk.append( f"[HIGH] {docket['case_type']} — {docket['court']} " f"(filed {date_filed}, status: {normalized_status})" ) elif risk_level == "medium" and date_filed >= cutoff: review_later.append( f"[MEDIUM] {docket['case_type']} — {docket['court']} " f"(filed {date_filed})" ) if high_risk: print("HIGH RISK — escalate to underwriting:") for r in high_risk: print(f" - {r}") if review_later: print("MEDIUM RISK — include in underwriting file:") for r in review_later: print(f" - {r}") if not high_risk and not review_later: print("No material docket signals detected.") ``` *** ## Where to Go Next * **[Litigation & Bankruptcy Search: Best Practices](/docs/litigation-bankruptcy-search-best-practices)**: Risk classification, match level strategy, pattern recognition, and ticket-size frameworks * **[Litigation & Bankruptcy Search for Individuals](/docs/litigation-bankruptcy-search-for-individuals)**: Searching litigation for sole proprietors, guarantors, and beneficial owners * **[Litigation & Bankruptcy Search: Basics](/docs/litigation-bankruptcy-search-basics)**: Full response field reference # Litigation & Bankruptcy Search: Basics Source: https://docs.baselayer.com/docs/litigation-bankruptcy-search-basics Know what Docket Search covers, how to scope it, and what each field in the result means. This guide covers how Baselayer's Docket Search product works: what it searches, how results are structured, and what each field in the response means. For background on litigation types, bankruptcy proceedings, and court terminology, see [Litigation and Bankruptcy Records](/docs/litigation-and-bankruptcy-records) before reading this guide. For step-by-step API implementation, see [Litigation & Bankruptcy Search: API Quickstart](/docs/litigation-bankruptcy-search-api-quickstart). *** ## 1. What Baselayer Searches A Baselayer docket search retrieves public court records associated with a business or individual across federal, state, and county court systems. **Baselayer returns:** * Litigation (commercial disputes, contract claims, fraud, employment cases, and more) * Bankruptcy proceedings (Chapter 7, Chapter 11, Chapter 13, involuntary bankruptcy) * Regulatory and administrative cases * Trademark, service mark, and patent application history *** ## 2. Execution Mode Docket searches support both synchronous and asynchronous execution, controlled via the `Prefer` header or your API key's default mode. For full details, see [Synchronous & Asynchronous Request Execution](/docs/synchronous-asynchronous-request-execution). Docket-specific webhook events emitted during async execution: | Event | When it fires | | :- | :- | | `DocketSearch.submitted` | Search has been accepted and is in progress | | `DocketSearch.completed` | Results are ready for retrieval | | `DocketSearch.failed` | Search has failed to execute | *** ## 3. Three Ways to Initiate a Docket Search Baselayer supports three request types for `POST /docket_searches`: **Option 1: Using a `business_id`** Use a `business_id` from a previous Baselayer Business Search. **Option 2: Using a `business_search_id` with optional `additional_search_entities`** Use the `id` returned from a Business Search response. Supports `additional_search_entities` to search linked individuals or alternate business names in the same call. This is the recommended approach when officer, guarantor, or beneficial owner coverage is needed alongside the primary business. **Option 3: Using a `person_id`** Use a `person_id` from an existing Baselayer person record. Covered in detail in [Litigation & Bankruptcy Search for Individuals](/docs/litigation-bankruptcy-search-for-individuals). *** ## 4. Scoping the Search: Litigations, Bankruptcies, or Both By default, Baselayer searches for both litigations and bankruptcy proceedings. You can scope the search to one type using the `options` field: | `options` value | What is searched | | - | - | | `["Order.Litigations", "Order.Bankruptcy"]` | Both - this is the default | | `["Order.Litigations"]` | Litigation only | | `["Order.Bankruptcy"]` | Bankruptcy only | Most customers search for both. For full details, see [Litigation & Bankruptcy Search: API Quickstart](/docs/litigation-bankruptcy-search-api-quickstart). *** ## 5. Two Levels of Data: Dockets and Details Baselayer returns docket data in two tiers: **Tier 1: Docket search results (default)** The initial search returns high-level case metadata for every case found: case identifiers, parties, filing date, case type, status, and Baselayer's risk assessment. This is sufficient for the large majority of underwriting and KYB workflows. **Tier 2: Case details (on request)** For specific cases, you can request the full case timeline - a chronological list of all filings, hearings, motions, and court orders. Details are retrieved via a separate PUT/GET flow and are typically only needed for deeper underwriting on large or complex exposures. Details may include references to **exhibits** (court documents), which can be retrieved individually when available. > Most customers do not need case details or exhibits for standard workflows. If you expect to rely on detailed case timelines or documents, contact your Baselayer representative to design the right approach for your use case. *** ## 6. Response Structure A completed docket search returns a response object containing a `dockets` array: one object per legal case found. **Top-level response fields:** | Field | Type | Description | | - | - | - | | `id` | UUID | Unique identifier of the docket search request | | `state` | string | Current state of the request (`PENDING`, `EXECUTING`, `COMPLETED`, `FAILED`, `CANCELLED`) | | `dockets` | array | List of docket objects - see Section 6.1 | | `business_id` | UUID \| null | Business associated with the search, if applicable | | `person_id` | UUID \| null | Person associated with the search, if applicable | | `business_search_id` | UUID \| null | Business search ID used to initiate the request, if applicable | | `last_updated_at` | datetime | When the search result was last updated | *** ### 6.1 Docket Object Fields Each object in the `dockets` array represents a single legal case. | Field | Description | | - | - | | `id` | Unique identifier of the docket - used for requesting details | | `title` | Case title as provided by the court | | `docket_number` | Case number in the court's system | | `court` | Court where the case was filed (e.g., `NY Supreme Court`, `US Bankruptcy Court`) | | `date_filed` | Date the case was originally filed | | `case_type` | Court-provided description of the case nature (e.g., `Contract Dispute`, `Chapter 7`, `Trademark`) | | `status` | Raw case status as returned by the court (varies by jurisdiction) | | `normalized_status` | Baselayer's standardized status - see Section 6.2 | | `is_bankruptcy` | `true` if the case is a bankruptcy proceeding | | `bankruptcy_type` | Bankruptcy chapter, if applicable (e.g., `Chapter 7`, `Chapter 11`) | | `risk_level` | Baselayer's severity assessment - see Section 6.3 | | `match_level` | How closely the case title matched the searched entity name - see Section 6.4 | *** ### 6.2 Normalized Status Raw case status values vary significantly across court systems - the same case state may be labeled `Open`, `Pending`, `Active`, or `In Progress` depending on the jurisdiction. Baselayer provides a `normalized_status` field with two values: | Value | Meaning | | - | - | | `open` | Case is active - treat as potentially ongoing | | `closed` | Case is definitively resolved | `normalized_status` is null when the court status can't be read. **Important:** Baselayer only sets `normalized_status = closed` when it is certain the case is resolved. This conservative approach means some cases may appear as `open` even when resolved in practice. For decisioning purposes, treat `open` as a conservative signal that a case may still be active. *** ### 6.3 Risk Level Baselayer generates a `risk_level` for each docket as an at-a-glance prioritization signal, based on case type, age, status, match level, and court metadata. | Value | Meaning | | - | - | | `high` | Bankruptcy proceedings | | `medium` | Cases filed within the last 5 years that are not closed and do not meet high-risk criteria | | `low` | Cases filed more than 5 years ago, or small claims cases | | `no_risk` | Trademarks, service marks, IP filings, or closed cases | `risk_level` is designed to simplify the complexity of hundreds of case types across thousands of jurisdictions into a single actionable signal. Customers can build their own classification logic on top of it. For guidance on how to use `risk_level` in decisioning workflows, see [Litigation & Bankruptcy Search: Best Practices](/docs/litigation-bankruptcy-search-best-practices). *** ### 6.4 Match Level `match_level` indicates how closely the case title matched the entity name that was searched. Because most US court systems do not provide reliable business identifiers (such as EINs or registration numbers), docket searches rely primarily on name matching. `match_level` is deprecated. Use `match_confidence`, which returns a `confidence` level plus `name_match`, `address_match` and `date_match` signals. | Value | Meaning | | - | - | | `EXACT` | Precise match to the searched entity name - high confidence | | `SIMILAR` | Close but not exact - may indicate a DBA, trade name, name variant, or related entity | The default recommended approach is to rely on `EXACT` matches for automated decisioning, and consider `SIMILAR` matches for deeper due diligence workflows. For the full decision framework, see [Litigation & Bankruptcy Search: Best Practices](/docs/litigation-bankruptcy-search-best-practices). *** ## 7. Where to Go Next * **[Litigation & Bankruptcy Search: API Quickstart](/docs/litigation-bankruptcy-search-api-quickstart)** — Step-by-step implementation with full code examples * **[Litigation & Bankruptcy Search: Best Practices](/docs/litigation-bankruptcy-search-best-practices)** — Risk classification, match level strategy, and decisioning frameworks * **[Litigation & Bankruptcy Search for Individuals](/docs/litigation-bankruptcy-search-for-individuals)** — Searching litigation for sole proprietors, officers, guarantors, and beneficial owners * **[Litigation and Bankruptcy Records](/docs/litigation-and-bankruptcy-records)** — Background on court types, bankruptcy chapters, and key terminology # Litigation & Bankruptcy Search: Best Practices Source: https://docs.baselayer.com/docs/litigation-bankruptcy-search-best-practices Decide which court records matter, rank them by risk, and build them into your approval rules. This guide covers how to get the most out of Baselayer Docket Search: how to prioritize results, classify risk, use match levels correctly, and build litigation signals into automated and manual decisioning workflows. Make sure to review [Litigation & Bankruptcy Search: Basics](/docs/litigation-bankruptcy-search-basics) and complete the [Litigation & Bankruptcy Search: API Quickstart](/docs/litigation-bankruptcy-search-api-quickstart) before reading this guide. *** ## 1. Always Prioritize Bankruptcy Any docket where `is_bankruptcy == true` is a critical event and should be the first thing evaluated in any workflow, regardless of ticket size. A recent bankruptcy indicates insolvency, court-supervised restructuring or liquidation, and restrictions on extending new credit. **Practical threshold:** Flag any bankruptcy where `date_filed` is within the last 5–7 years. Older bankruptcies are still worth surfacing to the underwriter as context, but carry lower immediate risk. **Bankruptcy types and their risk weight:** | Type | Signal | | - | - | | Chapter 7 (Liquidation) | Business ceased operations and liquidated assets - highest severity | | Chapter 11 (Reorganization) | Business restructuring under court supervision - active cases are high risk; emerged cases require review | | Chapter 13 (Individual) | Personal debt repayment plan - relevant for sole proprietors and guarantors | *** ## 2. Using `risk_level` for Prioritization Baselayer's `risk_level` field combines case type, age, status, match level, and court metadata into a single signal. It is the recommended starting point for building decisioning logic. **How to use `risk_level`:** * `high` → always escalate to manual review, regardless of ticket size or automation level. This category captures bankruptcy proceedings. * `medium` → include in the underwriting file; escalate only when aligned with your internal must-review case types, or when other risk signals are present in the file. * `low` and `no_risk` → informational. Include for completeness in large-ticket underwriting; not actionable on their own. Closed cases (`normalized_status = closed`) are categorized as `no_risk` by Baselayer, regardless of original case type. They can still provide useful historical context. **Building on top of `risk_level`:** `risk_level` is a strong default that works out of the box. For more tailored workflows, customers can layer their own case type classifications on top. For example, always routing `case_type` values like `Fraud` or `Regulatory Violation` to review regardless of Baselayer's categorization. *** ## 3. Understanding and Applying `match_level` Because most US court systems do not provide reliable business identifiers (EINs, registration numbers), docket searches rely on name matching. `match_level` tells you how closely a docket's case title matched the entity name you searched. `match_level` is deprecated. Use `match_confidence`, which returns a `confidence` level plus `name_match`, `address_match` and `date_match` signals. **Default approach: use EXACT matches only** `EXACT` matches provide high confidence that a case refers to an entity with the exact same name as the business under review. For automated decisioning and high-velocity workflows, rely only on `EXACT` matches to minimize false positives. **When to include SIMILAR matches** Court records across the US are not standardized, and naming accuracy varies significantly by jurisdiction. A case that genuinely belongs to your subject business may appear as a `SIMILAR` match because the court omitted a legal suffix (LLC, Inc, Corp), abbreviated the name, recorded only part of it, or used a slightly different form than the official registered name. Counsel errors and filing inconsistencies are also common. Including `SIMILAR` matches helps capture these cases and reduces the risk of missing material litigation. The tradeoff is that it may also surface filings from unrelated businesses with similar names - so `SIMILAR` results should be treated with more scrutiny than `EXACT` ones, and are best reviewed manually rather than used in automated decisioning. Including `SIMILAR` results is most appropriate when: * Thoroughness is the priority (large-ticket or long-duration products) * The business operates under multiple names, uses a DBA, or has a common name * Your workflow already routes medium and high-risk cases to manual review **Match level strategy by workflow type:** | Workflow | Recommended approach | | - | - | | Automated, high-velocity, small-ticket | EXACT only | | Semi-automated with manual review for high-risk | EXACT for automated; optionally add SIMILAR | | Full manual underwriting, large-ticket | EXACT + SIMILAR | *** ## 4. Evaluating Case Type and Recency `case_type` is provided directly by the court and is not standardized across jurisdictions. Treat it as a useful signal, not a strict taxonomy. **Build an internal "must-review" list** Define which case types your program always routes to manual review, regardless of `risk_level`. Common entries: * Bankruptcies (always) * Evictions * Class actions * Fraud or misrepresentation * Regulatory or compliance violations * Significant financial disputes **Remove low-relevance case types from operational workflows** Trademarks, service marks, and patent application history (`risk_level = no_risk`) are typically informational and can be filtered out of review queues to reduce noise, while still being retained in the underwriting record. **Recency matters** An open case filed two years ago is materially more concerning than a closed case filed ten years ago. As a practical threshold: * Cases with `date_filed` within the last 5 years and `normalized_status = open` are the most material * Cases older than 5 years, or with `normalized_status = closed`, provide historical context but should not drive escalation on their own *** ## 5. Recognizing Patterns Individual dockets should be evaluated in context. Multiple cases - especially of the same type - often reveal structural issues that a single case would not. **Patterns that warrant closer review:** * **Multiple payment or contract disputes**: repeated non-payment behavior with vendors, customers, or lenders * **Multiple lender cases**: suggests a pattern of defaults or financing disputes * **Recurring employment or contractor claims**: potential HR, compliance, or workforce management issues * **Multiple evictions**: common in commercial real estate but signals payment stress * **Cases across multiple jurisdictions**: indicates the business has legal exposure in more than one operating area A cluster of similar cases filed within a short timeframe is a stronger signal than any individual case alone. *** ## 6. Using `additional_search_entities` for Officers and Guarantors The `BusinessSearch` request variant supports `additional_search_entities`, allowing you to search for officers, guarantors, or alternate business names alongside the primary business in a single API call. ```json theme={null} { "business_search_id": "1504f313-9721-4006-b813-82faf6c6f02d", "additional_search_entities": [ { "name": "Jane Smith", "type": "Person" } ] } ``` **When to include individuals:** * **Personal guarantors**: litigation and bankruptcy history of a guarantor affects the value of the guarantee * **Sole proprietors and single-member LLCs**: personal legal history is directly relevant to business risk * **Beneficial owners**: for higher-risk programs or regulated financial institutions For a full walkthrough of individual docket searches, see [Litigation & Bankruptcy Search for Individuals](/docs/litigation-bankruptcy-search-for-individuals). *** ## 7. Baselayer's Recommendation Match level strategy typically depends on operational priorities: **If minimizing noise is the priority:** * High velocity of operations / automation focus * Small to medium-sized loan tickets * Concerns about false positives **→ use EXACT only** **If thoroughness is the priority:** * Deep due diligence and underwriting * Medium to large-sized loan tickets * "Can't miss anything" mindset **→ use EXACT + SIMILAR** ### Small-ticket or high-velocity products Reserve manual review for the highest-confidence signals only. Recommended approach: * Flag all `risk_level = high` dockets with `match_level = EXACT` for review * Display all other dockets as a non-blocking informational flag ("Dockets present") * Optionally surface `risk_level = medium` for specific case types you always want reviewed ### Large-ticket or long-duration products Full visibility is appropriate given the exposure. Recommended approach: * Include all dockets (EXACT + SIMILAR) in the underwriting file * Highlight all `risk_level = high` cases explicitly for the underwriter * Include medium and low-risk cases as background context * Flag patterns of repeated case types for underwriter attention *** ## 8. When to Request Case Details Case details - the full chronological timeline of filings, hearings, and court orders - are available on request but not needed for most workflows. **Request details when:** * A high-risk case warrants deeper review (e.g., an open bankruptcy or major financial dispute) * The outcome of a specific case is material to the credit decision (e.g., a large judgment) * There are suspicious patterns in the docket metadata that require timeline context * Large-ticket underwriting requires documentary evidence **How to request:** Use `PUT /dockets/{docket_id}/details`, then retrieve via `GET /dockets/{docket_id}/details`. See [Litigation & Bankruptcy Search: API Quickstart](/docs/litigation-bankruptcy-search-api-quickstart) for the full flow. *** ## 9. Where to Go Next * **[Litigation & Bankruptcy Search: API Quickstart](/docs/litigation-bankruptcy-search-api-quickstart)** — Step-by-step implementation with full code examples * **[Litigation & Bankruptcy Search for Individuals](/docs/litigation-bankruptcy-search-for-individuals)** — Searching litigation for sole proprietors, guarantors, and beneficial owners * **[Litigation & Bankruptcy Search: Basics](/docs/litigation-bankruptcy-search-basics)** — Full response field reference * **[Litigation and Bankruptcy Records](/docs/litigation-and-bankruptcy-records)** — Background on court types, bankruptcy chapters, and key terminology # Litigation & Bankruptcy Search for Individuals Source: https://docs.baselayer.com/docs/litigation-bankruptcy-search-for-individuals Check court records for sole proprietors, officers, guarantors and owners when their personal history affects a credit decision. This guide covers how to search litigation and bankruptcy records for individuals in Baselayer: sole proprietors, business officers, personal guarantors, beneficial owners or simply independent individuals. Before reading this guide, review: * [Litigation & Bankruptcy Search: Basics](/docs/litigation-bankruptcy-search-basics): how docket searches work and the complete response field reference * [Litigation & Bankruptcy Search: API Quickstart](/docs/litigation-bankruptcy-search-api-quickstart): implementation patterns for business docket searches * [Litigation & Bankruptcy Search: Best Practices](/docs/litigation-bankruptcy-search-best-practices): risk classification and decisioning frameworks *** ## 1. Why Search Individuals For many business types and lending products, searching only the business entity is insufficient. Individual docket searches are warranted when the personal legal and financial history of an owner, officer, or guarantor is material to the credit decision. **When individual docket searches add signal:** **Sole proprietors and single-member LLCs** There is no meaningful legal separation between the individual and the business. A sole proprietor's personal bankruptcy, judgment, or pattern of litigation is as material as the same signals at the business level. **Personal guarantors** When an officer or owner is guaranteeing a loan personally, their litigation and bankruptcy history directly affects the value of that guarantee. A guarantor with an active Chapter 13 or multiple open judgments significantly changes the risk picture. **Beneficial owners** For higher-risk programs, larger ticket sizes, or regulated financial institutions, extending litigation coverage to beneficial owners provides a more complete view of the legal exposure attached to the people behind the business. **Business officers for closely-held companies** In small businesses where one or two individuals control all assets and operations, officer-level legal history can surface risks not visible at the entity level. *** ## 2. Three Ways to Search Individual Dockets *** ### Option A: `additional_search_entities` in a Business Docket Search The `BusinessSearch` request variant for `POST /docket_searches` supports an `additional_search_entities` array, allowing you to search for individuals alongside the primary business in a single API call. ```bash theme={null} curl --request POST \ --url https://api.baselayer.com/docket_searches \ --header 'X-API-Key: YOUR_API_KEY' \ --header 'Content-Type: application/json' \ --data '{ "business_search_id": "1504f313-9721-4006-b813-82faf6c6f02d", "additional_search_entities": [ { "name": "Jane Smith", "type": "Person" }, { "name": "Robert Johnson", "type": "Person" } ] }' ``` This is the recommended approach when running a business docket search and wanting to include officer or guarantor coverage simultaneously - no separate API calls required. *** ### Option B: Direct Docket Search Using a `person_id` If you already have a `person_id` from a previous Baselayer person record, run a docket search directly against that individual. ```bash theme={null} curl --request POST \ --url https://api.baselayer.com/docket_searches \ --header 'X-API-Key: YOUR_API_KEY' \ --header 'Content-Type: application/json' \ --data '{ "person_id": "f9458925-bea9-4551-9913-31c21658d3d7" }' ``` This approach is useful for standalone individual searches: for example, periodic re-screening of a guarantor, or when the individual is the primary subject of the inquiry. *** ### Option C: Person Search with Litigation Option If you do not yet have a `person_id`, initiate a person search with litigation data included in the response in a single `POST /person_searches` request. This creates a person record and runs the docket search simultaneously. Pass `"options": ["Order.Litigations", "Order.Bankruptcy"]`. Results come back on the person search, not through `DocketSearch` webhooks. *** ## 3. Interpreting Individual Docket Results The response structure and field definitions are identical to business docket searches. The same `risk_level` logic, `normalized_status`, `match_level`, and `is_bankruptcy` fields all apply. Refer to [Litigation & Bankruptcy Search: Basics](/docs/litigation-bankruptcy-search-basics) for the complete field reference. **Key differences when evaluating individual dockets:** **Bankruptcy carries even more weight for individuals** A personal bankruptcy for a sole proprietor is directly equivalent to a business bankruptcy. **Judgment patterns signal personal financial stress** Multiple open judgments against an individual indicate a pattern of unpaid obligations. **`match_level` is especially important for individuals** Common personal names generate more false positives than business names. Applying `EXACT` match level filtering is particularly valuable for individual searches to avoid surfacing unrelated individuals' cases in automated workflows. *** ## 4. Recommended Workflow The following pattern covers the common lending use case — a business with a personal guarantor: ```python theme={null} import requests from datetime import date, timedelta API_KEY = "YOUR_API_KEY" BASE_URL = "https://api.baselayer.com" headers = {"X-API-Key": API_KEY, "Content-Type": "application/json"} # Single call: search business + guarantor simultaneously payload = { "business_search_id": "1504f313-9721-4006-b813-82faf6c6f02d", "additional_search_entities": [ { "name": "Jane Smith", "type": "Person" } ] } response = requests.post(f"{BASE_URL}/docket_searches", json=payload, headers=headers) result = response.json() high_risk = [] cutoff = str(date.today() - timedelta(days=365 * 5)) for docket in result.get("dockets", []): if docket.get("match_level") != "EXACT": continue is_bankruptcy = docket.get("is_bankruptcy") risk_level = docket.get("risk_level") date_filed = docket.get("date_filed", "") if is_bankruptcy or risk_level == "high": entity = docket.get("search_entity_name", "Unknown") entity_type = docket.get("search_entity_type", "") high_risk.append( f"[{entity_type}: {entity}] {docket['case_type']} — " f"{docket['court']} (filed {date_filed})" ) if high_risk: print("HIGH RISK — escalate to underwriting:") for r in high_risk: print(f" - {r}") else: print("No high-risk docket signals detected.") ``` *** ## 5. Where to Go Next * **[Litigation & Bankruptcy Search: Best Practices](/docs/litigation-bankruptcy-search-best-practices)** — Full risk classification framework and `additional_search_entities` guidance * **[Litigation & Bankruptcy Search: API Quickstart](/docs/litigation-bankruptcy-search-api-quickstart)** — Complete implementation guide with all request variants * **[Litigation & Bankruptcy Search: Basics](/docs/litigation-bankruptcy-search-basics)** — Response field reference including `risk_level`, `normalized_status`, and `match_level` * **[Litigation and Bankruptcy Records](/docs/litigation-and-bankruptcy-records)** — Background on court types, bankruptcy chapters, and key terminology # Marketplaces Source: https://docs.baselayer.com/docs/marketplaces How marketplaces use Baselayer to check that vendors are real and credible before they start selling. Marketplaces and platforms face unique verification challenges focused on merchant quality, credibility, and customer trust. Unlike regulated financial institutions, marketplaces prioritize evaluating the legitimacy and reputation of vendors to protect buyers and maintain platform integrity. Vendor verification directly impacts customer confidence and platform reputation. **Key challenges for marketplaces:** * **Credibility assessment**: Verifying vendors have authentic online presence and positive reputation * **Quality control**: Ensuring vendors can deliver on promises with established track records * **Fraud prevention**: Detecting fake businesses or vendors with histories of non-delivery * **Scale and speed**: Onboarding legitimate vendors quickly while filtering out bad actors This guide provides a standard verification workflow optimized for marketplace and platform onboarding teams. *** ## Verification Workflow Overview A typical marketplace business verification flow includes four key stages: 1. **Fraud Screening**: Detect known fraud patterns and consortium intelligence (Baselayer + Partner/s) 2. **Industry & Online Review**: Evaluate business credibility through online presence, reviews, and industry type (Baselayer) 3. **Business Verification**: Validate business identity and registration status (Baselayer) 4. **Individual Verification**: Verify the business owner or principal (Partner/s) Each stage uses a combination of Baselayer endpoints and third-party verification tools to build a complete credibility picture. *** ## Step 1: Fraud Screening **Purpose**: Identify fraudulent vendors early by checking fraud consortium intelligence and device/identity signals. ### Required Tools * **Fraud screening provider** (for device/identity signals and digital intelligence) * **Baselayer**: [Fraud consortium](/docs/the-baselayer-fraud-consortium) ### Baselayer Endpoints ```javascript Text theme={null} POST /searches ``` ### Verification Logic ```javascript Text theme={null} // Submit business search response = POST /searches with business details // Check fraud consortium (BFC entry appears in watchlist_hits for member organizations only) bfc = FIND entry IN response.watchlist_hits WHERE entry.code == "BFC" IF bfc EXISTS AND bfc.count > 0: flag = "RED" reason = "Business or individual in Baselayer Fraud Consortium" // Combine with third-party fraud screening IF fraud_screening_provider.risk_score > threshold: flag = "RED" reason = "Failed fraud screening" ``` > **Note**: Baselayer fraud consortium is only available for member entities who contribute regularly to the fraud database. For non-member organizations, the BFC entry is entirely absent from `watchlist_hits` (it is never returned as a `count: 0` placeholder), and BFC hits never appear in sandbox. ### Context Fraud screening for marketplaces focuses on catching repeat offenders and known bad actors. Unlike payment processors and others, marketplaces typically do not need application velocity tracking since vendor re-applications are less common. *** ## Step 2: Industry & Web Review **Purpose**: Evaluate vendor credibility through online presence, customer reviews, social media activity, and industry assessment. ### Required Tools * **Baselayer**: [Industry prediction](/docs/industry-prediction-user-guide), [website analysis](/docs/website-analysis-basics), [social media](/docs/social-media-profiles) & [reviews](/docs/customer-reviews) ### Baselayer Endpoints ```javascript Text theme={null} POST /web_presence_requests ``` > **Tip**: The web presence request has 20-30 second latency. Consider initiating this request early in your workflow (e.g., during Step 1) to improve vendor experience. ### Verification Logic #### Contact Details Verification ```javascript Text theme={null} // Extract contact match signals from top-level /web_presence_requests response email_match = response.email_match // EXACT, DOMAIN, NO_MATCH, or null email_match_sources = response.email_match_sources phone_number_match = response.phone_number_match // EXACT, AREA_CODE, NO_MATCH, or null phone_number_match_sources = response.phone_number_match_sources business_address_match = response.business_address_match // EXACT, SIMILAR, CITY, STATE, NO_MATCH, or null business_address_match_sources = response.business_address_match_sources business_website_match = response.business_website_match // boolean or null // Define valid sources (excludes INPUT_WEBSITE since that's not independent validation) valid_sources = ["FOUND_WEBSITE", "SOCIAL_PROFILE", "REVIEW"] // Check email validation IF email_match IS NOT NULL: IF email_match == "NO_MATCH": flag = "YELLOW" reason = "Submitted email not found in any online sources" ELSE IF email_match IN ["EXACT", "DOMAIN"]: IF NOT ANY(valid_sources IN email_match_sources): flag = "YELLOW" reason = "Email only found on submitted website, not independently validated" // Check phone number validation IF phone_number_match IS NOT NULL: IF phone_number_match == "NO_MATCH": flag = "YELLOW" reason = "Submitted phone number not found in any online sources" ELSE IF phone_number_match IN ["EXACT", "AREA_CODE"]: IF NOT ANY(valid_sources IN phone_number_match_sources): flag = "YELLOW" reason = "Phone number only found on submitted website, not independently validated" // Check address validation IF business_address_match IS NOT NULL: IF business_address_match == "NO_MATCH": flag = "YELLOW" reason = "Submitted address not found in any online sources" ELSE IF business_address_match IN ["EXACT", "SIMILAR", "CITY", "STATE"]: IF NOT ANY(valid_sources IN business_address_match_sources): flag = "YELLOW" reason = "Address only found on submitted website, not independently validated" // Check website validation IF business_website_match IS NOT NULL: IF business_website_match == FALSE: flag = "YELLOW" reason = "Submitted website not found in online presence" ``` > **Note:** The `*_match` fields return different match levels: email (EXACT/DOMAIN/NO_MATCH), phone (EXACT/AREA_CODE/NO_MATCH), address (EXACT/SIMILAR/CITY/STATE/NO_MATCH), and website (TRUE/FALSE). These fields will be null if no input was submitted. Matches that ONLY appear in INPUT_WEBSITE are flagged as not independently validated, since this only confirms the information appears on the website the applicant provided, not that it's been verified through independent sources like discovered websites, social profiles, or review platforms. #### Industry Screening ```javascript Text theme={null} // Extract industry prediction from /web_presence_requests response industry = response.industry_prediction // Check for high-risk or prohibited industries IF industry.keywords CONTAINS ANY high_risk_keyword: flag = "YELLOW" reason = "High-risk industry keyword detected" // Check high-risk NAICS codes with confidence threshold IF industry.code IN prohibited_naics_list: IF industry.accuracy >= 0.75: flag = "RED" reason = "Prohibited industry with high confidence" ELSE: flag = "YELLOW" reason = "Potential prohibited industry, needs review" ``` > **Note**: High-risk keyword and NAICS code lists are proprietary and available to Baselayer customers upon request. Marketplaces typically focus on product category restrictions (e.g., weapons, illegal substances) rather than financial risk. Contact your account representative for access. #### Website Analysis ```javascript Text theme={null} // Retrieve website analysis from /web_presence_requests response website = response.website_analysis // Check for website presence IF website.url == NULL: IF months_in_business >= 6: flag = "YELLOW" reason = "No website found for established business" ELSE: flag = "PASS" reason = "Acceptable for new business" // Verify email domain matches website IF website.url IS NOT NULL AND website.email_deliverable == TRUE: submitted_email_domain = EXTRACT_DOMAIN(application.email) IF submitted_email_domain != EXTRACT_DOMAIN(website.url): flag = "RED" reason = "Email domain does not match business website" ``` > **Note**: Additional website quality indicators can be found in our [Online Presence: Best Practices](/docs/web-presence-orderables) guide. #### Social Media & Reviews ```javascript Text theme={null} // Retrieve social and review data from /web_presence_requests response social_profiles = response.found_social_profiles // array of objects reviews = response.found_reviews // array of objects // Filter for high-confidence results only high_confidence_profiles = FILTER(social_profiles WHERE confidence == "high") high_confidence_reviews = FILTER(reviews WHERE confidence == "high") // Check review quality FOR EACH review_source IN high_confidence_reviews: // Basic quality threshold IF review_source.volume > 20 AND review_source.rating < 3.0: flag = "RED" reason = "Poor review rating with sufficient review volume" // Check review sentiment summary IF review_source.summary CONTAINS ["scam", "fraud", "non-delivery", "fake", "never received"]: flag = "YELLOW" reason = "Review summary indicates negative fraud/delivery patterns" // Check social media presence for established businesses IF months_in_business >= 12: IF COUNT(high_confidence_profiles) == 0: flag = "YELLOW" reason = "No high-confidence social media presence for established business" ``` > **Note**: Social media and review criteria are highly specific to each marketplace category and vendor base. The logic above provides a starting framework. For extended best practices on online presence evaluation, see [Online Presence: Best Practices](/docs/web-presence-orderables). ### Context Industry and web review is the most critical step for marketplaces. Unlike financial institutions focused on regulatory compliance, marketplaces must evaluate vendor credibility and customer satisfaction. Strong online presence, positive reviews, and authentic social media activity are key indicators of legitimate, quality vendors. *** ## Step 3: Business Verification **Purpose**: Validate business identity and registration status. Note that sole proprietorships are very common for marketplace vendors. ### Required Tools * **Baselayer**: [Business search](/docs/business-search-basics) ### Baselayer Endpoints ```javascript Text theme={null} POST /searches ``` > **Tip**: You can re-use the API response from the `POST /searches` request from Step 1 and avoid extra charges. ### Verification Logic This workflow assumes only registered businesses are approved. If sole proprietorships are also able to use the product, we recommend setting up a separate route as explained in our [Sole Proprietorship Verification](/docs/sole-prop-verification) guide. ```javascript Text theme={null} // Extract match signals from /searches response business_id = response.business.id name_match = response.business_name_match address_match = response.business_address_match tin_matched = response.tin_matched registrations = response.business.registrations watchlist_hits = response.watchlist_hits // Check Baselayer match IF business_id == NULL: flag = "RED" reason = "No business match" // skip all other steps // Check name and address matching name_address_approved = FALSE IF name_match == "EXACT" AND address_match IN ["EXACT", "CITY", "STATE"]: name_address_approved = TRUE ELSE IF name_match == "SIMILAR" AND address_match == "EXACT": name_address_approved = TRUE IF NOT name_address_approved: flag = "RED" reason = "Weak name/address match" // Verify TIN - some marketplaces do not request EIN during onboarding, in that case tin_matched == NULL IF tin_matched == NULL AND tin_submitted: # IRS outage - handle per policy # See Guide: IRS Outage Handling for detailed guidance flag = "YELLOW" reason = "TIN verification unavailable (IRS outage)" ELSE IF tin_matched == FALSE: flag = "RED" reason = "TIN does not match business name" // Check registrations domestic_active = FALSE FOR EACH registration IN registrations: IF registration.registration_type == "domestic" AND registration.status == "active": domestic_active = TRUE domestic_state = registration.state IF NOT domestic_active: flag = "RED" reason = "No active domestic registration" // If business operates in different state, verify foreign registration. // Operating state is usually the one from the application address - you can use operating_state == response.search_address.state IF operating_state != domestic_state: foreign_active = FALSE FOR EACH registration IN registrations: IF registration.registration_type == "foreign" AND registration.state == operating_state AND registration.status == "active": foreign_active = TRUE IF NOT foreign_active: flag = "YELLOW" reason = "No active foreign registration in operating state" // Check watchlists IF ANY entry IN watchlist_hits WHERE entry.count > 0 AND entry.code != "IEO": flag = "RED" reason = "Positive sanctions or watchlist match" ``` > **Note**: Marketplaces commonly onboard sole proprietors who will not have Secretary of State registrations. Route these applications to a sole proprietor verification workflow. See [Sole Proprietorship Verification](/docs/sole-prop-verification) guide for detailed steps. ### Context Business verification for marketplaces is more flexible than for financial institutions. Many legitimate vendors operate as sole proprietors without formal registrations. The verification logic should accommodate both registered entities and sole proprietors while maintaining fraud controls. *** ## Step 4: Individual Verification **Purpose**: Verify the identity and compliance status of the vendor owner or principal. ### Required Tools * **KYC provider** (for identity verification) * **Identity verification provider** (optional, for additional identity checks) ### Context Individual verification ensures the person registering as a vendor is legitimate and can be held accountable. Unlike financial institutions, marketplaces typically do not require AML screening unless explicitly required by their business model (e.g., high-value goods, international transactions). Baselayer works with hundreds of partners and can recommend ideal providers for every product and case. *** ## Implementation Checklist Use this checklist to implement the marketplace verification workflow: **Setup** * [ ] Integrate fraud screening provider * [ ] Integrate Baselayer API * [ ] Integrate KYC/identity verification provider * [ ] Request industry restriction lists from Baselayer representative * [ ] Define minimum review thresholds for your marketplace category * [ ] Set up sole proprietor verification route **Step 1: Fraud** * [ ] Implement `POST /searches` endpoint * [ ] Configure fraud consortium check (if member) * [ ] Integrate third-party fraud screening **Step 2: Industry & Web Review** * [ ] Implement `POST /web_presence_requests` endpoint * [ ] Configure industry screening logic for prohibited categories * [ ] Implement website analysis checks * [ ] Configure social media verification logic * [ ] Implement review quality and pattern checks * [ ] Define review rating thresholds **Step 3: Business** * [ ] Implement standard KYB verification logic * [ ] Set up sole proprietor routing logic **Step 4: Individual** * [ ] Implement identity verification check * [ ] Configure manual review queues * [ ] Set up rejection workflows For questions about implementation or to request industry restriction lists, contact your Baselayer account representative. # MCP Overview Source: https://docs.baselayer.com/docs/mcp Connect Baselayer to Claude, ChatGPT or another AI assistant so it can run business verification for you. Know how sign-in, environments and billing work. The Baselayer MCP server exposes Baselayer's business verification products as tools that an AI assistant can call on your behalf. Connect it once and your assistant can run business searches in the US and abroad, screen names against watchlists, verify TINs, pull lien and litigation records, and analyze a business's online presence, all inside a normal conversation. The server implements the [Model Context Protocol](https://modelcontextprotocol.io) (MCP), an open standard supported by Claude, ChatGPT, Cursor, and most other AI clients. Baselayer hosts it as a remote server, so there is nothing to install or run yourself. | Page | What it covers | | - | - | | [MCP Tools](/docs/mcp-tools) | Tools, parameters, and return values. | | [Claude](/docs/claude) | Connect from Claude web, Desktop, or Code. | | [ChatGPT](/docs/chatgpt) | Connect from ChatGPT web or desktop. | | [How to Use Baselayer with LLMs](/docs/how-to-use-baselayer-with-llms) | Use an AI assistant to build your integration. | | [API Reference](/api-reference) | Matching REST requests and responses. | ## Server details | Setting | Value | | - | - | | **Server URL** | `https://api.baselayer.com/mcp` | | **Transport** | Streamable HTTP | | **Authentication** | OAuth 2.1, API key header, or bearer token | | **Tools** | 19 (see [MCP Tools](/docs/mcp-tools)) | ## How authentication works Connect with your Baselayer login through OAuth, or use an existing customer API key if your MCP client supports custom HTTP headers or bearer tokens. Both methods use the same server URL and expose the same tools. ### OAuth: sign in with Baselayer When you add the server to an OAuth-capable client, the client discovers Baselayer's login page automatically. Sign in with your Baselayer credentials and approve the consent screen: "Search and verify businesses with Baselayer on your behalf". The client receives an OAuth token; no API key is required. Every OAuth tool call runs as you, scoped by the same organization membership and role permissions that govern your access in the [Baselayer Console](https://console.baselayer.com). If you do not have a Baselayer account yet, the login page links to [self-serve sign-up](https://console.baselayer.com/signup). ### API key: connect with custom headers Use an existing Baselayer customer API key with the same access you use for the REST API. No separate MCP key, grant, role, or opt-in is needed. Configure your client's remote MCP connection with: * Server URL: `https://api.baselayer.com/mcp` * Transport: Streamable HTTP * Custom header: `X-API-Key: ` Alternatively, send `Authorization: Bearer `. If your client provides a bearer token field, enter the raw API key without the `Bearer` prefix. Send your chosen header on every request, without OAuth. Requests containing both `X-API-Key` and any `Authorization` header are rejected, as are duplicate credential headers. Tool calls use the key's permissions, grants, and organization/application scope, just as they do on the REST API. Organization keys with explicit grants must include `api`; exports-only and operator keys cannot use MCP. Keys without explicit organization grants retain their existing API access. An invalid or revoked key returns a `401` error; an exports-only or operator key returns `403`. Key authentication errors do not trigger an OAuth login challenge. Revocation and permission changes take effect on the next request or tool call; work already running is not cancelled. ### Claude Managed Agents Use an organization key for the intended sandbox or production application. Register it in an Anthropic vault with this credential `auth` object: ```json theme={null} { "type": "static_bearer", "mcp_server_url": "https://api.baselayer.com/mcp", "token": "" } ``` The `token` field contains the raw key, without the `Bearer` prefix. Declare the server and its matching toolset on the agent: ```json theme={null} { "mcp_servers": [ { "type": "url", "name": "baselayer", "url": "https://api.baselayer.com/mcp" } ], "tools": [ {"type": "mcp_toolset", "mcp_server_name": "baselayer"} ] } ``` Attach the vault through `vault_ids` when creating the session. The vault credential's `mcp_server_url` must match the agent's server URL. If the session's environment restricts network access, allow `api.baselayer.com`. Anthropic supplies the bearer header automatically; no OAuth flow is needed. See Anthropic's [vault documentation][vaults] and [MCP connector setup][mcp]. [vaults]: https://platform.claude.com/docs/en/managed-agents/vaults [mcp]: https://platform.claude.com/docs/en/managed-agents/mcp-connector ## Organizations and applications ### With OAuth By default, tool calls run in your default organization and its production application. This is the right choice for most users. If you belong to several organizations, or want to work against a sandbox application, use a client that supports custom request headers: | Header | Effect | | - | - | | `X-Organization-ID` | Select an organization you are a member of. | | `X-Application-ID` | Select an application within that organization. | | `X-Federation-ID` | Select a federation you belong to. | See [Claude](/docs/claude#add-baselayer-as-a-connector) for connection instructions. ### With an API key Organization keys are bound to their organization and application, including its sandbox or production environment. Request headers cannot switch an organization key to a different organization or application. To change the environment, use a key for the intended application. Federation keys retain their federation grants. To target an application, send `X-External-ID` with the target application's external ID, or send both `X-Organization-ID` and `X-Application-ID`. The target must belong to the key's federation, and the key must allow the target's sandbox or production environment. See [Sandbox vs. production environments](/docs/sandbox-vs-production-environments) for how the two environments differ. ## Billing Tools that start a search or verification order the same paid work as the matching REST endpoint, at the same price, and appear in your usage the same way. Read tools (`get_*`) are free. `search_watchlists` writes one billable order per watchlist requested, so ask for only the watchlists you need. `search_international_business` bills each add-on in `options` separately, and `analyze_online_presence` adds an international surcharge for a business outside the US. Both charges apply when the request is submitted, whether or not it finds a match. ## Support Questions or issues connecting? Email [support@baselayer.com](mailto:support@baselayer.com) or check [status.baselayer.com](https://status.baselayer.com). # MCP Tools Source: https://docs.baselayer.com/docs/mcp-tools Look up what each Baselayer MCP tool does, the fields it accepts, what it returns, and the permission it needs. The Baselayer MCP server exposes 19 tools. Each one calls the same service that backs the matching REST endpoint, so billing, sandbox behavior, permissions, and response shapes are identical across both surfaces. The linked API reference page for each tool documents the full response schema. Most tools that start work have a matching `get_*` tool that reads the result back by `id`. `search_watchlists` returns its results directly and has no `get_*` tool, and `get_business` reads a business found by a search. [Request states](#request-states) explains when your assistant needs to poll. > [!NOTE] > > Field names below are the JSON keys the tool accepts. For most tools they sit inside the tool's `request` argument; `search_watchlists` and the `get_*` tools take them directly. Your assistant fills them in from your conversation, so you rarely type them yourself, but knowing them helps when you want to be specific ("search liens in Texas and Oklahoma only"). ## Business Search The foundation product ([Business Search basics](/docs/business-search-basics)). A business search matches a legal name and address against Secretary of State registrations and returns the verified entity, its officers, and verification signals. ### `search_business` Search for a business by its legal name and legal address. Returns a completed business search with matched registrations, officer details, and verification signals such as TIN match and address match. Synchronous, with a 30 second wait. | Parameter | Type | Required | Description | | - | - | - | - | | `name` | string | Yes | Registered legal name of the business. | | `address` | string | Yes | Registered legal address of the business. | | `officer_names` | string\[] | No | Officer names to include in matching. | | `website` | URL | No | Business website. | | `phone_number` | string | No | Business phone number. | | `email` | string | No | Business email address. | | `alternative_names` | string\[] | No | DBA or trade names. | | `tin` | string | No | Nine digit TIN or EIN. Enables TIN matching. | | `reference_id` | string | No | Your own identifier for this search, up to 128 characters. | Returns a business search: `id`, `state`, the matched business with its registrations and officers, and verification signals. See [Create a business search](/api-reference/search/post-search) in the API reference. Example prompt: "Verify Acme Holdings LLC at 500 Main St, Austin TX 78701. The EIN is 12-3456789." ### `search_business_with_orders` Start a business search that also orders add-on products. At least one option is required. Asynchronous: returns the `PENDING` search immediately, and your assistant polls `get_business_search` until it completes. Accepts every `search_business` parameter plus: | Parameter | Type | Required | Description | | - | - | - | - | | `options` | string\[] | Yes | One or more of `Order.WebsiteAnalysis`, `Order.NaicsPrediction`, `Order.Pep`, `Order.Enhanced`. | `Order.Enhanced` requires both `Order.WebsiteAnalysis` and `Order.NaicsPrediction` in the same request. Example prompt: "Run a full KYB on Acme Holdings LLC at 500 Main St, Austin TX, including website analysis and industry classification." ### `get_business_search` Retrieve a business search by `id`: its state and, once `COMPLETED`, the matched registrations, verification signals, and results of any ordered add-ons. | Parameter | Type | Required | Description | | - | - | - | - | | `id` | UUID | Yes | The search `id` returned by a search tool. | ### `get_business` Retrieve a business's full verified record by `id`: registrations, officers, watchlist hits, industry classification, and risk signals. Use it to expand a business found through `search_business`. | Parameter | Type | Required | Description | | - | - | - | - | | `id` | UUID | Yes | The business `id` from a completed search. | Returns the business record. See [Get a business](/api-reference/business/get-business) in the API reference. ## International Business Search Verify a business registered outside the US directly at its country's corporate registry ([International products](/docs/baselayer-international-products)). For a business registered in a US state or territory, use `search_business` instead. ### `search_international_business` Search for a business at its country's registry by name and address, by registration (filing) number, or both. Returns the matched registration, KYB and Risk scores, and watchlist hits. Synchronous, with a 30 second wait. A search that is still `PENDING` after that (usual with `Order.Enhanced`) is returned as is, and your assistant polls `get_international_business_search` until it completes. | Parameter | Type | Required | Description | | - | - | - | - | | `iso2_country_code` | string | Yes | Two letter code of the country of registration. Must be one of the [supported countries](/docs/baselayer-international-products#supported-countries). | | `name` | string | No | Registered name of the business. Required together with `address` unless `filing_number` is given. | | `address` | string | No | Registered address of the business. Required together with `name` unless `filing_number` is given. | | `filing_number` | string | No | The company's registration number at the registry. Searched first. A `name`, if also given, is the fallback when no company matches the number. Up to 128 characters. | | `officer_names` | string\[] | No | Officer names to include in matching. | | `website` | string | No | Business website. | | `phone_number` | string | No | Business phone number. | | `email` | string | No | Business email address. | | `alternative_names` | string\[] | No | Trade or alternative names. | | `options` | string\[] | No | Add-ons, each billed separately: `Order.Pep` (politically exposed person screening) and `Order.Enhanced` (directors, beneficial owners, shareholders, share capital). | | `reference_id` | string | No | Your own identifier for this search, up to 128 characters. | `Order.Enhanced` is available only in [countries marked ★](/docs/baselayer-international-products#supported-countries). In any other country the tool returns an error saying so, and nothing is ordered. Returns an international business search: `id`, `state`, and once `COMPLETED` the matched registration, KYB and Risk scores, and watchlist hits. See [Post International Search](/api-reference/international/post-international-search) in the API reference. Example prompt: "Verify Northwind Trading Ltd in the UK, company number 01234567, and include beneficial owners." ### `get_international_business_search` Retrieve an international business search by `id`: its state and, once `COMPLETED`, the matched registration and KYB and Risk scores. | Parameter | Type | Required | Description | | - | - | - | - | | `id` | UUID | Yes | The search `id` returned by `search_international_business`. | Returns the international business search. See [Get International Search](/api-reference/international/get-international-search) in the API reference. ## Industry Classification See the [Industry Prediction user guide](/docs/industry-prediction-user-guide). ### `predict_naics` Predict a business's NAICS industry classification from its name, address, and any other context you have. Returns the predicted NAICS code, SIC codes, a risk level, and reasoning. Synchronous, with a 30 second wait. | Parameter | Type | Required | Description | | - | - | - | - | | `name` | string | Yes | Business name. | | `address` | string | Yes | Business address. | | `alternative_names` | string\[] | No | DBA names, up to 10. | | `officer_names` | string\[] | No | Officer names. | | `website` | string | No | Business website. | | `phone_number` | string | No | Business phone number. | | `email` | string | No | Business email address. | | `reference_id` | string | No | Your own identifier for this request. | See [Create a NAICS prediction request](/api-reference/industry-prediction/post-naics-prediction-request) in the API reference for the full response. Example prompt: "What industry is Ray's Famous Pizza at 27 Prince St, New York NY in? Give me the NAICS code." ### `get_naics_prediction` Retrieve a NAICS prediction by `id`: its state and, once `COMPLETED`, the predicted NAICS code, SIC codes, risk level, and reasoning. | Parameter | Type | Required | Description | | - | - | - | - | | `id` | UUID | Yes | The prediction request `id`. | ## Lien Search See [Lien Search basics](/docs/lien-search-basics) for how lien data is sourced. ### `search_liens` Search UCC and tax lien filings for a business or person name in the US states you specify. Returns the filings found. Synchronous, with a 30 second wait. | Parameter | Type | Required | Description | | - | - | - | - | | `name` | string | Yes | Business or person name to search. | | `search_states` | string\[] | Yes | Two letter state codes. All 50 states are supported; DC and territories are not. | Returns a liens search: `id`, `state`, and filings with filing number, type, date, status, and secured and debtor parties. See [Start an ad hoc lien search](/api-reference/lien-search/start-liens-adhoc-search) in the API reference. Example prompt: "Are there any UCC filings or tax liens against Acme Holdings LLC in Texas or Delaware?" ### `get_liens_search` Retrieve a liens search by `id`: its state and, once `COMPLETED`, the lien filings found. | Parameter | Type | Required | Description | | - | - | - | - | | `id` | UUID | Yes | The liens search `id`. | ## Docket Search See [Litigation and Bankruptcy Search basics](/docs/litigation-bankruptcy-search-basics). ### `search_litigations` Search court dockets for civil litigations and bankruptcies involving a business or person name. Searches both by default. Synchronous, with a 30 second wait. | Parameter | Type | Required | Description | | - | - | - | - | | `name` | string | Yes | Business or person name to search. | | `options` | string\[] | No | `Order.Litigations`, `Order.Bankruptcy`, or both. Defaults to both. | Returns a docket search: `id`, `state`, and the dockets found with court, case number, filing date, parties, and case type. See [Start an ad hoc docket search](/api-reference/litigation-&-bankruptcy/start-docket-adhoc-search) in the API reference. Example prompt: "Has Acme Holdings LLC filed for bankruptcy or been party to any lawsuits?" ### `get_litigations_search` Retrieve a docket search by `id`: its state and, once `COMPLETED`, the court dockets found. | Parameter | Type | Required | Description | | - | - | - | - | | `id` | UUID | Yes | The docket search `id`. | ## Employment Verification ### `verify_employment` Verify that a person is employed by a business using public web evidence. Returns whether the person was verified, their role title, department, and the evidence and sources behind the conclusion. Synchronous, with a 30 second wait. | Parameter | Type | Required | Description | | - | - | - | - | | `person_name` | string | Yes | Full name of the person. | | `business_name` | string | Yes | Name of the business to check against. | | `business_address` | string | No | Business address, used to disambiguate similarly named businesses. | | `alternative_names` | string\[] | No | DBA names for the business, up to 10. | See [Start an employee verification request](/api-reference/employee-verification/start-employee-verification-request) in the API reference for the full response. Example prompt: "Confirm that Jane Doe works at Acme Holdings LLC in Austin and tell me her title." ### `get_employment_verification` Retrieve an employment verification by `id`: its state and, once `COMPLETED`, the outcome with evidence and sources. | Parameter | Type | Required | Description | | - | - | - | - | | `id` | UUID | Yes | The verification request `id`. | ## Online Presence See [Online Presence basics](/docs/online-presence-basics) and the [response reference](/docs/online-presence-response-reference). ### `analyze_online_presence` Start an online presence analysis for a business in the US or elsewhere: discovers and analyzes its website and wider online footprint. Asynchronous: returns the `PENDING` request immediately, and your assistant polls `get_online_presence_analysis` until it completes. | Parameter | Type | Required | Description | | - | - | - | - | | `name` | string | Yes | Business name. | | `address` | string | Yes | Business address. | | `options` | string\[] | No | Any of `Order.NaicsPrediction`, `Order.WebsiteAnalysis`, `Order.SocialMedia`, `Order.ReviewSummary`, `Order.ReviewFull`, `Order.DirectoryListing`. Defaults to `Order.NaicsPrediction` and `Order.WebsiteAnalysis`. | | `alternative_names` | string\[] | No | DBA names, up to 10. | | `officer_names` | string\[] | No | Officer names. | | `website` | string | No | Known website, if you have one. | | `phone_number` | string | No | Business phone number. | | `email` | string | No | Business email address. | | `social_profiles` | object\[] | No | Known social media profiles, up to 10. | | `iso2_country_code` | string | No | Country of the business. Omit it (or send `US`) for a US business. US territories such as `PR` and `GU` count as US. Any other code runs the international analysis, which adds an international surcharge. | | `reference_id` | string | No | Your own identifier for this request. | Returns a web presence request. Once `COMPLETED` it carries the discovered website, website analysis, and results for each ordered option. See [Create a web presence request](/api-reference/web-presence/post-web-presence-request) in the API reference. Example prompt: "Find Ray's Famous Pizza's website and social profiles and summarize their online reviews." ### `get_online_presence_analysis` Retrieve an online presence analysis by `id`: its state and, once `COMPLETED`, the discovered website and findings. | Parameter | Type | Required | Description | | - | - | - | - | | `id` | UUID | Yes | The web presence request `id`. | ## Watchlist Screening See [Watchlists and Sanctions basics](/docs/watchlists-sanctions-basics). ### `search_watchlists` Screen a name against government watchlists, grouped by source. Synchronous. One billable order is written per watchlist requested. | Parameter | Type | Required | Description | | - | - | - | - | | `q` | string | Yes | The name to screen. | | `watchlists` | string\[] | Yes | One or more of `OFAC`, `PEP`, `CSL`, `FBI`, `CNS`, `OIG`. | | `similarity_threshold` | number | No | Minimum match similarity from 0 to 1. Defaults to `0.9`. | | `limit` | integer | No | Maximum matches per watchlist, 1 to 50. Defaults to `5`. | | Watchlist | Source | | - | - | | `OFAC` | US Treasury sanctions lists (SDN and consolidated) | | `PEP` | Politically exposed persons | | `CSL` | US Consolidated Screening List (Commerce, State, Treasury) | | `FBI` | FBI most wanted | | `CNS` | Canadian sanctions | | `OIG` | HHS Office of Inspector General exclusions | Returns `results` grouped by watchlist, each with matched entries and a similarity score, plus `total_matches`. See [Search multiple watchlists](/api-reference/watchlists/search-multiple-watchlists) in the API reference. Example prompt: "Screen John Smith against OFAC and PEP lists with a 0.85 similarity threshold." ## TIN Verification ### `verify_tin` Verify a TIN or EIN against IRS records by business name. Synchronous. If the IRS service is unavailable the request stays `PENDING` and is retried later, and your assistant polls `get_tin_verification` for the outcome. | Parameter | Type | Required | Description | | - | - | - | - | | `name` | string | Yes | Business name as registered with the IRS. | | `tin` | string | Yes | Nine digit TIN or EIN. Hyphens are accepted. | | `address` | string | No | Business address. | Returns `tin_matched` (boolean) and `tin_match_type`. See [Submit a TIN verification](/api-reference/tin-verification/submit-tin-verification) in the API reference. Example prompt: "Does EIN 12-3456789 match Acme Holdings LLC?" ### `get_tin_verification` Retrieve a TIN verification by `id`: its state and, once resolved, `tin_matched` and `tin_match_type`. | Parameter | Type | Required | Description | | - | - | - | - | | `id` | UUID | Yes | The TIN verification `id`. | ## Retries and `idempotency_key` Every tool that starts a search or verification also accepts an optional `idempotency_key` string. If a call is retried with the same key and the same arguments, the tool returns the resource the first call created instead of ordering, and billing, the work again. Reusing a key with different arguments, or on a different tool, returns an error that names the existing resource. This works the same way as the REST API's `Idempotency-Key` header. ## Request states Every search and verification carries a `state`: | State | Meaning | | - | - | | `PENDING` | Queued, not yet started. | | `EXECUTING` | Running. | | `COMPLETED` | Finished. Results are populated. | | `FAILED` | Finished with an error. | | `CANCELLED` | Stopped before completion. | `COMPLETED`, `FAILED`, and `CANCELLED` are terminal. Anything else should be polled with the matching `get_*` tool. ## Permissions Tools check the same role permissions as the REST API. If your role lacks a permission the tool returns an error naming it, and an organization admin can grant it in the Console. | Tools | Permission | | - | - | | `search_business`, `search_business_with_orders`, `predict_naics`, `verify_employment`, `analyze_online_presence`, `search_watchlists`, `verify_tin` | `searches:create` | | `get_business_search`, `get_naics_prediction`, `get_employment_verification`, `get_online_presence_analysis`, `get_tin_verification` | `searches:read` | | `get_business` | `businesses:read` | | `search_liens` / `get_liens_search` | `liens.searches:create` / `liens.searches:read` | | `search_litigations` / `get_litigations_search` | `dockets.searches:create` / `dockets.searches:read` | | `search_international_business` / `get_international_business_search` | `international.searches:create` / `international.searches:read` | International Business Search is available on enterprise plans. On other plans the international tools return a permission error. # Welcome to Baselayer! Source: https://docs.baselayer.com/docs/meet-baselayer Know what Baselayer verifies and which part of these docs to start with for your use case. ## What is Baselayer Baselayer helps financial institutions, fintechs, and marketplaces verify business identity and assess risk through real-time data and simple APIs. Whether you're onboarding merchants, underwriting loans, or monitoring existing customers, Baselayer provides the structured, authoritative data you need to make confident decisions. With Know Your Agent, Baselayer also verifies the people and businesses behind AI agents, so the sites those agents visit know who they're dealing with. This documentation will help you understand how business verification works, which products to use, and how to integrate Baselayer into your workflows. *** ## Where to start > [card] [Get Started](/docs/getting-started) > > Make your first API request and set up keys, environments and webhooks. > [card] [Verify Businesses & People](/docs/business-verification-basics) > > Verify businesses and the people behind them, screen watchlists and monitor your portfolio. > [card] [Know Your Agent](/docs/kya-overview) > > Verify people, issue credentials to their agents, and accept agents at your site. > [card] [MCP](/docs/mcp) > > Run Baselayer searches from Claude, ChatGPT or another AI assistant. > [card] [API Reference](/api-reference) > > Every endpoint, with its requests and responses. > [card] [Changelog](/changelog) > > What's new in the API and products. *** ## First Steps > [card] [Business Verification](/docs/business-verification-basics) > > **5 min** · Understanding the basics of the challenge we are solving. > [card] [Authentication](/docs/authentication) > > How to use your API keys correctly. > [card] [Getting Started](/docs/getting-started) > > **3 min** · How to make your first Baselayer API request. > [card] [Know Your Agent](/docs/kya-overview) > > Verify the people behind AI agents and give agents credentials sites can check. > [card] [API Versioning](/docs/api-versioning-compatibility) > > Build for forward compatibility with our API. > [card] [Sandbox vs. Production](/docs/sandbox-vs-production-environments) > > Leverage our sandbox environment during implementation. > [card] [Baselayer with LLMs](/docs/how-to-use-baselayer-with-llms) > > Leverage Claude or ChatGPT to set up quickly your integration. *** > [!NOTE] > > Want your assistant to run Baselayer searches for you, not just write integration code? Connect the Baselayer MCP to Claude or ChatGPT. See the [MCP Overview](/docs/mcp) to get set up. *** ## Baselayer Documentation Structure **Most Baselayer KYB products follow the same core structure** in this documentation. At a minimum, each product’s documentation includes these pages: * **Basics:** what the product does, key concepts, terminology, and when to use it. * **API Quickstart:** the fastest path to a successful first request (auth + a simple example). * **Best Practices:** guidance on real-world usage - recommended workflows, edge cases, rate limits, and common pitfalls. Some products may include **additional pages** when needed to explain product-specific behavior or advanced concepts. For example, Business Search includes a dedicated page for Scores & Ratings to clarify how scoring works and how to interpret results. *** ## Baselayer Products > [card] [Business Search](/docs/business-search) > > Foundation for all workflows - registration, TIN, sanctions, officers, risk scores. > [card] [Online Presence](/docs/online-presence-basics) > > Website discovery, industry prediction, digital legitimacy assessment. > [card] [Portfolio Monitoring](/docs/portfolio-monitoring) > > Continuous monitoring for status changes, new liens, bankruptcies, sanctions. > [card] [Lien Search & Filing](/docs/lien-search-basics) > > Search liens and filings tied to businesses. > [card] [Docket Search](/docs/litigation-bankruptcy-search-basics) > > Identify litigation and bankruptcy history. > [card] [Consumer Solutions](/docs/consumer-checks-basics) > > Verify consumers and support compliant identity workflows. > [card] [International KYB](/docs/baselayer-international-products) > > Registration data for businesses outside the US. > [card] [Business Pre.Fill & Auto.Complete](/docs/business-prefill-basics) > > Let applicants pick their business instead of typing it in. > [card] [Know Your Agent](/docs/kya-overview) > > Verify people, issue credentials to their agents, and accept agents at your site. *** ## Typical Implementation Path Most customers implement Baselayer in phases, starting with foundational products and expanding based on risk appetite and use case requirements. | Phase | Products | When to Implement | Implementation Time | Typical Use Cases | | - | - | - | - | - | | **Phase 1: Foundation** | • Business Search | Start here for all implementations | **1 week** | All business onboarding, vendor verification | | **Phase 2: Online Presence** | • Online Presence | Review the digital footprint of applicants | **1-2 weeks** | Merchant underwriting and sole prop verification | | **Phase 3: Risk Enhancement** | • Lien Search • Docket Search | Add for higher-value relationships or lending | **1-2 weeks** | Business lending, factoring, large merchants | | **Phase 4: Ongoing Management** | • Portfolio Monitoring | Implement for continuous risk tracking and compliance | **2 weeks** | Regulatory compliance (CDD), ongoing risk management | *** ## Use Cases Baselayer supports diverse workflows across financial services and marketplaces: > [card] [Bank Account Opening](/docs/bank-account-opening) > > Streamlined onboarding with faster verification and fewer false declines. > [card] [Payment Processors](/docs/payments) > > Underwrite merchants quickly and monitor risk as they scale. > [card] [Marketplaces](/docs/marketplaces) > > Vet sellers at signup and continuously monitor for new risk. > [card] [Business Lending](/docs/lending) > > Complete workflow to verify identity, credit and fraud risk. > [card] [Factoring & Equipment Financing](/docs/factoring-equipment-financing) > > Rapid credit decisions and collateral review. > [card] [Sole Prop Verification](/docs/sole-prop-verification) > > Verify individuals behind small businesses and reduce fraud exposure. *** ## Need Help? * **Implementation questions**: Contact your Baselayer account manager * **Technical support**: See [FAQs](https://support.baselayer.com) or reach out to [support@baselayer.com](mailto:support@baselayer.com) * **API specifications**: Browse the complete [API Reference](/api-reference) * **Status updates**: Check the [Baselayer Status Page](https://status.baselayer.com) for system health and maintenance windows Ready to start? Head to [Authentication](/docs/authentication) to set up your API keys. # Minting Credentials Source: https://docs.baselayer.com/docs/minting-credentials Give your agent proof of who it acts for at each site it visits. Each credential shares only what that site asks for and works only for that agent. For agent platforms, and businesses running their own agents, that give agents credentials for the people and businesses they verified. Once a person or business is verified, you can mint a credential for their agent. A credential is minted on demand, scoped to one site (its audience) and bound to one agent's public key. A stolen credential is useless without the agent's private key. > [!NOTE] > > **Before you start** > > You need: > > * An `individual_ref` whose verification is `CURRENT`. See [Verifying an Identity](/docs/verifying-an-identity). > * The agent's Ed25519 public key. The agent generates its own key pair. Baselayer only ever sees the public key. > * For a business credential, also a `business_ref` and a `VERIFIED` operator link between the two. See [Who Can Act for a Business](/docs/kya-who-can-act-for-a-business). ## Where the fields come from The site decides what a credential shares: 1. The site's rules name the fields for each step, as a scope. 2. The site answers an agent with `401` and a step-up. Its `requirement` carries the scope's `fields`. 3. You copy those `fields` into `disclosed_fields`. For a business, the person's fields go in `actor_disclosed_fields`. 4. Baselayer mints only those fields, never more. The site refuses a credential that carries more. > [!NOTE] > > To see exactly which fields a mint will carry, [preview it](#preview-a-mint) first. For every field in plain words, see [Fields a scope can list](/docs/kya-asking-for-fields#details-a-credential-can-share). ### Presets Instead of listing fields, a mint with `level: L3` can name a preset: a named set of fields. Use one when it matches the site's scope exactly, since a site refuses extra fields as `scope_violation`. | Preset | What it shares about a person | What it adds on a business mint | | - | - | - | | `consumer_ecommerce` | Full name, email, phone number, street address, city, state and ZIP | The business's legal name | | `age_gated` | Everything in `consumer_ecommerce`, plus birth year | The business's legal name | | `consumer_regulated` | Everything in `consumer_ecommerce`, plus country, date of birth and the last four digits of the SSN | The business's legal name | | `b2b_ecommerce` | Full name, email and phone number of the person acting | Legal name, trade names, website domain, and state and country of incorporation. Business mints only. | | `b2b_regulated` | Everything in `b2b_ecommerce`, plus ZIP | Everything in `b2b_ecommerce`, plus EIN and business structure. Business mints only. | A preset always shares readable values, so it can't be used with `HASH_ONLY`. A mint through the API applies no preset unless it names one. A mint that names no preset and lists no fields shares no details beyond the checks that passed. To get the same list in code, call: ```http theme={null} GET /issuance/credentials/presets ``` See the [API reference](/api-reference/credentials/list-the-presets-a-level-3-mint-can-disclose-by). * The list is the same for everyone and can be cached for an hour. * Each preset lists the exact paths it requests on an individual mint and on a business mint. * `is_individual_default` and `is_business_default` mark the most conservative preset for each case (`consumer_ecommerce` and `b2b_ecommerce`), which the console preselects. ## Mint an individual credential [`POST /issuance/credentials`](/api-reference/credentials/mint-a-credential-for-a-person-or-a-business-operator) with `type: INDIVIDUAL` mints for a verified person acting as themselves. * `level: L2` shares only the customer ID for this site and the checks that passed, with no personal details. The same person gets the same ID at the same site every time, across agents, keys and sessions. At a different site they get a different ID. * `level: L3` also shares the fields the site's scope lists, sent as `disclosed_fields` or a matching `preset`. A path outside the schema is a `422` (`6302`). The `level` you send (`L2` or `L3`) sets what the credential shares. The `verification.level` inside the credential (`2` or `3`) records which checks passed, and Baselayer sets it from those checks, not from your mint. ```bash theme={null} curl -X POST https://api.baselayer.com/issuance/credentials \ -H "X-API-Key: your_api_key_here" \ -H "Idempotency-Key: 6f1c2a9e-4b7d-4e0a-9a51-2d3f8c7b1e40" \ -H "Content-Type: application/json" \ -d '{ "type": "INDIVIDUAL", "individual_ref": "prn_...", "audience": "shop.example", "agent_key": { "kty": "OKP", "crv": "Ed25519", "x": "" }, "level": "L3", "disclosed_fields": ["hashes.email"] }' ``` Send every mint with an `Idempotency-Key` header. A retry with the same key and body within 24 hours returns the first response, marked `Idempotent-Replayed: true`, instead of minting again. Write `audience` as a bare domain (`shop.example`) or an https address with no path (`https://shop.example`). Queries, fragments and ports other than 443 are refused too. The site is matched exactly. `shop.example` and `https://shop.example` are two different audiences, and so are `shop.example` and `www.shop.example`. Each gets its own per-site ID. See every body field in the [API Reference](/api-reference/credentials/mint-a-credential-for-a-person-or-a-business-operator). The response lists the minted credentials in `credentials`, subject first: ```json theme={null} { "environment": "production", "ttl_capped": false, "credentials": [ { "role": "subject", "credential_id": "...", "credential": "eyJ...~", "disclosed_fields": ["hashes.email"], "expires_at": "2026-10-22T19:00:00Z", "active_keys": [ "dob_identity_match", "phone_possession", "ssn_identity_match", "watchlist_clear" ] } ] } ``` * `credential` is the string to hand the agent, ending in `~`. * `credential_id` is the credential's ID, the same as the `jti` inside it. Use it to look up or revoke the credential. * `disclosed_fields` lists what the credential actually carries, after skipping anything not on file. * `ttl_capped` is `true` when the end of the person's verification shortened the lifetime you asked for. * `environment` is the environment the credential was minted in. To set how long a credential works, send `ttl_seconds` with the mint. Without it, a credential works for one hour (`3600`). The maximum is 24 hours (`86400`), and a credential never outlasts the verification behind it. ## Mint a business credential [`POST /issuance/credentials`](/api-reference/credentials/mint-a-credential-for-a-person-or-a-business-operator) with `type: BUSINESS` takes the individual body plus `business_ref`. It requires a `VERIFIED` operator link between the person and the business. Anything else is a `409` (`6300`). Send `level: L3`, the only `level` a business credential takes. `level: L2` is a `422` (`6320`). The response has two entries in `credentials`: * `role: subject` for the business, with the business paths from `disclosed_fields`. * `role: actor` for the person, with the paths from `actor_disclosed_fields`. Each has its own `credential_id`. The agent presents both together. The rest of the body is the same as the individual example. Only these fields change: ```json theme={null} { "type": "BUSINESS", "business_ref": "bus_...", "disclosed_fields": ["hashes.ein"], "actor_disclosed_fields": ["hashes.email"] } ``` ## Preview a mint Send the same body to the preview endpoint: ```http theme={null} POST /issuance/credentials/preview ``` See the [API reference](/api-reference/credentials/preview-what-a-level-3-mint-would-disclose). `agent_key` is optional and unused there. A preview runs the same checks and refusals as a mint, and signs, stores and allocates nothing. The preview returns the same envelope. Each entry in `credentials` shows: * `disclosed`: exactly what the mint would share, each with `path`, `value` and `hashed`. * `missing_paths`: what it would skip because nothing is on file. * `authorization`: on a business preview, the subject entry also has the operator authorization. ## Test credentials ```http theme={null} POST /issuance/credentials/test POST /issuance/credentials/test/preview ``` See the API reference for [test mints](/api-reference/credentials/mint-a-test-credential-for-a-person-or-a-business-operator) and [test previews](/api-reference/credentials/preview-what-a-level-3-test-mint-would-disclose). These two endpoints take the same body and mint (or preview) the same credential, signed by the sandbox issuer and recorded in your sandbox application. They work from a production key too. See [Sandbox and Testing](/docs/kya-sandbox-and-testing#test-credentials-for-production-people). ## Disclosure modes `CLEARTEXT_AND_HASH` (default) shares readable values and any hashes you request. `HASH_ONLY` shares only matching hashes. For how each field maps to its hash, see [Readable values or hashes](/docs/kya-asking-for-fields#disclosure-modes). For how the credential is signed and checked, see the [Credential Format Reference](/docs/credential-format-reference). ## Troubleshooting ### Request problems | Problem | Fix | | - | - | | `422` on a mint with `level: L2` | You sent `disclosed_fields` or `preset`. Remove them, or mint with `level: L3` to share fields. | | `422`, code `6320`: business level not offered | Send `level: L3` for a business credential. | | `422`, code `6302`: field outside the schema | Check the path against [Fields a scope can list](/docs/kya-asking-for-fields#details-a-credential-can-share) or the type metadata at `https://registry.baselayer.com/vct/kya/individual/v1` and `/vct/kya/business/v1`. | | `422`, code `6303`: invalid mint payload | Check the body: for example `preset` together with `disclosed_fields`, `preset` with `HASH_ONLY`, a B2B preset on an individual mint, or `ttl_seconds` over the maximum. | | `422`, code `6304`: audience not valid | Send a bare domain or an https identifier with no path, query, fragment or non-default port. | | `422`, code `6303` on `format`: format not offered | Omit `format` or send `dc+sd-jwt`. | | `422`: `Idempotency-Key` missing | Send an `Idempotency-Key` header with every mint. | | `422`, code `6700`: key already used | You sent this `Idempotency-Key` with a different body. Use a new key for a new mint. | | `409`, code `6701`: request still running | A request with the same `Idempotency-Key` is still being processed. Retry with the same key. | ### Identity or link problems | Problem | Fix | | - | - | | `409`, code `6301`: verification superseded or expired | If the person's verification lapsed, re-verify with [`POST /issuance/identities/individuals/{individual_ref}/reverify`](/api-reference/identities/re-verify-an-identity-from-its-stored-verification), then mint again. | | `409`, code `6301` on a business mint: business evidence over a year old | Re-verifying the person doesn't clear this. Send a new `type: BUSINESS` verification for the pair with [`POST /issuance/identities/verifications`](/api-reference/identities/start-a-direct-verification), then mint again. | | `409`, code `6300`: no verified operator link | Look up the link with [`GET /issuance/identities/businesses/{business_ref}/operator_links/{individual_ref}`](/api-reference/identities/get-one-operator-link-with-its-evidence). Send a business verification with a `tin` the IRS matches so the link verifies on its own, or approve the link. | ### Environment problems | Problem | Fix | | - | - | | `409`, code `6319`: no sandbox application | A test mint is recorded in your sandbox application, and your organization has none. | | `404` | The reference is unknown, belongs to another organization, or is from your other environment. | ## Next steps * [Presenting a Credential](/docs/presenting-and-verifying-a-credential): have the agent show its credential to the site. * [Managing and Revoking Credentials](/docs/kya-managing-and-revoking): find a credential you minted and revoke it. # Agentic Payments: Nevermined Source: https://docs.baselayer.com/docs/nevermined-agentic-access-x402 Let an AI agent buy a Baselayer API key and pay for each business search through Nevermined. > Autonomous agents can purchase a Baselayer API key and run real business searches, paying per request via [Nevermined's](https://nevermined.ai) card delegation. No Baselayer account or human sign-up is required. This page is an agent-facing integration guide. It covers (1) the one-time Nevermined payment setup and (2) the Baselayer endpoints you can buy and call. ## Environment | Setting | Value | | - | - | | Baselayer agentic API base URL | `https://api.baselayer.com` | | Nevermined environment | `https://api.live.nevermined.app`. Nevermined API keys for this network start with `live`. | | Payment scheme | `nvm:card-delegation` (credit or debit card using Nevermined's card delegation) | | Payment plan | Baselayer Startup: \$10.00 per 100 credits ([plan details](https://api.live.nevermined.app/api/v1/protocol/plans/64016128970723825062202451177754352720194073054658343333156009220723821177122)) | | Agent listing | [Baselayer Business Search Agent](https://api.live.nevermined.app/api/v1/protocol/agents/60798063874007247008401413456869371418449913824213519077458224260713519377086) | ## One-time payment setup **All payments go through Nevermined's card delegation flow, built on the x402 protocol. Never call Stripe or any other payment API directly.** A human is needed to create your Nevermined API key and to enroll a card. Everything after that is programmatic and reusable. 1. Get a Nevermined API key. A human signs in once at [https://nevermined.app](https://nevermined.app) and creates an API key for the live environment (starts with `live`). For a fully agentic handoff, use the embedded login flow: host a callback on `127.0.0.1` and send your human to `https://nevermined.app/auth/cli?callback_url=http://127.0.0.1:/callback`. The key is delivered to your callback. Store it and send it as `Authorization: Bearer ` on every Nevermined call. 2. Enroll a card. This is one-time and needs a human. Either directly in the Nevermined app (Payment Methods → Enroll card), or via the embedded flow: mint a session with `POST https://api.live.nevermined.app/api/v1/embed/session` (`{"returnUrl": "http://127.0.0.1:/callback"}`), then send your human to `https://embed.nevermined.app/cards/setup?sessionToken=&returnUrl=...&state=&provider=stripe`. 3. Create a spending delegation (programmatic). `POST https://api.live.nevermined.app/api/v1/delegation/create` with `{"provider": "stripe", "providerPaymentMethodId": "", "spendingLimitCents": 10000, "durationSecs": 604800, "currency": "usd"}`. A delegation authorizes spending within a budget and time window. Reuse it until spent or expired. 4. Mint an x402 access token (programmatic, repeatable). `POST https://api.live.nevermined.app/api/v1/x402/permissions` with `{"accepted": {"scheme": "nvm:card-delegation", "network": "stripe", "planId": ""}, "delegationConfig": {"delegationId": ""}}` → returns `accessToken`. You do **not** call `settle` yourself for Baselayer. Our endpoints verify and settle server-side on every request. Your card is charged per request through your delegation; the settlement receipt comes back base64-encoded in the `payment-response` response header. ## Buying and using Baselayer Both endpoints require the x402 token in the `payment-signature` header. Calling them without it returns **HTTP 402** with a base64 `payment-required` challenge header describing the plan. Decode it to discover everything you need programmatically. ### 1. Purchase an API key: `POST /alpha/api_keys` ```http theme={null} POST https://api.baselayer.com/alpha/api_keys Content-Type: application/json payment-signature: {"name": "my-agent", "default_request_mode": "sync"} ``` Response `201`: ```json theme={null} { "id": "…", "name": "my-agent", "key": "prod_…", "default_request_mode": "sync" } ``` Store `key`. It is a real Baselayer production API key. ### 2. Run a business search: `POST /alpha/searches` Send both your x402 token (pays for the request) and your purchased key (identifies you): ```http theme={null} POST https://api.baselayer.com/alpha/searches Content-Type: application/json payment-signature: X-API-Key: prod_… Prefer: wait=120 {"name": "Howard Concrete Pumping Co Inc", "address": "2327 Hill Church Houston Rd, Canonsburg PA 15317"} ``` Response `201` (synchronous, full results in-line): SOS registrations, officers, watchlist screening, and match verdicts such as `"business_name_match": "EXACT"`. Optional request fields include `officer_names`, `website`, `phone_number`, `email` and `tin`. See the [API Reference](/api-reference) for the complete schema. ### Python example ```python theme={null} import httpx from payments_py import Payments from payments_py.common.types import PaymentOptions from payments_py.x402.types import DelegationConfig, X402TokenOptions PLAN_ID = "64016128970723825062202451177754352720194073054658343333156009220723821177122" AGENT_ID = "60798063874007247008401413456869371418449913824213519077458224260713519377086" BASE = "https://api.baselayer.com" payments = Payments.get_instance( PaymentOptions(nvm_api_key="live:…", environment="live") ) card = payments.delegation.list_payment_methods(provider="stripe")[0] delegation = payments.delegation.create_delegation(...) # step 3 above token = payments.x402.get_x402_access_token( PLAN_ID, AGENT_ID, token_options=X402TokenOptions( scheme="nvm:card-delegation", delegation_config=DelegationConfig(delegation_id=delegation.delegation_id), ), )["accessToken"] key = httpx.post( f"{BASE}/alpha/api_keys", json={"name": "my-agent", "default_request_mode": "sync"}, headers={"payment-signature": token}, ).json()["key"] results = httpx.post( f"{BASE}/alpha/searches", json={"name": "Acme Corp", "address": "1 Main St, Dover, DE"}, headers={"payment-signature": token, "X-API-Key": key, "Prefer": "wait=120"}, timeout=180, ).json() ``` ## Errors | Response | Meaning | | - | - | | `402` with a `payment-required` header | The payment token is missing, invalid or used up. Decode the header, mint a new token and retry. | | `404` under `/alpha` | Only the two endpoints above are served. | You are only charged for successful (2xx) requests. ## Reference * [Nevermined x402 documentation](https://nevermined.ai/docs/) * [Nevermined SDK + API docs index](https://nevermined.ai/docs/llms.txt) * [Baselayer discovery listing on Nevermined](https://api.live.nevermined.app/api/v1/organizations/org-a3c3315e-bd43-4764-8d20-6258cee652b8/agentic-instructions.md) * [Baselayer API reference](/api-reference) # Officer Verification Source: https://docs.baselayer.com/docs/officer-verification Know who runs and owns a business, where officer data comes from, and which officer signals point to risk. ## Why Officer Verification Matters Officer verification confirms who controls and represents a business - essential for fraud prevention, sanctions screening, authorization validation, and risk assessment. Verifying officers helps answer critical questions: * *Are the individuals claiming to represent the business actually associated with it?* * *Do any officers appear on sanctions or watchlist databases?* * *Is the applicant authorized to act on behalf of the business?* * *Are the same individuals associated with multiple businesses (relationship mapping)?* * *Do the officers listed match public records and online presence?* Unlike personal identity verification (where SSNs provide a single source of truth), business officer data is fragmented across state records, websites, and public sources; making verification complex but essential. *** ### Officers vs. Beneficial Owners Understanding the distinction between officers and beneficial owners is critical for proper verification and compliance. #### Officers Individuals formally appointed to manage the business and act on its behalf. **Common officer titles:** * Corporations: President, CEO, CFO, Secretary, Treasurer, Director * LLCs: Manager, Managing Member, Member * Partnerships: General Partner, Managing Partner **Key characteristics:** * Listed in Secretary of State registration records * Have legal authority to bind the business in contracts * May or may not own any equity in the business * Can be nominee directors with no actual ownership or control *** #### Beneficial Owners Individuals who ultimately own or control the business, regardless of formal titles. **FinCEN definition (for BOI reporting):** * Anyone with **25% or more ownership** in the business, OR * Anyone who exercises **substantial control** over the business (regardless of ownership percentage) **Key characteristics:** * May not appear in Secretary of State records * May own through layers of entities (LLCs owning LLCs) * Not always publicly accessible information * Required to be reported to FinCEN (as of 2024) but not publicly available *** ### The Beneficial Ownership Challenge Unlike certain countries, the United States has historically lacked a centralized beneficial ownership database, making it difficult to identify who actually owns and controls businesses. **Current state:** * **No publicly accessible ownership database**: ownership percentages are not tracked by government registries * **Secretary of State records list officers, not owners**: you can see who manages the business but not who owns it * **Officers may be nominees**: registered agents or attorneys listed as officers with no actual control * **Opaque ownership structures**: LLCs owned by other LLCs, trusts, or offshore entities obscure true ownership * **Self-reporting required**: businesses must disclose beneficial owners during onboarding, but verification is challenging *** ### FinCEN Beneficial Ownership Registry The Corporate Transparency Act (effective 2024) created a federal beneficial ownership reporting requirement. **What it requires:** * Most businesses must report beneficial owners (25%+ ownership or substantial control) to FinCEN * Information stored in secure government database * Includes names, dates of birth, addresses, and identification documents **Access limitations:** * **Not publicly available**: database is confidential * **Limited access**: only available to law enforcement, national security agencies, and certain regulatory agencies * **Not available for KYB screening**: cannot be used for routine business verification or credit decisioning **Why this matters:** While FinCEN's registry improves transparency for regulators, it doesn't solve the verification challenge for businesses conducting KYB. Officer verification still relies on publicly available data sources and applicant-provided information. *** ### Officer Verification Data Sources #### Secretary of State Records Most states list registered officers, directors, managers, or members in business registration filings. **What you can verify:** * Names and titles of individuals authorized to act on behalf of the business * Registered agent (statutory agent for service of legal documents) **Limitations:** * Titles vary by business structure and state * May be outdated (businesses don't always update when officers change) * Doesn't indicate ownership percentages * May include nominees rather than actual decision-makers *** #### Online Association Discovery Identifying individuals associated with a business through web presence, press releases, and public content. **Sources:** * Company websites (About Us, Team, Leadership pages) * LinkedIn profiles listing employment at the business * Social media profiles * Industry directories and databases **What this reveals:** * Individuals operationally involved but not listed in official filings * Founders, executives, spokespeople * Actual day-to-day management vs. legal officers * Additional verification that stated officers are genuinely associated *** #### Officer Name Matching When applicants provide officer names during onboarding, verification platforms check if those individuals are genuinely associated with the business. **Why matching matters:** * Confirms the applicant-provided information is accurate * Detects fraudulent applications with fake officers * Validates that the person applying has authority * Identifies discrepancies between stated and actual control *** ### Officer Verification Risk Signals Certain patterns in officer data warrant heightened scrutiny or automatic decline. **High-risk indicators:** * **No officers found**: Secretary of State records are empty or unavailable * **Mismatched officer names**: applicant claims to be an officer but name doesn't match any records * **Nominee officers only**: registered agent or attorney firm listed as sole officer * **Frequent officer turnover**: multiple changes in short period (instability or fraud signal) * **Officers on watchlists**: OFAC, PEP, criminal lists * **Deceased individuals listed as officers**: identity theft or outdated records **Lower-risk indicators:** * Officers match Secretary of State records and online presence * Stable officer history over time * Officers have legitimate online profiles (LinkedIn, company website) * Clear organizational structure with appropriate titles *** ### Best Practices * **Verify officer names against multiple sources**: Secretary of State, website, LinkedIn * **Screen all officers for sanctions and watchlists**: OFAC, PEP, criminal databases * **Request identification from the signing officer**: validate they are who they claim to be * **Consider beneficial owner disclosure**: ask applicants to disclose ownership even if not publicly verifiable * **Monitor for officer changes**: new officers may signal control changes or financial distress > **_Baselayer Officer Verification:_** > **_Baselayer identifies officers and associated individuals through Secretary of State records, online presence analysis, and intelligent name matching. Our platform achieves industry-leading officer verification rates, cross-references officers against sanctions and watchlist databases, and detects patterns across multiple businesses - enabling comprehensive officer verification and authorization validation._** # Online Presence: Basics Source: https://docs.baselayer.com/docs/online-presence-basics See what Online Presence tells you about a business, and pick the right way to request it. ## Online Presence: Overview Baselayer's Online Presence products give you digital-footprint intelligence on any business: whether its website is real and active, what industry it operates in, where it shows up on social media, what customers say about it, and whether it appears across online directories. Traditional KYB confirms that a business is registered with a state agency. Online presence confirms that it actually operates as claimed — a critical second layer for fraud detection, sole proprietor verification, and any applicant where Secretary of State data is thin, missing, or inconclusive. These signals are a cornerstone of modern business verification, particularly for businesses with thin registration data, no credit history, or operating as sole proprietors. *** ### A note on terminology Each sub-product is requested via an `Order.*` option value (e.g., `Order.WebsiteAnalysis`, `Order.SocialMedia`). An **Order** is both the unit of requesting a sub-product and the unit of billing — every Order is priced independently, regardless of which endpoint it was requested through. *** ### What's included | Sub-product | What it tells you | | :- | :- | | [Website Analysis](/docs/website-analysis-basics) | Domain legitimacy, age, SSL validity, email deliverability, and contact discovery | | [Industry Prediction](/docs/industry-prediction-user-guide) | NAICS, MCC, and SIC codes + confidence score + extracted keywords describing core business activity + card network risk indicators | | [Social Media Profiles](/docs/social-media-profiles) | Discovered and verified social media presence across major platforms | | [Customer Reviews](/docs/customer-reviews) | Ratings, volume, and sentiment from Google, Yelp, Trustpilot, and others | | [Directory Listings](/docs/directory-listings) | Business presence across online directories | *** ### Integration paths | Path | What it does | | :- | :- | | `options` on `POST /searches` | Bundles online presence into your KYB call. Returns orderable data alongside the business search result in a single response. | | `POST /web_presence_requests` | Runs online presence independently of KYB. Full access to all sub-products, including social profiles, reviews, and directory listings. | | `POST /naics_prediction_requests` | Runs industry classification only. A lighter, cheaper call when NAICS, MCC, and SIC codes are the only signals you need — useful for analytics, MCC validation, or pre-screening at scale. | *** ### Recommended architecture **Run KYB and online presence as separate calls.** Use `POST /searches` without `options` for business verification. Use `POST /web_presence_requests` for digital intelligence. This separation ensures that online presence data is returned for every applicant, including sole proprietors and businesses that don't match a registration record. When `/searches` returns `state: FAILED`, no orderables fire, even when `options` were included in the request. This is the architecture that gives you 100% coverage across your applicant base. For the full sole proprietor workflow, see [Sole Proprietorship Verification](/docs/sole-prop-verification). *** ### When `/web_presence_requests` is the better default | Scenario | Why standalone fits | | :- | :- | | You approve sole proprietors | Bundled path returns `FAILED` for most sole props (no SoS match means no orderables fire); standalone returns data on every applicant. | | You want signals on every application, including rejected ones | Industry classification and online activity are valuable for analytics and underwriting calibration even when KYB fails. | | You're latency-sensitive on KYB | Running online presence in parallel to (or earlier than) your KYB call keeps Business Search fast. | | You want to pre-screen before KYB | Run digital discovery early in your funnel to gather context before committing to a full KYB search. | | You want fully independent pipelines | Online presence signals never influence KYB ratings; the two run on separate tracks. | See [The Web Presence API](/docs/web-presence-api) for the full decision guide and request/response details. *** ### When bundling into `/searches` makes sense Requesting `options` on `POST /searches` is a reasonable choice when: * Your team wants a single API call and results will primarily be reviewed in the Baselayer console rather than parsed programmatically. * Your applicant base consists almost entirely of registered businesses, and sole proprietors are a negligible edge case. * You're in an early integration phase and want to minimize the number of endpoints in your initial build. **If you use this path**, follow up with `POST /web_presence_requests` or `POST /naics_prediction_requests` for any application that returned no match, to maintain full coverage. *** ### Response shape differs by path > The underlying field structures are identical across all paths: a `website_analysis` object looks the same regardless of how you requested it. What changes is where the data sits in the response, and which `options` values are available on each endpoint. > > To receive social profiles and reviews on `POST /searches`, you must request `Order.Enhanced` (send it together with `Order.WebsiteAnalysis` and `Order.NaicsPrediction`), there is no granular `Order.SocialMedia` or `Order.ReviewSummary` on this endpoint. `Order.Enhanced` covers the full bundle: Website Analysis, Industry Prediction, Social Profiles, and Reviews. > > On `/web_presence_requests`, each sub-product can be requested individually via its own `Order.*` value. > > Once returned, social profiles and reviews live at `business.social_profiles[]` and `business.reviews[]` on `/searches`, and at `found_social_profiles[]` and `found_reviews[]` on `/web_presence_requests`. Directory listings are only available via `/web_presence_requests`. Discovered addresses and officers merge into the business object on `/searches` (via `Order.Enhanced`); on `/web_presence_requests`, they are nested inside each sub-product object. > > [Response Reference →](/docs/online-presence-response-reference) documents all placements side-by-side. *** ### Pricing Every Order is billed independently, as defined in your Master Service Agreement. The integration path you use does not affect cost, each Order is priced the same regardless of whether it was requested via `/searches`, `/web_presence_requests`, or `/naics_prediction_requests`. *** ### Where to go next * [Adding Online Presence to a Business Search](/docs/adding-online-presence-to-a-business-search) - how to use `options` on `/searches` and what to expect in the response * [The Web Presence API](/docs/web-presence-api) - how to run online presence as a standalone product * [Response Reference](/docs/online-presence-response-reference) - every field, every match value, and path-specific response shapes documented in one place * [Online Presence: Best Practices](/docs/web-presence-orderables) - how to use these signals for onboarding decisions # Online Presence: Response Reference Source: https://docs.baselayer.com/docs/online-presence-response-reference Look up what each match value and source means, and where data sits in the response for each path. This reference covers the structural elements shared across all Online Presence products — match values, match sources, how data is organized differently across integration paths, and how to distinguish the various website-related fields in a response. For field-level documentation of individual sub-products, see the product guides: * [Website Analysis](/docs/website-analysis-basics) — `website_analysis`, `input_website_analysis`, `ssl_validity`, `whois_record` * [Industry Prediction](/docs/industry-prediction-user-guide) — `industry_prediction`, `mcc_codes[]`, `sic_codes[]` * [Social Media Profiles](/docs/social-media-profiles) — `found_social_profiles[]`, platform metadata, `social_profiles_match[]` * [Customer Reviews](/docs/customer-reviews) — `found_reviews[]`, `reviews[]`, `metadata` * [Directory Listings](/docs/directory-listings) — `found_directory_listings[]` *** ### Match values These fields appear at the top level of `POST /web_presence_requests` responses. `POST /searches` returns `business_address_match`, `business_website_match` and `business_website_redirect_match` only. They summarize how well the submitted data aligns with what Baselayer independently discovered online. | Field | Possible values | Notes | | :- | :- | :- | | `business_address_match` | `EXACT`, `SIMILAR`, `CITY`, `STATE`, `NO_MATCH` | `SIMILAR` = address fields match but some are missing — most often city or ZIP, common when the source is a Google review. | | `business_website_match` | `true`, `false`, `null` | `null` when no `website` was submitted in the request or no website was found. | | `business_website_redirect_match` | `true`, `false`, `null` | Whether the submitted website redirects to the discovered website. | | `email_match` | `EXACT`, `DOMAIN`, `NO_MATCH`, `null` | `DOMAIN` = different local-part but same domain as discovered email (e.g., `billing@acme.com` vs. `info@acme.com`). `null` when no email was submitted. | | `phone_number_match` | `EXACT`, `AREA_CODE`, `NO_MATCH`, `null` | `AREA_CODE` = same area code but different number. `null` when no phone was submitted. | | `people_match` | `true`, `false`, `null` | Whether any submitted officer names were found and matched online. `null` when no `officer_names` were submitted. | *** ### Match sources Most `*_match` fields have a paired `*_match_sources` array that lists where Baselayer found the matching data. Use these to understand the strength and provenance of each match: a phone number confirmed across `FOUND_WEBSITE`, `REVIEW`, and `DIRECTORY` is a much stronger signal than one sourced from a single location. | Value | Meaning | | :- | :- | | `FOUND_WEBSITE` | Found on the website Baselayer independently discovered | | `INPUT_WEBSITE` | Found on the website submitted in the request | | `SOCIAL_PROFILE` | Found on a social media profile | | `INPUT_SOCIAL_PROFILE` | Found on a social media profile submitted in the request | | `REVIEW` | Found on a review platform (Google, Yelp, etc.) | | `DIRECTORY` | Found on an online directory | Fields with a paired `*_sources` array: `business_address_match_sources`, `email_match_sources`, `phone_number_match_sources`, `people_match_sources`. *** ### Response shape by integration path The underlying field structures are identical across both paths — a `website_analysis` object looks the same regardless of how you requested it. What changes is **where data sits** and **how you access it**. | Data | Via `POST /searches` | Via `POST /web_presence_requests` | | :- | :- | :- | | Match flags | Top level | Top level | | `*_match_sources` arrays | Not available | Top level | | `found_website` | `business.website` | Top level — the URL Baselayer discovered | | `website_analysis` | **Not inline.** Retrieved via `GET /website_analysis_requests/{id}` using the orderable tracking object in `orderables[]` | **Inline** at top level | | `input_website_analysis` | Not a named field. When a `website` is submitted and a different domain is discovered, a second `WebsiteAnalysisRequest` orderable is returned in `orderables[]`. GET each to identify which domain was analyzed. | Top level inline when `website` was submitted; `null` otherwise | | `industry_prediction` | **Not inline.** Retrieved via `GET /naics_prediction_requests/{id}` | **Inline** at top level | | Social profiles | `business.social_profiles[]` (requires `Order.Enhanced`) | `found_social_profiles[]` at top level (requires `Order.SocialMedia`) | | Reviews | `business.reviews[]` (requires `Order.Enhanced`); individual review text not available | `found_reviews[]` at top level (requires `Order.ReviewSummary` or `Order.ReviewFull`) | | Directory listings | Not available | `found_directory_listings[]` at top level (requires `Order.DirectoryListing`) | | `input_social_profiles[]` | Not available | Top level — scraped profiles derived from `social_profiles` input | | `social_profiles_match[]` | Not available | Top level — verification result per submitted profile | | Discovered addresses | Merged into `business.addresses[]` via `Order.Enhanced` | Nested inside `website_analysis.addresses[]`, `found_social_profiles[i]`, `found_reviews[i]`. No unified list. | | Discovered officers/people | Merged into `business.business_officers[]` via `Order.Enhanced` | Nested inside `website_analysis.people[]`. No unified list. | | PEP screening | Top level (via `Order.Pep`) | Not available | | `orderables[]` | Top level — tracking objects for Website Analysis and Industry Prediction | Not applicable | *** ### The website fields, demystified Several fields relate to websites and it is easy to confuse them. Here is what each one is: | Field | Path | What it is | | :- | :- | :- | | `website` | Both | The website URL **you submitted** in the request. `null` if none was provided. | | `found_website` or `business.website` | Both (different name per path) | The website URL **Baselayer independently discovered** for the business. | | `website_analysis.url` | Both (inline on `/web_presence_requests`; via GET on `/searches`) | The URL that was actually analyzed. Equal to `found_website` for the discovered analysis. | | `input_website_analysis.url` | `/web_presence_requests` (inline); `/searches` (second orderable via GET) | The URL analyzed for the **submitted** domain. Only present when `website` was submitted. | | `business_website` | Both | Website found within a social profile, review, or directory listing record — platform-reported, not Baselayer-discovered. | **When do you get two website analyses?** When a `website` is submitted **and** Baselayer discovers a different domain, both are analyzed. On `/web_presence_requests` this produces both `website_analysis` and `input_website_analysis` inline. On `/searches` it produces two `WebsiteAnalysisRequest` entries in `orderables[]` — indistinguishable in the array; call GET on each to identify which domain was analyzed via `website_analysis.url`. *** ### Request states | State | Meaning | | :- | :- | | `PENDING` | The request has been received and is queued for processing. | | `EXECUTING` | The request is still in progress. Poll the status endpoint or wait for the webhook. | | `COMPLETED` | All requested sub-products have finished processing. Results are available. | | `FAILED` | The request could not be completed. On `/searches`, this typically means no registration record matched the submitted inputs, so orderables will be empty even if `options` were provided. | | `CANCELLED` | The request was cancelled before completing. | `COMPLETED`, `FAILED`, and `CANCELLED` are terminal — once a request reaches one of them, its `state` never changes. *** ### Related guides * [Online Presence: Basics](/docs/online-presence-basics) — integration path decision guide * [Online Presence: Best Practices](/docs/web-presence-orderables) — how to use these fields for onboarding decisions * [Website Analysis](/docs/website-analysis-basics) * [Industry Prediction](/docs/industry-prediction-user-guide) * [Social Media Profiles](/docs/social-media-profiles) * [Customer Reviews](/docs/customer-reviews) * [Directory Listings](/docs/directory-listings) # Online Presence & Website Analysis Source: https://docs.baselayer.com/docs/online-presence-website-analysis Learn what a business's website, email, social profiles and reviews reveal about whether it's real. ## Why Online Presence Analysis Matters In business verification, traditional data sources often fall short. Secretary of State registries rarely include industry classifications. Credit bureaus have limited data on new or small businesses. Self-reported information is unreliable. For businesses without formal registrations, limited credit history, or those operating as sole proprietorships, digital presence is often the most reliable indicator of legitimacy and actual operations. A company's website, social media, and online reviews reveal what official records cannot: whether the business is real, active, and consistent with what it claims to be. *** ### Domain Registration The age and registration details of a business's domain provide signals about legitimacy and maturity. **Key indicators:** * **Domain age** - Older domains suggest established operations; domains registered days before applying for credit raise fraud concerns * **Domain privacy/proxy registration** - Hiding registrant information isn't necessarily fraudulent, but combined with other red flags can indicate risk * **Domain expiration** - Active businesses typically register domains for multiple years; month-to-month registration may signal temporary operations **Why it matters:** Fraudsters often create new websites specifically for applications. A construction company claiming 10 years in business with a 2-week-old domain is a clear inconsistency. *** ### Email Deliverability Whether a business has functional email addresses at its claimed domain validates both the domain ownership and operational status. **Verification checks:** * **Email addresses listed on website** - Legitimate businesses provide contact emails * **Email deliverability** - Can emails be successfully sent to the domain (MX records configured, inbox active) * **Professional email addresses** - Business uses company domain ([name@business.com](mailto:name@business.com)) rather than generic providers ([name@gmail.com](mailto:name@gmail.com)) **Why it matters:** A business claiming to operate under "smithconsulting.com" but only providing a Gmail address suggests they don't control that domain or aren't professionally established. *** ### Website Content Analysis The quality, professionalism, and substance of website content indicate investment in the business and consistency with stated operations. **Analysis factors:** * **Content quality** - Professional copy, clear descriptions of products/services, proper grammar * **Industry consistency** - Website content matches industry claimed in application (restaurant website for claimed restaurant business) * **Depth and detail** - Multiple pages, product/service descriptions, about us section vs. single landing page * **Recent updates** - Blog posts, news updates, copyright year indicating active maintenance **Red flags:** * Template websites with minimal customization * Vague descriptions that could apply to any business * Industry mismatch (website shows CBD products, application claims "health and wellness retail") * Copyright dates years out of date *** ### Technical Indicators Technical aspects of a website signal active operations and professional standards. **Key checks:** * **Website active** - Site loads and functions properly (not under construction, not showing errors) * **SSL certificate present and valid** - HTTPS enabled with valid, current SSL certificate (standard for legitimate businesses today) * **Professional hosting** - Not hosted on free platforms for established businesses **Why it matters:** Expired SSL certificates, broken pages, and unprofessional hosting suggest abandonment or lack of legitimacy. Professional businesses maintain functional, secure websites. *** ### Contact Information Consistency Businesses should have consistent contact details across their website, application, and public records. **Consistency checks:** * **Address matches** - Online address matches application and registration records * **Phone number consistency** - Same phone number on website, social media, and application * **Email domain alignment** - Contact emails use business domain consistently * **Multiple contact points** - Legitimate businesses provide various ways to reach them (phone, email, physical address, contact forms) **Red flags:** * Phone numbers that don't match claimed business location * Contact information differs between website and application *** ### Social Media Presence Social media profiles provide evidence of organic business activity and customer engagement over time. **Evaluation criteria:** * **Profile maturity** - Account age matches claimed business age * **Follower counts** - Appropriate for business size and industry * **Customer interactions** - Comments and genuine interactions * **Cross-platform presence** - Multiple social platforms appropriate for the industry **Why it matters:** Established businesses develop organic social media presence over time. Fraudulent businesses often have recently created profiles with no genuine engagement, purchased followers, or inconsistent content. *** ### Online Reviews Customer reviews on Google, Yelp, industry platforms, and social media reflect real customer experiences and business longevity. **Review analysis:** * **Volume** - Review count appropriate for business age and industry * **Recency** - Recent reviews indicate ongoing operations * **Sentiment** - Balance of positive and negative reviews * **Review detail** - Substantive reviews mentioning specific experiences vs. generic one-liners **Red flags:** * No reviews for a business claiming years of operation * All reviews created within a short timeframe * Generic or template-like review content * Exclusively negative reviews indicating serious operational issues *** ### Risk Signals from Online Presence Certain patterns across online presence indicators signal higher fraud or credit risk: **High-risk patterns:** * New domain (\< 30 days) for business claiming years of operations * No active website or website "under construction" indefinitely * Website content that doesn't match stated industry * No professional email (only generic providers) * No social media presence or very recently created profiles * No online reviews despite claimed customer-facing operations * Inconsistent contact information across channels * Template website with minimal business-specific content Not every legitimate business has a robust online presence; particularly B2B companies, sole proprietors, or businesses in traditional industries. Website analysis should be one factor in holistic risk assessment, not a standalone rejection criterion. *** ### How Baselayer Can Help Baselayer automatically analyzes business websites to extract industry classification, verify contact information consistency, assess domain age and technical indicators, and detect risk signals; providing comprehensive digital presence insights as part of business verification. For best practices on how to leverage Baselayer Online Presence products for your business onboarding process, please review our guide [Online Presence: Best Practices](/docs/web-presence-orderables). # Payment Processors Source: https://docs.baselayer.com/docs/payments How payment processors use Baselayer to onboard merchants quickly and screen out restricted industries and repeat fraud. ## Overview Payment processors face unique verification challenges driven by card network requirements, chargeback risk, and rapid merchant onboarding demands. Unlike lending products, payment processors typically do not assess credit risk but must rigorously evaluate industry type, business legitimacy, and fraud patterns to comply with Visa and Mastercard merchant monitoring programs. **Key challenges for payment processors:** * **Industry compliance**: Card networks impose strict restrictions on high-risk merchant categories * **Fraud velocity**: Detecting repeat fraud attempts across multiple applications * **Website authenticity**: Verifying the merchant's online presence matches their stated business * **Speed to approval**: Minimizing friction for legitimate merchants while catching bad actors This guide provides a standard verification workflow optimized for payment processor onboarding and underwriting teams. *** ## Verification Workflow Overview A typical payment processor business verification flow includes four key stages: 1. **Fraud Screening**: Detect repeat applications and known fraud patterns (Baselayer + Partner/s) 2. **Business Verification**: Validate business identity, industry, and legitimacy (Baselayer) 3. **Individual Verification**: Verify the business owner or principal (Partner/s) 4. **Final Review**: Cross-check identity alignment and account details (Partner/s) Each stage uses a combination of Baselayer endpoints and third-party verification tools to build a complete risk picture. *** ## Step 1: Fraud Screening **Purpose**: Identify fraudulent applications early by analyzing business identity patterns, application velocity, and consortium intelligence. ### Required Tools * **Fraud screening provider** (for device/identity signals and digital intelligence) * **Baselayer**: Business identity network and [fraud consortium](/docs/the-baselayer-fraud-consortium) ### Baselayer Endpoints ```javascript Text theme={null} POST /searches GET /businesses/{business_id}/applications ``` ### Verification Logic ```javascript Text theme={null} // Submit business search response = POST /searches with business details // Check application velocity applications = GET /businesses/{business_id}/applications // Count recent applications applications_last_7_days = count(applications where created_at >= today - 7 days) applications_last_30_days = count(applications where created_at >= today - 30 days) // Evaluate velocity flags IF applications_last_7_days >= 4: flag = "RED" reason = "High application velocity - 4+ applications in 7 days" ELSE IF applications_last_30_days >= 4: flag = "YELLOW" reason = "Elevated application velocity - 4+ applications in 30 days" // Check fraud consortium (BFC entry appears in watchlist_hits for member organizations only) bfc = FIND entry IN response.watchlist_hits WHERE entry.code == "BFC" IF bfc EXISTS AND bfc.count > 0: flag = "RED" reason = "Business or individual in Baselayer Fraud Consortium" // Combine with third-party fraud screening IF fraud_screening_provider.risk_score > threshold: flag = "RED" reason = "Failed fraud screening" ``` > **Note**: Baselayer fraud consortium is only available for member entities who contribute regularly to the fraud database. For non-member organizations, the BFC entry is entirely absent from `watchlist_hits` (it is never returned as a `count: 0` placeholder), and BFC hits never appear in sandbox. ### Context Combining fraud screening signals with Baselayer's business identity network provides comprehensive fraud detection covering both the individual and the business entity. The application velocity check catches fraudsters attempting multiple submissions with slight variations. *** ## Step 2: Business Verification **Purpose**: Validate the business exists, is properly registered, operates in a compliant industry, and maintains an authentic web presence. ### Required Tools * **Baselayer**: [Business search](/docs/business-search-basics), [industry prediction](/docs/industry-prediction-user-guide), [website analysis](/docs/website-analysis-basics) ### Baselayer Endpoints ```javascript Text theme={null} POST /searches POST /web_presence_requests ``` > **Tip**: The web presence request has 20-30 second latency. Consider initiating this request early in your workflow (e.g., after or during Step 1) to improve customer experience. > > You can re-use the API response from the `POST /searches` request from Step 1 and avoid extra charges. ### Verification Logic ##### Industry Screening ```javascript Text theme={null} // Extract industry prediction from /web_presence_requests response industry = response.industry_prediction // Check Mastercard high-risk flag IF ANY mcc IN industry.mcc_codes WHERE mcc.mastercard_risk == TRUE: flag = "YELLOW" reason = "Mastercard restricted industry" // Check Visa risk tier IF ANY mcc IN industry.mcc_codes WHERE mcc.visa_risk_tier IS NOT NULL: flag = "YELLOW" reason = "Visa risk tier assignment" // Check keyword matching IF ANY keyword IN industry.keywords MATCHES high_risk_keyword_list: flag = "RED" reason = "High-risk industry keyword detected" // Check high-risk NAICS codes with confidence threshold IF industry.code IN high_risk_naics_list: IF industry.accuracy >= 0.75: flag = "RED" reason = "High-risk industry with high confidence" ELSE: flag = "YELLOW" reason = "Potential high-risk industry, needs review" ``` > **Note**: High-risk keyword and NAICS code lists are proprietary and available to Baselayer customers upon request. Contact your account representative for access. ##### Business Identity Verification This workflow assumes only registered businesses are approved. If sole proprietorships are also able to use the product, we recommend setting up a separate route as explained in our [Sole Proprietorship Verification](/docs/sole-prop-verification) guide. ```javascript Text theme={null} // Extract match signals from /searches response business_id = response.business.id name_match = response.business_name_match address_match = response.business_address_match tin_matched = response.tin_matched registrations = response.business.registrations watchlist_hits = response.watchlist_hits // Check Baselayer match IF business_id == NULL: flag = "RED" reason = "No business match" // skip all other steps // Check name and address matching name_address_approved = FALSE IF name_match == "EXACT" AND address_match IN ["EXACT", "CITY", "STATE"]: name_address_approved = TRUE ELSE IF name_match == "SIMILAR" AND address_match == "EXACT": name_address_approved = TRUE IF NOT name_address_approved: flag = "RED" reason = "Weak name/address match" // Verify TIN IF tin_matched == NULL: # IRS outage - handle per policy # See Guide: IRS Outage Handling for detailed guidance flag = "YELLOW" reason = "TIN verification unavailable (IRS outage)" ELSE IF tin_matched == FALSE: flag = "RED" reason = "TIN does not match business name" // Check registrations domestic_active = FALSE FOR EACH registration IN registrations: IF registration.registration_type == "domestic" AND registration.status == "active": domestic_active = TRUE domestic_state = registration.state IF NOT domestic_active: flag = "RED" reason = "No active domestic registration" // If business operates in different state, verify foreign registration. // Operating state is usually the one from the application address - you can use operating_state == response.search_address.state IF operating_state != domestic_state: foreign_active = FALSE FOR EACH registration IN registrations: IF registration.registration_type == "foreign" AND registration.state == operating_state AND registration.status == "active": foreign_active = TRUE IF NOT foreign_active: flag = "YELLOW" reason = "No active foreign registration in operating state" // Check watchlists IF ANY entry IN watchlist_hits WHERE entry.count > 0 AND entry.code != "IEO": flag = "RED" reason = "Positive sanctions or watchlist match" ``` ##### Website Analysis (Optional) ```javascript Text theme={null} // Retrieve website analysis from /web_presence_requests response website = response.website_analysis // Simple fraud check: email domain vs. found website IF website.url IS NOT NULL AND website.email_deliverable == TRUE: submitted_email_domain = EXTRACT_DOMAIN(application.email) IF submitted_email_domain != EXTRACT_DOMAIN(website.url): flag = "RED" reason = "Email domain does not match business website" ``` > **Note**: Website analysis and social reviews are use-case specific. For extended best practices on website verification and online presence review, see [Online Presence: Best Practices](/docs/web-presence-orderables). Other areas like social media or online reviews continue to gain weight in onboarding applications, and are also discussed in that guide. We recommend discussing website requirements with prospects before implementation, as criteria vary significantly by processor type (ecommerce vs. card-present, etc.). ### Context Industry screening is critical for payment processors due to card network requirements. The business verification logic ensures the entity is legitimate, properly registered, and not on sanctions lists. Website analysis adds an additional fraud prevention layer, **particularly for ecommerce merchants**. *** ## Step 3: Individual Verification **Purpose**: Verify the identity and compliance status of the business owner or principal officer. ### Required Tools * **KYC provider** (for AML/identity verification) * **Bank account verification provider** ### Context Individual verification ensures the person applying on behalf of the business is legitimate and not on sanctions lists. Bank account verification confirms the business controls the account where funds will be settled and there is no suspicious activity. Baselayer works with hundreds of partners and can recommend ideal providers for every product and case. *** ## Step 4: Final Review **Purpose**: Perform final identity verification on the individual completing the application. ### Required Tools * **KYC provider** (for AML/identity verification) ### Context This final check ensures the individual's identity aligns with who they claim to represent. The fraud screening from Step 1 combined with Baselayer's application tracking provides a unified business + individual fraud detection layer. Baselayer works with hundreds of partners and can recommend ideal providers for every product and case. *** ## Implementation Checklist Use this checklist to implement the payment processor verification workflow: **Setup** * [ ] Integrate fraud screening provider * [ ] Integrate Baselayer API * [ ] Integrate KYC provider * [ ] Integrate bank account verification provider * [ ] Request high-risk industry lists from Baselayer representative **Step 1: Fraud** * [ ] Implement `POST /searches` endpoint * [ ] Implement `GET /businesses/{business_id}/applications` endpoint * [ ] Configure application velocity logic (7-day and 30-day thresholds) * [ ] Integrate third-party fraud screening **Step 2: Business** * [ ] Implement `POST /web_presence_requests` endpoint * [ ] Configure industry screening logic with Mastercard and Visa flags * [ ] Implement standard KYB verification logic (name, address, TIN, registrations) * [ ] Configure watchlist screening * [ ] Implement website/email domain comparison (optional) **Step 3: Individual** * [ ] Implement AML/KYC check * [ ] Implement bank account verification **Step 4: Final Review** * [ ] Implement identity verification check * [ ] Configure manual review queues * [ ] Set up rejection workflows For questions about implementation or to request high-risk industry lists, contact your Baselayer account representative. # Portfolio Monitoring: Basics Source: https://docs.baselayer.com/docs/portfolio-monitoring Track changes to businesses after onboarding, and learn how portfolios, groups and policies control what you hear about. ## 1. Overview: Why Portfolio Monitoring Matters Most KYB and underwriting workflows capture a single moment in time, but businesses change continuously. A business may: * Change its name, officers, address, or standing * Accumulate liens, litigations, or bankruptcies * Trigger sanctions or PEP flags * Alter its website, web presence, or operational footprint * Show new identity-network signals (e.g., increased application volume) Regulators expect ongoing customer monitoring, not just onboarding checks.\ Under the U.S. Customer Due Diligence (CDD) Rule, financial institutions must perform: > Ongoing monitoring to identify and report suspicious activity and, on a risk basis, to maintain and update customer information. Portfolio Monitoring solves this by transforming KYB/underwriting from a point-in-time event into a continuous, automated monitoring workflow. ### What Portfolio Monitoring Does Once a business is added to your Portfolio, Baselayer: * Monitors the business on a defined frequency * Captures snapshots of its full profile * Detects changes between snapshots * Produces human-readable change summaries * Sends digest notifications on your chosen schedule * Stores a complete history of all changes *** ## 2. Glossary #### Portfolio Your organization’s full set of monitored businesses.\ Every Baselayer customer has exactly one Portfolio. *** #### Portfolio Item (Item) A single business added to the Portfolio, created from a completed Baselayer Business Search.\ Each Item stores its full monitoring history, snapshots, and notifications. *** #### Group (Portfolio Group) A one-level folder used to organize Portfolio Items (e.g., by risk tier, geography, product type, or ownership).\ Groups can have their own Monitoring and Notification Policies. *** #### Monitoring Policy Defines what to monitor and how often. A Monitoring Policy includes: * Frequency (daily → annually) * Monitorable attributes (e.g., liens, litigations, OFAC, PEP, website changes, officers, registration standing) * Enabled/disabled state * Lien monitoring scope (domestic vs. registered states) * Inheritance metadata (`inherited_from`) Every Portfolio Item is covered by exactly one Monitoring Policy inherited from: > Portfolio → Group → Item *** #### Notification Subscriptions Define what changes should generate email notifications, how often, and to whom. Includes: * Notifiable attributes * Frequency * Recipient email addresses * Enabled/disabled state A Portfolio Item may be covered by multiple Notification Subscriptions. *** #### Monitorable Attributes What Baselayer can look for changes in: * Business profile fields (officers, addresses, SoS standing, names) * Liens * Litigations * Bankruptcies * Website analysis * PEP * OFAC * Identity network *** #### Notifiable Attributes Changes that can be included in email summaries: * New registrations * SoS Standing changes * Address changes * Officer changes * Name changes * KYB / Risk score changes * New liens, litigations, bankruptcies Monitoring ≠ notifying.\ You can monitor more attributes than you notify on. *** #### Cadence/Frequency How frequently a policy runs: * daily * weekly * biweekly * monthly * quarterly * biannually * annually *** #### Snapshot A point-in-time capture of the business profile. *** #### Change The difference between two snapshots.\ Includes both machine-readable and human-readable formats. *** #### Notification A digest email summarizing noteworthy changes, delivered based on the Notification Subscription frequency. *** ## 3. How Portfolio Monitoring Works Baselayer’s monitoring engine operates like version control for business data. *** #### Step 1: Capture a Snapshot On the Monitoring Policy cadence/frequency, Baselayer stores a complete snapshot of the business profile and all selected monitorable attributes. *** #### Step 2: Detect Changes Baselayer compares two snapshots to detect: * Attribute changes * New or removed information *** #### Step 3: Store a Complete History Snapshots and detected changes are permanently stored and available through: * Console * `/portfolio/items/{id}/changes` * `/portfolio/updates` * Snapshot and diff endpoints *** #### Step 4: Generate Notifications Changes are turned into readable digest emails, delivered on the Notification Subscription cadence/frequency. *** #### Step 5: Repeat Automatically Monitoring continues indefinitely based on your policies. *** ## 4. Understanding Portfolio, Group, and Item Policies Before configuring anything in the Console, it is essential to understand how Monitoring Policies and Notification Subscriptions are structured.\ These rules determine **what is being monitored**, **how often**, and **who receives updates** — at every level of your organization. Baselayer uses a simple inheritance model: > Portfolio → Group → Item Monitoring Policies inherit downward, while Notification Subscriptions stack. *** ### 4.1 Monitoring Policy Inheritance Every Portfolio Item is covered by **exactly one** Monitoring Policy.\ This policy may come from: 1. **The Portfolio default policy** (applies to all Items unless overridden) 2. **A Group-level policy** (applies to all Items in that Group) 3. **An Item-level policy** (applies only to that one Item) The inheritance chain works as follows: > Portfolio Policy (default) > > → Group Policy (optional override) > > → Item Policy (optional override) * If a Group does **not** define a Monitoring Policy, it inherits the Portfolio default * If an Item does **not** define a Monitoring Policy, it inherits from its Group (or the Portfolio, if no Group override is set) * If an Item defines its own policy, it overrides everything above it #### What “Default” vs “Custom” Means in the UI In the Console: * A policy labeled **DEFAULT** → the Item or Group is using an inherited policy * A policy labeled **CUSTOM** → the Item or Group has its own override You will also see a **green dot** next to Groups that are actively monitored under a valid policy. These labels help you instantly understand which level is controlling the monitoring behavior. ![](https://mintcdn.com/baselayer-81245324/y8jjNyo-CIhfj2Df/images/Screenshot_2025-12-01_at_16.17.11.png?fit=max\&auto=format\&n=y8jjNyo-CIhfj2Df\&q=85\&s=ca7389fcf3b504e04758aeaf8c866a4d) *** ### 4.2 Notification Subscriptions Notification Subscriptions follow different rules from Monitoring Policies: ##### Monitoring Policies → inherited ##### Notification Subscriptions → **stack** A Portfolio Item may receive notifications from: * Portfolio-level subscriptions * Group-level subscriptions * Item-level subscriptions All applicable subscriptions apply **together**. Example:\ If you set: * A Portfolio subscription for monthly business-profile digests * A Group subscription for weekly litigation alerts * An Item subscription for daily OFAC updates Then that Item will receive: * Monthly digest * Weekly litigation alerts * Daily OFAC alerts Subscriptions never override each other - they are additive. *** ### 4.3 Policy Scopes: What Each Level Is For #### Portfolio Level Use for settings that should apply to *most or all* customers in your book. Typical examples: * Monthly monitoring for all SMB customers * Weekly PEP/OFAC notifications for compliance teams #### Group Level Use when different segments of your portfolio require different monitoring behaviors. Examples: * High-risk businesses monitored weekly * Term-loan groups monitored monthly * Marketplace vendors monitored only for sanctions Group-level overrides simplify operations for large portfolios. #### Item Level Use sparingly, for edge cases: * A single business under review * A VIP customer requiring more frequent monitoring * A business generating too many changes (throttling) If an Item has a CUSTOM policy, it will remain independent until reset. *** ### 4.4 Resetting Inheritance At both the Group and Item levels, you may click **Reset** in the Console to: * Remove the custom override * Restore inherited settings from the parent level The UI will change from **CUSTOM** → **DEFAULT**, signaling that inheritance is active again. ![](https://mintcdn.com/baselayer-81245324/y8jjNyo-CIhfj2Df/images/Screenshot_2025-12-01_at_16.18.42.png?fit=max\&auto=format\&n=y8jjNyo-CIhfj2Df\&q=85\&s=07a5780403498f411acdf7c3f9c1e0ac) *** ### 4.5 Why Understanding This Matters Before Configuration When configuring the default Portfolio Monitoring Policy, keep in mind: * All Groups and Items will inherit it unless they already have CUSTOM overrides * If you change the Portfolio default, Groups with overrides will not be affected * Item-level overrides may cause unexpected monitoring patterns if not tracked * Notification subscriptions apply across multiple levels, so planning prevents duplication or noise Learning the inheritance model first ensures that your monitoring setup is clean, consistent, and easy to maintain - especially as your portfolio grows. *** ## 5. Setting Up Portfolio Monitoring (Console) This section explains how to configure monitoring using the Baselayer Console. Before setting any policies in the Console, remember how inheritance works: * The Portfolio-level policy becomes your default baseline for all items * Groups can override this policy for all items they contain * Items can override both the Group and Portfolio defaults * Notification Subscriptions stack, while Monitoring Policies inherit With this structure in mind, you can now configure the correct level of monitoring for your use case. *** #### Step 1: Ensure Portfolio Monitoring is Enabled If you don’t see "My Portfolio" section in the Console, contact your Baselayer representative. *** #### Step 2: Configure the Default Monitoring Policy Navigate to: Console → My Portfolio → Ongoing Monitoring (top-right) Configure: * ON/OFF * Frequency * Monitorable attributes * *Business profile fields (officers, addresses, SoS standing, names) are monitored by default* This becomes your Portfolio’s default Monitoring Policy. ![](https://mintcdn.com/baselayer-81245324/y8jjNyo-CIhfj2Df/images/Screenshot_2025-12-01_at_15.21.44.png?fit=max\&auto=format\&n=y8jjNyo-CIhfj2Df\&q=85\&s=850059b17c310c424c56a321eedfa0f9) *** #### Step 3: Create Portfolio Groups (Optional) Groups help you structure your book of businesses. Common examples: * High-Risk Portfolio * Standard SMB Lending * Vendor Risk * Term Loans * MCA * Team ownership Groups can optionally have their own Monitoring Policies, which override the Portfolio default for all Items in that Group, and Notification Subscriptions, which add to it. *** #### Step 4: Configure Notification Subscriptions Navigate to: Console → My Portfolio → Subscriptions (bottom-right) Configure: * Email recipients * Frequency * Notifiable attributes Common examples: * Daily litigation/bankruptcy alerts * Weekly business profile digest * Monthly officer/standing overview for compliance ![](https://mintcdn.com/baselayer-81245324/y8jjNyo-CIhfj2Df/images/Screenshot_2025-12-01_at_15.25.48.png?fit=max\&auto=format\&n=y8jjNyo-CIhfj2Df\&q=85\&s=b2b5c1682bd7ae58c03ed56889562a62) *** #### Step 5: Add Businesses to Your Portfolio From a completed Business Search: 1. Click **Add to Portfolio** (top-right) 2. Select a Group (optional) 3. Monitoring begins automatically at the next frequency boundary Or via API: ```json theme={null} POST /portfolio/items { "business_search_id": "uuid" } ``` *** ## 6. How Monitoring Runs Portfolio Monitoring follows a simple but powerful lifecycle. Once a business is added to your Portfolio, Baselayer automatically begins tracking it according to your effective Monitoring Policy (Portfolio → Group → Item). *** ### 6.1 Monitoring Frequency: When Baselayer Checks for Changes The **monitoring frequency** determines how often Baselayer takes a new snapshot of the business profile. This snapshot includes: * Core business registration data * Officers, addresses, names, standing * Any selected monitorable attributes (e.g., OFAC, PEP, Liens, Litigations, Website Analysis) Frequencies range from **daily** to **annually**, depending on your policy configuration. #### Timing Rules Monitoring runs don't happen at a fixed hour or on a fixed weekday. Baselayer spreads customers across each period, so the exact run day is set per portfolio. The `next_run_on` field on your monitoring policy shows when the next run will happen. If an Item is added after the most recent cadence boundary, its first snapshot will occur at the next scheduled run, not immediately. *** ### 6.2 Detecting and Storing Changes On each run: 1. Baselayer captures a fresh snapshot 2. The system compares it to the previous snapshot 3. Any differences are converted into structured “changes” (diffs) 4. Changes are stored permanently and appear in the Console under the business’s history This creates a full audit trail of how the business evolves over time. *** ### 6.3 Notification Frequency: When You Receive Updates Notifications run on their **own frequency**, which may be different from the monitoring frequency.\ A Notification Subscription determines: * Which attributes to notify on * How often digest emails are delivered * Who receives them Because Notification Subscriptions stack, a single business may be included in: * A Portfolio-level weekly digest * A Group-level daily litigation digest * An Item-level monthly officer-change digest #### Monitoring Frequency vs. Notification Frequency Monitoring frequency controls when snapshots are taken.\ Notification frequency controls when digest emails are sent. These two systems are independent. This means: * If you configure **monthly monitoring** but **daily notifications**,\ → you will receive daily emails with no changes until the monthly snapshot occurs. * If you configure notifications for an attribute (e.g., liens) but **do not include that attribute in the Monitoring Policy**,\ → Baselayer cannot notify you about it, because it is never collected in snapshots. Monitoring always comes first.\ Notifications can only summarize what was monitored. To receive reliable notifications for an attribute, ensure: * The attribute is included in the Monitoring Policy, and * The Notification Subscription includes that attribute *** ### 6.4 Effective Policy Resolution Each Portfolio Item always has: * **One effective Monitoring Policy** (inherited from Portfolio → Group → Item) * **Zero or more Notification Subscriptions** Baselayer automatically resolves inheritance to determine which schedules and rules apply. *** #### Example * Monitoring frequency: **weekly** * Notification frequency: **weekly** * Item added on Tuesday → first monitoring run and first snapshot occur on the *next* scheduled weekly run boundary Changes then appear in: * **Console → Updates** (Portfolio-wide view) * **Console → Changes** (per-item or per-group history) * **Digest emails** (if the relevant Notification Subscription is enabled) This workflow ensures timely detection of relevant business changes while keeping noise and operational overhead low. *** ## 7. Working With Groups Groups allow you to structure your monitoring program. Groups inherit the Portfolio Monitoring Policy by default.\ When you assign a **custom policy to a Group**, all Items in that Group follow the Group’s policy unless they have their own Item-level override. Groups are therefore the best way to control monitoring behavior at scale without touching individual Items. *** ### Why Use Groups? * Different cadences/frequencies by risk level * Different Monitoring Policies by product * Different notification schedules by team * Cleaner operational ownership *** ### Example Configurations #### High-Risk Businesses * Weekly monitoring * Daily notifications for litigation/bankruptcy/sanctions #### Standard SMB Lending * Monthly monitoring * Weekly notifications for officer/standing changes #### Marketplace / Vendor Risk * Weekly monitoring * Weekly notifications for sanctions and business profile changes *** ## 8. What’s Next After learning the basics, continue with: ### [Portfolio Monitoring: API Quickstart](/docs/portfolio-monitoring-api-quickstart) Covers how to: * Programmatically add items * Fetch updates * Retrieve snapshots & diffs * Build automated workflows ### [Portfolio Monitoring: Best Practices](/docs/portfolio-monitoring-best-practices) Covers how to: * Choose cadences/frequencies * Reduce noise * Design monitoring workflows * Structure Groups * Manage notifications by team *** ## 9. Summary Portfolio Monitoring turns Baselayer KYB into continuous oversight: * Automatic monitoring * Comprehensive snapshots * Change detection * Digest notifications * Full audit trail * Compliance support for ongoing CDD * Reduced operational risk With minimal setup, Portfolio Monitoring becomes a powerful, automated layer in your KYB, underwriting, compliance, and vendor-risk operations. # Portfolio Monitoring: API Quickstart Source: https://docs.baselayer.com/docs/portfolio-monitoring-api-quickstart Add a verified business to a portfolio by API, then fetch its updates and field-level changes. This guide explains how to use the Baselayer Portfolio Monitoring API to: 1. Search for and verify a business 2. Add that business to a monitored portfolio 3. Retrieve ongoing updates and changes for that business 4. Drill into field-level changes over time For background on portfolios, groups, policies, and how to design monitoring, see [Portfolio Monitoring: Basics](/docs/portfolio-monitoring). *** ### Overview The Portfolio Monitoring API lets you: * **Search for a business** by name and address * **Create a portfolio item** from that search result * **Poll portfolio updates** to see what has changed (registrations, officers, scores, watchlists, etc.) * **Drill into changes** for a specific portfolio item to see field-level diffs #### High-Level Flow 1. **Search for a business** `POST /searches` (synchronous search) 2. **Add the business to your portfolio** `POST /portfolio/items` 3. **Fetch portfolio updates** `GET /portfolio/updates` 4. **Paginate through updates** Use the `X-Next-Cursor` response header 5. **Inspect changes for a specific item (optional)** `GET /portfolio/items/{item_id}/changes` *** ### Base URL & Authentication #### Base URL Use the appropriate environment base URL in your integration: * Production: `https://api.baselayer.com` In the examples below, we refer to this as: ```text theme={null} {{baseUrl}} ``` (e.g., `{{baseUrl}} = https://api.baselayer.com`) #### Authentication All requests are authenticated using an API key via the `X-API-Key` header: ```http theme={null} X-API-Key: {{apiKey}} ``` In Postman, this is configured at the collection level using the `API Key` auth type with: * **Key**: `X-API-Key` * **Value**: `{{apiKey}}` You can then define `{{apiKey}}` as an environment variable. *** ### Step 1 – Business Search Use the **Business Search** endpoint to look up and verify a business by name and address. #### Endpoint ```http theme={null} POST /searches Content-Type: application/json ``` #### Request Body Example ```json theme={null} { "name": "22645 anza avenue statutory trust", "address": "1718 capitol avenue cheyenne wy 82001" } ``` #### Sample Response (Truncated) ```json theme={null} { "id": "4dc4fd78-b7de-4ee8-ade0-dbd455e48ca6", "state": "COMPLETED", "name": "22645 anza avenue statutory trust", "address": "1718 capitol avenue cheyenne wy 82001", "search_address": { "id": "587c35d9-7ec4-48bb-a421-7b20c4db005c", "street": "1716 Capitol Ave Ste 100", "city": "Cheyenne", "state": "WY", "zip": "82001", "latitude": 41.13403, "longitude": -104.81626, "rdi": "Commercial", "deliverable": true, "cmra": false, "url": "https://api.baselayer.com/addresses/587c35d9-7ec4-48bb-a421-7b20c4db005c", "delivery_type": "STREET" }, "business_name_match": "EXACT", "business_address_match": "EXACT", "scores": [ { "type": "kyb", "score": 100.0, "rating": "A" }, { "type": "risk", "score": 100.0, "rating": "A" } ], "business": { "id": "428ee4cc-39c0-4f8f-981a-95dbe5f8bbe3", "name": "22645 Anza Avenue Statutory Trust", "structure": "TRUST", "addresses": [ { "id": "96ab5659-0a69-415e-a5f7-76e992ae7bd0", "street": "1718 Capitol Ave", "city": "Cheyenne", "state": "WY", "zip": "82001" }, { "id": "587c35d9-7ec4-48bb-a421-7b20c4db005c", "street": "1716 Capitol Ave Ste 100", "city": "Cheyenne", "state": "WY", "zip": "82001" } ], "incorporation_state": "WY", "incorporation_date": "2021-01-01", "months_in_business": 58, "registrations": [/* ... */], "business_officers": [/* ... */], "watchlist_hits": [ { "code": "IEO", "name": "IRS Exempt Organizations List", "count": 0, "details": [] } ], "url": "https://api.baselayer.com/businesses/428ee4cc-39c0-4f8f-981a-95dbe5f8bbe3", "console_url": "https://console.baselayer.com/business/428ee4cc-39c0-4f8f-981a-95dbe5f8bbe3", "address": "1716 Capitol Ave Ste 100, Cheyenne, WY 82001" }, "url": "https://api.baselayer.com/searches/4dc4fd78-b7de-4ee8-ade0-dbd455e48ca6", "status_url": "https://api.baselayer.com/searches/4dc4fd78-b7de-4ee8-ade0-dbd455e48ca6/status", "business_url": "https://api.baselayer.com/businesses/428ee4cc-39c0-4f8f-981a-95dbe5f8bbe3", "console_url": "https://console.baselayer.com/business/428ee4cc-39c0-4f8f-981a-95dbe5f8bbe3?searchId=4dc4fd78-b7de-4ee8-ade0-dbd455e48ca6" } ``` #### Key Fields to Capture From this response you’ll typically store: * `id` – the **search id** (e.g. `4dc4fd78-b7de-4ee8-ade0-dbd455e48ca6`) * `business.id` – the **business id** (e.g. `428ee4cc-39c0-4f8f-981a-95dbe5f8bbe3`) * `scores` – KYB and risk scores at time of search * `business` details – structure, registrations, officers, addresses, watchlists, etc. The business search must be completed and must have matched to a business profile to be able to add the search as a portfolio Item. You’ll use the **search id** in the next step to create a portfolio item. *** ### Step 2 – Add the Business to Your Portfolio Once you’ve verified the search result, add it to the portfolio for ongoing monitoring. #### Endpoint ```http theme={null} POST /portfolio/items Content-Type: application/json ``` #### Request Body Example ```json theme={null} { "business_search_id": "4dc4fd78-b7de-4ee8-ade0-dbd455e48ca6" } ``` > Note: `business_search_id` should be the `id` field from the search response. #### Sample Response ```json theme={null} { "id": "825667a6-2fe0-432d-ae59-edddab3ce068", "business_id": "428ee4cc-39c0-4f8f-981a-95dbe5f8bbe3", "business": { "id": "428ee4cc-39c0-4f8f-981a-95dbe5f8bbe3", "name": "22645 Anza Avenue Statutory Trust", "address": "1716 Capitol Ave Cheyenne WY 82001", "incorporation_date": "2021-01-01", "structure": "TRUST", "ein": null, "incorporation_state": "WY", "phone_number": null, "email": null, "website": null, "url": "https://api.baselayer.com/businesses/428ee4cc-39c0-4f8f-981a-95dbe5f8bbe3", "console_url": "https://console.baselayer.com/business/428ee4cc-39c0-4f8f-981a-95dbe5f8bbe3" }, "group_id": null, "name": "22645 anza avenue statutory trust", "address": "1718 capitol avenue cheyenne wy 82001", "business_name_match": "EXACT", "business_address_match": "EXACT", "verified": true, "scores": [ { "type": "kyb", "score": 100, "rating": "A" }, { "type": "risk", "score": 100, "rating": "A" } ], "created_at": "2025-11-26T20:27:41.824138Z", "last_monitored_at": null } ``` #### Key Fields to Capture * `id` – **portfolio item id** (e.g. `825667a6-2fe0-432d-ae59-edddab3ce068`) * `business_id` – underlying Baselayer business id * `scores` – KYB & risk scores at the time the business was added to the portfolio You’ll use the portfolio `id` later to request detailed changes for this item. *** ### Step 3 – Fetch Portfolio Updates Portfolio updates capture **changes over time** for items in your portfolio. These include: * Registration standing changes (e.g., Good → Suspended → Active) * KYB and risk score changes * Address and officer changes * Watchlist changes (OFAC, PEP, etc.) #### Endpoint ```http theme={null} GET /portfolio/updates ``` Optional query parameters: * `limit` – maximum number of updates to return per page * `cursor` – pagination cursor (see the pagination section below) #### Sample Response ```json theme={null} [ { "item": { "id": "825667a6-2fe0-432d-ae59-edddab3ce068", "name": "22645 anza avenue statutory trust", "business_id": "428ee4cc-39c0-4f8f-981a-95dbe5f8bbe3", "group_id": null, "assignee": null, "scores": [ { "type": "kyb", "score": 100.0, "rating": "A" }, { "type": "risk", "score": 100.0, "rating": "A" } ], "created_at": "2025-11-26T20:27:41.824138Z", "item_url": "https://api.baselayer.com/portfolio/items/825667a6-2fe0-432d-ae59-edddab3ce068", "group_url": null, "console_url": "https://console.baselayer.com/portfolio-monitoring/items/825667a6-2fe0-432d-ae59-edddab3ce068" }, "from_snapshot_id": "b7d967d7-dbff-405d-8dc2-6a14d1d97c72", "to_snapshot_id": "4c2cd1ff-f92e-496e-a926-9f58b5f42478", "change_count": 7, "notification_count": 7, "notification_summaries": [ { "attribute": "new_registrations", "count": 0 }, { "attribute": "registration_health", "count": 1 }, { "attribute": "addresses", "count": 1 }, { "attribute": "officers", "count": 1 }, { "attribute": "alternative_names", "count": 0 }, { "attribute": "kyb_score", "count": 1 }, { "attribute": "risk_score", "count": 1 }, { "attribute": "identity_network", "count": 0 }, { "attribute": "pep", "count": 1 }, { "attribute": "ofac", "count": 1 }, { "attribute": "liens", "count": 0 }, { "attribute": "litigations", "count": 0 }, { "attribute": "bankruptcies", "count": 0 }, { "attribute": "website_analysis", "count": 0 } ], "created_at": "2025-11-26T20:27:41.980342Z", "item_url": "https://api.baselayer.com/portfolio/items/825667a6-2fe0-432d-ae59-edddab3ce068", "from_snapshot_url": "https://api.baselayer.com/portfolio/items/825667a6-2fe0-432d-ae59-edddab3ce068/snapshots/b7d967d7-dbff-405d-8dc2-6a14d1d97c72", "to_snapshot_url": "https://api.baselayer.com/portfolio/items/825667a6-2fe0-432d-ae59-edddab3ce068/snapshots/4c2cd1ff-f92e-496e-a926-9f58b5f42478", "diff_url": "https://api.baselayer.com/portfolio/items/825667a6-2fe0-432d-ae59-edddab3ce068/diff?from_snapshot_id=b7d967d7-dbff-405d-8dc2-6a14d1d97c72&to_snapshot_id=4c2cd1ff-f92e-496e-a926-9f58b5f42478", "notifications_url": "https://api.baselayer.com/portfolio/items/825667a6-2fe0-432d-ae59-edddab3ce068/diff?from_snapshot_id=b7d967d7-dbff-405d-8dc2-6a14d1d97c72&to_snapshot_id=4c2cd1ff-f92e-496e-a926-9f58b5f42478&format=notifications", "notifications": [ { "message": { "text": "State Registration - Wyoming Standing changed from Suspended to Active. (Domestic)" }, "notifiable_attribute": "registration_health" }, { "message": { "text": "KYB Score increased from C to B." }, "notifiable_attribute": "kyb_score" }, { "message": { "text": "Risk Score increased from B to A." }, "notifiable_attribute": "risk_score" }, { "message": { "text": "Address removed: 123 Sandbox Lane, Test City, CA 90210." }, "notifiable_attribute": "addresses" }, { "message": { "text": "Officer removed: Jane Sandbox Smith (Chief Sandbox Officer)." }, "notifiable_attribute": "officers" }, { "message": { "text": "OFAC watchlist hit removed: 1 hit." }, "notifiable_attribute": "ofac" }, { "message": { "text": "PEP watchlist hit removed: 1 hit." }, "notifiable_attribute": "pep" } ] }, { "item": { "id": "825667a6-2fe0-432d-ae59-edddab3ce068", "name": "22645 anza avenue statutory trust", "business_id": "428ee4cc-39c0-4f8f-981a-95dbe5f8bbe3", "group_id": null, "assignee": null, "scores": [ { "type": "kyb", "score": 100.0, "rating": "A" }, { "type": "risk", "score": 100.0, "rating": "A" } ], "created_at": "2025-11-26T20:27:41.824138Z", "item_url": "https://api.baselayer.com/portfolio/items/825667a6-2fe0-432d-ae59-edddab3ce068", "group_url": null, "console_url": "https://console.baselayer.com/portfolio-monitoring/items/825667a6-2fe0-432d-ae59-edddab3ce068" }, "from_snapshot_id": "cfbd361c-98b4-411d-850c-4a7bdcc311b9", "to_snapshot_id": "b7d967d7-dbff-405d-8dc2-6a14d1d97c72", "change_count": 7, "notification_count": 7, "notification_summaries": [ { "attribute": "new_registrations", "count": 0 }, { "attribute": "registration_health", "count": 1 }, { "attribute": "addresses", "count": 1 }, { "attribute": "officers", "count": 1 }, { "attribute": "alternative_names", "count": 0 }, { "attribute": "kyb_score", "count": 1 }, { "attribute": "risk_score", "count": 1 }, { "attribute": "identity_network", "count": 0 }, { "attribute": "pep", "count": 1 }, { "attribute": "ofac", "count": 1 }, { "attribute": "liens", "count": 0 }, { "attribute": "litigations", "count": 0 }, { "attribute": "bankruptcies", "count": 0 }, { "attribute": "website_analysis", "count": 0 } ], "created_at": "2025-11-19T20:27:41.980342Z", "item_url": "https://api.baselayer.com/portfolio/items/825667a6-2fe0-432d-ae59-edddab3ce068", "from_snapshot_url": "https://api.baselayer.com/portfolio/items/825667a6-2fe0-432d-ae59-edddab3ce068/snapshots/cfbd361c-98b4-411d-850c-4a7bdcc311b9", "to_snapshot_url": "https://api.baselayer.com/portfolio/items/825667a6-2fe0-432d-ae59-edddab3ce068/snapshots/b7d967d7-dbff-405d-8dc2-6a14d1d97c72", "diff_url": "https://api.baselayer.com/portfolio/items/825667a6-2fe0-432d-ae59-edddab3ce068/diff?from_snapshot_id=cfbd361c-98b4-411d-850c-4a7bdcc311b9&to_snapshot_id=b7d967d7-dbff-405d-8dc2-6a14d1d97c72", "notifications_url": "https://api.baselayer.com/portfolio/items/825667a6-2fe0-432d-ae59-edddab3ce068/diff?from_snapshot_id=cfbd361c-98b4-411d-850c-4a7bdcc311b9&to_snapshot_id=b7d967d7-dbff-405d-8dc2-6a14d1d97c72&format=notifications", "notifications": [ { "message": { "text": "State Registration - Wyoming Standing changed from Good Standing to Suspended. (Domestic)" }, "notifiable_attribute": "registration_health" }, { "message": { "text": "KYB Score decreased from A to C." }, "notifiable_attribute": "kyb_score" }, { "message": { "text": "Risk Score decreased from A to B." }, "notifiable_attribute": "risk_score" }, { "message": { "text": "Address added: 123 Sandbox Lane, Test City, CA 90210." }, "notifiable_attribute": "addresses" }, { "message": { "text": "Officer added: Jane Sandbox Smith (Chief Sandbox Officer)." }, "notifiable_attribute": "officers" }, { "message": { "text": "OFAC watchlist hit added: 1 hit." }, "notifiable_attribute": "ofac" }, { "message": { "text": "PEP watchlist hit added: 1 hit." }, "notifiable_attribute": "pep" } ] } ] ``` #### Interpreting an Update Each array element represents **changes between two snapshots** of a portfolio item: * `item` – basic portfolio item metadata * `from_snapshot_id` / `to_snapshot_id` – snapshot identifiers for diffing * `notification_summaries` – counts of changes per attribute category * `notifications` – human-readable change messages (good for dashboards, emails, etc.) * `diff_url` / `notifications_url` – API URLs to fetch structured diffs or notifications for this change window You can use `notification_summaries` to quickly understand *what kind* of changes occurred, then drill into `notifications` or `/portfolio/items/{item_id}/changes` for details. *** ### Step 4 – Pagination with `X-Next-Cursor` The `/portfolio/updates` endpoint uses cursor-based pagination. When there are more updates available, the response headers include something like: ```http theme={null} X-Next-Cursor: eyJjcmVhdGVkX2F0IjoiMjAyNC0wMS0xNVQxMDozMDowMFoiLCJpZCI6IjEyMzQ1In0= ``` You can pass that value back to the endpoint as a `cursor` query parameter, for example: ```http theme={null} GET /portfolio/updates?limit=50&cursor=eyJjcmVhdGVkX2F0IjoiMjAyNC0wMS0xNVQxMDozMDowMFoiLCJpZCI6IjEyMzQ1In0= ``` #### Recommended Pattern 1. Call `GET /portfolio/updates?limit=50` 2. Process all updates in the response 3. If the `X-Next-Cursor` header is present, call the endpoint again with `cursor=` 4. Repeat until no `X-Next-Cursor` header is returned This pattern works well in a scheduled job (for example, every few minutes) to ingest new portfolio changes. *** ### Step 5 – Inspect Field-Level Changes for a Portfolio Item If you need structured, field-level information about what changed for a particular item, use the **item changes** endpoint. #### Endpoint ```http theme={null} GET /portfolio/items/{item_id}/changes ``` Where `{item_id}` is the portfolio item id (for example, `825667a6-2fe0-432d-ae59-edddab3ce068`). #### Sample Response ```json theme={null} [ { "path": "/business/corporate_registrations/0/standing", "operation": "replace", "old_value": "Suspended", "new_value": "Active", "changed_at": "2025-11-26T20:27:41.980342Z" }, { "path": "/scores/0", "operation": "replace", "old_value": { "type": "kyb", "score": 65.0, "rating": "C" }, "new_value": { "type": "kyb", "score": 85.0, "rating": "B" }, "changed_at": "2025-11-26T20:27:41.980342Z" }, { "path": "/scores/1", "operation": "replace", "old_value": { "type": "risk", "score": 65.0, "rating": "B" }, "new_value": { "type": "risk", "score": 85.0, "rating": "A" }, "changed_at": "2025-11-26T20:27:41.980342Z" }, { "path": "/business/addresses/0", "operation": "remove", "old_value": { "id": "00000000-0000-0000-0000-000000000002", "street": "123 Sandbox Lane", "city": "Test City", "state": "CA", "zip": "90210", "latitude": 34.0901, "longitude": -118.4065, "rdi": null, "deliverable": null, "cmra": false, "url": null, "delivery_type": null, "sources": [] }, "new_value": null, "changed_at": "2025-11-26T20:27:41.980342Z" }, { "path": "/business/watchlists/0", "operation": "remove", "old_value": { "code": "OFAC", "name": "Department of Treasury, Office of Foreign Assets Control", "count": 1, "details": [ { "name": "Sandbox OFAC Match", "address": "123 Test Street, Test City, CA 90210", "match_score": 0.85 } ] }, "new_value": null, "changed_at": "2025-11-26T20:27:41.980342Z" }, { "path": "/business/watchlists/1", "operation": "remove", "old_value": { "code": "PEP", "name": "Politically Exposed Persons", "count": 1, "details": [ { "name": "Sandbox PEP Match", "country": "US", "position": "Test Official", "match_score": 0.78 } ] }, "new_value": null, "changed_at": "2025-11-26T20:27:41.980342Z" }, { "path": "/business/business_officers/0", "operation": "remove", "old_value": { "name": "Jane Sandbox Smith", "titles": [ "Chief Sandbox Officer" ], "states": [ "CA" ] }, "new_value": null, "changed_at": "2025-11-26T20:27:41.980342Z" }, { "path": "/business/corporate_registrations/0/standing", "operation": "replace", "old_value": "Good Standing", "new_value": "Suspended", "changed_at": "2025-11-19T20:27:41.980342Z" }, { "path": "/scores/0", "operation": "replace", "old_value": { "type": "kyb", "score": 95.0, "rating": "A" }, "new_value": { "type": "kyb", "score": 65.0, "rating": "C" }, "changed_at": "2025-11-19T20:27:41.980342Z" }, { "path": "/scores/1", "operation": "replace", "old_value": { "type": "risk", "score": 85.0, "rating": "A" }, "new_value": { "type": "risk", "score": 65.0, "rating": "B" }, "changed_at": "2025-11-19T20:27:41.980342Z" }, { "path": "/business/addresses/0", "operation": "add", "old_value": null, "new_value": { "id": "00000000-0000-0000-0000-000000000002", "street": "123 Sandbox Lane", "city": "Test City", "state": "CA", "zip": "90210", "latitude": 34.0901, "longitude": -118.4065, "rdi": null, "deliverable": null, "cmra": false, "url": null, "delivery_type": null, "sources": [] }, "changed_at": "2025-11-19T20:27:41.980342Z" }, { "path": "/business/watchlists/0", "operation": "add", "old_value": null, "new_value": { "code": "OFAC", "name": "Department of Treasury, Office of Foreign Assets Control", "count": 1, "details": [ { "name": "Sandbox OFAC Match", "address": "123 Test Street, Test City, CA 90210", "match_score": 0.85 } ] }, "changed_at": "2025-11-19T20:27:41.980342Z" }, { "path": "/business/watchlists/1", "operation": "add", "old_value": null, "new_value": { "code": "PEP", "name": "Politically Exposed Persons", "count": 1, "details": [ { "name": "Sandbox PEP Match", "country": "US", "position": "Test Official", "match_score": 0.78 } ] }, "changed_at": "2025-11-19T20:27:41.980342Z" }, { "path": "/business/business_officers/0", "operation": "add", "old_value": null, "new_value": { "name": "Jane Sandbox Smith", "titles": [ "Chief Sandbox Officer" ], "states": [ "CA" ] }, "changed_at": "2025-11-19T20:27:41.980342Z" } ] ``` #### Interpreting the Change Objects Each object represents a single change: * `path` – JSON path within the portfolio item document that changed * `operation` – `"add"`, `"remove"`, or `"replace"` * `old_value` – value before the change (or `null` for `add`) * `new_value` – value after the change (or `null` for `remove`) * `changed_at` – timestamp of the change These are ideal for: * Internal audit logs * Driving your own notification or workflow system * Building detailed “change history” or “activity log” UIs *** ### End-to-End User Flow Summary A typical integration to monitor a business with Baselayer looks like this: 1. **Search and verify** * Call `POST /searches` with the business name and address. * Review `business`, `scores`, and match quality fields. 2. **Create a portfolio item** * Call `POST /portfolio/items` with `business_search_id` from step 1. * Store the returned portfolio `id`. 3. **Poll for updates** * Periodically call `GET /portfolio/updates?limit=50`. * Use `X-Next-Cursor` to paginate through all updates. * Use `notification_summaries` and `notifications` to decide when to alert or trigger workflows. 4. **Drill into details as needed** * Call `GET /portfolio/items/{item_id}/changes` for item-level diffs. * Optionally use `diff_url` and `notifications_url` from each update for more specialized views. With this flow implemented, your system will have continuous visibility into changes to the businesses you monitor (scores, registrations, officers, addresses, and watchlists) via Baselayer’s Portfolio Monitoring API. # Portfolio Monitoring: Best Practices Source: https://docs.baselayer.com/docs/portfolio-monitoring-best-practices Pick monitoring frequencies, group your portfolio, and route alerts so each team hears only about changes that matter. This guide covers how to structure your portfolio, choose monitoring cadences, configure notifications, reduce noise, and operationalize Baselayer’s monitoring engine for underwriting, risk, compliance, and portfolio management. Make sure to review [Portfolio Monitoring: Basics](/docs/portfolio-monitoring) before reading this guide. *** ## 1. Principles of Effective Monitoring A strong monitoring program should achieve three goals: *** #### **1. Detect meaningful changes early** Identify signals that suggest operational, financial, or reputational risk, such as: * OFAC or PEP flags * SoS Standing changes * Leadership/officer turnover * Address changes * New litigations or bankruptcies * New liens * Activity within Baselayer Identity Network *** #### **2. Reduce noise for your teams** Monitoring works only if it’s actionable.\ Avoid overwhelming analysts with low-value alerts. *** #### **3. Scale across products, teams, and risk tiers** The monitoring needs of: * a high-risk lending product * a portfolio of bank accounts * a marketplace onboarding vendors …are very different. Baselayer’s Portfolio Monitoring is designed to let you tailor each segment precisely. *** ## 2. Choosing the Right Monitoring Frequency Frequency determines **how often Baselayer reviews each business**. Our standard recommendation is to use a monthly monitoring frequency. This works well for most products and portfolios, and achieves a great balance between risk control and number of alerts. Common cadences/frequencies and when to use them: *** #### **Daily** Use for the highest-risk cohorts: * Businesses with prior fraud, instability, sanctions risk * Lending products with fast exposure changes (MCA, revenue-based financing) * Businesses monitored for OFAC/PEP compliance *** #### **Weekly** Use for: * High-risk lending portfolios * Compliance programs requiring fresh data * Marketplaces with real-time vendor risk needs * Litigation-sensitive businesses *** #### **Monthly** Recommended default for most SMB lending portfolios. Good for: * Term loans or credit lines * BNPL merchant oversight * Vendor risk monitoring * **Standard KYB/CDD programs** *** #### **Quarterly / Biannual / Annual** Use for: * Low-risk, long-term customers * Legacy portfolios where only major changes matter * Light-touch compliance programs *** ## 3. Recommended Monitoring Attributes by Use Case Different products require different monitoring strategies. #### **SMB Lending (Term Loans, BNPL, Credit Lines)** **Recommended monitorable attributes:** * Liens * Litigations & Bankruptcies * OFAC/PEP * SoS Standing * Business profile changes (addresses, DBAs, officers) * KYB & Risk Scores * Identity Network (to detect credit stacking) **Suggested frequency:** Monthly\ **Optional for high-risk segments:** Weekly *** #### **Marketplaces / Vendor & Supplier Risk** **Focus on:** * SoS Standing * Business profile changes (addresses, DBAs, officers) * Litigations & Bankruptcies **Suggested frequency:** Monthly *** #### **Payments, Banking, or Compliance-Heavy Use Cases** **Recommended attributes:** * OFAC/PEP * Identity Network * SoS Standing * Business profile changes (addresses, DBAs, officers) **Suggested frequency:** Daily monitoring, with daily notifications for sanctions and weekly/monthly notifications for other fields *** ## 4. Best Practices for Structuring Your Portfolio The most effective monitoring programs use **Groups** to segment their book. #### **Why Groups Matter** Groups allow you to: * Assign different Monitoring Policies * Assign different Notification Subscriptions * Control noise * Separate teams’ responsibilities * Scale operational workflows #### **Recommended grouping strategies:** Common grouping strategies include: * By Risk Tier * By Product * By Team Ownership * By Geography or Regulatory Region *** ## 5. Principles For Clean, Actionable Notifications Notification Subscriptions determine **who gets notified** and **what they receive**. *** #### **1. Notify teams only about what they care about** Examples: * **Compliance:** OFAC, PEP, SoS Standing * **Legal:** Litigations, Bankruptcies * **Credit:** Liens, Score Changes * **Fraud:** Address, Officer, DBA Changes, Identity Network *** #### **2. Use separate frequencies per team** Examples: * Compliance: daily * Credit or Legal: monthly * Account Management: monthly It is also common to separate frequencies by role: * Risk leads should only receive notifications monthly * Underwriters who know the portfolio in-depth might require daily or weekly updates *** #### **3. Avoid sending massive global digest emails** Instead, create team-specific Notification Subscriptions scoped by Group. *** #### **4. Don’t notify on everything you monitor** Monitor broadly. Notify narrowly. A drop in KYB or Risk Score is often a cleaner early signal than raw field changes - consider using Score changes as the main indicator. *** ## 6. When to Use Item-Level Overrides Most monitoring can be controlled at the Portfolio or Group level.\ Use **Item-level Monitoring Policies** only for special cases such as high-value loans or businesses flagged for concern. Overrides should be rare and deliberate. *** ## 7. Suggested Monitoring Templates #### **Template 1: Standard SMB Lending** Monitoring cadence: Monthly\ Notification cadence: Monthly **Monitor:** * SoS Information (set by default) * Liens * Litigations * Bankruptcies * Identity Network * PEP * OFAC **Notify:** Compliance: * Registration standing * Officers * Litigations * Bankruptcies * PEP * OFAC Credit: * Score changes * Liens * Litigations * Bankruptcies * Identity Network **Groups:** * Standard * High-Risk (weekly monitoring) *** #### **Template 2: Marketplace Vendor Oversight** Monitoring cadence: Monthly\ Notification cadence: Monthly **Monitor:** * SoS Information (set by default) * Litigations * Bankruptcies **Notify:** Risk: * New registrations * Registration standing * Addresses * Officers * Alternative names * Litigations * Bankruptcies *** #### **Template 3: Bank / Compliance First** Monitoring cadence: Daily\ Notification cadence: Daily for OFAC/PEP, weekly for everything else **Monitor:** * SoS Information (set by default) * Identity Network * PEP * OFAC **Notify:** Compliance: * PEP * OFAC * Officers * Registration standing * Identity network *** ## 8. Putting It All Together To build an effective monitoring program: #### **1. Start with the default Portfolio Monitoring Policy** Use monthly cadence + broad monitorable attributes. #### **2. Create Groups for segmentation** Separate businesses by risk, product, or team. #### **3. Apply Monitoring Policy overrides only where needed** High-risk or special-handling segments. #### **4. Use separate Notification Subscriptions to route the right signals to the right people** Compliance ≠ credit ≠ legal. #### **5. Monitor more attributes than you notify on** Monitoring should be broad.\ Notifications should be selective and actionable. #### **6. Periodically review monitoring cadences** Your portfolio risk mix will evolve. #### **7. Use snapshots and changes for audits** Portfolio Monitoring maintains a full historical record - ideal for compliance, regulators, and audits. *** #### Summary A well-designed monitoring program: * Detects meaningful changes early * Reduces noise while surfacing real risk * Scales across products and teams * Supports ongoing CDD and regulatory expectations * Provides full auditability * Gives lenders and platforms continuous visibility into portfolio health By structuring your monitoring policies, cadences, and Groups thoughtfully, Baselayer Portfolio Monitoring becomes a powerful, low-maintenance system that strengthens underwriting, compliance, fraud detection, and portfolio oversight. # Presenting a Credential Source: https://docs.baselayer.com/docs/presenting-and-verifying-a-credential Have your agent show its credential to a site and get that site's own access token in return. This page covers the agent's side: how an agent shows its credential to a site. For the site's side, see the [Credential Format Reference](/docs/credential-format-reference) to check the credential and [Accepting Agents at Your Site](/docs/kya-accepting-agents) to decide what the agent may do. A KYA credential is an SD-JWT VC (`typ: dc+sd-jwt`) signed by Baselayer's issuer, `https://registry.baselayer.com`. The agent always adds its own signature over a one-time nonce from the site, so a copied credential is useless to anyone else. > [!NOTE] > > **Before you start** > > * The agent needs its own Ed25519 key pair. The private key stays with the agent. > * Your backend sends only the public key to Baselayer when it mints, as `agent_key`. > * Minting needs your Baselayer API key, so it runs on your backend. > > See [Minting Credentials](/docs/minting-credentials). ## Present the credential These are the six steps the agent runs. You can build them in any language. The agent makes its own Ed25519 key pair first. For example, in Node: ```js theme={null} import { generateKeyPairSync } from "node:crypto"; const { publicKey, privateKey } = generateKeyPairSync("ed25519"); // Send this as agent_key when you mint: { kty: "OKP", crv: "Ed25519", x: "..." } const agentKey = publicKey.export({ format: "jwk" }); // Keep privateKey with the agent. It signs the Key Binding JWT in step 4. ``` **1. Discover** The agent requests a protected page with no credential. The site answers `401` with a step-up that names what it needs: ```json theme={null} { "type": "step_up", "audience": "shop.example", "nonce": "d5f0…", "requirement": { "required_keys": ["email_possession"], "identity_level": "L2", "scope": "contact", "purpose": "To send order updates.", "fields": ["email"], "credential": { "type": "account" } }, "missing_keys": [], "agent_link_url": "https://api.baselayer.com/agent-links" } ``` The `requirement` lists the keys the credential must prove and, in `fields`, the exact details the site may read. Mint with only those details. The site refuses extra ones as `scope_violation`. **2. Get a nonce** The agent calls the site's nonce endpoint: ```http theme={null} POST /nonces ``` The response carries a single-use nonce and, usually, the audience the site will check: ```json theme={null} { "nonce": "d5f0…", "audience": "shop.example" } ``` **3. Mint** Your backend mints a credential with `audience` set to that audience and `agent_key` set to the agent's public key. In the mint response, `credentials[0].credential` is a string that ends in `~`. The empty slot after the last `~` is where the agent's signature goes. **4. Sign** The agent signs a Key Binding JWT and appends it to the credential: | Part | Value | | - | - | | Header | `{"alg": "EdDSA", "typ": "kb+jwt"}` | | `iat` | Now, in seconds | | `aud` | The site's audience, exactly as the credential's `aud` | | `nonce` | The nonce from step 2 | | `sd_hash` | base64url of the SHA-256 of the credential string, up to and including its last `~` | The result is ``, signed with the private key that matches the credential's `cnf` key. **5. Exchange** The agent posts the presentation to the site's token endpoint as an OAuth 2.0 token exchange (RFC 8693): ```http theme={null} POST /oauth/token ``` ```text theme={null} grant_type=urn:ietf:params:oauth:grant-type:token-exchange &subject_token_type=urn:baselayer:oauth:token-type:kya-credential &subject_token= &scope= ``` `scope` is the `scope` of the requirement from step 1, when it named one. The site checks the presentation and, if it passes, answers with its own token (`access_token`, `token_type`, `expires_in`). **6. Use the token** The agent uses the site's token on later requests. * When `token_type` is `DPoP`, each request also carries a DPoP proof signed with the same agent key, so the token only works for this agent. * When the token expires, the agent runs the flow again with a freshly minted credential. Each nonce works once. A site refuses a reused nonce as `nonce_replayed`, and one it never issued (or that expired) as `nonce_not_issued`. ## Acting for a business A business is presented as two credentials minted together: the business credential and the acting person's own credential. The agent signs a separate Key Binding JWT for each, with the same nonce and audience, and sends the business one as `subject_token` and the person's as `actor_token`: ```text theme={null} &subject_token= &actor_token_type=urn:baselayer:oauth:token-type:kya-credential &actor_token= ``` The site accepts or refuses the pair as one. A business credential sent without the person's credential is refused. See [Business Agents](/docs/kya-business-agents). ## Implementation rules * Keep the agent's private key with the agent. * Use one key per agent. A site can recognize an agent by the thumbprint of its `cnf` key. * Mint a fresh credential for each session. Credentials are short-lived on purpose. * Use the audience the site's nonce endpoint returns, both in the mint and in the Key Binding JWT. ## Rotate an agent key 1. Generate a new key pair for the agent. 2. Mint new credentials with the new public key as `agent_key`. 3. Revoke the active credentials minted for the old key. Use the reason `agent_key_compromise` when the old key may have leaked. See [Managing and Revoking Credentials](/docs/kya-managing-and-revoking). ## Troubleshooting | Problem | Fix | | - | - | | `audience_mismatch` | Mint with the audience the nonce endpoint returns. `shop.example`, `www.shop.example` and `https://shop.example` are all different. | | `key_binding_invalid` | Sign with the same key you sent as `agent_key`, over the credential up to its last `~`, right after fetching the nonce. | | `nonce_not_issued` or `nonce_replayed` | Fetch a new nonce for every presentation. Nonces expire. | | `scope_violation` | Mint with the keys the requirement asks for and only the fields in its `fields`. | | `credential_expired` | Mint a new credential. | | `sandbox_issuer` | The site does not accept test credentials. Mint with a production API key. | | The token route answers `5xx` | Usually the site couldn't reach Baselayer to check keys or revocation. Try again later. | For every refusal code and the check it comes from, see [Order of checks](/docs/credential-format-reference#order-of-checks) in the Credential Format Reference. ## Next steps * [Managing and Revoking Credentials](/docs/kya-managing-and-revoking): find a credential you minted and revoke it. * [KYA Sandbox and Testing](/docs/kya-sandbox-and-testing): test the full flow with test data. # Sandbox vs. Production Environments Source: https://docs.baselayer.com/docs/sandbox-vs-production-environments Know which environment your API key puts you in, how sandbox test data works, and how to switch to production safely. ## What Are Sandbox and Production Environments? Baselayer provides two separate environments for using our Business Verification platform: * **Sandbox**: A safe testing environment with pre-defined data that lets you integrate and test Baselayer without any risk or cost * **Production**: The live environment where you verify real businesses and your usage is billed *** ## The One Critical Difference: Your API Key **Everything else is identical between sandbox and production** - same URLs, same API endpoints, same response formats. The *only* thing that determines which environment you're using is **which API key you include in your requests**. * Use a **sandbox API key** → You're in the sandbox environment * Use a **production API key** → You're in the production environment **⚠️ Important**: Using the wrong key can cause: * **Sandbox key in production**: Most requests will fail because they don't match pre-defined test cases * **Production key in sandbox/testing**: You'll be charged real money for every request, potentially running up unexpected costs *** ### How to Identify Your Current Environment #### The Environment Selector In the **top-left corner** of the Baselayer console, you'll see a dropdown that displays either *PRODUCTION* or *SANDBOX*. This dropdown controls which environment you're currently viewing. If your organization has KYA, this control is a switch just above your name at the bottom of the sidebar instead. ![The environment selector in the top-left corner determines which environment you're viewing](https://mintcdn.com/baselayer-81245324/y8jjNyo-CIhfj2Df/images/Screenshot_2025-12-18_at_01.39.44.png?fit=max\&auto=format\&n=y8jjNyo-CIhfj2Df\&q=85\&s=af24d6988b8422be3b44fd796b1ccd11) The environment selector in the top-left corner determines which environment you're viewing **⚠️ Critical**: This dropdown controls what you see throughout the entire console, including which API keys are displayed or the search history. #### Finding Your API Keys The API Keys section shows different keys depending on which environment you've selected: 1. Log into the Baselayer console at [https://console.baselayer.com](https://console.baselayer.com) 2. First, **select your desired environment** using the dropdown in the top-left: 1. Select *SANDBOX* for testing keys 2. Select *PRODUCTION* for live keys 3. Click your name at the bottom of the sidebar, then **API Keys** 4. Copy the API key(s) shown **Important**: Always check the environment dropdown before copying an API key. If you copy a key without noting which environment you're in, you won't be able to tell which type of key you have just by looking at it. *** ### Understanding Sandbox Sandbox is designed for **integration testing and development** without risk or cost. #### Key Characteristics **✓ Completely free** - No charges for any requests\ **✓ Safe to experiment** - Make as many requests as you need\ **✓ Pre-defined test data** - Consistent, predictable responses for testing edge cases #### How Sandbox Data Works Sandbox uses **static, pre-defined test cases** to help you integrate Baselayer. We provide a spreadsheet with sample businesses and scenarios you can use for testing. > [accordion] Access test cases > > [Baselayer Integration Test Cases](https://docs.google.com/spreadsheets/d/1DV5FFA9dh9rfAPCeid_ArOLcwvew0o8CZjF8B816IKo/edit?usp=sharing) #### Critical Limitation: Exact Input Matching For sandbox requests to succeed, your inputs must **exactly match** the test cases we provide: * ✅ **Case-insensitive**: "ACME Corp" and "acme corp" both work * ❌ **Spaces matter**: "123 Main St" ≠ "123 Main St" (extra space) * ❌ **Punctuation matters**: "Main St." ≠ "Main St" * ❌ **Extra fields can break requests**: Adding "US" to the end of addresses when it's not in the test data will cause the request to fail **Common example**: If your system automatically appends "US" to all addresses, but our test data shows "123 Main Street, New York, NY 10001" (without "US"), the sandbox request will fail. You'll need to remove the "US". #### What's Available in Sandbox Most Baselayer endpoints are available in sandbox. If you need a specific endpoint or test case for your integration that isn't currently available, contact your Baselayer account manager and we can set it up for you. **Note on response times**: Some endpoints (like Industry Prediction) may respond faster in sandbox than production since they return pre-defined data rather than running live analysis. Testing Know Your Agent? See [KYA Sandbox and Testing](/docs/kya-sandbox-and-testing). *** ### Understanding Production Production is the **live environment** where you verify real businesses with real data. #### Key Characteristics **Real-time data** - Live business verification against authoritative sources\ **Live billing** - Every request is counted and billed according to your plan\ **Variable response times** - Actual analysis may take longer than sandbox's static responses\ **Complete feature access** - All Baselayer endpoints and capabilities #### How Production Differs * **Any valid input works** - You're not limited to pre-defined test cases * **You incur charges** - Every request is billed, so be intentional about your usage * **Response times vary** - Depending on the complexity of the request and data sources * **Real business data** - You're receiving actual, current information about businesses *** ### Moving from Sandbox to Production When you're ready to go live, follow this checklist: #### Before You Switch * [ ] Confirm your integration works correctly with all sandbox test cases * [ ] Review edge case handling (failed searches, incomplete data, IRS outage handling, etc.) * [ ] Understand your production pricing and rate limits * [ ] Set up monitoring for API usage and errors #### Making the Switch 1. **Copy your Production API Key** from the Baselayer console 2. **Update your code** to use the production key (typically in your environment variables or configuration) 3. **Verify your environment** - Check that the console shows "Production" in the top-left dropdown 4. **Start with a small test** - Make 1-2 production requests to confirm everything works 5. **Notify Baselayer** - Let your account manager know you've gone live so we can monitor your integration **⚠️ Never commit API keys to version control**. Use environment variables or secure secret management. *** ### Common Mistakes to Avoid #### ❌ Mistake #1: Using Production Keys During Development **Problem**: Developers testing locally with production keys rack up charges\ **Solution**: Always use sandbox keys for development and testing. Only use production keys in your live application. #### ❌ Mistake #2: Not Matching Sandbox Test Cases Exactly **Problem**: Adding extra information (like "US") or slight variations causes sandbox requests to fail\ **Solution**: Use the test data spreadsheet exactly as provided. If your system formats data differently, consider normalizing it before sending to Baselayer. #### ❌ Mistake #3: Not Testing Edge Cases in Sandbox **Problem**: Moving to production without testing failures, incomplete data, etc.\ **Solution**: Use the full range of test cases in sandbox to understand how Baselayer handles different scenarios. *** ### Need Help? If you're unsure which environment you should be using, or if you need additional sandbox test cases for your integration, reach out to your Baselayer representative. **Quick Reference**: * Testing/integrating → Use **Sandbox API Key** * Live business verification → Use **Production API Key** * When in doubt → Check the dropdown in the top-left of the console *** *Last updated: 12.18.2025* # SDKs and Libraries Source: https://docs.baselayer.com/docs/sdks-and-libraries Add a business typeahead to your own forms with the Auto.Complete SDK. Baselayer's APIs work from any language over HTTPS. The Auto.Complete SDK handles the part that's easy to get wrong in a business typeahead: keeping your API key out of the browser. ### Auto.Complete SDK Adds a business typeahead to your own forms. As someone types, they pick their business from official registry records, and you run KYB on exactly the business they picked. It includes a framework-free core, React components, and a server helper so your API key stays on your backend. ```bash theme={null} npm install @baselayer-sdk/autocomplete ``` React 18 or 19 is optional. The core and the server helper need neither React nor a browser. * Guide: [Auto.Complete SDK](/docs/autocomplete-sdk) * Overview, API reference and live demo: [sdk.baselayer.com](https://sdk.baselayer.com/autocomplete/) * Source: [github.com/osiris-ratings/baselayer-autocomplete-typescript](https://github.com/osiris-ratings/baselayer-autocomplete-typescript) The Auto.Complete SDK is pre-release. Until version 1.0, a breaking change bumps the minor version. # Servicemembers Civil Relief Act (SCRA) & Military Lending Act (MLA) Search Source: https://docs.baselayer.com/docs/servicemembers-civil-relief-act-scra-military-lending-act-mla-search Check whether a borrower is covered by SCRA or MLA protections, with an optional DMDC certificate as proof. ## SCRA & MLA Search Use the [POST /scra/searches](/api-reference/scra-&-mla/scra-search) and [POST /mla/searches](/api-reference/scra-&-mla/mla-search) to determine whether their customers are covered under the Servicemembers Civil Relief Act and Military Lending Act Respectively. Both API routes have the option to additionally return a certificate from the Defense Manpower Data Center (DMDC), certifying the validity of the API response. ### Servicemembers Civil Relief Act (SCRA) The Servicemembers Civil Relief Act (SCRA) is a United States federal law that provides various protections for active-duty military personnel, reservists, and members of the National Guard when called to active duty. Originally enacted in 1918 as the Soldiers' and Sailors' Civil Relief Act, it was reenacted and renamed in 2003. The purpose of the SCRA is to ease legal and financial burdens on military personnel and their families brought about by the demands of active duty. #### Key Provisions for Servicemembers * **Interest Rate Cap**: Interest on debts incurred prior to military service is capped at 6% per year during active duty, including fees and other charges. This applies to all debts, including mortgages, credit cards, auto loans, and other personal loans. * **Protection Against Default Judgments**: The SCRA provides protections against default judgments in civil cases, including divorce and child support hearings, if the servicemember cannot appear due to duty obligations. * **Foreclosure and Eviction Protections**: It protects servicemembers and their families from eviction without a court order and from foreclosure during and for a period after service, unless these actions are undertaken with a court order. * **Termination of Residential Leases**: Allows servicemembers to terminate residential leases when they receive deployment orders or are relocated for service. * **Termination of Auto Leases**: Permits the termination of vehicle leases under certain conditions related to deployment or permanent change of station. * **Security Deposits**: It also allows for the return of security deposits without penalty when leases are lawfully terminated under the SCRA. * **Stay of Proceedings**: The SCRA allows courts to temporarily stay civil proceedings in which the servicemember's ability to participate is materially affected by military service. #### Implications for Lenders * **Compliance Requirements**: Lenders must comply with the SCRA's provisions or face penalties, including fines and voiding of transactions. It is essential for lenders to have processes in place to identify borrowers who are eligible for SCRA protections. * **Loan Modifications**: Lenders may need to modify loans, including reducing interest rates to the SCRA cap and adjusting loan terms. * **Foreclosure Restrictions**: Lenders are restricted from foreclosing on properties owned by servicemembers without a court order during the period of active duty and for a specified time after. * **Lease Terminations**: Financial institutions involved in auto leasing must accommodate lease terminations and adjust accounts accordingly without imposing early termination fees or penalties. * **Increased Documentation and Verification**: Lenders may need to invest in additional resources to verify active-duty status of borrowers to ensure compliance with SCRA requirements. Learn more at: [https://www.consumerfinance.gov/consumer-tools/educator-tools/servicemembers/the-servicemembers-civil-relief-act-scra/](https://www.consumerfinance.gov/consumer-tools/educator-tools/servicemembers/the-servicemembers-civil-relief-act-scra/) ### Military Lending Act (MLA) The Military Lending Act (MLA) is a United States law designed to protect active duty service members, including those on active Guard or active Reserve duty, and their covered dependents, from certain lending practices that could pose risks to their financial security. The MLA was enacted in 2006 and has been updated and expanded over time to provide broader protections. It aims to prevent lenders from charging excessive fees and interest rates on consumer credit products beyond a certain threshold. #### Key Provisions for Servicemembers * **Interest Rate Cap**: The MLA caps the annual percentage rate (APR) on covered loans to military members and their families at 36%. This rate, known as the Military Annual Percentage Rate (MAPR), includes interest, fees, credit service charges, credit renewal charges, credit insurance premiums, and other costs associated with the credit. * **No Mandatory Waivers**: The act prohibits creditors from requiring servicemembers to submit to mandatory arbitration or relinquish their rights under state or federal laws, including the Servicemembers Civil Relief Act. * **No Mandatory Allotments**: It forbids creditors from requiring a military member to create an allotment as a condition of receiving the loan. * **No Prepayment Penalty**: Creditors cannot charge a penalty when a servicemember pays back part or all of a loan ahead of the schedule. #### Covered Types of Credit The MLA covers a wide range of credit products, including payday loans, title loans, overdraft lines of credit, installment loans, and certain open-end lines of credit. It does not apply to residential mortgages and certain other types of secured loans, like those used to buy a vehicle when the loan is secured by the vehicle being purchased. #### Implications for Lenders * **Compliance and Regulation**: Lenders must ensure their products comply with the MLA requirements, including the 36% MAPR cap and disclosure requirements. This may require adjustments to interest rates, fees, and loan terms for eligible military borrowers. * **Verification Requirements**: Lenders are required to verify a borrower's eligibility for MLA protections by checking the Department of Defense's (DoD) database or using a credit reporting agency. * **Operational Changes**: Implementing the MLA can require significant operational changes for lenders, including updates to loan products, adjustments to fee structures, and the development of new systems for verifying military status. * **Penalties for Non-Compliance**: Failure to comply with the MLA can result in penalties such as voidance of the credit agreement, financial penalties, and potential legal action from regulators. Learn more at: [https://www.consumerfinance.gov/consumer-tools/educator-tools/servicemembers/military-lending-act-mla/](https://www.consumerfinance.gov/consumer-tools/educator-tools/servicemembers/military-lending-act-mla/) # Social Media Profiles Source: https://docs.baselayer.com/docs/social-media-profiles Find a business's social media accounts, and check that the profiles an applicant gives you really belong to it. Social Profiles discovers the social media accounts associated with a business and returns platform-specific metadata - follower counts, business account status, contact details, and more. When social profile URLs are submitted in the request, Baselayer also verifies whether they are independently confirmed. *** ### When to use it * You want to assess a business's digital legitimacy through its social media presence * You need to cross-reference contact details (website, phone, email) found on social profiles against submitted application data * You are verifying social profile submissions from applicants, confirming the profiles they claim belong to their business * You are evaluating a sole proprietor or SMB where social presence is a primary identity signal in the absence of a website *** ### How to request it Social Profiles is available on both integration paths, but with different capabilities on each. #### Via `POST /web_presence_requests` Include `Order.SocialMedia` in the `options` array. This is the recommended path when you need the full Social Profiles feature set, including `input_social_profiles` and `social_profiles_match`. ```json theme={null} { "name": "Lucali", "address": "575 Henry St, Brooklyn, NY 11231", "options": ["Order.SocialMedia"] } ``` Results are returned **inline** at `found_social_profiles[]`. If `social_profiles` were submitted in the request, `input_social_profiles[]` and `social_profiles_match[]` are also returned. #### Via `POST /searches` with `Order.Enhanced` Social Profiles are included automatically as part of `Order.Enhanced`. Results are returned at `business.social_profiles[]`. `input_social_profiles` and `social_profiles_match` are not available on this path. > `Order.SocialMedia` as a standalone option is not available on `POST /searches`, use `Order.Enhanced` or switch to `POST /web_presence_requests` if you need social profiles without a full Enhanced Search. #### Submitting known social profiles for verification If the applicant provides social profile URLs during onboarding, submit them in the `social_profiles` array. Baselayer will attempt to independently verify each one and return the result in `social_profiles_match[]`. ```json theme={null} { "name": "Lucali", "address": "575 Henry St, Brooklyn, NY 11231", "social_profiles": [ { "site": "instagram", "value": "lucali_bk" }, { "site": "facebook", "value": "Lucalis-176347757162" } ], "options": ["Order.SocialMedia"] } ``` *** ### Response fields #### `found_social_profiles[]` fields Each entry in the array represents one discovered social media profile. | Field | Type | Description | | :- | :- | :- | | `site` | enum | Platform identifier: `linked_in:company`, `linked_in:personal`, `twitter`, `x`, `facebook`, `instagram`, `youtube`, `tiktok`, `pinterest`. | | `url` | string | Direct URL to the profile. | | `username` | string | Handle or username on that platform. | | `confidence` | enum | Baselayer's confidence the profile belongs to this business: `high`, `medium`, `low`. | | `found_on[]` | array | Where this profile was discovered: `FOUND_WEBSITE` (linked from discovered website) or `INPUT_WEBSITE` (linked from submitted website). | | `metadata` | object | Platform-specific attributes — see below. | > On `POST /searches` with `Order.Enhanced`, social profiles are returned at `business.social_profiles[]`. On `POST /web_presence_requests`, they are returned at `found_social_profiles[]`. The object structure is identical. #### Platform-specific `metadata` fields | Platform | Key metadata fields | | :- | :- | | **Instagram** | `is_private`, `is_business_account`, `has_business_address`, `bio`, `followers_count`, `phone_number`, `email`, `business_website` | | **Facebook** | `is_business_page`, `has_reviews`, `check_ins_count`, `followers_count`, `phone_number`, `email`, `business_website` | | **LinkedIn (company)** | `company_size_range`, `industry`, `followers_count`, `number_of_employees`, `phone_number`, `email`, `business_website`, `bio` | | **X / Twitter** | `is_verified`, `follower_count`, `bio`, `joined_date`, `phone_number`, `email`, `business_website` | | **YouTube** | `is_verified`, `subscriber_count`, `channel_type`, `has_business_email`, `channel_description`, `followers_count`, `phone_number`, `email`, `business_website` | | **TikTok** | `is_verified`, `is_business_account`, `follower_count`, `bio`, `has_business_website`, `phone_number`, `email`, `business_website` | | **Pinterest** | `follower_count`, `monthly_views`, `bio`, `has_business_website`, `phone_number`, `email`, `business_website` | #### `social_profiles_match[]` fields Returned when `social_profiles` were submitted in the request. Each entry echoes back one submitted profile with a verification result. | Field | Type | Description | | :- | :- | :- | | `site` | enum | The platform from the original input. | | `value` | string | The username, handle, or URL from the original input. | | `matched` | boolean | Whether this profile was independently discovered and verified by Baselayer during organic social discovery. | *** ### Interpreting results Social Profiles contributes two types of value: **legitimacy signals** (does this business have a real, established social presence?) and **identity corroboration** (do the contact details on social profiles match the submitted application?). **Always filter by `confidence: high` before using a profile in automated decisions.** Medium and low confidence profiles may belong to unrelated businesses with similar names. Only `high` confidence profiles should influence decisioning. **`found_on[]` indicates ownership strength.** A profile with `found_on: ["FOUND_WEBSITE"]` was linked directly to the business's independently discovered website - a strong ownership signal. A profile discovered through general search alone carries less weight. **Cross-reference `metadata` contact fields against the application.** The `business_website`, `phone_number`, and `email` fields in platform metadata are independently sourced from each platform. In impersonation cases, these fields will consistently point to the real business - not the submitted application data. See [Social Profiles section](/docs/web-presence-orderables#social-profiles) in the Online Presence: Best Practices guide. **Weigh signals by sector.** Consumer-facing businesses (retail, hospitality, food service) are expected to have Instagram and Facebook presence. B2B and professional services firms are better assessed through LinkedIn. Sole proprietors are often identified primarily through social presence when no website exists. See [Sector-specific guidance](/docs/web-presence-orderables#sector-specific-guidance) in the Online Presence: Best Practices guide. *** ### Related guides * [Online Presence: Basics](/docs/online-presence-basics) — integration path decision guide and data model * [Online Presence: Best Practices](/docs/web-presence-orderables) — full decisioning framework including social profile signals * [Online Presence: Response Reference](/docs/online-presence-response-reference) — match values, match sources, and response shape by integration path * [Customer Reviews](/docs/customer-reviews) — complements social profiles for consumer-facing business verification * [Web Presence API Reference](/api-reference/web-presence/post-web-presence-request) — full endpoint documentation # Sole Proprietorship Verification Source: https://docs.baselayer.com/docs/sole-prop-verification How to use Baselayer to verify sole proprietors, who often have no state registration, with TIN checks, online presence and owner checks. ## Overview Sole proprietorships represent one of the most challenging business types to verify because they are often not required to register with the Secretary of State. Unlike corporations or LLCs, sole proprietors typically operate under the owner's personal identity, making traditional KYB verification difficult or impossible. **Key challenges for sole proprietor verification:** * **No formal registration**: Most sole props lack Secretary of State registrations * **Limited public records**: Minimal official documentation to verify against * **Mixed identity**: Business and personal identity often intertwined * **Verification gaps**: Standard KYB processes fail or return low-confidence matches Despite these challenges, sole proprietors are legitimate businesses that need access to financial services, marketplace platforms, and business tools. This guide provides a comprehensive verification workflow that combines TIN validation, online presence analysis, and individual verification to assess sole proprietor applications with confidence. *** ## Identifying Sole Proprietorships Before routing an application to sole proprietor verification, you need to determine if the business is actually a sole prop. There are two primary identification methods: ### Method 1: Self-Identification (Recommended) Allow applicants to self-identify as sole proprietors during onboarding. This is the most efficient approach and sets appropriate expectations for the verification process. **Implementation**: ```javascript Text theme={null} // During application intake business_type = applicant_input.business_structure IF business_type == "SOLE_PROPRIETORSHIP": route_to = "SOLE_PROP_VERIFICATION" ELSE: route_to = "STANDARD_KYB" ``` ### Method 2: Detection via Business Search Results If you run a standard business search first, certain response patterns indicate a sole proprietorship: ```javascript Text theme={null} // After running POST /searches search_result = response // Extract key signals business_id = search_result.business.id tin_matched = search_result.tin_matched kyb_rating = GET_RATING(search_result.scores, type="kyb") // Identify sole prop patterns IF business_id == NULL AND tin_matched == TRUE: // No SoS registration found, but IRS confirms TIN route_to = "SOLE_PROP_VERIFICATION" reason = "No business registration found, TIN validates - likely sole proprietor" ELSE IF kyb_rating IN ["C", "F"] AND tin_matched == TRUE: // Low confidence registration match, but IRS confirms TIN route_to = "SOLE_PROP_VERIFICATION" reason = "Low confidence registration, TIN validates - verify as sole proprietor" ELSE: // Standard registered business route_to = "STANDARD_KYB" ``` **Detection signals**: * **No match + TIN valid** (`business_id == null` AND `tin_matched == true`): Classic sole prop pattern * **Low confidence + TIN valid** (`kyb_rating` = C or F AND `tin_matched == true`): Possible sole prop or data quality issue > **Note**: C and F ratings indicate low confidence in the registration match. When combined with positive TIN validation, this often suggests a sole proprietorship operating without formal registration. *** ## Verification Workflow Overview A typical sole proprietor verification flow includes four key stages: 1. **Identification**: Determine if the business is a sole proprietor (Self-identification or Baselayer) 2. **TIN Verification**: Validate Tax ID with IRS (Baselayer) 3. **Web Presence Review**: Assess online credibility and industry (Baselayer) 4. **Individual Verification**: Verify the business owner's identity (Partner/s) Each stage uses a combination of Baselayer endpoints or third-party verification tools to build a complete verification picture despite limited public records. *** ## Step 1: Route Identification **Purpose**: Determine whether to verify the applicant as a sole proprietor or registered business. ### Required Tools * **Baselayer**: [Business Search](/docs/business-search-basics) (optional, if not using self-identification) ### Decision Logic Use either self-identification during intake OR detection via business search results (see "Identifying Sole Proprietorships" section above). **Decision outcomes:** * **Sole prop identified** → Continue to Step 2 * **Registered business** → Use standard KYB workflow ### Context Early identification of sole proprietors streamlines the verification process by avoiding unnecessary friction from failed KYB checks. It also sets proper expectations with applicants about what information you'll need to verify. *** ## Step 2: TIN Verification **Purpose**: Validate the individual's Tax Identification Number - usually their Social Security Number (SSN) - with the IRS to confirm their name and tax ID match. ### Required Tools * **Baselayer**: [TIN verification](/api-reference/tin-verification/submit-tin-verification) ### Baselayer Endpoints Once you've already identified the applicant as a sole prop - we can use a fast, cost-efficient verification. ```javascript Text theme={null} POST /tin_verifications ``` This endpoint is ideal when: * Applicant self-identified as sole proprietor during intake * You want to avoid noise from Secretary of State data * You want cost-efficient verification (lower cost than full business search) > **Note**: For sole proprietors, the TIN may be either their Social Security Number (SSN) or an Employer Identification Number (EIN). Many sole proprietors use their SSN as their business tax ID, but some obtain an EIN for privacy, banking, or employee-related reasons. Baselayer's TIN verification works for both as long as the name submitted is correct. ### Verification Logic ```javascript Text theme={null} // Submit TIN verification request response = POST /tin_verifications with business name and TIN // Check TIN match status tin_matched = response.tin_matched IF tin_matched == TRUE: flag = "PASS" reason = "TIN validated with IRS, acceptable for sole proprietorship" ELSE IF tin_matched == FALSE: flag = "RED" reason = "TIN does not match business name per IRS records" ELSE: // tin_matched == NULL (IRS outage) flag = "YELLOW" reason = "TIN validation unavailable (IRS outage)" ``` **Decision outcomes:** * **TIN validated** (tin_matched == true) → Continue to Step 3 * **TIN failed** (tin_matched == false) → Reject application * **IRS outage** (tin_matched == null) → Manual review or pause per policy ### Context EIN/SSN verification is the cornerstone of sole proprietor verification. Since most sole props lack formal registrations, IRS validation of their Tax ID provides the primary source of truth. A positive TIN match confirms the business exists in federal records and the name matches IRS records. For IRS outage handling, see [Guide: IRS Outage Handling](/docs/webhook-guide-businesssearchupdated). *** ## Step 3: Online Presence Review **Purpose**: Evaluate the sole proprietor's credibility through online presence, reviews, social media, and industry classification. ### Required Tools * **Baselayer**: [Online Presence](/docs/online-presence-basics) ([industry prediction](/docs/industry-prediction-user-guide), [website analysis](/docs/website-analysis-basics), [social media](/docs/social-media-profiles) & [reviews](/docs/customer-reviews)) ### Baselayer Endpoints ```javascript Text theme={null} POST /web_presence_requests ``` > **Tip**: The web presence request has 20-30 second latency. Consider initiating this request early in your workflow (e.g., during Step 1 or 2) to improve applicant experience. ### Verification Logic #### Contact Details Verification ```javascript Text theme={null} // Extract contact match signals from top-level /web_presence_requests response email_match = response.email_match // EXACT, DOMAIN, NO_MATCH, or null email_match_sources = response.email_match_sources phone_number_match = response.phone_number_match // EXACT, AREA_CODE, NO_MATCH, or null phone_number_match_sources = response.phone_number_match_sources business_address_match = response.business_address_match // EXACT, SIMILAR, CITY, STATE, NO_MATCH, or null business_address_match_sources = response.business_address_match_sources business_website_match = response.business_website_match // boolean or null // Define valid sources (excludes INPUT_WEBSITE since that's not independent validation) valid_sources = ["FOUND_WEBSITE", "SOCIAL_PROFILE", "REVIEW"] // Check email validation IF email_match IS NOT NULL: IF email_match == "NO_MATCH": flag = "YELLOW" reason = "Submitted email not found in any online sources" ELSE IF email_match IN ["EXACT", "DOMAIN"]: IF NOT ANY(valid_sources IN email_match_sources): flag = "YELLOW" reason = "Email only found on submitted website, not independently validated" // Check phone number validation IF phone_number_match IS NOT NULL: IF phone_number_match == "NO_MATCH": flag = "YELLOW" reason = "Submitted phone number not found in any online sources" ELSE IF phone_number_match IN ["EXACT", "AREA_CODE"]: IF NOT ANY(valid_sources IN phone_number_match_sources): flag = "YELLOW" reason = "Phone number only found on submitted website, not independently validated" // Check address validation IF business_address_match IS NOT NULL: IF business_address_match == "NO_MATCH": flag = "YELLOW" reason = "Submitted address not found in any online sources" ELSE IF business_address_match IN ["EXACT", "SIMILAR", "CITY", "STATE"]: IF NOT ANY(valid_sources IN business_address_match_sources): flag = "YELLOW" reason = "Address only found on submitted website, not independently validated" // Check website validation IF business_website_match IS NOT NULL: IF business_website_match == FALSE: flag = "YELLOW" reason = "Submitted website not found in online presence" ``` > **Note**: Contact detail validation is critical for sole proprietors since formal registration data is unavailable. Independent discovery of contact information (on found websites, social profiles, or review platforms) provides strong verification signals. #### Industry Screening ```javascript Text theme={null} // Extract industry prediction from /web_presence_requests response industry = response.industry_prediction // Check for prohibited industries IF industry.keywords CONTAINS ANY prohibited_keyword: flag = "RED" reason = "Prohibited industry keyword detected" // Check prohibited NAICS codes with confidence threshold IF industry.code IN prohibited_naics_list: IF industry.accuracy >= 0.75: flag = "RED" reason = "Prohibited industry with high confidence" ELSE: flag = "YELLOW" reason = "Potential prohibited industry, needs review" ``` > **Note**: Prohibited keyword and NAICS code lists are proprietary and available to Baselayer customers upon request. Contact your account representative for access. #### Website Analysis ```javascript Text theme={null} // Retrieve website analysis from /web_presence_requests response website = response.website_analysis input_website = response.input_website_analysis // Check website build status for found website IF website.website_build_status != "active": flag = "YELLOW" reason = "Found website is not active (status: " + website.website_build_status + ")" // Check website build status for submitted website IF input_website IS NOT NULL AND input_website.website_build_status != "active": flag = "YELLOW" reason = "Submitted website is not active (status: " + input_website.website_build_status + ")" // Check for website presence // business_age: months_in_business if a registration was found, or your own business start date field IF website.url == NULL: IF business_age >= 6_months: flag = "YELLOW" reason = "No website found for established business" ELSE: flag = "PASS" reason = "Acceptable for new business" ``` > **Note**: For extended best practices on website verification and online presence review, see [Online Presence: Best Practices](/docs/web-presence-orderables). #### Social Media & Reviews ```javascript Text theme={null} // Retrieve social and review data from /web_presence_requests response social_profiles = response.found_social_profiles // array of objects reviews = response.found_reviews // array of objects // Filter for high-confidence results only high_confidence_profiles = FILTER(social_profiles WHERE confidence == "high") high_confidence_reviews = FILTER(reviews WHERE confidence == "high") // Check review quality FOR EACH review_source IN high_confidence_reviews: // Basic quality threshold IF review_source.volume > 20 AND review_source.rating < 3.0: flag = "RED" reason = "Poor review rating with sufficient review volume" // Check review sentiment summary IF review_source.summary CONTAINS ["scam", "fraud", "non-delivery", "fake", "never received"]: flag = "YELLOW" reason = "Review summary indicates negative fraud/delivery patterns" // Check social media presence for established businesses IF business_age >= 6_months: IF COUNT(high_confidence_profiles) == 0: flag = "YELLOW" reason = "No high-confidence social media presence for established business" ``` > **Note**: Social media and review criteria should be adjusted based on your product and risk appetite. The logic above provides a starting framework. ### Context For sole proprietors, online presence verification often provides the strongest available signals since formal registration data is limited. A robust online footprint with consistent contact information, positive reviews, and legitimate social media presence indicates an established, credible business. *** ## Step 4: Individual Verification **Purpose**: Verify the identity and compliance status of the sole proprietor owner. ### Required Tools * **KYC provider** (for identity verification and AML screening) ### Context Since sole proprietorships operate under the owner's personal identity, individual verification is essential. Unlike corporations with multiple officers, the sole proprietor's identity IS the business identity, making this step critical for both compliance and fraud prevention. Baselayer works with hundreds of partners and can recommend ideal providers for every product and case. *** ## Implementation Checklist Use this checklist to implement the sole proprietor verification workflow: **Setup** * [ ] Integrate Baselayer API * [ ] Integrate KYC/identity verification provider * [ ] Request prohibited industry lists from Baselayer representative * [ ] Define sole prop identification method (self-identification vs. detection) * [ ] Configure IRS outage handling policy **Step 1: Identification** * [ ] Implement self-identification option in application intake **(recommended)** * [ ] OR implement detection logic using business search results * [ ] Set up routing logic to sole prop vs. standard KYB workflows **Step 2: TIN Verification** * [ ] Implement `POST /tin_verifications` * [ ] Configure TIN validation logic * [ ] Set up IRS outage handling **Step 3: Web Presence Review** * [ ] Implement `POST /web_presence_requests` endpoint * [ ] Configure contact details verification logic * [ ] Configure industry screening for prohibited industries * [ ] Implement website analysis checks * [ ] Configure social media and review verification logic **Step 4: Individual** * [ ] Implement KYC/identity verification * [ ] Configure manual review queues * [ ] Set up rejection workflows For questions about implementation or to request prohibited industry lists, contact your Baselayer account representative. *** ## Best Practices **1. Early Identification** * Encourage applicants to self-identify as sole proprietors during intake * This simplifies the workflow and sets proper expectations * Reduces unnecessary friction from failed standard KYB attempts **2. IRS Outage Handling** * Monitor for `tin_matched = null` with IRS outage warnings * Have a contingency process (pause, manual review, or conditional approval) * See [Guide: IRS Outage Handling](/docs/webhook-guide-businesssearchupdated) for detailed strategies **3. Risk Context Adjustment** * TIN validation alone may suffice for lower-risk products * Higher-risk products should require TIN + web presence + strong reviews * Adjust verification requirements based on your risk appetite **4. Monitor and Refine** * Track approval rates and fraud outcomes for sole props separately * Tune web presence thresholds based on performance * Adjust industry restrictions as needed for your use case *** ## Summary Sole proprietor verification requires a different approach than standard KYB due to limited public records. This workflow provides: * **Early identification** through self-identification or detection patterns * **TIN validation** as the primary verification anchor * **Web presence analysis** to assess credibility and industry * **Individual verification** to confirm owner identity By combining these verification layers, you can confidently onboard legitimate sole proprietors while maintaining fraud controls and regulatory compliance. # Synchronous & Asynchronous Request Execution Source: https://docs.baselayer.com/docs/synchronous-asynchronous-request-execution Choose whether each request waits for its results or returns right away, and handle both kinds of response. ## Overview Baselayer supports both **synchronous** and **asynchronous** execution for all task-based endpoints (business searches, liens, dockets, web presence, DMF, and more). * **Synchronous** -- the API blocks until processing completes and returns results in the response body. * **Asynchronous** -- the API accepts the request immediately and delivers results later via [webhooks](/docs/webhooks-at-baselayer) or polling. New organizations default to synchronous execution, and API keys created before this feature default to asynchronous. You can override the default on a per-request basis using the standard HTTP `Prefer` header, or configure the default behavior on your API key. *** ## How It Works Every task-based endpoint follows the same lifecycle: ``` 1. You submit a request (e.g. POST /searches) 2. Baselayer creates the resource and begins processing 3. Depending on execution mode: Synchronous: API waits → returns 201 Created with results Async: API returns 202 Accepted immediately → webhook when ready Sync timeout: API returns 202 Accepted with current state → webhook when ready ``` Regardless of execution mode, Baselayer always returns two headers immediately: | Header | Description | | - | - | | `X-Resource-Id` | The unique ID of the created resource. Available before processing completes. | | `Location` | The URL to retrieve the resource (e.g. `/searches/{id}`). Use this for polling. | These headers are set before any synchronous wait begins, so your application can identify the resource even if a sync request times out. *** ## The `Prefer` Header Baselayer uses the standard HTTP [`Prefer` header (RFC 7240)](https://www.rfc-editor.org/rfc/rfc7240) to let you control execution behavior on each request. ### Supported Directives #### No `Prefer` header (default behavior) When no `Prefer` header is sent, the request uses your API key's `default_request_mode` setting. New organizations default to synchronous execution (recommended), but you can configure the default mode when creating additional API keys. #### `Prefer: respond-async` Explicitly requests asynchronous execution. The API returns `202 Accepted` immediately without waiting for results. Use webhooks or poll the `Location` URL to retrieve results when processing completes. The response includes a `Preference-Applied: respond-async` header confirming the directive was honored. #### `Prefer: wait=N` Requests synchronous execution with a timeout hint of **N** seconds. The API will wait up to N seconds for processing to complete: * If processing completes within the timeout: returns `201 Created` with full results. * If processing does not complete: returns `202 Accepted` with the current resource state. Results will be delivered via webhook. The maximum allowed value for `wait` is **90 seconds**. Values above this are capped automatically. ### Quick Reference | `Prefer` Header | Execution Mode | Completed | Timed Out | | - | - | - | - | | *(none, sync default)* | Synchronous | `201 Created` | `202 Accepted` | | `respond-async` | Asynchronous | `202 Accepted` | n/a | | `wait=30` | Synchronous (30s) | `201 Created` | `202 Accepted` | ### Examples #### Synchronous request (default) ```bash theme={null} curl -X POST https://api.baselayer.com/searches \ -H "X-API-Key: your_api_key_here" \ -H "Content-Type: application/json" \ -d '{ "name": "Acme Corp", "address": "123 Main St, San Francisco, CA 94105" }' ``` Response (`201 Created`): ```json theme={null} { "id": "a1b2c3d4-5678-90ab-cdef-1234567890ab", "state": "COMPLETED", "business": { ... } } ``` #### Asynchronous request ```bash theme={null} curl -X POST https://api.baselayer.com/searches \ -H "X-API-Key: your_api_key_here" \ -H "Prefer: respond-async" \ -H "Content-Type: application/json" \ -d '{ "name": "Acme Corp", "address": "123 Main St, San Francisco, CA 94105" }' ``` Response (`202 Accepted`): ```json theme={null} { "id": "a1b2c3d4-5678-90ab-cdef-1234567890ab", "state": "PENDING" } ``` Response headers: ``` X-Resource-Id: a1b2c3d4-5678-90ab-cdef-1234567890ab Location: /searches/a1b2c3d4-5678-90ab-cdef-1234567890ab Preference-Applied: respond-async ``` #### Synchronous with explicit timeout ```bash theme={null} curl -X POST https://api.baselayer.com/lien_searches \ -H "X-API-Key: your_api_key_here" \ -H "Prefer: wait=45" \ -H "Content-Type: application/json" \ -d '{ "business_id": "e7e7e7c9-f0ad-4434-9766-a1d127ed12c3", "search_states": ["CA", "NY"] }' ``` If the lien search completes within 45 seconds: `201 Created` with full results. If it takes longer: `202 Accepted` with the current state. A webhook fires when processing completes. *** ## API Key Default Request Mode Each API key has a `default_request_mode` that controls whether requests default to synchronous or asynchronous execution when no `Prefer` header is present. | Scenario | Default Mode | | - | - | | New organizations and API keys | `sync` | | Existing API keys (before this feature) | `async` (unchanged) | | JWT-authenticated requests (console) | `sync` | The `Prefer` header **always overrides** the API key default. This means: * An API key with `default_request_mode: async` that sends `Prefer: wait=30` executes synchronously. * An API key with `default_request_mode: sync` that sends `Prefer: respond-async` executes asynchronously. ### Setting the Default on a New API Key When you create an API key in the console, choose its **Default request mode**: Synchronous or Asynchronous. New keys created in the console default to Synchronous. ### Viewing the Default on an Existing API Key The API Keys table in the console shows each key's `default_request_mode` (`sync` or `async`). *** You can also create and manage your API keys directly in the web application: ![](https://mintcdn.com/baselayer-81245324/y8jjNyo-CIhfj2Df/images/Screenshot_2026-03-30_at_09.05.53.png?fit=max\&auto=format\&n=y8jjNyo-CIhfj2Df\&q=85\&s=2ba7d803ce57c091484b2aef66291c49) ![](https://mintcdn.com/baselayer-81245324/y8jjNyo-CIhfj2Df/images/Screenshot_2026-03-30_at_09.06.15.png?fit=max\&auto=format\&n=y8jjNyo-CIhfj2Df\&q=85\&s=47c58071955c13a9998fac31e6736a03) *** ## Status Codes | Status Code | Meaning | When Returned | | - | - | - | | `200 OK` | Resource retrieved | GET requests for completed resources | | `201 Created` | Resource created and processing completed | Synchronous request that finished within the timeout | | `202 Accepted` | Resource created, still processing | Asynchronous request; or synchronous request that timed out | **Key distinction**: `201` means results are in the response body. `202` means results are not yet available -- use webhooks or poll the `Location` URL. *** ## Backward Compatibility Baselayer maintains a backwards compatible API contract. Existing integrations continue to work without changes. ### Existing API Keys API keys created before this feature have `default_request_mode: async`. On API v1, these keys continue to receive `201 Created` for all POST responses, matching the behavior your integration was built against. No code changes are required. ### New Integrations New organizations and API keys default to `default_request_mode: sync`. New integrations should handle both `201 Created` (completed) and `202 Accepted` (still processing). ### Explicit `Prefer` Header When a request includes an explicit `Prefer: respond-async` header, the response is always `202 Accepted` regardless of API key defaults or API version. This signals a forward-looking integration that expects standard HTTP semantics. *** ## Request Lifecycle States Every request-creating endpoint (business searches, web presence, lien searches, dockets, person searches, TIN verification, OFAC batch, international products, etc.) reports its progress through the same `state` field, with the same five values: | `state` | Meaning | | - | - | | `PENDING` | Request received and queued for processing | | `EXECUTING` | Request actively processing | | `COMPLETED` | Processing finished successfully; results are available | | `FAILED` | Processing could not complete (or the request timed out) | | `CANCELLED` | Request was cancelled before completing | Legal transitions: `PENDING` → `EXECUTING`; `EXECUTING` → `COMPLETED` or `FAILED`; a request that is still `PENDING` or `EXECUTING` can also move to `CANCELLED` or `FAILED` (for example, if it times out). `COMPLETED`, `FAILED`, and `CANCELLED` are terminal — a request never leaves them. > **Note**: Some resources also carry a free-text `status` field. That field is a human-readable progress message, not the lifecycle — always use `state` to drive your integration logic. *** ## Consuming Results How you consume results depends on the execution mode: **Synchronous (201 Created)**: Results are included directly in the response body. No additional steps needed. **Asynchronous or Timeout (202 Accepted)**: Results are delivered asynchronously. You have two options: 1. **Webhooks (recommended)** -- Baselayer sends an HTTP POST to your configured endpoint when processing completes. See the [Webhooks guide](/docs/webhooks-at-baselayer) for setup instructions. 2. **Polling** -- Use the `Location` header from the response to periodically check the resource status: ```bash theme={null} # Initial POST returns 202 with Location header # Poll the resource until state is terminal (COMPLETED, FAILED, or CANCELLED) curl https://api.baselayer.com/searches/{id} \ -H "X-API-Key: your_api_key_here" ``` The `X-Resource-Id` header is always available immediately, so you can begin tracking the resource in your system before results arrive. *** ## Migration Guide for Existing Customers If you are an existing Baselayer customer and want to adopt synchronous execution: #### Step 1: Create a new API key with sync default Create a new API key with `default_request_mode: sync`, or contact your Baselayer account manager to update your existing key. #### Step 2: Update your response handling Your integration should distinguish between two response codes: * `201 Created` -- processing completed, results are in the response body * `202 Accepted` -- still processing, consume results via webhooks or polling #### Step 3: (Optional) Use `Prefer: wait=N` for timeout control If your use case has specific latency requirements, include `Prefer: wait=N` to set an explicit timeout in seconds (up to 90). #### No changes required to stay on async If your current integration works well with asynchronous execution and webhooks, no changes are needed. Your existing API key retains `default_request_mode: async` and all behavior remains identical. *** ## Supported Endpoints These endpoints accept the `Prefer` header and support both synchronous and asynchronous execution: | Endpoint | Method | Description | | - | - | - | | `/searches` | POST | Business search | | `/person_searches` | POST | Person search | | `/lien_searches` | POST | Liens search | | `/lien_searches/adhoc` | POST | Ad hoc lien search | | `/docket_searches` | POST | Litigation & bankruptcy search | | `/docket_searches/adhoc` | POST | Ad hoc docket search | | `/web_presence_requests` | POST | Web presence analysis | | `/website_analysis_requests` | POST | Website analysis | | `/naics_prediction_requests` | POST | Industry (NAICS) prediction | | `/employee_verification_requests` | POST | Employment verification | | `/international/searches` | POST | International business search | | `/dmf/searches` | POST | Death Master File search | | `/dockets/{docket_id}/details` | PUT | Order docket details | | `/dockets/exhibits/{docket_exhibit_id}` | PUT | Order docket exhibit documents | `POST /searches` also accepts the older `Accept: application/vnd.osiris.sync+json` header to request synchronous execution. If a request sends both, `Prefer` takes precedence. *** *Last updated: February 2026* # The Baselayer Fraud Consortium Source: https://docs.baselayer.com/docs/the-baselayer-fraud-consortium Contribute the businesses you've written off to fraud, and screen new applicants against the businesses every other member has flagged. The Baselayer Fraud Consortium (BFC) is a **give-to-get fraud network** for Baselayer customers. Member organizations contribute the businesses they've written off due to fraud, and in exchange they get to screen new applicants against the combined pool flagged by every other member. Fraud rarely hits just one lender. The same synthetic identities, recycled EINs, and rings of bad actors move from one institution to the next. The consortium turns that pattern into a defense: the moment one member reports a fraudulent business, every other member can catch it. *** ### Why it works * **Peer-validated signal.** Every record in the pool is a business a real member wrote off *because of fraud* - not a modeled score or a third-party list. When you match, you're matching against fraud someone else already paid for. * **Network effect.** Each new member and each new submission makes the pool more valuable for everyone. Fraud that would have taken you a loss becomes a hit you catch at application time. * **Anonymous by design.** Contributing organizations are never named in match results. You see the anonymized fraud record and how many organizations flagged it, never who. Your submissions are protected the same way. *** ### How it works, at a glance 1. **Join.** Your organization is activated by Baselayer as a consortium member. 2. **Contribute.** You submit the businesses you've written off to fraud as a simple file upload. This is what unlocks and renews your access - the network only works if every member keeps contributing. 3. **Screen.** Once you're an active member, you can check new applicants against the consortium in three ways: * **Inline** - consortium screening runs automatically as part of a standard Baselayer business search. * **Ad-hoc** - a quick lookup on a single applicant using raw identifiers. * **Batch** - a portfolio sweep or monitoring run across many businesses at once. Membership is scoped to a single organization. If you operate multiple organizations on Baselayer, each one joins and contributes on its own. **In the API**, inline consortium results appear in the business search response's `watchlist_hits` array as an entry with `code: "BFC"` and `name: "Baselayer Fraud Consortium"`. Unlike other watchlists, BFC is never returned as a `count: 0` placeholder: if your organization is not an active member, the BFC entry is entirely absent — absence means "not screened", not "clean". BFC hits never appear in sandbox under any configuration. *** ### Access and eligibility The consortium is available to Baselayer customers, with no separate API key: your existing Baselayer credentials gain access once your organization is enabled. Activation is a one-time step handled by Baselayer. To get started, **contact your Baselayer account manager** or email **[support@baselayer.com](mailto:support@baselayer.com)** with the subject *"Fraud Consortium activation request."* *** ### Documentation To protect the integrity of the network, the detailed consortium documentation (data schema, endpoint references, matching behavior, and operational guidance) lives in the **customer support center**, accessible to authenticated Baselayer customers: * **[Accessing the Fraud Consortium →](https://support.baselayer.com/articles/8537942571)** — membership states, activation, and keeping your access in good standing * **[Submitting data →](https://support.baselayer.com/articles/4857103841)** — the CSV schema and upload flow * **[Running checks →](https://support.baselayer.com/articles/9310133722)** — inline, ad-hoc, and batch screening * [FAQ →](https://support.baselayer.com/collections/1108349217-fraud_consortium) — common questions on membership, privacy, and pricing > Once your organization is an active member, sign in to [support.baselayer.com](https://support.baselayer.com) and open the **Fraud Consortium** collection for the full documentation set. # The Baselayer Platform Source: https://docs.baselayer.com/docs/the-baselayer-platform Know how the Identity Network and the Fraud Consortium catch fraud that no single institution can see on its own. ### The Baselayer Identity Network Traditional business verification stops at confirming "this business exists legally." But fraud and risk patterns emerge from *behavior across the ecosystem* - patterns no single institution can see on their own. #### What It Is Baselayer's Identity Network is a proprietary graph database that tracks business entities and their application behavior across participating financial institutions. Each business is assigned a persistent, anonymous UUID that follows it across the ecosystem. #### Why We Built It When a fraudster gets declined by one lender, they immediately apply to ten others. When a business is stacking credit across multiple institutions, no single lender sees the full picture. When synthetic identities proliferate, they exploit the fact that institutions operate in silos. The Identity Network solves this by detecting: * **Velocity risk**: Rapid-fire applications across multiple institutions * **Credit stacking**: Businesses accumulating more debt than they can service * **Synthetic entities**: Fabricated businesses that pass individual checks but fail pattern analysis * **Repeat fraud**: Businesses or officers connected to prior fraud cases reapplying All while maintaining privacy - institutions benefit from network intelligence without revealing competitive information about which specific companies they're evaluating. *** ### The Fraud Consortium When a business commits fraud at one institution, they often move to the next, exploiting the fact that fraud information isn't shared effectively across the industry. #### What It Is The Fraud Consortium is a shared intelligence network where participating financial institutions report confirmed fraud cases. This creates a collective defense system against repeat offenders. #### Why We Built It The current fraud reporting system (SARs filed with FinCEN) is intentionally confidential and not accessible for real-time screening. This creates a critical gap: * Fraudsters caught at Bank A can immediately apply to Banks B, C, and D * Over 3 million SARs were filed in 2023, but less than 5% resulted in account closures * Each institution fights fraud in isolation, unable to benefit from others' painful lessons The Fraud Consortium closes this gap by allowing institutions to: * **Report confirmed fraud** (business identities, fraud types, loss amounts - all anonymized) * **Screen applicants in real-time** against known fraud entities * **Prevent repeat fraud** before losses occur, not after * **Build network effects** where more participants mean better protection for everyone Unlike traditional fraud intelligence sharing which is slow and confidential, consortium data is immediately actionable during the KYB process. For details on how to report fraud cases and interpret consortium signals, see [The Baselayer Fraud Consortium](/docs/the-baselayer-fraud-consortium). # Verifying an Identity Source: https://docs.baselayer.com/docs/verifying-an-identity Verify a person or business once, so you can issue credentials for them. These pages are for agent platforms, and businesses running their own agents, that verify people and businesses and give agents credentials. Verify a person, or a person and their business, once. You can submit details you already collected, or send the person through Baselayer's [hosted enrollment](/hosted-enrollment/overview) flow. Both give you a lasting `individual_ref` (and a `business_ref` when a business is involved), which you use to mint credentials. In the hosted flow, the person: 1. Enters their phone number, date of birth and country. 2. Types the code Baselayer texts them. 3. Confirms their details. A business is verified from its registered name and address. When a person acts for a business, Baselayer also checks that they may act for it. See [Who Can Act for a Business](/docs/kya-who-can-act-for-a-business). ## Choosing a path You need an org API key with identity submission permissions (see [Authentication](/docs/authentication)). Every organization API key already has them. For every route, webhook and state on each path, see [Hosted vs. direct](/docs/hosted-sessions-and-direct-verifications). > [!NOTE] > > Every identity, credential and audit log call goes to `https://api.baselayer.com` with your key in the `X-API-Key` header. Baselayer reads your organization and application from that key, never from the request body, and every read is scoped to both. Baselayer's public signing keys and revocation lists are served from `https://registry.baselayer.com` and need no key. | Path | Use when | | - | - | | Direct submission | You already collected the identity through your own onboarding form and can send it server-to-server. | | Hosted enrollment | You want the person to enter their details on Baselayer's page instead of your forms. You get the results when they finish. | > [!NOTE] > > The phone and email checks only run in hosted enrollment. A person verified from details you submit directly has neither check, so their credentials carry no verification level. ## Path A: Submit details directly > [!NOTE] > > Direct submission needs the person's full legal name, date of birth, phone number, address and SSN (`national_id`), all collected by you. A submission missing any of them is refused. 1. Submit, with `type` set to `INDIVIDUAL` (person only) or `BUSINESS` (person + the business they operate). It returns `202` right away, and verification runs in the background. ```http theme={null} POST /issuance/identities/verifications ``` See the [API reference](/api-reference/identities/start-a-direct-verification). 2. Poll until `state` is terminal, or [subscribe](/docs/webhooks-at-baselayer#setting-up-webhook-endpoints) to the `Verification.completed` and `Verification.failed` webhooks. Poll every 2 seconds. A person's check usually finishes in seconds. A full business check can take minutes. ```http theme={null} GET /issuance/identities/verifications/{verification_id} ``` See the [API reference](/api-reference/identities/get-a-direct-verification). 3. Read the verdict: * `APPROVED`, `UNDER_REVIEW`, or `REJECTED` * plus the resulting `individual_ref` * and `business_ref` / `business_operator_link_status`, for a `BUSINESS` verification Every verification needs an `Idempotency-Key` header. A request without one is refused with `422`. Resending the same key and body returns the original verification, marked `Idempotent-Replayed: true`, instead of starting a second one. ## Path B: Use hosted enrollment Hosted enrollment needs only a journey published in Console. The person enters the rest. Hosted enrollment must be turned on for your organization first (see [Hosted Enrollment](/hosted-enrollment/overview)). Start a session on that journey from your server and send the person to its `embed_url`, in an iframe or by redirect. You get the outcome by webhook or by polling the session's results. See [Sessions and embedding](/hosted-enrollment/sessions) for the steps and [Hosted Enrollment](/hosted-enrollment/overview) to build the journey, or try the [Hosted Enrollment Playground](/hosted-enrollment/playground). ## Verify someone again Start a fresh verification cycle against the identity's most recent submitted attributes. Send it with a new `Idempotency-Key`. The `individual_ref` never changes. Use this instead of a fresh submission when an identity has expired. ```http theme={null} POST /issuance/identities/individuals/{individual_ref}/reverify ``` See the [API reference](/api-reference/identities/re-verify-an-identity-from-its-stored-verification). ## Check readiness before minting Look up the identity to see: * Whether it is current (`verification_state: CURRENT`). * Which attributes it can attest to (`active_keys`). * Which businesses a person is linked to (where applicable). ```http theme={null} GET /issuance/identities/individuals/{individual_ref} ``` See the [API reference](/api-reference/identities/look-up-a-verified-identity-by-pairwise-reference). Next: [Mint a credential](/docs/minting-credentials). ## Troubleshooting ### The reference returns `404` References belong only to the organization and application they were issued to. An `individual_ref` (starts with `prn_`) or `business_ref` (starts with `bus_`) returns the same `404` when it is: * From another organization. * From your other environment. * One that was never issued. Call with a key from the application the person was verified in. See [Sandbox and Testing](/docs/kya-sandbox-and-testing). ### Verification is still running Verification runs in the background after the `202`, and a full business check can take minutes. Keep polling the original verification, or wait for the webhook. A new `Idempotency-Key` would start a second verification. ### Verification needs review An operator link lands `UNDER_REVIEW` instead of `VERIFIED` unless: * The business has a `tin`. * The IRS matches it to the business name. * The business is verified against its state registry. Without a `tin`, the business can still be `APPROVED`, but the link waits for review. See [Who Can Act for a Business](/docs/kya-who-can-act-for-a-business). ### Minting is refused Minting needs: * An identity whose verification is `CURRENT`. * For a business credential, a `VERIFIED` operator link and current business evidence. To fix it: 1. Check the identity with [`GET /issuance/identities/individuals/{individual_ref}`](/api-reference/identities/look-up-a-verified-identity-by-pairwise-reference). 2. Re-verify it if it has expired or been superseded. 3. Mint again. If the business evidence for the pair is over a year old, re-verifying the person doesn't clear it: send a new `type: BUSINESS` verification for the pair. See [Minting Credentials](/docs/minting-credentials#troubleshooting). > [accordion] Error codes > > | Problem | Fix | > | - | - | > | `422`: verification payload failed validation (code `7112`, `validation_failed`) | Check the field notes in the [API Reference](/api-reference/identities/start-a-direct-verification). In particular, `phone_number` (not `phone`) and `address` as a single normalized line (not a structured object) are the most common misses. | > | `409` code `6701` (key still running) or `422` code `6700` (key used with a different body) | Retry with the same key and the same body, or poll the original verification. Use a new key only for a new verification. | > | `409`: re-verification already in flight (code `6202`) / nothing to re-verify from (code `6203`) | Check the identity's current state (`GET /issuance/identities/individuals/{individual_ref}`) before calling `reverify` again. | > > See every error response in the API Reference for [direct verifications](/api-reference/identities/start-a-direct-verification) and [re-verification](/api-reference/identities/re-verify-an-identity-from-its-stored-verification). # Watchlists, Sanctions, and Compliance Screening Source: https://docs.baselayer.com/docs/watchlists-sanctions-and-compliance-screening Know which sanctions and watchlists to screen against, and how to handle near-matches. ## Why Sanctions and Watchlist Screening Matters When you verify a business, you're not just confirming it exists - you're ensuring you can legally do business with it. That's where sanctions and watchlist screening becomes critical. Operating in regulated financial services means you cannot: * Process payments for sanctioned entities or individuals * Extend credit to businesses owned or controlled by prohibited persons * Facilitate transactions involving terrorists, money launderers, or sanctioned nations The consequences of missing a match are severe: **hefty fines, loss of banking relationships, reputational damage, and potential criminal liability**. In 2023 alone, OFAC issued over \$1.5 billion in penalties for sanctions violations. But here's the challenge: Sanctions lists contain thousands of entries with name variations, aliases, and transliterations. A business named "Global Trading LLC" might be legitimate, or it might be a front for a sanctioned entity using a slightly different name spelling. You need to continuously screen every customer. *** ## The Sanctions and Watchlist Landscape Different government agencies maintain different lists for different purposes. Understanding which lists matter for your business is essential. ### OFAC (Office of Foreign Assets Control) OFAC, administered by the US Department of the Treasury, maintains lists of individuals and entities with whom US persons and businesses are prohibited from conducting transactions. **Key lists:** * **Specially Designated Nationals (SDN) List** - Individuals and entities with whom US persons cannot do business (terrorists, drug traffickers, weapons proliferators, sanctioned countries) * **Sectoral Sanctions Identifications List (SSI)** - Targets specific sectors of certain economies (e.g., Russian energy, finance, defense) * **Non-SDN Lists:** * **Capta List (CAP)** - Identifies certain foreign financial institutions subject to correspondent or payable-through account sanctions * **Foreign Sanctions Evaders List (FSE)** - Foreign individuals and entities determined to have violated, attempted to violate, or caused a violation of U.S. sanctions * **Non-SDN Menu-Based Sanctions List (NS-MBS)** - Persons subject to menu-based sanctions under multiple authorities * **Non-SDN Iranian Sanctions Act List (NS-ISA)** - Persons subject to sanctions under the Iran Sanctions Act * **Non-SDN Chinese Military-Industrial Complex Companies List (NS-CMIC)** - Chinese military-industrial complex companies subject to investment restrictions * **Non-SDN Palestinian Legislative Council List (PLC)** - Members of the Palestinian Legislative Council who are affiliated with Hamas * **U.S. Financial Crimes Enforcement Network (FinCEN) Section 311 Special Measures List**- Foreign jurisdictions, institutions, or transactions as "primary money laundering concerns" under the USA PATRIOT Act. While not directly administered by OFAC, Baselayer includes the organizations from the Special Measures List under OFAC results. **Critical compliance requirements:** * US persons and businesses must screen all customers against OFAC lists * Finding a match requires immediate action: stop the transaction, block/freeze assets, report to OFAC **The 50% Rule:** If a business is 50% or more owned (directly or indirectly) by one or more SDN entities, that business is also considered sanctioned, even if not explicitly listed. This means screening ownership structure is as critical as screening the business name itself. > **_Baselayer's intelligent matching checks by default the business name, its variations, and all associated officers and directors of the company._** *** ### Department of Commerce - Bureau of Industry and Security (BIS) The Bureau of Industry and Security maintains several export control lists critical for companies involved in international trade. **Key lists:** * **Entity List (EL)** - Parties whose activities are contrary to U.S. national security or foreign policy interests; a license is required for most exports to listed entities * **Denied Persons List (DPL)** - Individuals and entities denied export privileges; all dealings involving items subject to Export Administration Regulations are prohibited * **Military End User List (MEU)** - Entities involved in military end uses in certain countries (e.g., China, Russia, Venezuela); a license is required for specified items * **Unverified List (UVL)** - Parties where BIS has been unable to verify the end use of exports; enhanced due diligence required **Implications:** * Violations result in export license revocation, civil and criminal penalties * Critical for customers engaged in international business or supplying controlled goods and technology *** ### Department of State The State Department maintains lists focused on arms control and nonproliferation. **Key lists:** * **ITAR Debarred List (DTC)** - Parties debarred from participating in defense-related exports and imports under the International Traffic in Arms Regulations * **Nonproliferation Sanctions (ISN)** - Entities sanctioned under various nonproliferation laws for activities related to weapons of mass destruction and missile technology **Implications:** * The ITAR Debarred List restricts any involvement in defense article transactions * Nonproliferation sanctions can prohibit a broad range of trade and financial dealings *** ### Consolidated Screening List The U.S. government publishes a **Consolidated Screening List (CSL)** that combines all of the Bureau of Industry and Security, State Department, and OFAC lists above into a single searchable resource. Baselayer screens against all lists included in the Consolidated Screening List, plus additional lists described below. *** ### PEP (Politically Exposed Persons) Individuals who hold or have held prominent public positions, representing heightened risk for money laundering, bribery, and corruption. **Who qualifies:** * Current or former government officials and legislators * High-ranking judges and military officers * Senior executives of state-owned enterprises * Immediate family members and close associates of the above **Implications for business verification:** * Not sanctioned, but trigger **enhanced due diligence requirements** * If a PEP owns or controls a business, additional scrutiny required: * Source of funds and wealth verification * Ongoing transaction monitoring * Enhanced documentation and senior management approval * Required under anti-money laundering (AML) regulations *** ### FBI Most Wanted and Criminal Lists * Known fugitives and criminals * Protects against facilitating criminal activity * Risk-based decisioning for matches *** ### HHS OIG List of Excluded Individuals/Entities (LEIE) Maintained by the U.S. Department of Health and Human Services Office of Inspector General, the LEIE lists individuals and entities excluded from participation in Medicare, Medicaid, and other federal healthcare programs. Exclusions are typically issued for healthcare fraud, patient abuse, or controlled substance violations. **Who this matters for:** If you are onboarding healthcare businesses — medical practices, clinics, pharmacies, medical billing companies, or individual practitioners (physicians, nurses, etc.) — OIG screening is essential. Federal law requires that healthcare organizations do not employ or contract with excluded individuals or entities. Violations can result in significant civil monetary penalties. **Implications for business verification:** * A match against the OIG list means the individual or entity is barred from federal healthcare program participation * Healthcare organizations must screen employees, contractors, and vendors against the LEIE * Exclusions can be mandatory (based on convictions) or permissive (based on other conduct) *** ### IRS Exempt Organizations (IEO) The IRS maintains a list of organizations granted tax-exempt status under section 501(c)(3) and related provisions. While not a sanctions list in the traditional sense, this registry is useful for verifying the legitimacy and tax-exempt status of nonprofits, charities, and foundations during business verification. *** ### Consolidated Canadian Autonomous Sanctions List (CNS) The Canadian government maintains its own sanctions list of individuals and entities subject to Canadian economic sanctions. This list is required for organizations with Canadian operations or customers, and covers sanctions imposed under the Special Economic Measures Act (SEMA), the Justice for Victims of Corrupt Foreign Officials Act (Sergei Magnitsky Law), and other Canadian legislation. *** ### Summary of All Screened Lists | List | Abbreviation | Administering Agency | | :- | :- | :- | | Specially Designated Nationals | SDN | OFAC (Treasury) | | Sectoral Sanctions Identifications List | SSI | OFAC (Treasury) | | Capta List | CAP | OFAC (Treasury) | | Foreign Sanctions Evaders | FSE | OFAC (Treasury) | | Non-SDN Menu-Based Sanctions | NS-MBS | OFAC (Treasury) | | Non-SDN Iranian Sanctions Act | NS-ISA | OFAC (Treasury) | | Non-SDN Chinese Military-Industrial Complex Companies | NS-CMIC | OFAC (Treasury) | | Non-SDN Palestinian Legislative Council | PLC | OFAC (Treasury) | | U.S. FinCEN Section 311 - Special Measures List | FINCEN-311 | U.S. Financial Crimes Enforcement Network | | Entity List | EL | Bureau of Industry and Security | | Denied Persons List | DPL | Bureau of Industry and Security | | Military End User List | MEU | Bureau of Industry and Security | | Unverified List | UVL | Bureau of Industry and Security | | ITAR Debarred | DTC | State Department | | Nonproliferation Sanctions | ISN | State Department | | Politically Exposed Persons | PEP | Multiple sources | | FBI Most Wanted / Criminal Lists | FBI | FBI | | HHS OIG List of Excluded Individuals/Entities | LEIE | HHS Office of Inspector General | | IRS Exempt Organizations | IEO | Internal Revenue Service | | Consolidated Canadian Autonomous Sanctions List | CNS | Government of Canada | Each list carries different legal implications: OFAC matches require immediate blocking, PEP matches require enhanced due diligence, export control matches may prohibit specific transactions. *** ### Fuzzy Matching and False Positives Names aren't standardized across sanctions lists. A single person might appear as "John William Smith," "Jon W. Smith," "John W Smyth," or "J. William Smith." **How fuzzy matching works:** Screening systems use algorithms to match names even when not exact: * Phonetic matching (similar sounds: "Smith" vs "Smyth") * Edit distance (number of letter changes needed) * Token matching (individual name components) **Similarity threshold:** Systems assign a match score (0-100%) indicating how similar two names are. Organizations set a minimum threshold (typically 80-85%) above which a match is flagged for review. * Example: "Global Trading LLC" vs "Global Traders LLC" might score 92% similar → flagged * Example: "Smith Consulting" vs "Jones Consulting" might score 45% similar → not flagged Higher thresholds (90%+) reduce false positives but risk missing true matches. Lower thresholds (70-80%) catch more variations but create more false positives requiring manual review. > [!NOTE] > > **Customizing screening in Baselayer:** Admins can choose which watchlists (OFAC, PEP, CSL, FBI, CNS and OIG) their searches screen against, and set the similarity threshold for each one, from the **Settings** tab in the Console. Every list is enabled at a 95% threshold by default. PEP screening runs when the search includes `Order.Pep`. See [Account Settings](/docs/account-settings). **The false positive challenge:** Fuzzy matching generates false positives requiring manual review: * Common business names ("Global Trading," "International Consulting") * Common personal names in certain regions * Generic business suffixes ("LLC," "Corp," "Ltd") **Managing false positives:** * Collect sufficient identifying information (address, date of birth, TIN, country) * Match on multiple data points, not just name * Document review decisions for regulatory compliance * Establish clear escalation procedures for borderline cases *** ### Ongoing Monitoring Requirements **Regulatory obligation:** Financial institutions and regulated entities are required by law to continuously monitor customers against sanctions lists, not just screen them at onboarding: * Bank Secrecy Act (BSA) and USA PATRIOT Act require ongoing sanctions screening * OFAC compliance programs must include procedures for periodic rescreening * Lists change frequently: new entities added, existing entries updated or removed OFAC can update multiple times per week - making ongoing monitoring as important as initial screening. Failure to maintain ongoing monitoring can result in enforcement actions even if initial screening was compliant. > **\_Baselayer Portfolio Monitoring: \_** **_Baselayer provides automated ongoing monitoring with sanctions data refreshed from official government sources (OFAC daily, other lists weekly or monthly). Customers are automatically rescreened on the schedule you set, with alerts triggered for new matches._** # Watchlists & Sanctions: Business Search Source: https://docs.baselayer.com/docs/watchlists-sanctions-basics Find the watchlist hits in a Business Search, read them correctly, and tune how strictly names must match. ## Watchlist Screening in Business Search Sanctions and watchlist screening is a critical compliance requirement for financial institutions, fintech companies, and businesses handling payments or extending credit. This guide explains how Baselayer performs watchlist checks as part of every Business Search, where to find results in the API response, and how to interpret them for your compliance workflows. For a deeper understanding of sanctions compliance concepts, see the [Watchlists, Sanctions & Compliance Screening](/docs/watchlists-sanctions-and-compliance-screening) guide. For standalone sanctions and PEP checks outside of Business Search, see the [Watchlists & Sanctions: Standalone Checks](/docs/watchlists-sanctions-standalone-checks) guide. *** ## How Watchlist Screening Works in Business Search Baselayer automatically performs watchlist screening as part of every Business Search. No additional configuration is required — screening runs by default when you submit a search. Admins can customize which lists run and how strictly names must match in [Account Settings](/docs/account-settings) (see [Customizing Screening](#customizing-screening-in-account-settings) below). Baselayer screens applications against a number of sanction lists. All sanction lists are updated daily. ### What Gets Checked When you submit a Business Search, Baselayer runs watchlist checks on: 1. **Business name** submitted in the search request 2. **Alternative business names** submitted via the `alternative_names` field (if provided) 3. **Officer names** submitted via the `officer_names` field (if provided) 4. **Business legal name** found in the Baselayer business profile (from Secretary of State records) 5. **Alternative business names** found in the Baselayer business profile (from Secretary of State records) 6. **All officers identified** in the Baselayer business profile (from SoS records and other sources) This means even if you don't provide officer names or alternative business names in your search input, Baselayer will still screen any names and officers it identifies in the business profile against all applicable watchlists. ### Watchlists Scanned Every Business Search screens against the following official government watchlists: | List | Abbreviation | Administering Agency | | - | - | - | | Specially Designated Nationals | SDN | OFAC (Treasury) | | Sectoral Sanctions Identifications List | SSI | OFAC (Treasury) | | Capta List | CAP | OFAC (Treasury) | | Foreign Sanctions Evaders | FSE | OFAC (Treasury) | | Non-SDN Menu-Based Sanctions | NS-MBS | OFAC (Treasury) | | Non-SDN Iranian Sanctions Act | NS-ISA | OFAC (Treasury) | | Non-SDN Chinese Military-Industrial Complex Companies | NS-CMIC | OFAC (Treasury) | | Non-SDN Palestinian Legislative Council | PLC | OFAC (Treasury) | | U.S. FinCEN Section 311 - Special Measures List | FINCEN-311 | U.S. Financial Crimes Enforcement Network\* | | Entity List | EL | Bureau of Industry and Security | | Denied Persons List | DPL | Bureau of Industry and Security | | Military End User List | MEU | Bureau of Industry and Security | | Unverified List | UVL | Bureau of Industry and Security | | ITAR Debarred | DTC | State Department | | Nonproliferation Sanctions | ISN | State Department | | Politically Exposed Persons | PEP | Multiple sources | | FBI Most Wanted / Criminal Lists | FBI | FBI | | HHS OIG List of Excluded Individuals/Entities | LEIE | HHS Office of Inspector General | | IRS Exempt Organizations | IEO | Internal Revenue Service | | Consolidated Canadian Autonomous Sanctions List | CNS | Government of Canada | *\*Checks against U.S. FinCEN Special Measures List are included under Baselayer OFAC checks.* For a detailed explanation of each list and its compliance implications, see the [Watchlists, Sanctions & Compliance Screening](/docs/watchlists-sanctions-and-compliance-screening) guide. Baselayer summarizes the above individual lists in the below umbrella categories (OFAC, CSL, etc.): | Code | Full Name | Status | | - | - | - | | **OFAC** | Dept. of Treasury, Office of Foreign Assets Control | Always runs automatically | | **CSL** | Dept. of Commerce, Consolidated Screening List | Always runs automatically | | **CNS** | Consolidated Canadian Autonomous Sanctions List | Always runs automatically | | **FBI** | FBI Wanted List | Always runs automatically | | **OIG** | HHS OIG List of Excluded Individuals/Entities (LEIE) | Always runs automatically | | **IEO** | IRS Exempt Organizations List | Runs when TIN is provided | | **PEP** | Politically Exposed Persons | Runs when `Order.Pep` option is included | | **BFC** | Baselayer Fraud Consortium | Consortium members only | #### Automatic Checks Five watchlists run automatically with every Business Search: OFAC, CSL, CNS, FBI, and OIG. No additional configuration or input is required. These are the defaults: an admin can turn any of these lists, or PEP, off in [Account Settings](/docs/account-settings). #### Conditional Checks Two watchlist checks require specific conditions: **IEO (IRS Exempt Organizations)** — Only runs when a `tin` is provided in the search request. If you need IEO screening, include the business's TIN in your search. **PEP (Politically Exposed Persons)** — Only runs when `Order.Pep` is included in the search options: ```json theme={null} { "name": "Acme Corporation", "address": "123 Main St, New York, NY 10001", "options": ["Order.Pep"] } ``` Without this option, PEP checks will not be performed. If you are onboarding high-value customers or operating in regulated industries (banking, crypto, lending), consider always including `Order.Pep` in your search options. **BFC (Baselayer Fraud Consortium)** — Returned only to organizations with an active consortium membership, a contractual data-sharing arrangement — it is **not** an API order option. BFC also behaves differently from every other list: it is never emitted as a `count: 0` placeholder. If your organization is not a member, the BFC entry is entirely **absent** from `watchlist_hits` — a zero-count row would falsely assert the business had been screened against the consortium, so absence means "not screened", not "clean". BFC hits never appear in sandbox under any configuration. See [The Baselayer Fraud Consortium](/docs/the-baselayer-fraud-consortium) to learn about membership. *** ## Understanding the Response When Baselayer returns a Business Search response, watchlist results appear in **two separate locations**. Understanding this structure is essential for correctly identifying all potential matches. ### 1. Top-Level `watchlist_hits` (Search-Level) The top-level `watchlist_hits` array contains matches for the **data you submitted** in your search request: the business name, alternative names, and officer names you provided. ```json theme={null} { "id": "search-id-123", "name": "11420 CORP.", "address": "5599 NW 23rd Ave, Boca Raton, FL 33496", "tin": "270746046", "watchlist_hits": [ { "code": "OFAC", "name": "Department of Treasury, Office of Foreign Assets Control", "count": 2, "details": [...] } ], "business": {...} } ``` ### 2. Business-Level `watchlist_hits` (Profile-Level) The `watchlist_hits` array nested inside the `business` object contains matches for data **found in Baselayer's business profile**: the business's legal name, alternative names from Secretary of State records, and officers identified from SoS records and other sources. ```json theme={null} { "business": { "id": "business-id-456", "name": "11420 CORP.", "watchlist_hits": [ { "code": "CSL", "name": "Department of Commerce, Consolidated Screening List", "count": 1, "details": [...] } ] } } ``` ### Why Two Locations? The two arrays answer different questions and contain **different data**: * **Search-level (`watchlist_hits`)**: what **this search** screened: the business name, `alternative_names`, and `officer_names` you submitted, evaluated at the moment the search ran (point-in-time). IEO results appear here and on the business. * **Business-level (`business.watchlist_hits`)** — what Baselayer knows about the **business entity**: the resolved legal name, alternative names, and officers from Secretary of State records. This view is cumulative across searches of the same business, and it is also where Death Master File (DMF) results appear. Because the two arrays screen different names at different points in time, **do not deduplicate or merge them** — consume both. If either location shows a `count > 0`, that's a compliance flag. A `count` of `0` means the name was screened against that list and came back clean. A list your organization has disabled in [Account Settings](/docs/account-settings) is **absent** from both arrays rather than shown with a `count` of `0`, because it was not screened. ### Important: No Split Between Business Names and Officers Within each `watchlist_hits` array, matches are **not separated** by type. Business names, alternative names, and officer names all appear together in the same list. For example, if the business name matches OFAC and one of its officers also matches OFAC, you'll see both in the same `details` array with a `count` of 2. ### Visual Representation in the Console In the Baselayer Console, watchlist results are displayed side-by-side: * **Left panel**: "Your Search" — shows matches for the data you submitted * **Right panel**: "Business Name" — shows matches for the Baselayer business profile This mirrors the two-location structure in the API response. ![](https://mintcdn.com/baselayer-81245324/y8jjNyo-CIhfj2Df/images/Screenshot_2026-04-09_at_09.57.51.png?fit=max\&auto=format\&n=y8jjNyo-CIhfj2Df\&q=85\&s=4e22d0db5f217ef6637459a503cd3d0d) *** ## Reading Watchlist Results ### Structure of a Watchlist Hit Each entry in the `watchlist_hits` array is an **envelope** with four fields: * `code`: The short watchlist identifier (OFAC, PEP, CSL, BFC, etc.) * `name`: Human-readable name of the watchlist * `count`: Number of matches found (0 means the name was screened against that list and no matches were found) * `details`: Array of individual match objects. **The shape of these objects is specific to each list** — every list carries different fields, so parse `details` per list rather than assuming one universal schema. ### Example: An OFAC Hit OFAC `details` objects currently carry the following fields: ```json theme={null} { "code": "OFAC", "name": "Department of Treasury, Office of Foreign Assets Control", "count": 1, "details": [ { "name": "SARRIA DIAZ, Rafael Alfredo", "alternative_names": ["SARRIA-DIAZ, Rafael A", "SARRIA, Rafael"], "program": "VENEZUELA", "title": null, "remarks": "DOB 08 Nov 1965; POB Caracas, Venezuela.", "source": "SDN", "entity_number": "24427", "type": "Individual", "addresses": [ "5599 NW 23rd Avenue, Boca Raton, FL, 33496, US" ], "source_list_url": "https://sanctionslist.ofac.treas.gov/Home/SdnList", "source_information_url": "https://ofac.treasury.gov/sanctions-list-service" } ] } ``` ### OFAC Detail Fields * `name`: The watchlist entry's listed name * `alternative_names`: Known aliases (list of strings) * `program`: The sanctions program the entry belongs to (e.g., `"SDGT"`, `"VENEZUELA"`). Note this field is **singular** (`program`, a string) for OFAC; only CSL match objects use `programs` (plural) * `title`: The listed individual's title, if any * `remarks`: The Treasury SDN remarks text — often contains DOB, POB, and other identifying details useful for clearing false positives * `source`: Which OFAC-scope list the match came from: `"SDN"`, `"NON_SDN"`, or `"FINCEN_311"` (may be null) * `entity_number`: The OFAC entity number, as a **string**, or `null` (FinCEN 311 rows carry no entity number) * `type`: `"Individual"` or `"Entity"` * `addresses`: A list of strings. For OFAC it contains zero or one element, because the source publishes a single concatenated address string per entry * `source_list_url` / `source_information_url`: Links to the official source list and its documentation ### Detail Fields Vary by List — and Can Grow Treat every key in a `details` object as **optional-and-growing**: write your parser to tolerate missing keys and ignore unknown ones. * **Hits are frozen at screening time.** A watchlist hit permanently stores the detail shape that was current when the search ran. OFAC hits recorded before late May 2026 carry an older five-field shape (`name`, `alternative_names`, `program`, `title`, `remarks`) — they will not be backfilled. New searches return the full shape shown above. * **Addresses differ by list.** PEP, CSL, and OIG `addresses` are also lists of strings but can contain multiple elements (and can be `null` for CSL and OIG). FBI and CNS match objects have no address field at all. Addresses are always lists of plain strings — never lists of objects. ### Identifying Matches Any watchlist entry where `count > 0` indicates a positive match requiring review. Even if only one name matches, this is a compliance flag that must be investigated. *** ## The Similarity Threshold Baselayer uses fuzzy name matching to identify potential watchlist matches. Because names can be spelled differently, abbreviated, or contain typos, exact string matching would miss many legitimate matches. ### Default Thresholds For Business Search requests, Baselayer uses the following default similarity thresholds to ensure comprehensive coverage: | Watchlist | Default Similarity Threshold | | - | - | | OFAC, CSL, CNS, FBI, OIG, IEO, PEP (Politically Exposed Persons) | **0.95 (95%)** | ### Customizing Screening in Account Settings Admins can tune watchlist screening for their organization themselves, from the **Settings** tab in the Baselayer Console. It's common to choose stricter thresholds (to reduce false positives) or looser thresholds (to maximize coverage) depending on your risk appetite and regulatory requirements. For each of OFAC, PEP, CSL, FBI, CNS and OIG you can: * **Turn the list on or off.** A disabled list does not run and is absent from `watchlist_hits`. * **Set its similarity threshold**, from `0.0` to `1.0`. A higher threshold returns fewer, more exact matches. The similarity threshold applies to the names **you submit** in a search (the top-level `watchlist_hits`). Business-level `business.watchlist_hits` are shared across every search of the same business and are always screened at the 0.95 default, though a list you have disabled is hidden there too. Settings take effect on searches run after the change. See [Account Settings](/docs/account-settings) for the full walkthrough. ### Choosing the Right Threshold The default of 0.95 works well for most organizations, providing comprehensive coverage while keeping false positives manageable. Consider adjusting based on your risk tolerance: * **Stricter thresholds (0.95+)**: Fewer false positives requiring manual review, but may miss legitimate matches with significant name variations * **Looser thresholds (0.6–0.8)**: Maximum coverage for high-risk use cases, but expect more false positives Adjust thresholds in [Account Settings](/docs/account-settings), or contact your Baselayer account representative if you'd like help choosing them. *** ## Screening Configuration and Compliance Documentation For auditors, examiners, and compliance teams, Baselayer can provide written confirmation of the screening configuration applied to your account. This documentation typically includes: * **Which watchlists are scanned** — A full list of all watchlists included in every Business Search, along with their run conditions (automatic vs. conditional) * **Similarity thresholds** — The configured match sensitivity for each watchlist * **What names are screened** — Confirmation that business names, alternative names, and all identified officers are screened against all applicable watchlists * **Change control** — Settings can only be changed by your organization's admins, and Baselayer keeps a versioned record of every change, so we can confirm which configuration applied at any point in time You can view your current configuration at any time in the **Settings** tab of the Console. This documentation is designed to satisfy auditor and examiner inquiries about your sanctions screening program. Contact your Baselayer account representative to request a screening configuration confirmation for your account. *** ## Implementation: Checking for Watchlist Hits ```python theme={null} def has_watchlist_hits(search_response): """ Check if there are any watchlist matches at either the search or business level. Returns: (bool, list of watchlist codes with hits) """ hits = [] # Check search-level watchlist hits for watchlist in search_response.get('watchlist_hits', []): if watchlist.get('count', 0) > 0: hits.append(watchlist['code']) # Check business-level watchlist hits business = search_response.get('business') or {} for watchlist in business.get('watchlist_hits', []): if watchlist.get('count', 0) > 0: hits.append(watchlist['code']) return len(hits) > 0, hits # Usage search_response = {} # Your Business Search response has_hits, watchlist_codes = has_watchlist_hits(search_response) if has_hits: print(f"⚠️ Watchlist hits found: {', '.join(watchlist_codes)}") # Trigger manual review or reject else: print("✅ No watchlist hits") ``` *** ## Best Practices **Always check both response locations.** Don't just check the top-level `watchlist_hits` — also check the `business.watchlist_hits` array. A match in either location is a compliance flag. **Treat any count > 0 as a flag.** Even a single match requires investigation. Don't ignore low counts. **Review the details.** Don't stop at the count — examine the `details` array to understand what matched, which sanctions program it's tied to, and the associated addresses and alternative names. This context helps you determine if it's a true match or a false positive. **Consider match type.** Matches marked as `"type": "Individual"` are people, while `"type": "Entity"` are businesses. This distinction matters for your review process. **Use PEP checks for higher-risk scenarios.** If you're onboarding high-value customers or operating in regulated industries, always include `Order.Pep` in your search options. **Handle false positives gracefully.** Not every match is a true positive. Common false positives include common names, similar business names in different industries, and entities with the same name but different locations. Always investigate before rejecting. **Keep records.** Log all watchlist screening results, including timestamp, input data, and match details. Regulators may require proof of screening. **Don't rely solely on automated screening.** Watchlist screening is part of a broader compliance program. Combine it with manual review for positive matches, enhanced due diligence for high-risk matches, and ongoing monitoring via [Portfolio Monitoring](/docs/portfolio-monitoring). *** ## Next Steps * **Customize screening:** Choose your lists and thresholds in [Account Settings](/docs/account-settings) * **Learn the fundamentals:** Read [Watchlists, Sanctions & Compliance Screening](/docs/watchlists-sanctions-and-compliance-screening) for compliance concepts * **Run standalone checks:** See [Watchlists & Sanctions: Standalone Checks](/docs/watchlists-sanctions-standalone-checks) for independent screening outside of Business Search * **Explore Business Search:** See the [Business Search: API Quickstart](/docs/business-search) for full API details * **Set up monitoring:** Use [Portfolio Monitoring](/docs/portfolio-monitoring) to continuously screen your customer base # Watchlists & Sanctions: Standalone Checks Source: https://docs.baselayer.com/docs/watchlists-sanctions-standalone-checks Screen a name against OFAC and PEP lists without running a full Business Search. ## Standalone Sanctions & PEP Checks Baselayer offers dedicated endpoints for running sanctions and PEP screening independently from Business Search. These are useful when you need to check individual names, run batch screening, or build custom compliance workflows outside of the standard business verification flow. Sanction lists are updated daily. For watchlist screening as part of Business Search, see the [Watchlists & Sanctions: Business Search](/docs/watchlists-sanctions-basics) guide. For a deeper understanding of sanctions compliance concepts, see the [Watchlists, Sanctions & Compliance Screening](/docs/watchlists-sanctions-and-compliance-screening) guide. *** ## When to Use Standalone Checks Standalone sanctions and PEP endpoints are designed for workflows where you need screening outside of a full Business Search: * **Individual KYC** — Screening a person's name (e.g., a beneficial owner or authorized signer) without running a full business verification * **Batch processing** — Screening many names at once by uploading a CSV file, such as during periodic rescreening of an existing customer base * **Re-screening existing customers** — Running updated checks against current sanctions lists for customers already onboarded * **Custom compliance workflows** — Integrating sanctions checks at specific points in your application flow (e.g., before disbursing funds, during periodic reviews) * **Pre-screening** — Quick name checks before initiating a full Business Search *** ## Available Endpoints ### OFAC Sanctions Check `POST /ofac/searches` Checks a name against OFAC sanctions lists (SDN, SSI, and other OFAC-administered lists). ```json theme={null} POST /ofac/searches { "name": "John Smith", "similarity_threshold": 0.9 } ``` ### PEP Check `POST /pep/searches` Checks a name against Politically Exposed Persons databases to identify individuals holding or having held prominent public positions. ```json theme={null} POST /pep/searches { "name": "Jane Doe", "similarity_threshold": 0.9 } ``` *** ## The Similarity Threshold Both standalone endpoints accept a `similarity_threshold` parameter that controls how closely a name must match a watchlist entry to be flagged. They also accept `limit`, the most matches to return (default 1, max 50). ### How It Works The threshold is a value between `0.0` and `1.0` (0% to 100% similarity). A name must meet or exceed the threshold to be returned as a match. * **0.9 (90%)** — High precision. Our recommended starting point to limit false positives, while maximizing coverage. * **0.85 (85%)** — Balanced. Catches more name variations and cases with additional words. * **0.7–0.8 (70–80%)** — High recall. Catches more name variations (transliterations, abbreviations, typos) but generates more false positives requiring manual review. ### Choosing a Threshold The default for standalone checks is **0.9 (90%)** if no `similarity_threshold` is specified. This provides high precision with fewer false positives. Adjust based on your results: * If you're seeing too many false positives (common names flagging unrelated watchlist entries), raise the threshold toward 0.95. * If you're in a highly regulated industry and want maximum coverage, lower it toward 0.7 — but expect more manual review. Note: Business Search screens at the thresholds set in your organization's [Account Settings](/docs/account-settings) (0.95 for every list by default). Standalone checks do **not** use Account Settings: they default to 0.9 and give you explicit control over this parameter per request, allowing you to tune sensitivity for different workflows. *** ## Reading the Response Standalone check responses return match results directly. ### Key Fields * `total_matches` — Number of matches found. A value of 0 means no matches. * `matches`: Array of individual match records, each containing name, addresses, alternative names, and similarity score. ### Identifying Matches Any response where `total_matches > 0` indicates a positive match requiring review. Examine the `matches` array to understand what matched and assess whether it's a true positive or false positive. *** ## Implementation Examples ### OFAC Sanctions Check ```python theme={null} import requests def check_ofac(name, similarity_threshold=0.9): """ Perform an independent OFAC sanctions check. """ url = "https://api.baselayer.com/ofac/searches" headers = { "X-API-Key": "your-api-key", "Content-Type": "application/json" } payload = { "name": name, "similarity_threshold": similarity_threshold } response = requests.post(url, json=payload, headers=headers) response.raise_for_status() data = response.json() total_matches = data.get('total_matches', 0) return { 'has_hit': total_matches > 0, 'hit_count': total_matches, 'hits': data.get('matches', []) } # Usage result = check_ofac("John Doe", similarity_threshold=0.9) if result['has_hit']: print(f"⚠️ OFAC hit: {result['hit_count']} match(es)") for hit in result['hits']: print(f" - {hit['name']} (Program: {hit.get('program')})") else: print("✅ No OFAC matches") ``` ### PEP Check ```python theme={null} def check_pep(name, similarity_threshold=0.9): """ Perform an independent PEP check. """ url = "https://api.baselayer.com/pep/searches" headers = { "X-API-Key": "your-api-key", "Content-Type": "application/json" } payload = { "name": name, "similarity_threshold": similarity_threshold } response = requests.post(url, json=payload, headers=headers) response.raise_for_status() data = response.json() total_matches = data.get('total_matches', 0) return { 'has_hit': total_matches > 0, 'hit_count': total_matches, 'hits': data.get('matches', []) } # Usage result = check_pep("Jane Doe", similarity_threshold=0.9) if result['has_hit']: print(f"⚠️ PEP hit: {result['hit_count']} match(es)") for hit in result['hits']: print(f" - {hit['name']} (Position: {hit.get('title')})") else: print("✅ No PEP matches") ``` ### Batch OFAC Screening For screening many names at once — such as periodic rescreening of an existing customer base — Baselayer provides a dedicated batch endpoint that accepts a CSV file. `POST /ofac/searches/batches` Submit a CSV file (max 5MB) with two columns: `entity_name` and `reference_id`. The `reference_id` is your internal identifier for each entity, allowing you to match results back to your records. **Sample CSV: [here](https://storage.googleapis.com/osiris-public-assets-prod/schemas/ofac_batch_csv_example.csv)** ```csv theme={null} entity_name,reference_id Alice Johnson,CUST-001 Bob Chen,CUST-002 Carlos Rivera,CUST-003 ``` **Request:** ```python theme={null} import requests def batch_ofac_screen(csv_file_path, similarity_threshold=0.9): """ Submit a CSV for batch OFAC screening. """ url = "https://api.baselayer.com/ofac/searches/batches" headers = { "X-API-Key": "your-api-key", "accept": "application/json" } params = {"similarity_threshold": similarity_threshold} with open(csv_file_path, "rb") as f: files = {"file": ("customers.csv", f, "text/csv")} response = requests.post(url, headers=headers, params=params, files=files) response.raise_for_status() return response.json() # Usage result = batch_ofac_screen("customers.csv", similarity_threshold=0.9) print(f"Batch ID: {result['id']}") print(f"State: {result['state']}") print(f"Total entities: {result['entities_count']}") print(f"Entities with matches: {result['entities_with_match_count']}") ``` **Response:** The API returns a summary of the batch analysis: ```json theme={null} { "id": "fce8c776-163d-4c28-bd3d-cc2797b4f9af", "name": "customers.csv", "similarity_threshold": 0.9, "state": "PENDING", "entities_count": 100, "valid_entities_count": 100, "entities_with_match_count": 10, "invalid_entities_count": 0, "created_at": "2026-03-31T23:48:20.569048", "updated_at": "2026-03-31T23:48:20.569059" } ``` The `similarity_threshold` parameter defaults to 0.9 and can be adjusted per batch via query parameter. Poll `GET /ofac/searches/batches/{batch_id}` until the state is `COMPLETED`, then download the results from `GET /ofac/searches/batches/{batch_id}/download`. *** ## Best Practices **Use standalone checks for individual screening.** If you're verifying a person (not a business), standalone endpoints are the right tool. Don't run a full Business Search just to check a name. **Match your threshold to your risk tolerance.** Start at 0.9 and adjust. Highly regulated industries may want 0.7. **Always review match details.** A positive match doesn't always mean a true hit. Examine names, addresses, and sanctions programs to distinguish true positives from false positives caused by common names. **Log everything.** Record the name checked, threshold used, timestamp, and full response. Regulators may require proof of screening. **Combine with Business Search.** Standalone checks are complementary to — not a replacement for — Business Search watchlist screening. Use standalone checks for individual names and edge cases; use Business Search for full business verification workflows. **Set up ongoing monitoring.** Standalone checks are point-in-time. For continuous screening, use [Portfolio Monitoring](/docs/portfolio-monitoring) to automatically rescreen your customer base when watchlists are updated. *** ## Next Steps * **Learn the fundamentals:** Read [Watchlists, Sanctions & Compliance Screening](/docs/watchlists-sanctions-and-compliance-screening) for compliance concepts * **Business Search screening:** See [Watchlists & Sanctions: Business Search](/docs/watchlists-sanctions-basics) for integrated screening * **Set up monitoring:** Use [Portfolio Monitoring](/docs/portfolio-monitoring) to continuously screen your customer base * **API reference:** [POST /ofac/searches](/api-reference/ofac/search-ofac) | [POST /ofac/searches/batches](/api-reference/ofac/post-ofac-batch) | [POST /pep/searches](/api-reference/pep/search-pep) # The Web Presence API Source: https://docs.baselayer.com/docs/web-presence-api Get online presence data on any business, registered or not, with one call that runs separately from KYB. ### `POST /web_presence_requests` is an independent product The Web Presence API accepts the same kind of inputs as a Business Search but runs only the digital-footprint analysis. It operates independently of KYB: it doesn't require a registration match, doesn't influence KYB scores, and returns results regardless of whether the business appears in Secretary of State records. This makes it the right primary path for several common integration patterns, not just a fallback for failed Business Searches. *** ### When standalone is the better default | Scenario | Why standalone fits | | :- | :- | | **You approve sole proprietors** | Business Search returns `FAILED` for most sole props, no SoS registration means no match and no orderables. Standalone returns web presence on every applicant regardless of registration status. | | **You want to pre-screen before KYB** | Run digital discovery early in your funnel to gather context before committing to a full KYB search. | | **You want signals on every application, including rejected ones** | Industry classification and online activity are valuable for analytics and underwriting calibration even when KYB fails. | | **You're latency-sensitive on KYB** | Running web presence in parallel to (or earlier than) your KYB call keeps the Business Search fast. | | **You don't want online signals influencing KYB ratings** | Standalone keeps the two pipelines fully independent. | *** ### Request fields #### Required | Field | Description | | :- | :- | | `name` | The business name to evaluate. | | `address` | The business's physical address. A full street address is ideal; state is the minimum required. More detail improves match precision, especially for businesses with common names. | #### Optional | Field | Description | | :- | :- | | `alternative_names` | Known DBAs, trade names, or brand names. Can significantly improve discovery accuracy when businesses operate under different names online. | | `officer_names` | Officers or directors associated with the business. Used to improve match confidence when linking discovered online officers back to the entity. | | `website` | The business's claimed website. When provided, Baselayer analyzes both this domain and any domain it independently discovers, returning separate results for each. | | `phone_number` | Used to validate consistency across online directories and contact pages. | | `email` | Used to check alignment between submitted data and discovered online contact information. | | `social_profiles` | Known social media profiles for the business. Pass as an array of `{site, value}` pairs where `value` can be a URL, handle, or free text. Baselayer will verify each against its discovery results and report back which were independently confirmed. | | `reference_id` | An optional string to associate this request with an internal ID or case in your system. Returned in webhooks and API responses for traceability. | | `options` | Sub-products to include in the analysis. See the table below. | #### Valid values for `options` > `Order.Enhanced` and `Order.Pep` are **not** supported on this endpoint. To get social profiles and reviews via `/web_presence_requests`, request each sub-product individually. > > If no `options` are submitted, `Order.WebsiteAnalysis` and `Order.NaicsPrediction` are requested by default. Sending an empty `options` array returns a 422. | Value | What it returns | | :- | :- | | `Order.WebsiteAnalysis` | `website_analysis` inline in the response. If a `website` was submitted, an additional analysis is returned for that domain under `input_website_analysis`. | | `Order.NaicsPrediction` | `industry_prediction` inline in the response. | | `Order.SocialMedia` | `found_social_profiles[]` at the top level of the response. | | `Order.ReviewSummary` | `found_reviews[]` at the top level — summary depth. | | `Order.ReviewFull` | `found_reviews[]` at the top level, full review detail. Must be sent with `Order.ReviewSummary`. | | `Order.DirectoryListing` | `found_directory_listings[]` at the top level. | *** ### Where the data lives in the response A key difference from `/searches`: on this endpoint, `website_analysis` and `industry_prediction` are returned **inline** in the response. You do not need to call a separate GET endpoint to retrieve them. | Data | Location | | :- | :- | | Match flags (`business_address_match`, `business_website_match`, `email_match`, `phone_number_match`) | Top level | | `*_match_sources` arrays | Top level | | `website_analysis` | Top level inline | | `industry_prediction` | Top level inline | | `found_social_profiles[]` | Top level (requires `Order.SocialMedia`) | | `found_reviews[]` | Top level (requires `Order.ReviewSummary` or `Order.ReviewFull`) | | `found_directory_listings[]` | Top level (requires `Order.DirectoryListing`) | | `input_website_analysis` | Top level - derived from your `website` input | | `input_social_profiles[]` | Top level - scraped profiles derived from your `social_profiles` input | | `social_profiles_match[]` | Top level — one entry per submitted social profile, indicating whether it was independently verified by Baselayer | > **No unified address or officer list.** Unlike `/searches` with `Order.Enhanced`, this endpoint does not merge discovered addresses and officers into a single business object. Discovered addresses and officers are nested within each sub-product result (e.g., inside `website_analysis` or individual `found_social_profiles` entries). *** ### Sample request ```json theme={null} { "name": "Acme Corp", "address": "123 Main St, New York, NY 10001", "website": "acmecorp.com", "social_profiles": [ { "site": "linked_in:company", "value": "https://www.linkedin.com/company/acme-corp" }, { "site": "instagram", "value": "@acmecorp" } ], "options": [ "Order.WebsiteAnalysis", "Order.NaicsPrediction", "Order.SocialMedia", "Order.ReviewSummary" ] } ``` *** ### Sample response ```json theme={null} { "id": "c3f1a2b4-...", "state": "COMPLETED", "found_website": "https://www.acmecorp.com/", "business_address_match": "EXACT", "business_address_match_sources": ["FOUND_WEBSITE", "REVIEW"], "business_website_match": null, "email_match": null, "email_match_sources": [], "phone_number_match": "EXACT", "phone_number_match_sources": ["FOUND_WEBSITE"], "website_analysis": { "id": "7e815bec-...", "url": "https://www.acmecorp.com/", "parked": false, "website_build_status": "active", "email_deliverable": true, "emails": [], "phone_numbers": ["+12125550100"], "website_summary": "Acme Corp provides industrial supply solutions across the northeast US.", "website_structure_metrics": { "breadth": "5", "depth": "2+" }, "addresses": [ { "street": "123 Main St", "city": "New York", "state": "NY", "zip": "10001" } ], "people": [ { "name": "Jane Smith", "titles": ["CEO"] } ], "social_profiles": [ { "site": "linked_in:company", "url": "https://www.linkedin.com/company/acme-corp", "username": "acme-corp" }, { "site": "instagram", "url": "https://www.instagram.com/acmecorp", "username": "acmecorp" } ], "ssl_validity": { "is_valid": true, "cert_age_days": 45, "days_until_expiry": 320, "expiry_date": "2027-04-01T00:00:00Z", "tls_version": "TLSv1.3", "is_wildcard": false, "is_self_signed": false }, "whois_record": { "domain_age_months": 84, "domain_created_at": "2019-05-01T00:00:00", "domain_expires_at": "2027-05-01T00:00:00", "registrar": "GoDaddy" }, "screenshot_url": "https://api.baselayer.com/website_analysis/7e815bec-.../screenshot" }, "industry_prediction": { "code": "423840", "title": "Industrial Supplies Merchant Wholesalers", "accuracy": 0.91, "keywords": ["industrial supply", "safety equipment", "wholesale", "B2B"], "risk_level": "low", "reasoning": "Website describes wholesale distribution of industrial supplies and safety equipment to commercial clients.", "mcc_codes": [ { "code": "5085", "description": "Industrial Supplies, Not Elsewhere Classified", "mastercard_risk": false, "visa_risk_tier": null } ], "sic_codes": [ { "code": "5085", "description": "Industrial Supplies" } ] }, "found_social_profiles": [ { "site": "linked_in:company", "url": "https://www.linkedin.com/company/acme-corp", "username": "acme-corp", "confidence": "high", "found_on": ["FOUND_WEBSITE"], "metadata": { "followers_count": 1840, "company_size_range": "51-200 employees", "bio": "Industrial supply solutions across the northeast US.", "business_website": "https://acmecorp.com" } } ], "found_reviews": [ { "source": "google", "confidence": "high", "rating": 4.6, "volume": 112, "summary": null, "address": "123 Main St, New York, NY 10001", "phone_number": "+12125550100", "business_website": "https://acmecorp.com", "reviews": [ { "date": "2026-05-20", "rating": 5, "text": "Fast delivery, great quality.", "username": "Jane D." }, { "date": "2026-05-15", "rating": 4, "text": "Good selection, responsive team.", "username": "Mark T." } ], "metadata": { "description": "Industrial supply distributor serving commercial clients across the northeast.", "open_state": "Open ⋅ Closes 6 PM", "operating_hours": { "monday": "8 AM–6 PM", "tuesday": "8 AM–6 PM", "wednesday": "8 AM–6 PM", "thursday": "8 AM–6 PM", "friday": "8 AM–5 PM", "saturday": "Closed", "sunday": "Closed" }, "types": ["Industrial equipment supplier", "Wholesaler"], "service_options": { "delivery": true, "in_store_pickup": true } } } ], "found_directory_listings": null, "input_social_profiles": [ { "site": "linked_in:company", "url": "https://www.linkedin.com/company/acme-corp", "confidence": "high", "found_on": ["FOUND_WEBSITE"], "metadata": { "followers_count": 1840, "company_size_range": "51-200 employees" } } ], "social_profiles_match": [ { "site": "linked_in:company", "value": "https://www.linkedin.com/company/acme-corp", "matched": true }, { "site": "instagram", "value": "@acmecorp", "matched": false } ] } ``` *** ### Sole proprietors Web presence is the cornerstone of sole proprietor verification. Sole props typically lack SoS registration data, which means a Business Search alone cannot confirm their identity. Online presence (an active website, social media profiles, review history, and consistent contact information) fills that gap. For the complete sole proprietor workflow covering TIN verification, web presence, and individual identity checks, see [Sole Proprietorship Verification](/docs/sole-prop-verification). *** ### Webhooks For a web presence request, Baselayer fires: * `WebPresenceRequest.submitted`: signals the request was created. * `WebPresenceRequest.completed`: signals the full request is done and all requested sub-products are available in the response. * `WebPresenceRequest.failed`: signals the request failed. *** ### Related guides * [Online Presence: Basics](/docs/online-presence-basics) - integration path decision guide * [Adding Online Presence to a Business Search](/docs/adding-online-presence-to-a-business-search) - the bundled path via `/searches` * [Response Reference](/docs/online-presence-response-reference) - full field definitions and path-specific response shapes * [Online Presence: Best Practices](/docs/web-presence-orderables) - how to use these signals for onboarding decisions * [Sole Proprietorship Verification](/docs/sole-prop-verification) - full sole prop workflow # Online Presence: Best Practices Source: https://docs.baselayer.com/docs/web-presence-orderables Turn online presence signals into approve, review or decline decisions, and spot impersonation and other fraud. ### Introduction Online presence signals are most valuable when applied with context. A missing website means something different for a 20-year-old concrete contractor than for a company claiming to be an established e-commerce platform. A low review volume is expected for a B2B firm and suspicious for a restaurant. This guide covers how to use each sub-product effectively, how to combine them into a coherent decisioning workflow, and how to detect fraud patterns observed in the field. It also covers sector-specific patterns. For field definitions and response shapes, see [Online Presence: Response Reference](/docs/online-presence-response-reference). > **Working examples throughout this guide.** We use two real Web Presence responses side by side: > > * ✅ **Lucali**: a well-known Brooklyn pizza restaurant. Clean, established, legitimate. Submitted website `lucali.com` and email `john@lucali.com` — both on the corporate domain, both consistent with the discovered identity. > * 🚩 **Hartwell Legal Group**: a law firm application where the submitted website is a lookalike domain registered 15 days before the application, impersonating an established firm with a 4-year-old domain. Every fraud signal in this guide fires on this example. *** ### Website Analysis #### What to look for **Is the site real and operational?** Use `website_build_status` and `parked` together. A status of `coming_soon` or `inactive`, or `parked: true`, indicates a placeholder or undeveloped domain. Treat these as early-stage signals, not automatic flags - but weight them heavily if the business claims years of operation. Note that many legitimate SMBs (local contractors, restaurants, service businesses) operate with no website at all, relying instead on Google Business, Yelp, or Facebook. A missing website should be informational, not a red flag. Evaluate it alongside the rest of the digital footprint: strong review presence and consistent contact data across platforms can more than compensate. **Is the domain legitimate?** Flag if `ssl_validity.is_valid` is `false`. An invalid or missing SSL certificate is a meaningful risk signal, especially for businesses claiming to transact online. **Does the contact information align?** Baselayer discovers emails and phone numbers from the website. Cross-check `website_analysis.emails[]` and `phone_numbers[]` against the submitted application data. Leverage `email_match` and `phone_number_match` fields. A business with `email_deliverable: true` and a professional domain on the discovered website, but a free email or an email on a different domain in the application, is a synthetic identity or impersonation signal worth flagging. **Does the submitted website match the discovered one?** Check `business_website_match`. A value of `false` means the domain you were given doesn't match what Baselayer found. Compare the two objects directly - divergence in `parked`, `website_build_status`, or `whois_record.domain_age_months` between submitted and discovered domains is itself a risk signal. **How substantial is the website?** `website_structure_metrics` returns `depth` (maximum link depth: `"0"`, `"1"`, or `"2+"`) and `breadth` (total unique pages discovered). A real operating business almost always has some structure. A site with `depth: "0"` and `breadth: "1"` is not automatically suspicious, but combined with other weak signals it suggests a site put up quickly rather than built over time. #### Key thresholds | Signal | Threshold | Action | | :- | :- | :- | | `website_build_status` | `≠ active` or `parked: true` | Flag — site may be placeholder or inactive | | `ssl_validity.is_valid` | `false` | Flag — insecure or spoofed site | | `whois_record.domain_age_months` | `< 6` and business claims maturity | Flag — newly registered domain for an older business | | `business_website_match` | `false` | Flag — submitted domain not verified | | `website_structure_metrics` | `depth: "0"` and `breadth: "1"` | Weak signal — evaluate alongside other indicators | | Submitted email domain vs. discovered `email_deliverable` domain | Mismatch (e.g., free email or unrelated domain vs. deliverable corporate domain) | Flag — potential impersonation or synthetic identity | > | Field | ✅ Lucali | 🚩 Hartwell Legal Group | > | :- | :- | :- | > | `website_build_status` | `active` (found); `active` (submitted) | `active` (found); `active` (submitted) | > | `parked` | `false` (both) | `false` (both) | > | `ssl_validity.is_valid` | `true` (both) | `true` (submitted); `null` (found) | > | `domain_age_months` (found) | 213 | 50 — consistent with firm founded 4 years ago | > | `domain_age_months` (submitted) | 213 — matches found domain | **0** — domain registered 15 days before application | > | `business_website_match` | `true` — submitted `lucali.com` matches found domain | **`false`** — submitted domain does not match found domain | > | `email_deliverable` (found) | `true` | `true` | > | Submitted email domain | `lucali.com` — matches found domain | **`hartwelllegalgrp.com`** — different from found `hartwelllegal.com` | *** ### Domain Impersonation Patterns This section covers fraud patterns that are only detectable by comparing the submitted domain against the independently discovered domain. They require `input_website_analysis` to be present, which means the applicant's `website` must be included in the request. **Submit the website collected in your application form, or the email domain from the applicant.** #### Domain age vs. business age The most reliable impersonation signal available. Legitimate businesses typically have domains as old as, or older than, the business itself. A business with years of history applying with a brand-new domain is a serious red flag. **The pattern in practice:** A fraudster registers a lookalike domain days or weeks before submitting an application. The name is close enough to pass a casual read: a transposed letter, an added word, a slightly different TLD. They set up email on that domain to establish a communication channel with the FI, intercepting correspondence and redirecting funds while the real business owner never finds out. Baselayer's `website_analysis` will return the legitimate, long-standing domain. `input_website_analysis` exposes the fraud by revealing that the submitted domain was registered days ago. Use `whois_record.domain_created_at` from both objects alongside `months_in_business` from the Business Search response. | Condition | Action | | :- | :- | | Submitted domain `< 90 days` old AND business `> 24 months` old | Flag for manual review | | Submitted domain `< 30 days` old AND business `> 24 months` old | High-risk — escalate immediately | | Found domain age roughly consistent with business age | Positive corroborating signal | ```python theme={null} from datetime import datetime, timezone def check_domain_age_risk(web_presence_response, months_in_business): input_analysis = web_presence_response.get("input_website_analysis") if not input_analysis or not months_in_business: return "INSUFFICIENT_DATA" whois = input_analysis.get("whois_record") if not whois or not whois.get("domain_created_at"): return "NO_WHOIS_DATA" # Treat as elevated risk for established businesses created_at = datetime.fromisoformat(whois["domain_created_at"]) domain_age_months = (datetime.now(timezone.utc) - created_at.replace(tzinfo=timezone.utc)).days / 30 if domain_age_months < 1 and months_in_business > 24: return "HIGH_RISK" # Domain registered days ago — near-certain impersonation elif domain_age_months < 3 and months_in_business > 24: return "HIGH_RISK" # 1 to 3 months: escalate immediately elif domain_age_months < 6 and months_in_business > 24: return "FLAG" # Manual review required else: return "PASS" ``` > | Field | ✅ Lucali | 🚩 Hartwell Legal Group | > | :- | :- | :- | > | `input_website_analysis` | Present — submitted `lucali.com` | Present — submitted `hartwelllegalgrp.com` | > | Submitted domain `domain_created_at` | `2008-08-22` — 213 months ago | `2026-05-09` — 15 days before application | > | Submitted domain `domain_age_months` | 213 — consistent with found domain | **0** | > | Found domain `domain_age_months` | 213 — matches submitted domain | 50 — consistent with a firm founded \~4 years ago | > | `check_domain_age_risk` result | `PASS` — submitted and found domains align | **`HIGH_RISK`** | > > The Hartwell Legal Group response makes the fraud pattern unmistakable: a firm claiming years of operation, a found website with a 50-month-old domain, and a submitted website registered 15 days before the application on a domain that closely mirrors the real one (`hartwelllegalgrp.com` vs. `hartwelllegal.com`). Lucali, by contrast, shows the expected clean pattern — submitted and found domains are the same, ages align perfectly. #### Lookalike domain names Beyond domain age, inspect the submitted and found domain names directly for visual similarity. Common patterns: * **Added or transposed characters** — `hartwelllegalgrp.com` vs. `hartwelllegal.com` * **Hyphenation** — `hartwell-legal.com` vs. `hartwelllegal.com` * **TLD substitution** — `.net`, `.co`, `.org` variants of a `.com` domain * **Word additions** — `hartwelllegalgroup.com`, `hartwelllegalservices.com` When `business_website_match: false` and the two domain names are visually similar, treat this as a near-certain impersonation attempt regardless of other signals. #### Free email vs. deliverable corporate domain When the applicant submits an email address on a domain that differs from the discovered business domain — and the discovered domain has `email_deliverable: true` — that combination is a strong impersonation signal. If an established business has a working corporate domain with functioning email, there is no legitimate reason for a representative to apply using an email address on a different domain. The most likely explanation: the real business exists, but the applicant does not work there. Note that this signal applies beyond free email providers. In the Hartwell Legal Group example, the submitted email is on the newly-registered lookalike domain (`hartwelllegalgrp.com`), not a free provider — but the mismatch against the discovered `hartwelllegal.com` domain is equally telling. ```python theme={null} FREE_EMAIL_DOMAINS = { "gmail.com", "yahoo.com", "icloud.com", "hotmail.com", "outlook.com", "aol.com", "protonmail.com", "me.com" } def check_email_impersonation(submitted_email, found_website_url, website_analysis): if not submitted_email or not website_analysis: return "INSUFFICIENT_DATA" email_deliverable = website_analysis.get("email_deliverable", False) if not email_deliverable: return "PASS" # Found domain not deliverable — signal not applicable submitted_domain = submitted_email.split("@")[-1].lower() if "@" in submitted_email else None if not submitted_domain: return "INSUFFICIENT_DATA" # Extract found domain from URL from urllib.parse import urlparse found_domain = urlparse(found_website_url).netloc.lower().removeprefix("www.") if found_website_url else None if submitted_domain in FREE_EMAIL_DOMAINS: return "FLAG" # Free email while corporate domain is operational if found_domain and submitted_domain != found_domain: return "FLAG" # Email on a different domain than the discovered business domain return "PASS" ``` > | Field | ✅ Lucali | 🚩 Hartwell Legal Group | > | :- | :- | :- | > | Submitted email | `john@lucali.com` — corporate domain | `contact@hartwelllegalgrp.com` — lookalike domain | > | Found domain | `lucali.com` | `hartwelllegal.com` | > | `email_deliverable` (found) | `true` | `true` | > | Email domain matches found domain | **Yes** — `lucali.com` = `lucali.com` | **No** — submitted email is on the lookalike domain | > | `check_email_impersonation` result | `PASS` | **`FLAG`** | *** ### Industry Prediction #### What to look for **Set a confidence floor.** `accuracy ≥ 0.75` is the recommended threshold for automated decisioning. Predictions below this are typically based on thin or conflicting online data. Use them directionally (at the 2-digit or 4-digit NAICS level) but require manual review before acting on the 6-digit code. **Maintain prohibited industry lists at multiple levels.** Use NAICS hierarchy strategically: * 2-digit codes to ban entire sectors (e.g., `71` = Arts, Entertainment, and Recreation) * 4-digit codes to target industry groups (e.g., `7132` = Gambling Industries) * 6-digit codes for precision targeting (e.g., `713210` = Casinos while allowing `713290` = Other Gambling Industries) Prohibited and restricted NAICS and keyword lists are available from your Baselayer account representative. **Scan `keywords[]` for sensitive terms.** Even within permitted industries, certain keywords may indicate restricted activities — opioid risk in healthcare (`pain`, `opioid`), regulated substances (`CBD`, `cannabis`, `vape`), or potential TOSA risk (`escort`, `adult`). Maintaining a keyword watchlist catches high-risk niches inside approved sectors. A complete recommended keyword list is available from your account representative. **Use `mcc_codes[]` for card network compliance.** For payment processing use cases, check `mastercard_risk` and `visa_risk_tier` inside each entry of `mcc_codes[]`. If any MCC has `mastercard_risk: true` or `visa_risk_tier: 1`, apply the relevant network compliance controls. Note that a single industry prediction may return multiple MCC codes, so check all of them. > **Note:** Baselayer uses 2017 NAICS codes across all industry prediction and classification endpoints. The 2017 revision is the basis for all returned codes, filters, and industry-related fields. If you're cross-referencing against another system, confirm it also uses the 2017 standard. #### Tiered review policy | Accuracy | Treatment | | :- | :- | | `≥ 0.75` | Safe for automated decisioning. Apply prohibited industry checks and network risk indicators automatically. | | `0.50 – 0.74` | Use directionally. Flag for analyst review. Apply prohibited checks at 2-digit or 4-digit NAICS level only. | | `< 0.50` | Do not use for automated decisions. Request additional information about business activities. | > | Field | ✅ Lucali | 🚩 Hartwell Legal Group | > | :- | :- | :- | > | `accuracy` | 0.95 | 0.98 | > | `code` | `722511` — Full-Service Restaurants | `541110` — Offices of Lawyers | > | `keywords` | restaurant, pizzeria, pizza, calzone, dine-in, table service | law firm, attorney, legal representation, civil litigation, family law | > | `risk_level` | low | low | > | `mastercard_risk` | false | false | > > Note: industry prediction is clean on both. *** ### Social Profiles > Social profiles are returned at `business.social_profiles[]` on `POST /searches` (requires `Order.Enhanced`) and at `found_social_profiles[]` on `POST /web_presence_requests` (requires `Order.SocialMedia`). The object structure is identical. #### What to look for **Filter by confidence first.** Only profiles with `confidence: high` should influence automated decisions. Medium and low confidence profiles may belong to unrelated businesses with similar names. **Verify submitted social profiles.** When you submit known social profiles in the request, Baselayer returns a `social_profiles_match[]` array. Treat this as an additional confidence signal alongside `email_match` and `phone_number_match`: a confirmed match is a positive identity signal that corroborates the applicant's submitted data. A submitted profile that was not confirmed is informational rather than diagnostic, but warrants closer review. `social_profiles_match[]` is available on `POST /web_presence_requests`. **Cross-reference contact data across platforms.** Compare `business_website` and `email` fields across discovered profiles and the submitted application. Inconsistencies between platform data and application data — especially different websites or unrelated email domains — can indicate impersonation. **Look for business-oriented signals.** `is_business_account: true` on Instagram and `is_business_page: true` on Facebook are strong legitimacy indicators. `is_private: true` on Instagram is low-confidence and should not contribute to approval decisions. **Weigh by sector.** High follower counts and review presence matter more for consumer-facing brands than B2B firms. For B2B, LinkedIn is typically the most relevant platform; for retail and hospitality, Instagram and Facebook carry more weight. Adjust thresholds accordingly. **Check `found_on[]`.** Profiles with `found_on: ["FOUND_WEBSITE"]` were linked directly to the business's website, a stronger signal of ownership than profiles discovered through general search alone. > | Field | ✅ Lucali | 🚩 Hartwell Legal Group | > | :- | :- | :- | > | Profiles found | Instagram (279K followers), Facebook (13K followers) | Facebook (7 followers, `found_on: ["FOUND_WEBSITE"]`) | > | `is_business_page` | true (both) | true | > | `business_website` in profile | `lucali.com` | `hartwelllegal.com` — **not the submitted domain** | > | `found_on` | `["FOUND_WEBSITE"]` | `["FOUND_WEBSITE"]` | > > The Hartwell example shows an important corroborating signal: the Facebook page linked from the found website (`hartwelllegal.com`) points back to `hartwelllegal.com`, not to the submitted `hartwelllegalgrp.com`. This cross-platform consistency of the real business creates a consistent picture that directly contradicts the submitted application. *** ### Reviews > Reviews are returned at `business.reviews[]` on `POST /searches` (requires `Order.Enhanced`) and at `found_reviews[]` on `POST /web_presence_requests` (requires `Order.ReviewSummary` or `Order.ReviewFull`). The object structure is identical. #### What to look for **Check Google `open_state` for operational status.** The `metadata.open_state` field is populated only for Google reviews (`source: "google"`) and reflects the current status of the business as reported by Google Maps. This is one of the most direct operational signals available. Critical values: * `"Permanently closed"`: the business has been marked closed on Google. A major red flag for any application; escalate regardless of other signals. * `"Temporarily closed"`: the business is not currently operating. Worth clarifying with the applicant. * `"Closed · Opens [time]"`: outside operating hours, but active. Normal. * `"Open"`: currently open. Positive signal. ```python theme={null} def check_google_open_state(found_reviews): for review in found_reviews or []: if review.get("source") == "google": metadata = review.get("metadata") or {} open_state = (metadata.get("open_state") or "").lower() if "permanently closed" in open_state: return "HIGH_RISK" elif "temporarily closed" in open_state: return "FLAG" return "PASS" ``` **Combine `rating` and `volume`.** A high rating with low volume (`< 10`) is weak evidence. A low rating with meaningful volume (`> 20`) is a strong negative signal. Use both together. **Only trust `confidence: high` for automation.** Medium and low confidence review profiles may belong to an unrelated business. Filter before scoring. **Cross-verify identity.** Check `address`, `phone_number`, and `business_website` across review platforms and your submitted application data. In impersonation cases, review data will consistently point to the real business — not the submitted application details. **Apply sector awareness.** Consumer-facing businesses (retail, hospitality, healthcare, food service) typically have substantial review presence. B2B firms often have few or no reviews — absence is not a risk signal for these sectors. > | Field | ✅ Lucali | 🚩 Hartwell Legal Group | > | :- | :- | :- | > | Google `open_state` | `"Closed · Opens 5 PM"` — dinner-only restaurant, normal | `"Closed · Opens 9 AM Mon"` — professional office, normal | > | Google review volume | 3,100 | 26 — low but appropriate for a small law firm | > | Google rating | 4.2 | 4.5 | > | `business_website` in review | `lucali.com` | **`hartwelllegal.com`** — the real domain, not the submitted one | > | `phone_number` in review | Matches application | **Does not match submitted phone number** | > > In the Hartwell example, the review data independently confirms the real business identity: phone number and website in the Google listing point to the legitimate firm, directly contradicting the submitted application. *** ### Directory Listings > Directory listings require `Order.DirectoryListing` to be included in your request options. #### What to look for **Use `people[]` for officer cross-referencing.** Directory listings often include officers or principals. Cross-reference these against submitted `officer_names` and `business.business_officers[]` from the KYB search. An officer appearing consistently across directories, the website, and SoS records is a strong identity signal. **Cross-reference contact details against the application.** As with reviews, directory listings independently record the business's contact information. In impersonation cases, directory data will point to the real business — phone numbers, addresses, and websites that differ from what was submitted. **Use listing count directionally.** There is no hard threshold, but a business appearing in multiple independent directories signals an established real-world presence. Zero directory listings for a claimed 5+ year operation is worth noting, particularly for local service businesses, contractors, and professional services. **Weight directory presence by sector.** Local service businesses, contractors, and professional services firms typically appear in directories. Digital-native or B2B businesses may have fewer listings — absence is not a red flag for these sectors. > | Field | ✅ Lucali | 🚩 Hartwell Legal Group | > | :- | :- | :- | > | Listings found | n/a | 1 — legal directory listing | > | `category` | n/a | `"Law Firm"` — consistent with `541110` | > | `business_website` in listing | n/a | **`hartwelllegal.com`** — the real domain | > | `phone_number` in listing | n/a | **Does not match submitted phone number** | > > Again, the directory independently confirms the real business identity — and contradicts the submitted application. *** ### Putting It All Together Web presence signals work best as a layered system. Each sub-product adds a different dimension: * **Website Analysis** answers: is this business real and operational online? * **Industry Prediction** answers: is this business in a permitted sector, and how confident are we? * **Social Profiles** answers: does this business have a consistent public identity across platforms? * **Reviews** answers: do real customers interact with this business, and is their experience consistent with the application? * **Directory Listings** answers: is this business recognized by third-party sources, and does the data they hold align? **No single signal should drive a decision alone.** The Hartwell Legal Group example illustrates this precisely: industry prediction is clean (0.98 accuracy, low risk, no prohibited keywords), the found website is active and legitimate, and the business has positive reviews. The fraud only becomes visible when you compare the submitted domain against the discovered one - and then cross-reference contact data across reviews and directories to see the contradiction. Lucali, by contrast, passes every check cleanly: submitted domain matches the found domain, domain age is consistent with business age, and the submitted email is on the same corporate domain. The most reliable approach: 1. **Start with website legitimacy.** `website_build_status`, `parked`, `ssl_validity.is_valid`, and domain age are fast checks that catch the most obvious cases. 2. **Run impersonation checks if a website was submitted.** Domain age vs. business age and email domain mismatch catch the fraud patterns that website legitimacy checks alone miss. Leverage fields like `email_match` or `phone_number_match` to cross-reference the submitted information. These are the highest-value checks in this guide. 3. **Classify with industry prediction.** A confidence score and prohibited-list check against `industry_prediction.code` and `keywords[]` does the heavy lifting for compliance screening. 4. **Add social and review context where relevant.** Sector-appropriate, confidence-filtered, cross-referenced against application data. 5. **Use directory listings to corroborate.** Particularly valuable for local businesses, contractors, and sole proprietors. In impersonation cases, directory data will independently confirm the real business identity. *** ### Example Workflow This workflow is a starting template. Tune thresholds and logic based on your product type, risk appetite, and customer base. #### Step 1: Website legitimacy | Check | Logic | Signal | | :- | :- | :- | | Website operational | `website_build_status ≠ active` or `parked: true` | ℹ️ Informational — evaluate alongside review and social presence | | No website found | `found_website` is null | ℹ️ Informational — common for SMBs; weight other signals more heavily | | SSL validity | `ssl_validity.is_valid ≠ true` | 🚩 Flag — may indicate spoofed or insecure site | | Domain age vs. business age (submitted) | `domain_age_months < 1` and `months_in_business > 24` | 🚨 High-risk — escalate immediately | | Domain age vs. business age (submitted) | `domain_age_months < 6` and `months_in_business > 24` | 🚩 Flag — new domain for an established business | | Submitted website unverified | `business_website_match: false` | 🚩 Flag — submitted domain not confirmed | | Email domain mismatch | Found domain has `email_deliverable: true`; submitted email is on a free provider or different domain | 🚩 Flag — potential impersonation | | Address confirmed online | `business_address_match_sources` includes `FOUND_WEBSITE`, `REVIEW`, or `DIRECTORY` | ✅ Positive identity signal | #### Step 2: Industry alignment | Check | Logic | Signal | | :- | :- | :- | | Low prediction confidence | `accuracy < 0.75` | 🔍 Review — low confidence prediction | | Prohibited industry | `industry_prediction.code` matches restricted NAICS list | 🚩 Flag — prohibited sector | | Sensitive keywords | `keywords[]` includes terms from restricted keyword list | 🚩 Flag — potentially noncompliant operations | | Card network risk | Any `mcc_codes[].mastercard_risk: true` or `mcc_codes[].visa_risk_tier: 1` | 🚩 Flag - network-restricted MCC | #### Step 3: Social profile verification *(if relevant for your sector)* | Check | Logic | Signal | | :- | :- | :- | | Confidence threshold | Profile `confidence ≠ high` | ⚪ Ignore for automation | | Business account | `is_verified: true` or `is_business_account: true` | ✅ Positive legitimacy signal | | Submitted profile verified | `social_profiles_match[]` entry returns `matched: true` for a submitted profile | ✅ Positive identity signal | | Cross-platform consistency | `business_website` in profile differs from submitted domain | 🚩 Flag — profiles point to a different domain than submitted | #### Step 4: Reviews *(if relevant for your sector)* | Check | Logic | Signal | | :- | :- | :- | | Google operational status | `metadata.open_state` contains `"permanently closed"` | 🚨 High-risk — escalate immediately | | Google operational status | `metadata.open_state` contains `"temporarily closed"` | 🚩 Flag — investigate | | Negative sentiment | `rating < 3.0` and `volume > 20` | 🚩 Flag — consistent negative feedback | | Identity mismatch | `business_website` or `phone_number` in reviews differs from application data | 🚩 Flag — review data points to a different business identity | #### Step 5: Directory listings *(if relevant for your sector)* | Check | Logic | Signal | | :- | :- | :- | | Officer cross-reference | `people[]` entries match submitted `officer_names` | ✅ Positive identity signal | | Contact data mismatch | `business_website` or `phone_number` in listing differs from application data | 🚩 Flag — directory points to a different business identity | #### Decisioning summary **Approve when:** * Website is active, secure, and consistent with application data * Submitted domain age is consistent with business age (or no website submitted) * Industry prediction `accuracy ≥ 0.75`, predicted code is permitted, no flagged keywords * No identity inconsistencies across sub-products **Review when:** * No website found and no compensating signals (reviews, social profiles, or directory listings) exist * Website signals are mixed (e.g., active but recently registered) * Social or review data is absent in a sector where it would be expected **Flag when:** * Submitted domain recently registered for a business claiming years of operation * Email domain mismatch suggesting impersonation or synthetic identity * `business_website_match: false` combined with domain age discrepancy or visual domain similarity * Review or directory data points to a different website or phone number than submitted * Industry code or keywords match a prohibited list * Any MCC has `mastercard_risk: true` or `visa_risk_tier: 1` * Google `open_state` indicates `"Permanently closed"` * Consistent identity discrepancies across website, social profiles, reviews, and directories *** ### Sector-specific guidance | Sector | What matters most | | :- | :- | | **Consumer retail / e-commerce** | Active website with SSL; domain age; impersonation checks; social presence (Instagram, Facebook); Google and Yelp reviews with meaningful volume | | **Restaurants / hospitality** | Review volume and rating (Google, Yelp, TripAdvisor); Google `open_state`; Facebook check-ins; address consistency across platforms | | **B2B / professional services** | LinkedIn company page (`confidence: high`); website legitimacy; domain impersonation checks; directory listings; officer cross-reference | | **Contractors / local services** | Directory presence (industry associations, chamber of commerce, licensing registries); website analysis; address match sources | | **Healthcare** | Website legitimacy; keyword scan for restricted terms (full list available from your account representative); license-based directory listings | *** ### Related guides * [Online Presence: Basics](/docs/online-presence-basics) — data model, available orderables, and integration path * [Web Presence API Reference](/api-reference/web-presence/post-web-presence-request) — full endpoint documentation * [Industry Prediction](/docs/industry-prediction-user-guide) — deep dive on NAICS accuracy, MCC codes, and prohibited industry logic * [Sole Proprietorship Verification](/docs/sole-prop-verification) — full sole prop workflow * [Business Search: Best Practices](/docs/business-search-1) — combining online presence signals with core KYB verification # Guide: IRS Outage Handling Source: https://docs.baselayer.com/docs/webhook-guide-businesssearchupdated Keep onboarding moving when the IRS TIN check is down, and know when Baselayer sends the updated result. ## Handling IRS Outages: TIN Verification Resilience Baselayer maintains a real-time integration with the Internal Revenue Service (IRS), which enables real-time verification of Taxpayer Identification Numbers (TINs) against corresponding business or individual names. This ensures maximum accuracy, timeliness, and coverage in our verification process. A known and infrequent issue involves temporary unavailability of the IRS platform used for TIN verification. We commonly refer to these instances as IRS outages. Being aware of these potential scheduled or unscheduled outages can help in planning and mitigating disruptions when using the IRS TIN verification. This guide explains how Baselayer handles these situations automatically and how to build resilient verification workflows that gracefully handle temporary TIN validation unavailability. TIN Check uptime is available in our [status page](https://status.baselayer.com/) - which provides an overview of our API, Console and TIN Match availability. *** ## Baselayer System Behavior During IRS Outages If a TIN is provided in the search input and the IRS TIN Matching service is unavailable at the time of processing, Baselayer will continue with all other parts of the verification process and notify clients accordingly, returning all available data except the TIN verification status. The response explicitly states that the IRS service was unavailable at the time of the request. *** ### Webhook Behavior During Outage * Webhook Type: `BusinessSearch.completed` or `BusinessSearch.failed` * TIN Status Field: * `tin_matched = null` * Warnings Field: * `warnings = "IRS Validation is unavailable."` *** ### Webhook Behavior After Outage Resolution * Once the IRS TIN Matching service becomes available again, Baselayer will automatically retry validation of previously failed TIN checks. * Upon successful validation, an updated webhook is sent: * Webhook Type: `BusinessSearch.updated` * TIN Status Field: * `tin_matched = true/false` (based on actual IRS response) * Warnings Field: * Omitted if validation is successful. *** ### Retry Logic & Queue Management During an IRS outage, all business searches where IRS TIN validation was not possible are placed into a retry queue. Baselayer initiates an automated retry sequence to reattempt verification. Retries are performed every 15 minutes for up to about 24 hours. If no `BusinessSearch.updated` webhook arrives after that, retries have stopped and `tin_matched` stays null. Retries occur sequentially to manage load and avoid redundant requests. Once the IRS service is restored, Baselayer automatically reprocesses any previously incomplete TIN verifications, updates the associated records, and notifies the affected customer systems with the completed information. *** ### Illustrative Example Timeline This example demonstrates Baselayer's automatic retry behavior during a transient IRS outage. The key takeaway: **you only need to handle the webhooks - Baselayer manages all retry logic automatically.** | Time (UTC) | Event Description | | :- | :- | | 09:00:00 | Business Search initiated via Baselayer API or Console. | | 09:00:10 | BusinessSearch.completed webhook emitted. TIN verification skipped due to IRS outage. | | 09:00:10 onward | Subsequent Business Searches continue processing. If IRS service recovers mid-search, retries are triggered early. | | 09:15:00 | First retry (+15 minutes) of previously failed TIN check. | | 09:30:00 | Second retry (+15 minutes) succeeds. BusinessSearch.updated webhook emitted with verified tin_matched value. | | 09:30:00 onward | Remaining queued cases are reprocessed automatically and updated webhooks are sent. | | 09:35:20 | All queued TIN verifications completed. System resumes normal operation. | *** ### Expected Frequency of IRS Outages The IRS conducts routine maintenance on its e-Services platform, which includes the TIN Matching service. While the IRS does not provide a detailed schedule of all maintenance periods, these outages are usually brief and scheduled during off-peak hours to minimize disruption. The most common maintenance window is on Sundays from 12:00 a.m. to 4:00 p.m. ET. In addition, the IRS infrequently faces unscheduled outages in the IRS TIN matching service, causing high rates of failure. While metrics are not officially tracked, based on Baselayer’s experience and monitoring the estimated frequency of unscheduled outages is: * Mild to moderate disruptions - intermittent failures or degraded service - occur 1-2 times per quarter * Major outages - where the service is entirely down or timing out consistently for +2 hours - appear to occur 1-2 times per year These figures depend heavily on tax season traffic (Jan-Apr sees much higher usage), IRS infrastructure changes, and external network load or integrations with Social Security Administration systems. *** ## Decisioning Strategies During IRS Outages When `tin_matched = null` due to an IRS outage, you'll need a strategy for handling the application. Based on your risk tolerance and product requirements, here are two common approaches Baselayer customers use: *** ### Strategy 1: Stop & Wait **Approach**: Halt the application immediately and wait for IRS validation to complete before making any decision. **How it works**: ```python theme={null} IF tin_matched == null AND "IRS Validation is unavailable." IN warnings: status = "PENDING_TIN_VALIDATION" user_message = "Your application is under review. We'll notify you shortly." # Wait for BusinessSearch.updated webhook # Then re-run decisioning logic with tin_matched result # When BusinessSearch.updated webhook arrives: IF tin_matched == true: # Continue with normal approval logic status = "APPROVED" ELSE: status = "DECLINED" reason = "TIN validation failed" ``` **Best for**: * High-risk products (lending, large credit lines) * Regulated financial institutions with strict compliance requirements * Products where TIN validation is mandatory for regulatory reasons **Customer experience**: Application paused, typically resolved within minutes to hours depending on outage duration. *** ### Strategy 2: Conditional Approval **Approach**: Approve the application provisionally based on all other verification checks, then monitor the TIN result when it arrives. **How it works**: ```python theme={null} IF tin_matched == null AND "IRS Validation is unavailable." IN warnings: # Check all other verification criteria IF all_other_checks == PASS: status = "CONDITIONALLY_APPROVED" account_status = "ACTIVE_MONITORED" flag_for_tin_review = true user_message = "Your application is approved!" # When BusinessSearch.updated webhook arrives: IF tin_matched == false: account_status = "FROZEN" notify_fraud_team() trigger_user_reverification() user_message = "Account temporarily frozen for verification" ELSE: # Clear monitoring flag account_status = "ACTIVE" flag_for_tin_review = false ELSE: # Normal decisioning with TIN result available IF tin_matched == true: status = "APPROVED" ``` **Best for**: * Low-risk products (marketplaces, basic accounts, vendor onboarding) * Products where speed-to-activation drives conversion * Customers with strong fraud controls beyond TIN (device signals, identity network, transaction monitoring) **Customer experience**: Immediate approval, seamless onboarding. Account freeze only in rare TIN mismatch cases. **Operational considerations**: * Requires account freeze capabilities * Needs fraud team workflows for post-approval TIN failures * More complex to implement but better conversion * Consider limiting functionality until TIN validates (e.g., "Lite Profile") **Note**: Some customers enable a "Lite Profile" or "Pre-approved" status with limited functionality (lower transaction limits, restricted features) until final TIN validation completes. *** ## Choosing Your Strategy | Factor | Stop & Wait | Conditional Approval | | - | - | - | | **Risk Tolerance** | Lower | Higher | | **Regulatory Requirements** | TIN validation required | TIN validation optional | | **Speed Priority** | Decision quality | Conversion rate | | **Operational Overhead** | Minimal (just wait) | Medium (freeze workflow) | | **Customer Experience** | Delayed approval | Immediate approval | | **What happens on TIN fail** | Never approved | Approved then frozen | | **Implementation Complexity** | Simple | Moderate | | **Best for** | Lending, compliance-heavy | Marketplaces, low-risk | **Recommendation**: Most Baselayer customers use **Stop & Wait** as it provides the cleanest customer experience and simplest operational workflow. The delay is typically under 1 hour, which is acceptable for most products. Use **Conditional Approval** only if: * You have robust secondary fraud controls beyond TIN validation * Conversion rate is critical to your business model * You can operationally handle account freezes and customer reverification * Your risk profile allows for some exposure before full TIN validation *** ## Testing IRS Outage Scenarios Baselayer provides a sandbox test case that simulates IRS outage behavior, allowing you to validate your webhook handling and retry logic. #### Test Case Setup Use these exact inputs in sandbox: ```json theme={null} { "name": "ampro industries inc", "address": "6465 n quail hollow rd ste 200 memphis tn 38120", "tin": "000000000" } ``` ### Expected Behavior **Initial Response (immediate):** * Webhook: `BusinessSearch.completed` * Fields: * `tin_matched: null` * `warnings: ["IRS Validation is unavailable."]` * `state: "COMPLETED"` **Updated Response (immediately afterwards):** * Webhook: `BusinessSearch.updated` * Fields: * `tin_matched: true` or `false` (actual validation result) * `warnings: []` (empty, validation succeeded) * All other fields remain the same ### What to Verify in Your Tests ✅ **Initial webhook handling**: Your system correctly processes `tin_matched: null` according to your chosen strategy ✅ **Status tracking**: Application status is properly recorded and can be updated later ✅ **Updated webhook handling**: Your system receives and processes `BusinessSearch.updated` events ✅ **Decisioning logic**: Final approval/decline decision correctly incorporates the TIN validation result ✅ **User notifications**: Customers receive appropriate messages based on your strategy (pending vs. approved vs. review) *** ## Best Practices #### Monitor IRS Availability * Check [Baselayer Status Page](https://status.baselayer.com/) for real-time TIN check availability * Subscribe to status page notifications for proactive alerts * Monitor your own `tin_matched: null` and `warnings` rates to detect emerging issues #### Webhook Handling * Always check both `tin_matched` and `warnings` fields to distinguish IRS outages from invalid TINs * Process `BusinessSearch.updated` events idempotently (retries may cause duplicates) * Log all webhook events for debugging and audit trails #### Establish a Clear Policy * Document your IRS outage strategy for compliance audits * Train support and operations teams on expected behavior * Set SLAs for resolving pending applications (e.g., 4 hours max during business hours) *** ## Next Steps **Understand verification workflows:** * [Business Search: Basics](/docs/business-search-basics) - How TIN verification fits into KYB * [Business Search: Best Practices](/docs/business-search-1) - Complete decision logic including TIN validation * [Scores & Ratings](/docs/baselayer-scores-ratings) - How TIN impacts KYB ratings **Implement webhook handling:** * [Webhooks at Baselayer](/docs/webhooks-at-baselayer) - Complete webhook integration guide * [Business Search: API Quickstart](/docs/business-search) - Understanding Business Search responses **Handle edge cases:** * [Sole Proprietorship Verification](/docs/sole-prop-verification) - When to rely on TIN validation alone * [Business Search: Best Practices](/docs/business-search-1) - Rules-based verification with TIN as one factor # Webhooks at Baselayer Source: https://docs.baselayer.com/docs/webhooks-at-baselayer Get Baselayer results at your endpoint the moment they're ready, and handle retries and updated results safely. Baselayer's API can run requests **asynchronously**, depending on your API key's default request mode and the `Prefer` header (see [Synchronous & Asynchronous Request Execution](/docs/synchronous-asynchronous-request-execution)). Most verification and enrichment operations happen in the background, with results delivered via webhooks when processing completes. *** ## Why Webhooks? Certain Baselayer products can take a few seconds to complete. During this time, the API is: * Querying authoritative data sources * Scraping and analyzing websites * Running AI-powered enrichment * Performing multi-step verification workflows **Webhooks provide real-time notifications** the moment your data is ready, eliminating the need to constantly poll our API. *** ## Webhooks vs. API Polling | Approach | How It Works | Pros | Cons | | - | - | - | - | | **Webhooks** (Recommended) | Baselayer sends HTTP POST to your endpoint when results are ready | Real-time notifications, efficient, no wasted requests | Requires endpoint setup and signature verification | | **API Polling** | Your system repeatedly checks `GET /searches/{id}` for completion | Simple to implement initially, no webhook infrastructure needed | Inefficient, can miss timing windows, requires retry logic | **Recommendation**: Use webhooks for production integrations. Baselayer's async architecture is optimized for webhook delivery. *** ## Setting Up Webhook Endpoints ### Via Console (Recommended) 1. Log into the [Baselayer console](https://console.baselayer.com) 2. Click your name at the bottom of the sidebar, then **Webhooks & Logs** 3. Click **Add Endpoint** ![](https://mintcdn.com/baselayer-81245324/y8jjNyo-CIhfj2Df/images/Screenshot_2025-12-29_at_18.25.51.png?fit=max\&auto=format\&n=y8jjNyo-CIhfj2Df\&q=85\&s=b54f22ed5a0f639cc884c1a767602891) 4. Enter your endpoint parameters URL (must be HTTPS) 1. Subscribe to the required events 2. **We recommend creating one single endpoint per event type** ![](https://mintcdn.com/baselayer-81245324/y8jjNyo-CIhfj2Df/images/Screenshot_2025-12-29_at_18.26.22.png?fit=max\&auto=format\&n=y8jjNyo-CIhfj2Df\&q=85\&s=956cdba777a325fe4a43afc7d80c9db6) 5. Save the endpoint 6. **Copy your signing secret** - you'll need this to verify webhook signatures ![](https://mintcdn.com/baselayer-81245324/y8jjNyo-CIhfj2Df/images/Screenshot_2025-12-29_at_16.46.45.png?fit=max\&auto=format\&n=y8jjNyo-CIhfj2Df\&q=85\&s=1a81e060812c8275e5b4710778a9370b) The signing secret will look like: `whsec_C2FVsBQIhrscChlQIMV+b5sSYspob7oD` **⚠️ Important**: Your endpoint must use HTTPS. HTTP endpoints will be rejected. ### Via API (Programmatic Setup) You can also create webhook endpoints programmatically: #### cURL Example ```bash theme={null} curl https://api.baselayer.com/webhooks \ -X POST \ -H "X-API-Key: your_api_key_here" \ -H "Content-Type: application/json" \ -d '{ "url": "https://your-domain.com/webhooks/baselayer", "description": "Production webhook endpoint" }' ``` #### Python Example ```python theme={null} import requests url = "https://api.baselayer.com/webhooks" headers = { "X-API-Key": "your_api_key_here", "Content-Type": "application/json" } payload = { "url": "https://your-domain.com/webhooks/baselayer", "description": "Production webhook endpoint" } response = requests.post(url, json=payload, headers=headers) endpoint = response.json() ``` The API will automatically generate a signing secret. The response does not include it, so copy it from **Webhooks & Logs** in the console. You can also send your own `secret` (starting with `whsec_`) in the request body. Store it securely - you'll need it to verify incoming webhooks. For signature verification details, see the [Authentication guide](/docs/authentication). *** ## Understanding Webhook Events Every webhook Baselayer sends includes standardized metadata and event-specific data. ### Event Structure All webhook events include an `__event__` field with metadata: ```json theme={null} { "__event__": { "type": "BusinessSearch.completed", "origin": "api" }, "id": "e7e7e7c9-f0ad-4434-9766-a1d127ed12c3", "state": "COMPLETED", // ... additional event-specific fields } ``` ### Common Event Patterns Baselayer webhooks follow consistent naming patterns: * **`.submitted`** - Request received and queued for processing * **`.completed`** - Processing finished successfully, data is ready * **`.failed`** - Processing failed (insufficient data, invalid input, etc.) * **`.cancelled`** - Request was cancelled before completing (Business Search only) * **`.updated`** - Initial results have been updated with additional data * **`.created`** and **`.deleted`** - A resource such as a portfolio item, portfolio group, lien filing or API key was created or deleted Not all products emit all event types. Check product-specific documentation for complete event listings. ### Event Names vs. Resource `state` Webhook event names are lowercase and describe *something that happened*. The `state` field on the resource itself is uppercase and describes *where the request is* in its lifecycle: `PENDING`, `EXECUTING`, `COMPLETED`, `FAILED`, or `CANCELLED`. They map as follows: | Resource `state` | Corresponding webhook event | | :- | :- | | `PENDING` | `.submitted` | | `EXECUTING` | No webhook | | `COMPLETED` | `.completed` | | `FAILED` | `.failed` | | `CANCELLED` | `.cancelled` | `.updated` is a webhook-only event with no corresponding resource state. *** ## Webhook Lifecycle Examples ### Example 1: Standard Async Flow Most Baselayer API calls follow this pattern: ``` 1. You make API request: POST /searches → API responds: 2xx Accepted with search_id 2. Webhook received: BusinessSearch.submitted → Confirms request is queued 3. [Baselayer processing: 3-5 seconds] - Querying authoritative sources - Running enrichment - Analyzing data 4. Webhook received: BusinessSearch.completed → Full verification data included → Process results in your system ``` #### Sample `BusinessSearch.completed` Webhook ```json theme={null} { "__event__": { "type": "BusinessSearch.completed", "origin": "api" }, "id": "a1b2c3d4-5678-90ab-cdef-1234567890ab", "state": "COMPLETED", "business": { "name": "Baselayer Technologies Inc", "registrations": [ ... ], "business_officers": [ ... ] }, "scores": [ { "type": "risk", "score": 95.0, "rating": "A" } ], "created_at": "2025-12-29T10:15:30Z" } ``` ### Example 2: Updated Events - TIN Retry Some data may be unavailable initially but delivered later via `.updated` webhooks. **Scenario: IRS TIN Matching Temporarily Unavailable** ``` 1. POST /searches with TIN provided 2. Webhook: BusinessSearch.completed { "tin_matched": null, "warnings": ["IRS Validation is unavailable."] } → Search completed, but TIN match pending 3. [Baselayer automatically retries TIN verification] → Retries every 15 minutes for up to 24 hours 4. Webhook: BusinessSearch.updated (when IRS available) { "tin_matched": true, "warnings": [] } → TIN verification now complete ``` For detailed information about IRS TIN verification and outage handling, see the [IRS Outage Handling guide](/docs/webhook-guide-businesssearchupdated). ### Example 3: Updated Events - Liens/Docket Search Requesting liens or dockets triggers an additional verification pass: ``` 1. POST /searches 2. Webhook: BusinessSearch.completed → Initial business verification data 3. POST /lien_searches 4. [Baselayer retrieves lien records] → Can take 5-10 seconds 5. Webhook: LiensSearch.completed → Includes liens data 6. Webhook: BusinessSearch.updated → scores array may be updated (risk score recalculated based on lien findings) ``` **Key Insight**: Always handle `.updated` webhooks to ensure you have the most current data. *** ## Webhook Delivery & Retries Baselayer uses [Svix](https://www.svix.com/) for reliable webhook delivery. ### Retry Behavior If your endpoint fails to respond with a 2xx status code, Baselayer will automatically retry: * **Initial attempt**: Immediate delivery * **Retry schedule**: Exponential backoff over several attempts If all retries fail, the webhook is marked as failed. You can replay failed webhooks from the Baselayer console. ### Handling Retries in Your Code Webhooks may be delivered more than once (retries, network issues, etc.). **Implement idempotency** using the `svix-id` header. It is unique to each webhook message and stays the same on retries. The `id` in the body is the resource ID, which repeats across `.completed` and `.updated` events: ```python theme={null} def handle_webhook(headers, event): event_id = headers["svix-id"] # Check if we've already processed this event if already_processed(event_id): return 200 # Acknowledge but don't reprocess # Process the event process_business_search(event) # Mark as processed mark_processed(event_id) return 200 ``` *** ## Best Practices ##### 1. Return 200 Quickly Your webhook endpoint should acknowledge receipt immediately. Don't perform long-running operations before returning 200, or Baselayer may time out and retry. ##### 2. Always Verify Signatures Never trust webhook data without verification. See the [Authentication guide](/docs/authentication) for implementation details. ##### 3. Handle `.updated` Events Some workflows (TIN verification, liens or docket searches) may send updated data after initial completion. ##### 4. Implement Idempotency Use the `svix-id` header to prevent duplicate processing. In production, store processed IDs in your database or cache. ##### 5. Monitor Webhook Health Regularly check the Baselayer console's webhook dashboard for failed deliveries or high error rates. Failed webhooks can be manually replayed from the console. *** ## When to Use API Polling Instead Webhooks are recommended for most use cases, but polling may be appropriate for: ### 1. Synchronous Business Search Business Search supports synchronous mode using the `Accept` header for immediate results: #### cURL Example ```bash theme={null} curl --request POST \ --url https://api.baselayer.com/searches \ --header 'X-API-Key: your_api_key_here' \ --header 'Accept: application/vnd.osiris.sync+json' \ --header 'Content-Type: application/json' \ --data '{ "name": "Baselayer Technologies Inc", "address": "149 New Montgomery St, San Francisco, CA 94105" }' ``` #### Python Example ```python theme={null} response = requests.post( "https://api.baselayer.com/searches", headers={ "X-API-Key": api_key, "Accept": "application/vnd.osiris.sync+json", # Synchronous mode "Content-Type": "application/json" }, json={ "name": "Baselayer Technologies Inc", "address": "149 New Montgomery St, San Francisco, CA 94105" } ) # Results included in response (no webhook needed) business = response.json() ``` **Note**: Synchronous mode is not limited to Business Search. All task-based endpoints support it through the `Prefer` header. See [Synchronous & Asynchronous Request Execution](/docs/synchronous-asynchronous-request-execution). ### 2. Testing & Development For quick testing without webhook infrastructure: ```python theme={null} # Create search response = requests.post(url, json=payload) search_id = response.json()["id"] # Poll for completion import time while True: result = requests.get(f"{url}/{search_id}") state = result.json()["state"] if state == "COMPLETED": print("Results ready!") break elif state == "FAILED": print("Search failed") break time.sleep(5) # Wait 5 seconds between checks ``` ### 3. Simple One-Off Integrations If you're only running occasional searches and don't want to set up webhook infrastructure, polling is acceptable. **Important**: For production use at scale, webhooks are significantly more efficient. *** ## Next Steps Now that you understand webhooks, you're ready to: * [Authenticate your webhook endpoint](/docs/authentication) (signature verification) * [Understand async vs. sync API patterns](/docs/synchronous-asynchronous-request-execution) * Start building with product-specific guides: * [Business Search](/docs/business-search) * [Portfolio Monitoring](/docs/portfolio-monitoring) * [Other products](/docs/meet-baselayer#baselayer-products) For detailed webhook event schemas and specifications, see the [API reference](/api-reference/business-verification/business-search-cancelled). For questions about webhooks or integration support, contact your Baselayer account manager. # Website Analysis Source: https://docs.baselayer.com/docs/website-analysis-basics Check that a business's website is real and its own, and catch lookalike domains used for impersonation. Website Analysis discovers the website associated with a business and performs a full analysis of the domain - registration age, SSL certificate, operational status, contact information, site structure, and more. It powers the domain legitimacy and impersonation checks described in the [Online Presence: Best Practices guide](/docs/web-presence-orderables). *** ### When to use it * You want to verify that the website submitted by an applicant is legitimate and consistent with the business's age and identity * You are looking for fraud signals including potential impersonation (e.g. a lookalike domain registered shortly before the application) * You want to cross-check contact information (email, phone, addresses) discovered on the website against the submitted application * You are assessing whether a business has a real, operational online presence > **Always populate the `website` field when possible**. This enables `input_website_analysis` - the comparison between the submitted domain and the one Baselayer independently discovers - which is the most reliable impersonation signal available. See [Domain Impersonation Patterns](/docs/web-presence-orderables#domain-impersonation-patterns) in the Online Presence: Best Practices guide. > > If your onboarding form makes `website` optional, use the domain of the submitted email as a fallback: if the applicant provides [john@lucali.com](mailto:john@lucali.com) but no website, submit `lucali.com` as the website value. This ensures `input_website_analysis` is populated in the vast majority of applications without requiring an additional required field. Skip this only for free email providers (Gmail, Yahoo, etc.) - those domains carry no identity signal. *** ### How to request it Website Analysis is available on both integration paths. #### Via `POST /web_presence_requests` Include `Order.WebsiteAnalysis` in the `options` array. Results are returned **inline** in the response at `website_analysis` (discovered domain) and `input_website_analysis` (submitted domain, when a `website` was provided). ```json theme={null} { "name": "Lucali", "address": "575 Henry St, Brooklyn, NY 11231", "website": "https://www.lucali.com", "options": ["Order.WebsiteAnalysis"] } ``` #### Via `POST /searches` Include `Order.WebsiteAnalysis` in the `options` array. Results are **not inline**, Baselayer returns a `WebsiteAnalysisRequest` tracking object in `orderables[]`. Fetch the result using the URL in that object, or listen for the `WebsiteAnalysisRequest.completed` webhook. ```json theme={null} { "name": "Lucali", "address": "575 Henry St, Brooklyn, NY 11231", "website": "https://www.lucali.com", "options": ["Order.WebsiteAnalysis"] } ``` The search response will contain: ```json theme={null} { "orderables": [ { "type": "WebsiteAnalysisRequest", "id": "ac5aca82-e75e-40d0-a0eb-1fc474cef2c4", "url": "https://api.baselayer.com/website_analysis_requests/ac5aca82-e75e-40d0-a0eb-1fc474cef2c4", "option": "Order.WebsiteAnalysis" } ] } ``` Fetch the result: ```bash theme={null} GET /website_analysis_requests/{id} ``` > **When both a submitted and a discovered domain exist on `/searches`:** Two `WebsiteAnalysisRequest` entries will appear in `orderables[]`. They are not labeled - call GET on each and inspect `website_analysis.url` to determine which domain was analyzed. #### Via `Order.Enhanced` `Order.Enhanced` on `POST /searches` includes Website Analysis automatically alongside Industry Prediction, Social Profiles, Reviews, and expanded officer/address discovery. Send it together with `Order.WebsiteAnalysis` and `Order.NaicsPrediction`. See [Online Presence: Basics](/docs/online-presence-basics) for when to use Enhanced vs. individual orderables. *** ### Response fields The `website_analysis` and `input_website_analysis` objects share the same structure. #### Core fields | Field | Type | Description | | :- | :- | :- | | `id` | string | Unique identifier for this website analysis request. | | `url` | string | The URL that was analyzed. | | `parked` | boolean | Whether the domain is undeveloped or inactive (parked page). | | `website_build_status` | enum | Overall operational status: `active`, `coming_soon`, or `inactive`. | | `email_deliverable` | boolean | Whether emails from this domain are deliverable. | | `emails[]` | array | Email addresses discovered on the website. | | `phone_numbers[]` | array | Phone numbers discovered on the website. | | `website_summary` | string | Auto-generated summary of the website's homepage content. | | `website_structure_metrics` | object | `depth` (max link depth: `"0"`, `"1"`, or `"2+"`) and `breadth` (unique pages: count or `"15+"`). Indicates site maturity. | | `addresses[]` | array | Physical addresses discovered on the website, as structured address objects. | | `people[]` | array | People discovered on the website. Each entry includes `name` and `titles[]`. | | `social_profiles[]` | array | Social media profile links found on the website. Each entry includes `site`, `url`, and `username`. | | `redirects` | object \| null | `is_redirect_url` and `redirects_to` (the final destination URL) if the analyzed domain redirects. | | `screenshot_url` | string | URL to a screenshot of the website at time of analysis. | | `ssl_validity` | object | SSL certificate details — see below. | | `whois_record` | object | Domain registration details — see below. | #### `ssl_validity` fields | Field | Type | Description | | :- | :- | :- | | `is_valid` | boolean | Whether the SSL certificate is valid and active. | | `is_self_signed` | boolean | Whether the certificate is self-signed (not issued by a trusted CA). | | `is_wildcard` | boolean | Whether the certificate covers subdomains. | | `is_revoked` | boolean | Whether the certificate has been revoked. | | `certificate_type` | string | Certificate validation type: `DV` (domain-validated), `OV` (organization-validated), or `EV` (extended validation). | | `tls_version` | string | TLS version in use (e.g., `TLSv1.3`). | | `issuer` | string | Certificate authority that issued the certificate. | | `cert_age_days` | integer | Age of the certificate in days. | | `days_until_expiry` | integer | Days remaining until the certificate expires. | | `expiry_date` | string | Certificate expiry date (ISO 8601). | #### `whois_record` fields | Field | Type | Description | | :- | :- | :- | | `domain_age_months` | integer | Age of the domain in months from registration date to today. | | `domain_created_at` | string | Date the domain was first registered (ISO 8601). | | `domain_expires_at` | string | Date the domain registration expires (ISO 8601). | | `domain_updated_at` | string | Date the domain record was last updated (ISO 8601). | | `registrar` | string | The domain registrar (e.g., GoDaddy, Squarespace Domains). | *** ### Interpreting results Website Analysis produces two types of signals: **domain legitimacy** (is this a real, operational site?) and **identity consistency** (does the submitted domain match the independently discovered one?). For the full decisioning framework - including thresholds, fraud patterns, and others - see: * [Website Analysis section](/docs/web-presence-orderables#website-analysis) in the Online Presence: Best Practices guide: domain legitimacy checks, `ssl_validity`, `website_build_status`, `website_structure_metrics` * [Domain Impersonation Patterns](/docs/web-presence-orderables#domain-impersonation-patterns): `whois_record.domain_age_months` vs. `months_in_business`, lookalike domain detection, free email vs. deliverable corporate domain The key fields to evaluate in every application: * `business_website_match` — whether the submitted domain matches the discovered one * `whois_record.domain_age_months` on `input_website_analysis` — flag if under 90 days (`< 3`) on a business older than 24 months; escalate immediately if under 30 days (`< 1`) * `email_deliverable` on `website_analysis` — cross-reference against the submitted email domain * `parked` and `website_build_status` — flag inactive or placeholder sites for established businesses *** ### Related guides * [Online Presence: Basics](/docs/online-presence-basics) — integration path decision guide and data model * [Online Presence: Best Practices](/docs/web-presence-orderables) — full decisioning framework * [Online Presence: Response Reference](/docs/online-presence-response-reference) — match values, match sources, and response shape by integration path * [Industry Prediction](/docs/industry-prediction-user-guide) — often requested alongside Website Analysis for best accuracy * [Website Analysis API Reference](/api-reference/website-analysis/get-website-analysis-request) — full endpoint documentation # Build a Journey Source: https://docs.baselayer.com/hosted-enrollment/journeys Build the onboarding flow your applicants see, and know what each check needs before you publish. You build customer journeys in [Console](https://console.baselayer.com), under **Enrollment Flows**. The [journey builder](/hosted-enrollment/playground) on these docs is the same editor, running in your browser, so you can try everything below without an account. ## Steps and fields A journey is a list of **steps**, each a screen the applicant sees, with **fields** on it. Use **Add Step** to add a step, blank or prefilled with common fields, and **Add field** to add fields to it. Open a field to set its label, help text and whether it is required, and use its arrows to reorder it. | Field | What the applicant sees | | - | - | | Text, email, phone, number, date | A single input, with optional limits on length, value or format. | | Currency | An amount in USD, EUR, GBP, CAD or AUD. | | Dropdown | A choice from options you list. | | Checkbox, consent | A box to tick. | | Address | A US address, with suggestions as they type. | | Document upload | One or more files, limited by type and count. A general file field, not an identity document check. | | Content | Text to read, in Markdown. Collects nothing. | | Business autocomplete | A search for the applicant's business. | | Beneficial owners | Everyone who owns 25% or more of the business. | Each field's **Fills** shows the data key its answer is saved under. Identity and business fields fill Baselayer's keys, which the checks read; any other field fills a custom key named after it, and its answer comes back in the session's results. ## Pre.Fill Pre.Fill lets a platform supply details it already knows so the applicant does not have to enter them again. **Identity Pre.Fill** asks for the applicant's phone number, date of birth and country, confirms they hold that phone with a one-time code, and fills in their identity for them to confirm on the next step. When Pre.Fill can't find the applicant, the identity step shows a form for them to type their details instead. Switch that step to **No match** to edit the form: reorder, remove or re-add its fields, and add fields shown only to applicants Pre.Fill can't find. ## Checks | Check | Runs | Needs | | - | - | - | | Identity verification (KYC) | Verifies the applicant. | Pre.Fill, or fields for first name, last name, date of birth and phone. With Pre.Fill, the no-match form must ask for those four as required fields. | | Business verification (KYB) | Verifies the business. | Business autocomplete, or fields for the legal name and address. | The rail shows **Ready** or **Missing inputs** for each check, and opening a check shows what it reads and what it still needs. A journey with no checks sends every completed application to your review queue. ## Branding Open **Branding** to set your primary and secondary colors, logo, font, and the Privacy, Terms and Support links in the footer, and to hide the "Powered by Baselayer" mark. Logos can be PNG, JPEG, WebP, SVG, GIF or AVIF up to 1 MB; fonts are WOFF2 files up to 2 MB, one per weight and style. Branding changes reach sessions already in progress. ## Publish and test **Save Draft** keeps your changes without affecting live sessions. **Publish** makes the draft the version new sessions run, and **Version history** lists what you published and restores an earlier version. **Copy Test Link** opens the journey as an applicant sees it. To start sessions on a journey from your server, you need its ID: the last part of the journey's URL in Console. See [Sessions and embedding](/hosted-enrollment/sessions). # Hosted Enrollment Source: https://docs.baselayer.com/hosted-enrollment/overview Verify people and their businesses through an onboarding flow Baselayer hosts in your brand, so applicants enter their details on Baselayer's page instead of your forms. Hosted enrollment is an onboarding flow Baselayer runs for you. 1. You build the flow once in Console as a **customer journey**: the steps an applicant sees, the fields on each step, the checks to run and your branding. 2. Then, for each applicant, you start a **session** from your server and send them to it. 3. Baselayer collects their details, verifies them and tells you the outcome. A journey can verify the applicant alone, or also their business and its beneficial owners. > [card] [Try the journey builder](/hosted-enrollment/playground) > > Console's journey builder, running in your browser: add steps and fields, brand it, and click through every screen as an applicant. Nothing you do there leaves your browser. ## How it works **1. Build and publish a journey in Console** Lay out the steps and fields, pick the checks, add your branding, then publish. Sessions always run the published version. See [Build a journey](/hosted-enrollment/journeys). **2. Start a session per applicant** From your server, start a session on the journey. Baselayer answers with an embed URL: open it in an iframe or redirect the applicant to it. See [Sessions and embedding](/hosted-enrollment/sessions). **3. The applicant completes the flow** They step through your journey on Baselayer's hosted screens. **4. Receive the outcome** A webhook tells you the session completed and its verdict; then read the session's results for everything the applicant entered and every check found. See [Receive the outcome](/hosted-enrollment/sessions#receive-the-outcome). The outcome includes the `individual_ref` (and `business_ref`), which you can also use to [mint KYA credentials](/docs/minting-credentials). ## What the applicant sees A typical journey runs through these screens, in order: | Screen | Shown when | | - | - | | Start verification | The journey uses Pre.Fill. The applicant enters their phone number, date of birth and country. | | Verification code | Pre.Fill sends a one-time code to that phone. | | One screen per step | Every step you add. With no Pre.Fill match, the applicant types their details on the identity step. | | Verification in progress | While the journey's checks run. | | Decision | Approved, or pending review when a check needs a person or the journey runs no checks. Not approved only after your team rejects it in Console. | > [!NOTE] > > Hosted enrollment must be enabled for your organization. Until it is, the session endpoints answer `403` with error code `37`. [Contact us](mailto:support@baselayer.com) to turn it on. # Hosted Enrollment Playground Source: https://docs.baselayer.com/hosted-enrollment/playground Build a hosted enrollment journey in Console's builder, brand it, and go through it as an applicant. Build a hosted enrollment journey, preview the applicant experience, and try the flow yourself. This is Console's journey builder: save a journey, then use **Copy Test Link** to go through it as an applicant. > [!NOTE] > > The playground stays in your browser. It does not publish a journey or send applicant data to Baselayer, and the businesses and the applicant are made up. Uploaded logos and fonts appear only in the editor, so test links and shared links show the default ones. > [!NOTE] > > The builder works best on a larger screen. Hosted enrollment playground # Sessions and Embedding Source: https://docs.baselayer.com/hosted-enrollment/sessions Send an applicant through your journey from your server, and know their verdict when they finish. A **session** is one applicant's run through a journey you published in Console. Your server starts it, the applicant completes it on Baselayer's hosted screens, and Baselayer tells your server the outcome. Your server makes two calls and receives one webhook. ## Start a session Start one session per applicant. The `template_id` is the journey's ID, the last part of its URL in Console: ```bash theme={null} curl -X POST https://api.baselayer.com/onboarding/sessions \ -H "X-API-Key: $BASELAYER_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "template_id": "", "reference_id": "applicant-123" }' ``` See the [API reference](/api-reference/onboarding/start-a-hosted-enrollment-session). `reference_id` is your own identifier for the applicant; it comes back on the session, its results and its webhook. The response carries: * The session's `id`. * An `embed_url`. * The `session_token` already embedded in it. * `expires_at` (when the link stops working). * Your `reference_id`. A journey that was never published answers `409`. Retrying the call starts a second session rather than returning the first; use `reference_id` to tell them apart. ## Show it to the applicant Open `embed_url` in an iframe inside your product: ```html theme={null} ``` Or redirect the applicant to it. Either way, the URL is the applicant's credential for this one session: treat it like a password, and start a new session rather than reusing a link. ## Receive the outcome When the applicant finishes and the checks complete, Baselayer sends the [`OnboardingSession.completed`](/docs/webhooks-at-baselayer#setting-up-webhook-endpoints) webhook. It is a summary, not the full results. It carries: * The `verdict` (see below). * Your `reference_id`. * `individual_ref`. * `business_ref` when the journey covered a business. * `business_operator_link_status`, which says whether the applicant is confirmed to operate that business. Its `submission_id` is the session's `id`. See every webhook field in the [API Reference](/api-reference/platform/onboarding-session-completed). Rarely, the webhook goes out late, after a reviewer has already decided the session; `verdict` then carries that decision, which can be `REJECTED`. Treat the results as the source of truth. Then read the session's results: ```http theme={null} GET /onboarding/sessions/{session_id}/results ``` See the [API reference](/api-reference/onboarding/get-a-hosted-enrollment-sessions-results). They carry: * The `verdict`. * What the applicant entered (including your custom fields). * Their confirmed identity. * The business. * Beneficial owners. * What each check found. A session that hasn't completed answers `409` with error code `6007`, and a completed session whose results aren't available answers `404` with error code `6008`. ### How verdicts work | `verdict` | Meaning | | - | - | | `APPROVED` | Verified. | | `UNDER_REVIEW` | Needs a person to look at it. Your team decides in Console, and the results then carry that decision's verdict. | | `REJECTED` | Your team rejected it in Console. Checks never reject on their own: a failed check sends the session to `UNDER_REVIEW`. | Next: to give an agent a KYA credential for this person, use `individual_ref` to [mint a credential](/docs/minting-credentials).