Skip to main content

SDK - Config Read

Endpoint

/o?method=sdk-config

Overview

Returns stored SDK config for dashboard/admin usage.

Authentication

Countly API supports three authentication methods:

  1. api_key=YOUR_API_KEY
  2. auth_token=YOUR_AUTH_TOKEN
  3. countly-token: YOUR_AUTH_TOKEN

Permissions

Requires sdk Read permission.

Request Parameters

ParameterTypeRequiredDescription
methodStringYesMust be sdk-config.
api_keyStringYes (or use auth_token)API key for authentication.
auth_tokenStringNoAuth token as query parameter or countly-token header.
app_idStringYesApp id.

Response

Success Response

{
"tracking": true,
"crt": true,
"vt": true,
"bom": true,
"bom_at": 10,
"bom_rqp": 50
}

Response Fields

FieldTypeDescription
(root)ObjectStored config object for the app (config).

Error Responses

  • 400
{
"result": "Error: undefined"
}

Behavior/Processing

Behavior Modes

ModeTriggerProcessing PathResponse Shape
Config existsApp has sdk_configs document with config objectReads and returns stored config.Raw SDK config object.
No config docNo matching document for appReturns empty object fallback.{}
Read failureRead operation rejects/errorsReturns wrapped error response.Wrapped error in result.

Database Collections

CollectionUsed forData touched by this endpoint
countly_out.sdk_configsSDK config sourceReads per-app SDK config document.

Examples

Read stored SDK config

/o?method=sdk-config&api_key=YOUR_API_KEY&app_id=6991c75b024cb89cdc04efd2

Last Updated

2026-03-05