Skip to main content

Read single bookmark

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=drill_bookmark

Overview

Returns one bookmark by ID if it is visible to the current member.

Authentication

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

Permissions

Requires Read permission as evaluated by FEATURE_DEPENDENCIES (funnels, cohorts, users, drill, formulas).

Request Parameters

ParameterTypeRequiredDescription
methodStringYesMust be drill_bookmark.
app_idStringYesTarget app ID.
_idStringYesBookmark ID.
api_keyStringConditionalRequired if auth_token is not provided.
auth_tokenStringConditionalRequired if api_key is not provided.

Examples

/o?method=drill_bookmark&
app_id=64f5c0d8f4f7ac0012ab3456&
_id=67bd31c92e7f0b0012ab4567

Response

Success Response

{
"_id": "67bd31c92e7f0b0012ab4567",
"name": "US iOS Sessions",
"event_key": "[CLY]_session",
"desc": "Sessions for iOS users in US",
"global": false,
"creator": "64f5bf79f4f7ac0012ab1234",
"query_obj": "{\"up.cc\":\"US\",\"up.p\":\"ios\"}",
"query_text": "Country is US and platform is iOS",
"by_val": "[\"up.p\"]",
"by_val_text": "Platform",
"event_app_id": "2c2f0f9a..."
}

Or null when bookmark is not found / not visible.

Response Fields

FieldTypeDescription
(root object)Object or NullBookmark object when found and visible; otherwise null.
_idStringBookmark ID.
app_idStringApp ID the bookmark belongs to.
event_keyStringEvent key the bookmark belongs to.
nameStringBookmark name.
descStringBookmark description.
globalBooleanWhether the bookmark is visible beyond its creator.
creatorStringMember ID of the bookmark creator.
query_objStringSaved Drill query object JSON string. Uses the same shape as segmentation queryObject.
query_textStringHuman-readable query label.
by_valStringSaved projection key array JSON string, equivalent to segmentation projectionKey.
by_val_textStringHuman-readable projection label.
namespaceStringNon-default namespace, when stored.
visualizationStringOptional visualization hint.
signStringDeterministic duplicate-detection signature.
event_app_idStringMD5 hash of app_id + event_key used for event-scoped lookup.

Error Responses

This endpoint does not define a dedicated structured error payload; error output can vary by failure path.

Behavior

  • Reads bookmark by ID from countly_drill.drill_bookmarks.
  • Applies visibility filter: globally visible bookmark or creator-owned bookmark.
  • Does not require event_key; lookup is by _id plus visibility.
Implementation details

Configuration Impact

SettingDefaultAffectsUser-visible impact
api.*Server API defaultsShared API execution controls (for example processing thresholds/limits).Changes to API-level controls can affect runtime behavior, limits, or response timing for this endpoint.

Database Collections

CollectionUsed forData touched by this endpoint
countly_drill.drill_bookmarksEndpoint data sourceStores endpoint-related records this endpoint reads or modifies.