Skip to main content

SDK - Config Read

Endpoint​

/o?method=sdk-config

Overview​

Returns stored SDK config for dashboard/admin usage.

Authentication​

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

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.

Examples​

Read stored SDK config​

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

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​

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.
Implementation details

Database Collections

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