Please fill out as many of the following questions as possible so we can help you promptly! If you don’t know how to answer or it does not apply, feel free to remove it or leave it blank.
Builder content link
e.g. builder.io/content/4cab34394e684fe7b93d6ef5493a8a51
Builder public api key
a2b42a9cc9b6477aa448a90e48b7600f
What are you trying to accomplish
I’m trying to target content based on some custom targeting attributes. The API works fine, since I’m able to retrieve the content using production key (5820616af7ee4c0981776e26cbaa820c), but the same API doesn’t work when trying with QA key (a2b42a9cc9b6477aa448a90e48b7600f)
Here’s the API link that I’m using:
https://builder.io/api/v1/html/page?apiKey=a2b42a9cc9b6477aa448a90e48b7600f&url=/shop-book-experience&fields=id,name,query,data,canonicalUrl,metaRobots&userAttributes.dub=332
dub is configured as a string. I figured out the root cause, if I use double quotes around the value, it works. But wanted to check why is that the case?
Code stack you are integrating Builder with
Custom application
Reproducible code example
https://builder.io/api/v1/html/page?apiKey=a2b42a9cc9b6477aa448a90e48b7600f&url=/shop-book-experience&fields=id,name,query,data,canonicalUrl,metaRobots&userAttributes.dub=332