List stored merchant sessions
curl --request GET \
--url https://api.farthing.ai/v1/buyer-sessions \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.farthing.ai/v1/buyer-sessions"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.farthing.ai/v1/buyer-sessions', 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.farthing.ai/v1/buyer-sessions",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.farthing.ai/v1/buyer-sessions"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.farthing.ai/v1/buyer-sessions")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.farthing.ai/v1/buyer-sessions")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"sessions": [
{
"id": "e91d4a55-0b62-4c33-9f18-7a2c5d80b134",
"buyerProfileId": "b3a1c0de-2f77-45a0-9c8e-6f4b2a1d9e30",
"merchantDomain": "example-store.com",
"createdAt": "2026-07-21T14:02:11.771Z",
"updatedAt": "2026-07-29T09:26:29.310Z",
"lastUsedAt": "2026-07-29T09:26:29.310Z"
}
],
"vaultEnabled": true
}Buyer sessions
List stored merchant sessions
Metadata only. The cookie blob itself is encrypted at rest and is never returned by any endpoint.
Sessions are created only by checkout runs — a credentials login, or a refresh on a later success — so there is no POST here.
When the session vault is disabled on the deployment, this returns an empty list with vaultEnabled: false rather than an error.
Requires the buyer-sessions.read scope.
GET
/
v1
/
buyer-sessions
List stored merchant sessions
curl --request GET \
--url https://api.farthing.ai/v1/buyer-sessions \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.farthing.ai/v1/buyer-sessions"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.farthing.ai/v1/buyer-sessions', 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.farthing.ai/v1/buyer-sessions",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.farthing.ai/v1/buyer-sessions"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.farthing.ai/v1/buyer-sessions")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.farthing.ai/v1/buyer-sessions")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"sessions": [
{
"id": "e91d4a55-0b62-4c33-9f18-7a2c5d80b134",
"buyerProfileId": "b3a1c0de-2f77-45a0-9c8e-6f4b2a1d9e30",
"merchantDomain": "example-store.com",
"createdAt": "2026-07-21T14:02:11.771Z",
"updatedAt": "2026-07-29T09:26:29.310Z",
"lastUsedAt": "2026-07-29T09:26:29.310Z"
}
],
"vaultEnabled": true
}Authorizations
Authorization: Bearer ck_test_… or ck_live_…. There is no other auth scheme — no query-string keys, no request signing, no OAuth.
Query Parameters
Narrow to one buyer.