SDK Quick Start — Banking & Financial Services
Getting started: Banking & Financial Services
Add policy checks to your application’s business actions. The core SDK checks each action before it runs and checks its result before release. An input check can stop the action or pause it for human review.
Catalog context. Use this vocabulary to describe workflows such as payment fraud screening, loan underwriting, customer onboarding, and model validation. Select fields that your integration can report reliably. Your compliance team must determine which requirements apply; recording a field does not satisfy those requirements.
Use industry fields with the core SDK
Industry vocabularies supply typed values that the SDK sends as policy fields and evidence attributes with one governed call. Choose values that describe the actual workflow. Adding a vocabulary does not activate rules or assign regulatory requirements.
| Component | What you configure | How it is used |
|---|---|---|
| Core SDK | API key, endpoint, one client, and the governed action around each protected step | The same policy checks, typed results, and evidence used across every implementation |
| Banking & Financial Services | Industry values and application facts from this catalog | Rules read them under input.snapshot.industry and input.snapshot.facts; reviewers see them in evidence |
| Review workflows | Rules, evidence packages, and internal reviewer workflows | Reviewers can inspect captured values and identify missing context |
For client setup and your first governed action, start with TypeScript core, Python core, or .NET core before continuing here.
Step 1 — Install the approved packages
In the customer portal, open Tools and SDKs. Select your language and adapters, then follow the installation instructions shown there.
The package registry instructions use VeriProof's public GitLab feeds. Installs require no GitLab account or package credential. See SDK access for workstation and CI guidance.
VeriProof packages used here: @veriproof/sdk-core (TypeScript), veriproof-sdk (Python), Veriproof.Sdk.Core (.NET).
Step 2 — Configure
Store the API key as VERIPROOF_API_KEY and create one client when the application starts. Publish the policy you want to enforce, then confirm its field contract against the facts and industry values your application supplies.
Copy the application ID and key from Set up SDK. The application ID is not its display name. Try a live demo to see a governed workflow, or request an evaluation if you need a workspace.
Step 3 — Govern the action
Put the protected business action inside govern. The SDK checks policy before it calls the action and before it releases the result. An input Deny stops the action; an input Escalate pauses it for review.
import { Veriproof } from '@veriproof/sdk-core';
import type { GovernedResult, IndustryFact, JsonValue } from '@veriproof/sdk-core';
const veriproof = Veriproof.fromEnv();
export async function runProtectedAction<TInput extends JsonValue, TValue>(
request: TInput,
action: (input: TInput, signal: AbortSignal) => Promise<TValue>,
): Promise<GovernedResult<TValue, TInput>> {
// Catalog values for this vertical. Replace them with facts from the current workflow.
const industry: IndustryFact[] = [
{ attribute: "banking.payment.rail", policyInput: "banking_payment_rail", value: "fednow" },
{ attribute: "banking.payment.agent_action", policyInput: "banking_payment_agent_action", value: "initiate_credit_transfer" },
{ attribute: "banking.sanctions.screening_outcome", policyInput: "banking_sanctions_screening_outcome", value: "clear" },
];
// Policy runs before action() and again before the result is released.
// A deny or review decision means action() never runs.
return veriproof.govern(
"banking.financial.services.evaluate",
request,
({ input, signal }) => action(input, signal),
{ industry },
);
}Only completed, completed_with_warning, and transformed results carry a released value. Handle every other status with its safe message, reason code, and evidence reference. For review decisions, save the checkpoint and continue through the human review workflow.
Add typed industry values
Each core SDK ships this vertical's vocabulary as generated types. A typed value becomes one policy field and one evidence attribute when you pass it to the governed call. Use application facts for values that are specific to your workflow.
Find this workflow's vocabulary in the Banking & Financial Services reference. Use the attribute names below and verify their policy-field mapping before using them in a rule. Sample values show the format; they are not recommended outcomes for your application.
| OTel attribute | Sample value | Category |
|---|---|---|
banking.payment.iso20022_status | ACTC | PaymentStatusISO20022 |
banking.payment.message_type | pain.001 | PaymentMessageType |
banking.payment.rail | fednow | PaymentRailType |
banking.payment.purpose_code | BEXP | PaymentPurposeCode |
banking.payment.agent_action | initiate_credit_transfer | PaymentAgentActionType |
banking.sanctions.screening_outcome | clear | SanctionsScreeningOutcome |
TypeScript
import { Industry } from '@veriproof/sdk-core';
import { PaymentRailType, PaymentRailTypeMeta, PaymentAgentActionType, PaymentAgentActionTypeMeta, SanctionsScreeningOutcome, SanctionsScreeningOutcomeMeta } from '@veriproof/sdk-core/industries/banking-financial-services';
// Replace sample values with facts from the current workflow.
// Each value becomes one policy field and one evidence attribute.
const industry = [
Industry.fact(PaymentRailTypeMeta, PaymentRailType.Fednow),
Industry.fact(PaymentAgentActionTypeMeta, PaymentAgentActionType.InitiateCreditTransfer),
Industry.fact(SanctionsScreeningOutcomeMeta, SanctionsScreeningOutcome.Clear),
];
const result = await veriproof.govern(actionName, request, runWorkflow, { industry });Python
from veriproof_sdk.verticals.banking_financial_services import PaymentRailType, PaymentAgentActionType, SanctionsScreeningOutcome
# Replace sample values with facts from the current workflow.
# Each value becomes one policy field and one evidence attribute.
industry = (
PaymentRailType.fednow.fact(),
PaymentAgentActionType.initiate_credit_transfer.fact(),
SanctionsScreeningOutcome.clear.fact(),
)
result = await vp.govern(action_name, request, run_workflow, industry=industry).NET
using Veriproof.Sdk.Core.Industries.BankingFinancialServices;
// Replace sample values with facts from the current workflow.
// Each value becomes one policy field and one evidence attribute.
var options = new GovernOptions
{
Industry =
[
PaymentRailType.Fednow.Fact(),
PaymentAgentActionType.InitiateCreditTransfer.Fact(),
SanctionsScreeningOutcome.Clear.Fact(),
],
};
var result = await veriproof.GovernAsync(actionName, request, RunWorkflowAsync, options);Workflow examples from the catalog
- Payments & Funds Transfer: Payment Rail Type. OPA rule: require enhanced OFAC/sanctions screening for swift_cbpr_plus, sepa_credit_transfer, and sepa_instant rails. Require 24/7 HITL coverage for fednow and rtp_tcf rails above configurable threshold.
- Payments & Funds Transfer: Payment Agent Action Type. OPA rule: classify initiate_credit_transfer, initiate_direct_debit, and apply_fx_conversion as irreversible_high_impact, requiring HITL approval above configurable amount threshold.
- Payments & Funds Transfer: Sanctions Screening Outcome. OPA rule: deny any payment agent tool call for payment rail execution when sanctions_screening_outcome is potential_hit or confirmed_hit; require HITL escalation.
- Fraud Detection & Financial Crime: AMLAlert Status. OPA rule: require HITL with compliance_officer role for sar_decision_pending state. Block automated sar_filed or sar_declined_documented transitions, these must be human-authorised.
Next steps
- Open the full Banking & Financial Services governance reference for all 36 enum categories, policy patterns, and source standards.
- Review TypeScript SDK core for stop handling, human review continuation, and the OpenAI Agents adapter.
- Review Python SDK core for stop handling, human review continuation, and the Microsoft Agent Framework adapter.
- Review .NET SDK core for stop handling, human review continuation, and the Microsoft Agent Framework adapter.
- Browse all industry references to compare shared fields with the fields specific to each industry.
- Compare this guide with the public industry pages for a business overview of the same workflows.
Verify your work email to create a Developer account, free for 60 days. Open your account, create a Development application and its API key, then follow Tools and SDKs to connect it.