Get your usage
curl --request GET \
--url https://api.pomerado.ai/v1/usage \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.pomerado.ai/v1/usage', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.pomerado.ai/v1/usage"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"from": "<string>",
"to": "<string>",
"as_of": "<string>",
"calls": 1,
"last_used_at": "<string>",
"unattributed_calls": 1,
"coverage": {
"started_at": "<string>",
"complete": true,
"attribution_complete": true
},
"groups": [
{
"integration_id": "int_0f8e2d1c4b3a49e8a7f6e5d4c3b2a190",
"calls": 1,
"last_used_at": "<string>"
}
]
}{
"error": {
"code": "<string>",
"message": "<string>",
"retryable": true,
"docs_url": "<string>",
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"retryable": true,
"docs_url": "<string>",
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"retryable": true,
"docs_url": "<string>",
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"retryable": true,
"docs_url": "<string>",
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"retryable": true,
"docs_url": "<string>",
"details": {}
}
}Usage
Get your usage
Your account’s charged tool calls in a time range: tool calls that finished with a result, counted when Pomerado accepted them, from (inclusive) to (exclusive). With group_by integration, each integration’s calls too. coverage.complete says whether the whole range lies within recorded history.
GET
/
v1
/
usage
Get your usage
curl --request GET \
--url https://api.pomerado.ai/v1/usage \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.pomerado.ai/v1/usage', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.pomerado.ai/v1/usage"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"from": "<string>",
"to": "<string>",
"as_of": "<string>",
"calls": 1,
"last_used_at": "<string>",
"unattributed_calls": 1,
"coverage": {
"started_at": "<string>",
"complete": true,
"attribution_complete": true
},
"groups": [
{
"integration_id": "int_0f8e2d1c4b3a49e8a7f6e5d4c3b2a190",
"calls": 1,
"last_used_at": "<string>"
}
]
}{
"error": {
"code": "<string>",
"message": "<string>",
"retryable": true,
"docs_url": "<string>",
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"retryable": true,
"docs_url": "<string>",
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"retryable": true,
"docs_url": "<string>",
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"retryable": true,
"docs_url": "<string>",
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"retryable": true,
"docs_url": "<string>",
"details": {}
}
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Query Parameters
Start of the range, inclusive (default: every call since coverage began)
End of the range, exclusive (default: now)
integration: also list each integration's calls
Available options:
integration Response
Your usage in the range
Charged tool calls in the range
Required range:
x >= 0Calls in the range recorded before calls named their integration
Required range:
x >= 0Show child attributes
Show child attributes
Show child attributes
Show child attributes