https://www.growthbook.io/ logo
#announcements
Title
# announcements
e

elegant-flag-19390

11/14/2022, 4:26 PM
Hi all, after using GrowthBook for a couple of experiments we are considering the idea of starting to create features/experiments automatically (massively). I’ve checked the documentation and I haven’t found this option, so as a first attempt I’ve tried to “mimic” from a script the way the frontend creates features: first a post request to
/auth/login
to get the authorization bearer token and then another post request to
/feature
including the feature information in the json payload. From the initial tests it looks like the method might work (I don’t know yet if there will be any problems depending on the volume) but I was wondering if there was a better/cleaner way, any suggestions?
👍 1
f

future-teacher-7046

11/14/2022, 4:30 PM
Hi. We just started rolling out an official REST API to programmatically interact with features and experiments. We have a very limited number of endpoints at the moment (just list and toggle features), but we'll be adding more in the coming weeks. Until then, your workaround is probably the easiest solution. https://docs.growthbook.io/app/api#authenticated-rest-api-beta
👍 2
9 Views