Is the API still accessible?

Hello! :wave:

I’m one of the maintainers of the project. We previously provided badges for status of builds on the Drone Cloud instance, but sometime in November the Drone API started systematically returning 401 error codes. We’re unsure why and I couldn’t find any announcement about this on the Drone forum, but we’re guessing that the main Drone Cloud instance has been updated to no longer accept anonymous requests.

The Drone documentation does have a brief section about authorization, but when I try to retrieve a token on the Drone Cloud instance, I get an error message stating that “User registration is disabled”. Looking at this other thread, it doesn’t look like there have been any new user approvals since November.

Is the Drone Cloud instance API still accessible? Or should we drop support for our Drone badges?

Thanks in advance for the help.


:wave: hey there, anonymous requests are still accepted and we haven’t made any changes to our API. I ran a test and seems to be working fine with Drone cloud. Here is a screenshot:

If you make an un-authenticated request to the Drone API and the requested resource is not found, we return a 401 code instead of a 404 to prevent the accidental leakage of private repositories to unauthorized users. So perhaps the issue is that you are testing with a repository that was renamed or no longer exists?


Yes, you’re hundred percent right! We were testing against the drone repository itself, which was moved to the harness organisation (drone/drone → harness/drone). When we saw the 401s we assumed authorization had changed across the board, rather than one project moving. This was a somewhat hasty conclusion.

Thanks for clarifying and sorry for wasting your time!