Journey Engine - Settings
Enterprise
This endpoint is part of Countly Enterprise. To get access, contact sales or compare versions. Existing customers can reach the support portal with questions.
Endpoint
/o/journey-engine/settings
Overview
Returns the Journey Engine setting that applies to the whole server: the content cooldown in hours.
Authentication
Pass api_key or auth_token as a query parameter, or send countly-token as a header. See Authentication.
Permissions
Requires Read permission on the journey_engine feature.
Request Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
api_key | String | Conditional | Required if auth_token is not provided. |
auth_token | String | Conditional | Required if api_key is not provided. |
app_id | String | Yes | App ID used for the read permission check. |
Examples
Read the settings
/o/journey-engine/settings?api_key=YOUR_API_KEY&app_id=6991c75b024cb89cdc04efd2
Response
Success Response
{
"cooldown": 24
}
Response Fields
| Field | Type | Description |
|---|---|---|
cooldown | Number | Cooldown in hours between content shown to the same user. 24 when no value is set. |
Error Responses
400
{
"result": "Missing parameter \"api_key\" or \"auth_token\""
}
401
{
"result": "User does not have right"
}
Behavior
- Returns the server-wide value. An app can override it with its own cooldown; to read the value that applies to one user, use User Content.
- Read-only. Nothing is modified.
Related Endpoints
Implementation details
Database Collections
| Collection | Used for | Data touched by this endpoint |
|---|---|---|
countly.members | Authentication and permission check | Reads the member and permissions. |
countly.plugins | Configuration | Reads the journey_engine configuration. |