I am trying to use the api to set and update environments variables. However, I need an account id for the endpoint. Where is the account Id?
I found my site ids which is good. But there seems to be no obvious location for my account Id
Thanks so much!
I believe the account id is the slug of your teams’ name. So for instance, if my team name is John Doe, my account id would be “johndoe”
1 Like
Cool thanks. I am trying that now. I appreciate the info!
Yeah it worked. Thanks again!
rk24
5
Hi @tomrutgers ,
Is there a way to get account id programmatically within a plugin? I’d like to use it to create/update env vars as well
You can use the Netlify API:
1 Like