curl --request POST \
--url https://api-sandbox.ledgersyncappv2.com/v3/connections/redirect-token/verify \
--header 'Content-Type: application/json' \
--data '
{
"ls_token": "<string>"
}
'import requests
url = "https://api-sandbox.ledgersyncappv2.com/v3/connections/redirect-token/verify"
payload = { "ls_token": "<string>" }
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({ls_token: '<string>'})
};
fetch('https://api-sandbox.ledgersyncappv2.com/v3/connections/redirect-token/verify', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api-sandbox.ledgersyncappv2.com/v3/connections/redirect-token/verify",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'ls_token' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api-sandbox.ledgersyncappv2.com/v3/connections/redirect-token/verify"
payload := strings.NewReader("{\n \"ls_token\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api-sandbox.ledgersyncappv2.com/v3/connections/redirect-token/verify")
.header("Content-Type", "application/json")
.body("{\n \"ls_token\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api-sandbox.ledgersyncappv2.com/v3/connections/redirect-token/verify")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"ls_token\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"redirect_url": "https://myapp.example.com/cb",
"connection_id": "con_FINICITY_41294",
"client_id": "cli_smoke"
}{
"error": {
"code": "unknown_api_key",
"message": "The API key you presented doesn't match any active key.",
"type": "auth_error",
"doc_url": "https://portal.ledgersyncappv2.com/errors/unknown_api_key",
"category": "AUTH_ERROR",
"is_user_actionable": true,
"source_diagnostic_code": "FIN-103",
"param": "client.email",
"trace_id": "4bf92f3577b34da6a3ce929d0e0e4736",
"errors": [
{
"param": "client.email",
"message": "must be a valid email address",
"code": "invalid_email"
}
]
}
}Verify a redirect-token (ls_token) from the post-Connect callback
Public, unauthenticated endpoint. After a Finicity Connect widget
completes, the integrator’s redirect_url is hit with an
ls_token query parameter — a short-lived HS256 JWT minted by
v3. The integrator’s frontend POSTs that token to this endpoint
to retrieve the canonical connection_id, the original
redirect_url it was bound to, and the client_id.
CORS-enabled so a browser-side integrator page can call this
directly. No API key is required because the token itself is the
capability; its HMAC signature is verified against
V3_REDIRECT_TOKEN_SECRET. Tampered, expired, or missing tokens
return 400.
curl --request POST \
--url https://api-sandbox.ledgersyncappv2.com/v3/connections/redirect-token/verify \
--header 'Content-Type: application/json' \
--data '
{
"ls_token": "<string>"
}
'import requests
url = "https://api-sandbox.ledgersyncappv2.com/v3/connections/redirect-token/verify"
payload = { "ls_token": "<string>" }
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({ls_token: '<string>'})
};
fetch('https://api-sandbox.ledgersyncappv2.com/v3/connections/redirect-token/verify', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api-sandbox.ledgersyncappv2.com/v3/connections/redirect-token/verify",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'ls_token' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api-sandbox.ledgersyncappv2.com/v3/connections/redirect-token/verify"
payload := strings.NewReader("{\n \"ls_token\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api-sandbox.ledgersyncappv2.com/v3/connections/redirect-token/verify")
.header("Content-Type", "application/json")
.body("{\n \"ls_token\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api-sandbox.ledgersyncappv2.com/v3/connections/redirect-token/verify")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"ls_token\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"redirect_url": "https://myapp.example.com/cb",
"connection_id": "con_FINICITY_41294",
"client_id": "cli_smoke"
}{
"error": {
"code": "unknown_api_key",
"message": "The API key you presented doesn't match any active key.",
"type": "auth_error",
"doc_url": "https://portal.ledgersyncappv2.com/errors/unknown_api_key",
"category": "AUTH_ERROR",
"is_user_actionable": true,
"source_diagnostic_code": "FIN-103",
"param": "client.email",
"trace_id": "4bf92f3577b34da6a3ce929d0e0e4736",
"errors": [
{
"param": "client.email",
"message": "must be a valid email address",
"code": "invalid_email"
}
]
}
}Body
The opaque ls_token query-string value the Connect widget
appended to your redirect_url. Internally an HS256 JWT
(header {alg:HS256,typ:JWT}; payload includes v=1,
iss=ls-v3, iat, exp, connection_id, redirect_url,
client_id) but integrators should treat it as opaque.
Response
Token was valid; the bound connection metadata is returned.
The originally-bound redirect_url, as registered in the client allowlist.
"https://myapp.example.com/cb"
Connection id the widget session was bound to. Placeholder during pending; canonical after connection.active.
"con_FINICITY_41294"
The Client id the connection belongs to.
"cli_smoke"
