Get the wallet's Stripe login state
curl --request GET \
--url https://api.calmtreasury.xyz/v1/stripe/status \
--header 'x-calm-publishable-key: <api-key>'import requests
url = "https://api.calmtreasury.xyz/v1/stripe/status"
headers = {"x-calm-publishable-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-calm-publishable-key': '<api-key>'}};
fetch('https://api.calmtreasury.xyz/v1/stripe/status', 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.calmtreasury.xyz/v1/stripe/status",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-calm-publishable-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"
"net/http"
"io"
)
func main() {
url := "https://api.calmtreasury.xyz/v1/stripe/status"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-calm-publishable-key", "<api-key>")
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.calmtreasury.xyz/v1/stripe/status")
.header("x-calm-publishable-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.calmtreasury.xyz/v1/stripe/status")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-calm-publishable-key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"authenticated": true,
"crypto_customer_id": "<string>",
"email": "jsmith@example.com"
}{
"error": {
"code": "<string>",
"message": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>"
}
}Stripe
Get the wallet's Stripe login state
Report whether the wallet is still Link-authenticated.
GET
/
v1
/
stripe
/
status
Get the wallet's Stripe login state
curl --request GET \
--url https://api.calmtreasury.xyz/v1/stripe/status \
--header 'x-calm-publishable-key: <api-key>'import requests
url = "https://api.calmtreasury.xyz/v1/stripe/status"
headers = {"x-calm-publishable-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-calm-publishable-key': '<api-key>'}};
fetch('https://api.calmtreasury.xyz/v1/stripe/status', 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.calmtreasury.xyz/v1/stripe/status",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-calm-publishable-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"
"net/http"
"io"
)
func main() {
url := "https://api.calmtreasury.xyz/v1/stripe/status"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-calm-publishable-key", "<api-key>")
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.calmtreasury.xyz/v1/stripe/status")
.header("x-calm-publishable-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.calmtreasury.xyz/v1/stripe/status")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-calm-publishable-key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"authenticated": true,
"crypto_customer_id": "<string>",
"email": "jsmith@example.com"
}{
"error": {
"code": "<string>",
"message": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>"
}
}Whether this wallet is still authenticated with Stripe Link, plus the customer
id and email once they are known. It answers 200 either way, so it is safe to
poll on a cold open to decide whether to resume or restart the flow.
Authorizations
Publishable key identifying the calling app.
Query Parameters
Pattern:
^0x[a-fA-F0-9]{40}$