Get Setting - Fetch Configuration Value via API
Fetch the current value of a single configuration option. Use this when you need to check one specific setting without retrieving the entire configuration object. Common keys include default_language, timezone_preference, and collect_email_on_subscribe.
GET
/v2/projects/{project_id}/settings/{key}Authorization
Bearer TokenRequired
Path Parameters
project_idstringRequired
The unique identifier of the project.
keystringRequired
The setting key (e.g., default_language, timezone_preference, policies).
Request
curl -X GET "https://api.botsubscription.com/v2/projects/YOUR_PROJECT_ID/settings/default_language" \
-H "Authorization: Bearer YOUR_TOKEN"{
"ok": true,
"request_id": "11111111-1111-1111-1111-111111111111",
"method": "GET",
"path": "/v2/projects/YOUR_PROJECT_ID/settings/default_language",
"code": 200,
"message": "Settings retrieved successfully",
"data": {
"default_language": "en"
}
}Last updated: