HomeGuidesAPI ReferenceChangelog
Log In
API Reference

Organization Usage

Retrieve API usage statistics for your organization with the Organization Usage endpoint. Access month-to-date usage data, monitor API calls, and track resource consumption.

The Organization Usage endpoint allows organizations to retrieve their API usage statistics. These statistics align with the usage data reported on https://dash.genability.com/org/usage. The API provides customers with greater flexibility to dynamically retrieve usage data for monitoring, alerting, and other use cases.

All usage data is reported on a month-to-date basis. To view daily usage data, you must call this endpoint daily and store the daily values. All values are updated daily at midnight UTC.

The Organization Usage endpoint authenticates using the provided appId and appKey. Users can only view usage statistics for the organization to which they belong. If you belong to multiple organizations, adjust your appId and appKey accordingly.

Resource URI

GET /rest/v1/orgs/usage

Request Parameters

In addition to the standard pagination parameters, searching and sorting parameters, and required security parameters, the following parameters are available for this request:

NameTypeDescription
populateAggregateUsagebooleanBoolean flag that indicates whether to include aggregate usage data in the response.
populateChildOrgsbooleanBoolean flag that determines whether usage data for child organizations should be included.
populateMasterTariffIdsbooleanBoolean flag that specifies whether to include master tariff IDs in the response.
startYearMonthdateTimeDate filter to limit usage data to a specific range. Consistent with the rest of the Signal API, we support ISO 8601 date formatting, though only the year and month are applied to the query. You can pass either a complete timestamp (2011-06-23T18:45-0700 / 2011-06-23T18:45) or a simplified year-month format (2011-06). If no date range is specified, the endpoint returns all available records.
endYearMonthdateTimeDate filter to limit usage data to a specific range. Consistent with the rest of the Signal API, we support ISO 8601 date formatting, though only the year and month are applied to the query. You can pass either a complete timestamp (2011-06-23T18:45-0700 / 2011-06-23T18:45) or a simplified year-month format (2011-06). If no date range is specified, the endpoint returns all available records.

Response Parameters

NameTypeDescription
apiCreditsnumberTotal number of billable API calls made during the usage period.
calcCreditsnumberTotal number of calculation calls made during the usage period.
tariffCreditsnumberNumber of unique tariffs accessed during the usage period.
accountsCreatednumberNumber of Switch accounts created during the usage period.
fullSwitchEnablednumberNumber of Full Switch (more context on Full Switches here) accounts enabled during the usage period.
accountsGivenStoragenumberNumber of Switch accounts provisioned with Storage profiles during the usage period.
completeMonthbooleanFlag that indicates whether the given month's usage data is complete. True = complete month, false = incomplete month.
activityToDatedateTimeTimestamp indicating when the given month's data was last refreshed.
storageProfilesCreatednumberNumber of Storage profiles created during the usage period.
residentialTarfiffsCountnumberNumber of unique residential tariffs accessed during the usage period.
commercialTariffsCountnumberNumber of unique commercial tariffs accessed during the usage period.
tariffsCountnumberEquivalent to tariffCredits. Number of unique tariffs accessed during the usage period.

Example

GET /rest/v1/orgs/usage?populateChildOrgs=true&populateMasterTariffIds=true

The request above retrieves monthly usage data, including breakdowns for each child organization and an enumerated list of accessed Master Tariff IDs (MTIDs).

{
    "status": "success",
    "count": 58,
    "type": "OrgUsage",
    "results": [
        {
            "orgName": "Genability",
            "year": 2024,
            "month": 12,
            "usage": {
                "apiCredits": 30356,
                "calcCredits": 13280,
                "tariffCredits": 248,
                "accountsCreated": 6616,
                "fullSwitchEnabled": 604,
                "accountsGivenStorage": 43,
                "masterTariffIds": [
                    512,
                    3424821,
                    518,
                    "..."
                ],
                "completeMonth": false,
                "activityToDate": "2024-12-17T00:00:00+00:00",
                "storageProfilesCreated": 72,
                "tariffBillingUsage": {
                    "residentialTariffsCount": 45,
                    "commercialTariffsCount": 203,
                    "internationalTariffsCount": 0,
                    "tariffsCount": 248
                }
            },
            "childOrgUsage": [
                {
                    "orgName": "genability-childOrg1",
                    "year": 2024,
                    "month": 12,
                    "usage": {
                        "apiCredits": 1076,
                        "calcCredits": 0,
                        "tariffCredits": 0,
                        "accountsCreated": 241,
                        "fullSwitchEnabled": 51,
                        "accountsGivenStorage": 0,
                        "completeMonth": false,
                        "activityToDate": "2024-12-16T00:00:00+00:00",
                        "storageProfilesCreated": 0
                    }
                }
            ]
        },
        {
            "orgId": "c0c31669-52bd-489f-9438-f5727b562cdb",
            "orgName": "Genability",
            "year": 2024,
            "month": 11,
            "usage": {
                "apiCredits": 143306,
                "calcCredits": 33792,
                "tariffCredits": 847,
                "accountsCreated": 16624,
                "fullSwitchEnabled": 1511,
                "accountsGivenStorage": 288,
                "masterTariffIds": [
                    3487797,
                    3487796,
                    3487799,
                    "..."
                ],
                "completeMonth": true,
                "activityToDate": "2024-12-01T00:00:00+00:00",
                "storageProfilesCreated": 479,
                "tariffBillingUsage": {
                    "residentialTariffsCount": 129,
                    "commercialTariffsCount": 718,
                    "internationalTariffsCount": 2,
                    "tariffsCount": 847
                }
            },
            "childOrgUsage": [
                {
                    "orgName": "genability-childOrg1",
                    "year": 2024,
                    "month": 11,
                    "usage": {
                        "apiCredits": 8651,
                        "calcCredits": 0,
                        "tariffCredits": 0,
                        "accountsCreated": 1879,
                        "fullSwitchEnabled": 453,
                        "accountsGivenStorage": 0,
                        "completeMonth": false,
                        "activityToDate": "2024-11-29T00:00:00+00:00",
                        "storageProfilesCreated": 0
                    }
                }
            ]
        }
    ]
}