Application

Read this application's analytics over time

GET
/api/v1/manage/analytics/

The time series behind the portal's Analytics tab — sign-ins, authorizations, scope mix, method mix, failure reasons and monthly active users. How far back it reads follows your plan's analytics retention; granularity (day/week/month) is the only knob. Every figure is an aggregate — it never names an end user.

Authorization

apiKey
AuthorizationBearer <token>

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

Onefold-Application?string

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.

Statuscode
400validation_failed, parse_error, api_key_application_required
401not_authenticated, authentication_failed
403permission_denied, api_key_scope_missing
404api_key_application_not_found
429rate_limited

Before you run the sample

  • Replace YOUR_API_KEY with your API key.
  • The key needs the analytics:read scope, or no scopes at all.
curl -X GET "https://example.com/api/v1/manage/analytics/"
{  "acquisition_available": true,  "acquisition_campaigns": [    {      "count": 0,      "key": "string"    }  ],  "acquisition_mediums": [    {      "count": 0,      "key": "string"    }  ],  "acquisition_sources": [    {      "count": 0,      "key": "string"    }  ],  "buckets": [    {      "active_access_tokens_eod": 0,      "active_users": 0,      "authorizations_granted": 0,      "authorizations_revoked": 0,      "code_exchange_failures": 0,      "codes_exchanged": 0,      "date": "2019-08-24",      "distinct_sign_in_users": 0,      "mfa_challenges": 0,      "mfa_failures": 0,      "net_authorizations": 0,      "new_users": 0,      "refresh_failures": 0,      "returning_sign_in_users": 0,      "sign_in_attempts": 0,      "sign_in_failures": 0,      "sign_ins": 0,      "signups": 0,      "tokens_issued": 0,      "tokens_refreshed": 0    }  ],  "by_application": [    {      "application_id": "1400000000000000000",      "buckets": [        {          "active_access_tokens_eod": 0,          "active_users": 0,          "authorizations_granted": 0,          "authorizations_revoked": 0,          "code_exchange_failures": 0,          "codes_exchanged": 0,          "date": "2019-08-24",          "distinct_sign_in_users": 0,          "mfa_challenges": 0,          "mfa_failures": 0,          "net_authorizations": 0,          "new_users": 0,          "refresh_failures": 0,          "returning_sign_in_users": 0,          "sign_in_attempts": 0,          "sign_in_failures": 0,          "sign_ins": 0,          "signups": 0,          "tokens_issued": 0,          "tokens_refreshed": 0        }      ],      "name": "string"    }  ],  "failure_reasons": [    {      "count": 0,      "key": "string"    }  ],  "granularity": "string",  "mau_periods": [    {      "included_mau": 0,      "mau_count": 0,      "period_end": "2019-08-24T14:15:22Z",      "period_start": "2019-08-24T14:15:22Z"    }  ],  "method_mix": [    {      "count": 0,      "key": "string"    }  ],  "organization_retention_days": 0,  "previous": [    {      "active_access_tokens_eod": 0,      "active_users": 0,      "authorizations_granted": 0,      "authorizations_revoked": 0,      "code_exchange_failures": 0,      "codes_exchanged": 0,      "date": "2019-08-24",      "distinct_sign_in_users": 0,      "mfa_challenges": 0,      "mfa_failures": 0,      "net_authorizations": 0,      "new_users": 0,      "refresh_failures": 0,      "returning_sign_in_users": 0,      "sign_in_attempts": 0,      "sign_in_failures": 0,      "sign_ins": 0,      "signups": 0,      "tokens_issued": 0,      "tokens_refreshed": 0    }  ],  "retention_days": 0,  "scope_mix": [    {      "count": 0,      "scope": "string"    }  ],  "since": "2019-08-24T14:15:22Z",  "until": "2019-08-24T14:15:22Z"}