Skip to main content

/o/configs

Endpoint

/o/configs

Overview

Returns the current global configuration set visible to the dashboard, excluding internal services namespace.

Authentication

Countly API supports three authentication methods:

  1. API Key (parameter): api_key=YOUR_API_KEY
  2. Auth Token (parameter): auth_token=YOUR_AUTH_TOKEN
  3. Auth Token (header): countly-token: YOUR_AUTH_TOKEN

Permissions

  • Required permission: App Admin.

Request Parameters

ParameterTypeRequiredDescription
api_keyStringYes (or use auth_token)API key for authentication.
auth_tokenStringNoAuth token as query parameter or countly-token header.
app_idStringYesTarget app ID required by app-admin validation.

Response

Success Response

{
"api": {
"country_data": true,
"city_data": true
},
"frontend": {
"session_timeout": 30
},
"drill": {
"record_meta": true
}
}

Response Fields

FieldTypeDescription
(root)ObjectRaw object containing visible configuration namespaces.
{namespace}ObjectNamespace-level effective configuration.
{namespace}.{setting}VariesEffective setting value.

Error Responses

400 Bad Request

{
"result": "No app_id provided"
}

400 Bad Request

{
"result": "Missing parameter \"api_key\" or \"auth_token\""
}

400 Bad Request

{
"result": "Token not valid"
}

401 Unauthorized

{
"result": "User does not exist"
}

401 Unauthorized

{
"result": "User does not have right"
}

401 Unauthorized

{
"result": "User is locked"
}

401 Unauthorized

{
"result": "Token is invalid"
}

Behavior/Processing

  • Validates app-admin access.
  • Loads current global configuration set from server runtime.
  • Returns full configuration payload as a JSON object.
  • Removes services from the response before returning data.

Database Collections

CollectionUsed forData touched by this endpoint
countly.membersApp-admin validationReads authenticated user and app-admin permissions.
countly.appsApp scope validationValidates provided app_id during app-admin checks.
countly.pluginsStores global feature/config namespace dataReads _id: "plugins" document to build effective response payload.

Examples

Read global configuration for an app-admin context

/o/configs?api_key=YOUR_API_KEY&app_id=YOUR_APP_ID

Limitations

  • app_id is required for this endpoint's permission validator.
  • Internal/hidden namespaces are not returned.

Last Updated

2026-02-17