Get Team Usage
curl --request GET \
--url https://api.promptloop.com/v0.1/team/usage \
--header 'x-api-key: <api-key>'import requests
url = "https://api.promptloop.com/v0.1/team/usage"
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.promptloop.com/v0.1/team/usage', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"status": "success",
"data": {
"rows_processed": 150,
"credits_used": 150,
"credits_remaining": 100,
"bonus_credits_remaining": 50,
"total_usage": 1500,
"period": "2024-02"
},
"message": "<string>",
"error": {
"code": 123,
"details": "<string>"
}
}{
"status": "error",
"data": {},
"message": "<string>",
"error": {
"code": 123,
"details": "<string>"
}
}{
"status": "error",
"data": {},
"message": "<string>",
"error": {
"code": 123,
"details": "<string>"
}
}{
"status": "error",
"data": {},
"message": "<string>",
"error": {
"code": 123,
"details": "<string>"
}
}{
"status": "error",
"data": {},
"message": "<string>",
"error": {
"code": 123,
"details": "<string>"
}
}Team
Get Team Usage
Retrieves usage statistics for the current billing period including rows processed, credits used, and credits remaining.
GET
/
v0.1
/
team
/
usage
Get Team Usage
curl --request GET \
--url https://api.promptloop.com/v0.1/team/usage \
--header 'x-api-key: <api-key>'import requests
url = "https://api.promptloop.com/v0.1/team/usage"
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.promptloop.com/v0.1/team/usage', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"status": "success",
"data": {
"rows_processed": 150,
"credits_used": 150,
"credits_remaining": 100,
"bonus_credits_remaining": 50,
"total_usage": 1500,
"period": "2024-02"
},
"message": "<string>",
"error": {
"code": 123,
"details": "<string>"
}
}{
"status": "error",
"data": {},
"message": "<string>",
"error": {
"code": 123,
"details": "<string>"
}
}{
"status": "error",
"data": {},
"message": "<string>",
"error": {
"code": 123,
"details": "<string>"
}
}{
"status": "error",
"data": {},
"message": "<string>",
"error": {
"code": 123,
"details": "<string>"
}
}{
"status": "error",
"data": {},
"message": "<string>",
"error": {
"code": 123,
"details": "<string>"
}
}⌘I
