Skip to main content

User Profiles - Timeline Graph

Enterprise

This endpoint is part of Countly Enterprise. To get access, contact sales or compare versions. Existing customers can reach the support portal with questions.

Endpoint

/o?method=user_details&calculate=graph

Overview

Returns user activity timeline graph data.

Authentication

Pass api_key or auth_token as a query parameter, or send countly-token as a header. See Authentication.

Permissions

  • User Profiles: Read permission.

Request Parameters

ParameterTypeRequiredDescription
api_keyStringYes (or auth_token)API key authentication
auth_tokenStringYes (or api_key)Auth token authentication
app_idStringYesApp ID
methodStringYesMust be user_details
calculateStringYesMust be graph
uidStringNoUser ID
didStringNoDevice ID alternative
periodStringNoRequested period
bucketStringNodaily, weekly, monthly, hourly
dbOverrideStringNoQuery adapter override
comparisonModeBoolean/StringNoComparison mode flag

Examples

/o?api_key=YOUR_API_KEY&app_id=YOUR_APP_ID&method=user_details&calculate=graph&uid=u_102&period=30days&bucket=daily

Response

Success Response

{
"totals": {
"s": 12,
"e": 54,
"d": 9,
"ds": 3,
"tsd": 4210
},
"graph": {
"2026:2:14": { "s": 2, "e": 8 },
"2026:2:15": { "s": 1, "e": 5 }
}
}

Response Fields

FieldTypeDescription
totalsObjectAggregated user totals in selected period
graphObjectBucketed timeline points

Error Responses

  • HTTP 400 - Query execution issue:
{
"result": "Error. Please check logs."
}

Behavior

  • Resolves uid from did when needed.
  • Maps bucket aliases (daily, weekly, monthly, hourly) to internal bucket keys.
  • Returns {} when user cannot be resolved.
Implementation details

Configuration Impact

SettingDefaultAffectsUser-visible impact
users.*User profile feature defaultsUser-details retrieval behavior in profile endpoints.Changes to user feature settings can affect which profile-related fields/aggregations are returned.

Database Collections

CollectionUsed forData touched by this endpoint
countly.app_users{appId}Per-app user profilesStores user-level properties and profile fields affected by this endpoint.
countly_drill.drill_eventsDrill event recordsStores granular event rows queried or updated by this endpoint.