API call fails
Went and got an API key. But the call fails.
Unclear why. The return value doesn't provide any clues.
I want to kick off deployments in an automated manner - this was the first step that I can't get past.
-
err.png
146 KB
Comments are currently closed for this discussion. You can start a new one.
Keyboard shortcuts
Generic
| ? | Show this help |
|---|---|
| ESC | Blurs the current field |
Comment Form
| r | Focus the comment reply box |
|---|---|
| ^ + ↩ | Submit the comment |
You can use Command ⌘ instead of Control ^ on Mac

Support Staff 1 Posted by Feodor Fitsner on 18 Jun, 2025 06:30 PM
"v2" tokens require account information in the URL. Try it with:
2 Posted by rgelb on 18 Jun, 2025 06:35 PM
Ok, I've tried https://ci.appveyor.com/api/account/rgelb/environments and https://ci.appveyor.com/api/account/[email blocked]/environm...
Both return 401.
What else am I missing?
Support Staff 3 Posted by Feodor Fitsner on 18 Jun, 2025 06:49 PM
rgelbdoes not look like a real account name. You can see account name in the header of AppVeyor web portal, next to its logo.4 Posted by rgelb on 18 Jun, 2025 07:10 PM
This is my user name. I tried the following, none worked.
https://ci.appveyor.com/api/account/robert%20gelb/environments
https://ci.appveyor.com/api/account/robert gelb/environments
https://ci.appveyor.com/api/account/robertgelb/environments
5 Posted by rgelb on 18 Jun, 2025 07:16 PM
Based on the image above, what is my account name that i should be using?
Support Staff 6 Posted by Feodor Fitsner on 18 Jun, 2025 07:19 PM
It's on the left, next to AppVeyor logo, please see attached screenshot.
Support Staff 7 Posted by Feodor Fitsner on 18 Jun, 2025 07:20 PM
Or it's in URL between "account" and "projects" like on my screenshot.
8 Posted by rgelb on 18 Jun, 2025 08:09 PM
Ahhh, ok. That was completely different from my login name. Cool. Thanks.
You don't have, by any chance, a sample project (in whatever language) that looks for the last successful build for a specific project name, then deploys it to a specific environment.
Support Staff 9 Posted by Feodor Fitsner on 18 Jun, 2025 08:45 PM
Ah, nope, sorry. It should be fairly trivial since you've got API usage basics. Btw, you can see all API requests on "Network" tab of your browser while doing actions via UI.
Feodor Fitsner closed this discussion on 18 Aug, 2025 09:02 PM.