Skip to main content

Check Bayesian Models

Endpoint

/o/ab-testing/check-models

Enterprise Only
This API is available exclusively in Countly Enterprise.

Overview

Checks whether the AB testing model directory contains 7 .stan model files.

Authentication

Countly API supports the following 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

  • No feature permission required (authenticated user)

Request Parameters

ParameterTypeRequiredDescription
api_keyStringYes (or use auth_token)API key for authentication
auth_tokenStringYes (or use api_key)Auth token for authentication

Response

Success Response

{
"result": "Success"
}

Not Built Response

{
"result": "Not Built"
}

Response Fields

FieldTypeDescription
resultStringCheck outcome: Success, Not Built, or Error

Error Responses

{
"result": "Error"
}

Behavior/Processing

  • Validates authenticated user access.
  • Checks the local AB testing model directory and counts .stan files.
  • Returns {"result":"Success"} when exactly 7 model files are present, otherwise {"result":"Not Built"}.

Database Collections

  • This endpoint does not read or write database collections.

Examples

Example 1: Check Bayesian Models

Request:

curl "https://your-server.com/o/ab-testing/check-models?api_key=YOUR_API_KEY"

Ⓔ Enterprise

This feature is part of Countly Enterprise.

Get Access:

Already a Customer? Use support portal if you have any questions


Last Updated

2026-02-16