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

# Create your integration

> Get Sandbox credentials for your first API request.

An integration is your app's setup in OFAuth. Its client ID selects Sandbox, Test, or Live; there is no separate environment option.

## Create your app

1. Sign in to the [OFAuth dashboard](https://app-next.ofauth.com).
2. Select your organization.
3. Select **Create integration**.
4. Enter your **App name**.
5. Select **Create app**.
6. Open **Sandbox**, then **Connection settings**.

If your team already has an integration, open its Sandbox settings instead.

## Save your credentials

1. Copy **Client ID**.
2. Under **Client secrets**, select **Create secret**.
3. Save the new secret before closing the dialog. It is shown once.

Keep the secret in your server environment. Do not commit it to Git.

## Register callbacks before connecting customers

Before starting browser OAuth, add the application's exact return URL under **OAuth callback URIs**. The scheme, host, port, path, and trailing slash must match the `redirect_uri` in your authorization request. Use the same host for your app and its callback so the initiating session remains available.

For example, an Express app served at `http://127.0.0.1:3000` can use:

```text theme={null}
http://127.0.0.1:3000/oauth/ofauth/callback
```

Use `127.0.0.1` throughout that example. Configure your framework's trusted app origin to match. Better Auth's default callback is `/api/auth/callback/ofauth`; adjust it for a custom `basePath`.

Live consent displays the purpose from your approved integration configuration.

Continue to the [Quickstart](https://docs.ofauth.com/v3/setup/quickstart.md) to authorize a sample account and read its profile.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.