Account
Account List
List the stores a buyer has a connected login at, and whether each still signs in (failed once the store would not). Never returns a username or a password. The buyer goes in the body, not the URL, so their email stays out of URL logs.
POST
/
account
/
list
JavaScript
import HenrySDK from '@henrylabs/sdk';
const client = new HenrySDK({
apiKey: process.env['HENRY_SDK_API_KEY'], // This is the default and can be omitted
});
const accounts = await client.account.list({ buyerEmail: 'jane@example.com' });
console.log(accounts.data);curl --request POST \
--url https://api.henrylabs.ai/v1/account/list \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"buyerEmail": "jane@example.com"
}
'import requests
url = "https://api.henrylabs.ai/v1/account/list"
payload = { "buyerEmail": "jane@example.com" }
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.henrylabs.ai/v1/account/list",
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([
'buyerEmail' => 'jane@example.com'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"x-api-key: <api-key>"
],
]);
$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.henrylabs.ai/v1/account/list"
payload := strings.NewReader("{\n \"buyerEmail\": \"jane@example.com\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("x-api-key", "<api-key>")
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.henrylabs.ai/v1/account/list")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"buyerEmail\": \"jane@example.com\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.henrylabs.ai/v1/account/list")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-api-key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"buyerEmail\": \"jane@example.com\"\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"status": "<string>",
"message": "<string>",
"data": {
"accounts": [
{
"merchantHost": "uniqlo.com",
"buyerEmail": "jane@example.com",
"status": "connected",
"connectedAt": "2026-11-12T23:00:00.000Z"
}
]
}
}{
"success": true,
"status": "<string>",
"message": "<string>"
}{
"success": true,
"status": "<string>",
"message": "<string>"
}Body
application/json
Was this page helpful?
⌘I
JavaScript
import HenrySDK from '@henrylabs/sdk';
const client = new HenrySDK({
apiKey: process.env['HENRY_SDK_API_KEY'], // This is the default and can be omitted
});
const accounts = await client.account.list({ buyerEmail: 'jane@example.com' });
console.log(accounts.data);curl --request POST \
--url https://api.henrylabs.ai/v1/account/list \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"buyerEmail": "jane@example.com"
}
'import requests
url = "https://api.henrylabs.ai/v1/account/list"
payload = { "buyerEmail": "jane@example.com" }
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.henrylabs.ai/v1/account/list",
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([
'buyerEmail' => 'jane@example.com'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"x-api-key: <api-key>"
],
]);
$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.henrylabs.ai/v1/account/list"
payload := strings.NewReader("{\n \"buyerEmail\": \"jane@example.com\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("x-api-key", "<api-key>")
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.henrylabs.ai/v1/account/list")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"buyerEmail\": \"jane@example.com\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.henrylabs.ai/v1/account/list")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-api-key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"buyerEmail\": \"jane@example.com\"\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"status": "<string>",
"message": "<string>",
"data": {
"accounts": [
{
"merchantHost": "uniqlo.com",
"buyerEmail": "jane@example.com",
"status": "connected",
"connectedAt": "2026-11-12T23:00:00.000Z"
}
]
}
}{
"success": true,
"status": "<string>",
"message": "<string>"
}{
"success": true,
"status": "<string>",
"message": "<string>"
}