Get Endpoint Usage Statistics
A 4-step recipe with emnify. We can help you get access.
Recipe · 4 steps
Get Endpoint Usage Statistics
with emnify
Read an endpoint's usage statistics and daily usage breakdown.
- Exchange the application token for an auth_token used as a Bearer token.
- Confirm the endpoint exists before pulling statistics.
- Read aggregated usage and cost statistics for the endpoint.
- Read per-day data and SMS usage for the supplied date range.
What you'll need to have ready
- applicationToken: emnify application token used to obtain an auth_token.
- endpointId: The ID of the endpoint to report on.
- startDate: Start date for daily stats in YYYY-MM-DD format.
- endDate: End date for daily stats in YYYY-MM-DD format.
For your developer
Arazzo workflow emnify:get-endpoint-usage-stats, 4 operations: authenticate → endpoint-by-id-get → endpoint-stats-by-id-get → endpoint-stats-daily-by-id-get. Specs on APIs.io.