NovuN
Novu2y ago
Giøn

Cannot get global preference for a subscriber (status: 400)

If I try to use the endpoint https://api.novu.co/v1/subscribers/{subscriberId}/preferences/global (so with the level set to global), I get back 400 and the following message:
{
  "message": [
    "level must be one of the following values: global, template"
  ],
  "error": "Bad Request",
  "statusCode": 400
}

This happen also with the client on https://docs.novu.co/api-reference/subscribers/get-subscriber-global-preferences
The api key I'm using and the subscriber IDs are both valid.

--- EDIT
I get the same response also when using level template
Was this page helpful?