Users
Preferences

List user preference sets

Retrieves a list of all preference sets for a specific user.

get/v1/users/{user_id}/preferences

Path parameters

user_idstring required

The ID for the user that you set when identifying them in Knock.

Response

OK

idstring required

Unique identifier for the preference set.

Example response

[
  {
    "categories": {
      "marketing": false,
      "transactional": {
        "channel_types": {
          "email": false
        }
      }
    },
    "channel_types": {
      "email": true,
      "push": false,
      "sms": {
        "conditions": [
          {
            "argument": "US",
            "operator": "equal_to",
            "variable": "recipient.country_code"
          }
        ]
      }
    },
    "id": "default",
    "workflows": null
  }
]

Changes