curl --request POST \
--url https://api.ofauth.com/v2/link/init \
--header 'Content-Type: application/json' \
--header 'apiKey: <api-key>' \
--data '
{
"clientAppId": "<string>",
"mode": "redirect",
"options": {
"returnRawSession": true
},
"redirectUrl": "<string>",
"origin": "<string>",
"clientReferenceId": "<string>",
"connectionId": "<string>"
}
'{
"mode": "hosted",
"url": "<string>",
"expiresAt": "<string>"
}Initialize a Link session for authentication.
curl --request POST \
--url https://api.ofauth.com/v2/link/init \
--header 'Content-Type: application/json' \
--header 'apiKey: <api-key>' \
--data '
{
"clientAppId": "<string>",
"mode": "redirect",
"options": {
"returnRawSession": true
},
"redirectUrl": "<string>",
"origin": "<string>",
"clientReferenceId": "<string>",
"connectionId": "<string>"
}
'{
"mode": "hosted",
"url": "<string>",
"expiresAt": "<string>"
}Client app id.
^app_[a-zA-Z0-9]+$Optional mode hint when clientAppId is omitted. Migrate to explicit clientAppId and configure type on the client app.
redirect, embed, hosted, whitelabel Optional session flags. Migrate to client app configuration and omit this field.
Show child attributes
URL to redirect to after completion. URL must be included in the client app settings. If omitted, Link uses the default redirect URI from the resolved client app when available.
Optional embed origin override. Migrate to explicit clientAppId with allowed origins configured on the client app.
Your internal reference ID for webhook correlation.
Existing connection ID to reconnect.
Show child attributes
Was this page helpful?