PublicApiGetUsageSummary
curl --request GET \
--url https://sandbox.api.app.firstsales.io/api/v1/organizations/{orgId}/billing/credits/usage-summary \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://sandbox.api.app.firstsales.io/api/v1/organizations/{orgId}/billing/credits/usage-summary', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"daily": [
{
"date": "<string>",
"total": 123
}
],
"byAction": [
{
"action": "<string>",
"label": "<string>",
"total": 123,
"count": 4503599627370495,
"displayClass": "fixed",
"pct": 123,
"unitCost": 123
}
],
"totalConsumed": 123,
"grossSpend": 123,
"totalRefunds": 123,
"distinctUsed": 4503599627370495,
"periodDays": 4503599627370496,
"clamped": true
}{
"error": {
"code": "<string>",
"message": "<string>",
"requestId": "<string>",
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"requestId": "<string>",
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"requestId": "<string>",
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"requestId": "<string>",
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"requestId": "<string>",
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"requestId": "<string>",
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"requestId": "<string>",
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"requestId": "<string>",
"details": {}
}
}Billing
PublicApiGetUsageSummary
GET /api/v1/organizations//billing/credits/usage-summary
GET
/
api
/
v1
/
organizations
/
{orgId}
/
billing
/
credits
/
usage-summary
PublicApiGetUsageSummary
curl --request GET \
--url https://sandbox.api.app.firstsales.io/api/v1/organizations/{orgId}/billing/credits/usage-summary \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://sandbox.api.app.firstsales.io/api/v1/organizations/{orgId}/billing/credits/usage-summary', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"daily": [
{
"date": "<string>",
"total": 123
}
],
"byAction": [
{
"action": "<string>",
"label": "<string>",
"total": 123,
"count": 4503599627370495,
"displayClass": "fixed",
"pct": 123,
"unitCost": 123
}
],
"totalConsumed": 123,
"grossSpend": 123,
"totalRefunds": 123,
"distinctUsed": 4503599627370495,
"periodDays": 4503599627370496,
"clamped": true
}{
"error": {
"code": "<string>",
"message": "<string>",
"requestId": "<string>",
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"requestId": "<string>",
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"requestId": "<string>",
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"requestId": "<string>",
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"requestId": "<string>",
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"requestId": "<string>",
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"requestId": "<string>",
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"requestId": "<string>",
"details": {}
}
}Use this endpoint through the Developer API or the matching
firstsales CLI command when available. Responses use the stable FirstSales public error envelope.Authorizations
FirstSales developer API key bearer token (fs-key-*).
Path Parameters
Query Parameters
Required range:
1 <= x <= 90Pattern:
^\d{4}-\d{2}-\d{2}$Pattern:
^\d{4}-\d{2}-\d{2}$Response
Successful response
Maximum array length:
366Show child attributes
Show child attributes
Maximum array length:
22Show child attributes
Show child attributes
Required range:
0 <= x <= 9007199254740991Required range:
1 <= x <= 9007199254740991