curl --request POST \
--url 'https://api.nsr.stateset.com/api/v1/nsr/features' \
--header "X-API-Key: $STATESET_NSR_API_KEY" \
--header 'Content-Type: application/json' \
--data '{
"enabled": true,
"feature": "string"
}'
{
"available_features": [
"string"
],
"enabled_features": [
"string"
]
}
Toggle a feature on or off
Enable or disable a specific NSR Machine feature. Changes take effect immediately and persist across requests within the session…
POST
/
api
/
v1
/
nsr
/
features
curl --request POST \
--url 'https://api.nsr.stateset.com/api/v1/nsr/features' \
--header "X-API-Key: $STATESET_NSR_API_KEY" \
--header 'Content-Type: application/json' \
--data '{
"enabled": true,
"feature": "string"
}'
{
"available_features": [
"string"
],
"enabled_features": [
"string"
]
}
Enable or disable a specific NSR Machine feature. Changes take effect immediately
and persist across requests within the session.
Example: Enable Graph-of-Thoughts
Required scope:
curl -X POST 'https://api.nsr.stateset.com/api/v1/nsr/features' \
-H 'X-API-Key: your-api-key' \
-H 'Content-Type: application/json' \
-d '{'feature': 'graph_of_thoughts', 'enabled': true}'
write
Request body
ToggleFeatureRequest
boolean
required
Whether to enable (true) or disable (false)
string
required
Feature name
Response
FeaturesResponse
string[]
required
All available features
string[]
required
List of enabled features
Status codes
| Code | Meaning |
|---|---|
200 | Feature toggled successfully |
400 | Invalid feature name |
401 | Unauthorized — missing or invalid credentials |
403 | Forbidden — the key/token lacks the required scope |
429 | Rate limited — see Retry-After / X-RateLimit-Reset |
curl --request POST \
--url 'https://api.nsr.stateset.com/api/v1/nsr/features' \
--header "X-API-Key: $STATESET_NSR_API_KEY" \
--header 'Content-Type: application/json' \
--data '{
"enabled": true,
"feature": "string"
}'
{
"available_features": [
"string"
],
"enabled_features": [
"string"
]
}
Last modified on August 31, 2026