Skip to main content

Overview

The /init endpoint creates a new Link session. It returns a discriminated response:
  • mode: "hosted" with a url you can redirect to or open in the Link embed popup
  • mode: "whitelabel" with a clientSecret for enterprise programmatic flows

HTTP Request

Request Body

The redirectUrl must be registered in your client app’s Allowed Redirect URIs. Create and configure client apps in your OFAuth dashboard.

Response

Redirect Query Parameters

After Link completes, OFAuth redirects the user to your redirectUrl with query parameters appended:

On Success

On Cancel

On Error

Example

If you are using a hosted Link flow, verify that mode === "hosted" before reading url.

Handling the Callback