Accounts
Get credit balance
Returns the organization’s credits for the current billing period
GET
https://api.talktohumans.app
/
v1
/
credits
Get credit balance
curl --request GET \
--url https://api.talktohumans.app/v1/credits \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.talktohumans.app/v1/credits', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.talktohumans.app/v1/credits"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.talktohumans.app/v1/credits"
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))
}{
"data": {
"credit_balance": {
"available_credits": 680,
"used_credits": 320,
"total_credits": 1000,
"period_start": "2026-10-01T00:00:00Z",
"period_end": "2026-11-01T00:00:00Z"
}
}
}⌘I
Get credit balance
curl --request GET \
--url https://api.talktohumans.app/v1/credits \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.talktohumans.app/v1/credits', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.talktohumans.app/v1/credits"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.talktohumans.app/v1/credits"
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))
}{
"data": {
"credit_balance": {
"available_credits": 680,
"used_credits": 320,
"total_credits": 1000,
"period_start": "2026-10-01T00:00:00Z",
"period_end": "2026-11-01T00:00:00Z"
}
}
}