Skip to content

List behavior categories

GET /api/PreferenceProfiles/behavior-categories

Send your private API key in the X-Api-Key header. Keep it on your server.

Examples use illustrative values. Set FERRETLY_API_KEY in your server environment for JavaScript, Python, and C#. Replace sample IDs, URLs, and profile values before use.

Terminal window
curl --fail -sS -X GET "https://api.ferretly.com/api/PreferenceProfiles/behavior-categories" \
-H "X-Api-Key: YOUR_API_KEY" \
-H "Accept: application/json"

Success

Illustrative, shortened HTTP 200 response. Optional fields can be absent or null.

[
{
"id": 1,
"name": "Example category",
"active": true,
"behaviorType": "Post"
}
]
Response properties
PropertyTypeDescription
idinteger (int32)Gets or sets the identifier for the behavior category in the preference profile. This property uniquely represents a behavior category within the context of the preference profile functionality.
namestringGets or sets the name of the behavior category associated with the preference profile. This property represents a descriptive label or title for the behavior category, enabling better context and readability in the preference profile configuration. Nullable.
activebooleanGets or sets a value indicating whether the behavior category is active. This property determines if the behavior category is considered enabled within the context of the preference profile functionality.
behaviorTypeRiskType