> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.usebridge.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.usebridge.com/_mcp/server.

## Configuration

Create a *Publishable API Key* from your [Bridge Dashboard](https://app.usebridge.xyz/developers).
These are not masked in the UI, and have a green check next to them.

## createBridgeClient

Call `createBridgeClient` once and reuse the client. The config matches `BridgeSdkConfig` from `@usebridge/sdk-core`:

```typescript
import { createBridgeClient } from "@usebridge/sdk";
import { consoleLogger } from "@usebridge/sdk-core";

const bridge = createBridgeClient({
  publishableKey: "pk_...",
  environment: "production", // or "sandbox"
  logger: consoleLogger, // optional
});
```

To use sandbox, set `environment: "sandbox"`.

To attach your own logger, implement the `Logger` interface from `@usebridge/sdk-core`.
Alternatively, use `consoleLogger` for debugging.

## Usage

```typescript
const payers = await bridge.searchPayers({ query: "Aetna", limit: 10 });

const result = await bridge.softEligibility({
  serviceTypeIds: ["svt_xxx"],
  payerId: "pyr_xxx",
  state: "CA",
});
```

---

#### [Soft Check](./soft-check)

Run a soft eligibility check

#### [Hard Check](./hard-check)

Full eligibility checks, cost estimates, and provider eligibility