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:
- API Key (parameter):
api_key=YOUR_API_KEY - Auth Token (parameter):
auth_token=YOUR_AUTH_TOKEN - Auth Token (header):
countly-token: YOUR_AUTH_TOKEN
Permissions
- No feature permission required (authenticated user)
Request Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
api_key | String | Yes (or use auth_token) | API key for authentication |
auth_token | String | Yes (or use api_key) | Auth token for authentication |
Response
Success Response
{
"result": "Success"
}
Not Built Response
{
"result": "Not Built"
}
Response Fields
| Field | Type | Description |
|---|---|---|
result | String | Check 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
.stanfiles. - 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"
Related Endpoints
Ⓔ 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