Billing summary
curl --request GET \
--url https://api.lumisreach.com/api/v1/billing \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.lumisreach.com/api/v1/billing"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.lumisreach.com/api/v1/billing', 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.lumisreach.com/api/v1/billing",
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.lumisreach.com/api/v1/billing"
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.lumisreach.com/api/v1/billing")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.lumisreach.com/api/v1/billing")
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{
"data": {
"plan": "<string>",
"subscription_status": "<string>",
"is_trial": true,
"currency": "USD",
"wallet": {
"balance_usd": 123,
"is_paused": true,
"is_low": true,
"auto_recharge": {
"enabled": true,
"threshold_usd": 123,
"amount_usd": 123,
"last_attempt_failed": true
},
"spend_last_24h_usd": 123,
"spend_last_7d_usd": 123
},
"current_period": {
"start": "<string>",
"end": "<string>",
"days_remaining": 123
},
"allowances": {
"voice_minutes": {
"used": 123,
"included": 123,
"remaining": 123,
"overage": 123,
"percent_used": 123
},
"sms_segments": {
"used": 123,
"included": 123,
"remaining": 123,
"overage": 123,
"percent_used": 123
},
"emails": {
"used": 123,
"included": 123,
"remaining": 123,
"overage": 123,
"percent_used": 123
},
"ai_video_credits": {
"used": 123,
"included": 123,
"remaining": 123,
"overage": 123,
"percent_used": 123
}
},
"overage_charges_usd": {
"voice": 123,
"sms": 123,
"email": 123,
"ai_video": 123,
"total": 123
}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"fields": {},
"doc_url": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"fields": {},
"doc_url": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"fields": {},
"doc_url": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"fields": {},
"doc_url": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"fields": {},
"doc_url": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"fields": {},
"doc_url": "<string>"
}
}Billing
Billing summary
The workspace’s plan, prepaid wallet balance (with auto-recharge settings and recent spend), and the current monthly usage period: included voice minutes, SMS segments, emails and AI video credits, how much of each is used, and the overage charged so far. For a per-category breakdown use GET /v1/billing/usage. Free: reads are never billed.
GET
/
v1
/
billing
Billing summary
curl --request GET \
--url https://api.lumisreach.com/api/v1/billing \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.lumisreach.com/api/v1/billing"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.lumisreach.com/api/v1/billing', 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.lumisreach.com/api/v1/billing",
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.lumisreach.com/api/v1/billing"
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.lumisreach.com/api/v1/billing")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.lumisreach.com/api/v1/billing")
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{
"data": {
"plan": "<string>",
"subscription_status": "<string>",
"is_trial": true,
"currency": "USD",
"wallet": {
"balance_usd": 123,
"is_paused": true,
"is_low": true,
"auto_recharge": {
"enabled": true,
"threshold_usd": 123,
"amount_usd": 123,
"last_attempt_failed": true
},
"spend_last_24h_usd": 123,
"spend_last_7d_usd": 123
},
"current_period": {
"start": "<string>",
"end": "<string>",
"days_remaining": 123
},
"allowances": {
"voice_minutes": {
"used": 123,
"included": 123,
"remaining": 123,
"overage": 123,
"percent_used": 123
},
"sms_segments": {
"used": 123,
"included": 123,
"remaining": 123,
"overage": 123,
"percent_used": 123
},
"emails": {
"used": 123,
"included": 123,
"remaining": 123,
"overage": 123,
"percent_used": 123
},
"ai_video_credits": {
"used": 123,
"included": 123,
"remaining": 123,
"overage": 123,
"percent_used": 123
}
},
"overage_charges_usd": {
"voice": 123,
"sms": 123,
"email": 123,
"ai_video": 123,
"total": 123
}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"fields": {},
"doc_url": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"fields": {},
"doc_url": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"fields": {},
"doc_url": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"fields": {},
"doc_url": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"fields": {},
"doc_url": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"fields": {},
"doc_url": "<string>"
}
}