Read this application's usage totals
The headline numbers behind the portal's Usage view, read programmatically.
Authorization
apiKey An API key, presented as Authorization: Bearer eitozx_…. Carries the Application's own authority rather than authority a user delegated to it, and reaches only users who currently hold a grant with that Application. An organization's key reaches every application the organization owns and names the one it acts on in the Onefold-Application header. Not interchangeable with an OAuth2 access token despite the shared scheme.
In: header
Header Parameters
The id of the application this call acts on. Required with an organization API key, which reaches every application its organization owns; ignored with an application's own key, which always acts on its application.
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
Error codes
Every error response carries one of these in its code field. Branch on the code, never on the detail text.
| Status | code |
|---|---|
| 400 | validation_failed, parse_error, api_key_application_required |
| 401 | not_authenticated, authentication_failed |
| 403 | permission_denied, api_key_scope_missing |
| 404 | api_key_application_not_found |
| 429 | rate_limited |
Before you run the sample
- Replace
YOUR_API_KEYwith your API key. - The key needs the
analytics:readscope, or no scopes at all.
curl -X GET "https://example.com/api/v1/manage/usage/"{ "active_access_token_count": 0, "active_refresh_token_count": 0, "authorized_user_count": 0, "last_authorized_at": "2019-08-24T14:15:22Z"}Read this application's resolved entitlements GET
The effective value of every gated feature for this application: its per-field override where one is set, otherwise its plan's value. What the platform will actually enforce, not what the plan advertises.
The published plan catalogue GET
Every plan with `is_public` set, on both ladders: `plans` bills one application on volume and capability, `organization_plans` bills one organization on people and consolidation. A published price of `0` means free; a price of `null` means contact us, and the two are deliberately not the same value. Two addresses, and they are not interchangeable. `business_email` is for a commercial conversation — a quoted tier, or a plan that does not exist yet. `contact_email` is for everything else, including a privacy or rights request, a security report and formal legal notice. Either may be `null` when the operator has not configured it.