> ## Documentation Index
> Fetch the complete documentation index at: https://funnelfox.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# configure(config)

> Sets global SDK configuration options

Sets global SDK configuration options (organization ID and optional settings). Typically called once during initialization.

<Tip>
  It's recommended to call `configure()` once with your `orgId` so you don't need to pass it every time.
</Tip>

## Parameters

<ParamField body="orgId" type="string" required>
  Your organization's ID (required for all operations). Must be provided either in `configure()` or in each API call.
</ParamField>

<ParamField body="baseUrl" type="string" default="https://billing.funnelfox.com">
  Custom API base URL if you are pointing to a non-default backend.
</ParamField>

<ParamField body="region" type="string" default="default">
  Deployment region to use (if applicable).
</ParamField>

## Returns

This function does not return a value. The configuration is stored globally and applied to all subsequent SDK operations.

## Example

```javascript theme={null}
import { configure } from '@funnelfox/billing';

configure({
  orgId: 'your-org-id',       // Required: your organization ID
  baseUrl: 'https://custom.api', // Optional: custom API endpoint (default is https://billing.funnelfox.com)
  region: 'us-east-1',        // Optional: region identifier (default is "default")
});
```
