Users
Preferences

List user preference sets

Changed on

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

get/v1/users/{user_id}/preferences

Request

  • Base URL: https://api.knock.app
  • URL: https://api.knock.app/v1/users/{user_id}/preferences
  • Auth: HTTP bearer

Path parameters

user_idstring required

The unique identifier of the user.

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"
          }
        ]
      }
    },
    "commercial_subscribed": true,
    "id": "default",
    "workflows": null
  }
]

Changes

    • breaking

      the / response's property type changed from boolean to no type for status

    • info

      added subschema #1 subschema #3 to the / response property anyOf list for the response status

    • warning

      added the new not_contains_all enum value to the /////////// response property for the response status

    • warning

      added the new not_contains_all enum value to the /////////// response property for the response status

    • warning

      added the new not_contains_all enum value to the /////////// response property for the response status

    • warning

      added the new not_contains_all enum value to the /////////// response property for the response status

    • warning

      added the new not_contains_all enum value to the /////////// response property for the response status

    • warning

      added the new not_contains_all enum value to the /////////// response property for the response status

    • warning

      added the new not_contains_all enum value to the /////////// response property for the response status

    • warning

      added the new not_contains_all enum value to the /////// response property for the response status

    • warning

      added the new not_contains_all enum value to the /////// response property for the response status

    • warning

      added the new not_contains_all enum value to the /////// response property for the response status

    • warning

      added the new not_contains_all enum value to the /////// response property for the response status

    • warning

      added the new not_contains_all enum value to the /////// response property for the response status

    • warning

      added the new not_contains_all enum value to the /////// response property for the response status

    • warning

      added the new not_contains_all enum value to the /////// response property for the response status

    • warning

      added the new not_contains_all enum value to the /////// response property for the response status

    • warning

      added the new not_contains_all enum value to the /////////// response property for the response status

    • warning

      added the new not_contains_all enum value to the /////////// response property for the response status

    • warning

      added the new not_contains_all enum value to the /////////// response property for the response status

    • warning

      added the new not_contains_all enum value to the /////////// response property for the response status

    • warning

      added the new not_contains_all enum value to the /////////// response property for the response status

    • warning

      added the new not_contains_all enum value to the /////////// response property for the response status

    • warning

      added the new not_contains_all enum value to the /////////// response property for the response status

    • warning

      added the new not_contains_all enum value to the /////// response property for the response status