SDK Usage
GET https://{{base_url}}/analytics/v2/sdk?from=2024-01-31&to=2024-03-31&orgUid={{orgUid}}&includeCount=true&services=["cdn","cma"]&duration=day
The SDK Usage request gets you the number of requests that were made using the SDKs. It helps you get an overview of the SDK usage by your customers.
To use the API request, you will need to authenticate yourself either with an Authtoken.Â
Read more about it in Authentication.
For more information, refer to the SDK Usage API Reference document
Request Params
Key | Datatype | Required | Description |
---|---|---|---|
from | string | Specify the start date for the required data. Use the following date format: YYYY-MM-DD. | |
to | string | Enter the current date or any date after the from date. The date format should be: YYYY-MM-DD. | |
orgUid | string | Enter the UID of your Organization. | |
includeCount | boolean | Set this parameter to true to include the total count of users in the response. | |
services | string | Specify the array of services for which you want statistics, such as: ["cma", "ui", "cdn", "graphql", "images", "assets", "automations", "launch"]. | |
duration | string | Enter a value like day, week, or month. This parameter determines the granularity of the data you want to fetch. | |
orderBy | number | Enter 1 to sort the SDK response in ascending order, or -1 to sort it in descending order. | |
limit | number | Specify the number of items you wish to fetch per request. The maximum limit is 900. | |
skip | number | Enter the number of items to skip. For example, a skip value of 10 will skip the first 10 items. | |
apiKey | string | Enter your stack API key to get data for that specific stack. |
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
authtoken | string | Enter your authtoken . | |
Content-Type | string |