Get token usage history
curl --request GET \
--url https://api-service.fribl.co/api/v1/credits/history \
--header 'x-api-key: <api-key>'import requests
url = "https://api-service.fribl.co/api/v1/credits/history"
headers = {"x-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://api-service.fribl.co/api/v1/credits/history', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api-service.fribl.co/api/v1/credits/history"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api-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-service.fribl.co/api/v1/credits/history")
.header("x-api-key", "<api-key>")
.asString();{
"data": [
{
"id": "10472",
"workspace_id": "ws_a1b2c3d4",
"action": "cv_processing",
"amount": -1,
"balance_after": "151",
"created_at": "2026-06-03T10:15:30.000Z",
"reference_id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"metadata": {}
}
]
}{
"error": "<string>"
}Tokens
Get token usage history
Return a paginated ledger of every token movement for your workspace — charges, refunds, grants, and expirations — ordered newest first. Use the before cursor with the created_at of the last entry you saw to page backward.
GET
/
credits
/
history
Get token usage history
curl --request GET \
--url https://api-service.fribl.co/api/v1/credits/history \
--header 'x-api-key: <api-key>'import requests
url = "https://api-service.fribl.co/api/v1/credits/history"
headers = {"x-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://api-service.fribl.co/api/v1/credits/history', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api-service.fribl.co/api/v1/credits/history"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api-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-service.fribl.co/api/v1/credits/history")
.header("x-api-key", "<api-key>")
.asString();{
"data": [
{
"id": "10472",
"workspace_id": "ws_a1b2c3d4",
"action": "cv_processing",
"amount": -1,
"balance_after": "151",
"created_at": "2026-06-03T10:15:30.000Z",
"reference_id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"metadata": {}
}
]
}{
"error": "<string>"
}Authorizations
API key in UUID format. Include this header with every authenticated request.
Query Parameters
Maximum number of ledger entries to return.
Required range:
1 <= x <= 500Return only entries created strictly before this ISO 8601 timestamp. Use for backward pagination.
Response
Ledger entries, newest first.
Show child attributes
Show child attributes