403 error on API key with full permissions #1446

Closed
opened 2026-04-05 19:28:31 +02:00 by MrUnknownDE · 0 comments
Owner

Originally created by @kmanwar89 on 5/26/2025

I'm trying to use the API for some programmatic/bulk adding of resources that all share a similar ruleset, without having to duplicate 2/3 dozen times. While reading through the Swagger docs, I'm trying to just do the simplest possible test - a GET to /orgs to get the Org ID, but each time I do it (through the Web UI or curl commands) I'm greeted with a 403: Key does not have root access error.

I created the API key with 100% wide open permissions, and am confident it has permissions to GET the orgs. I tried a different key with all permissions selected under the org; same issue.

I assumed it was Crowdsec banning my WAN IP (it was, for some reason), so I tried it again after removing all Crowdsec references from my compose file and traefik configs - no dice.

Any ideas on this one? I searched for others with the same issue, but their symptoms and resolutions were quite different.

Screenshot of error in the Swagger UI:

Image

And screenshot of API permissions:

Image
*Originally created by @kmanwar89 on 5/26/2025* I'm trying to use the API for some programmatic/bulk adding of resources that all share a similar ruleset, without having to duplicate 2/3 dozen times. While reading through the Swagger docs, I'm trying to just do the simplest possible test - a GET to /orgs to get the Org ID, but each time I do it (through the Web UI or `curl` commands) I'm greeted with a `403: Key does not have root access` error. I created the API key with 100% wide open permissions, and am confident it has permissions to GET the orgs. I tried a different key with all permissions selected under the org; same issue. I assumed it was Crowdsec banning my WAN IP (it was, for some reason), so I tried it again after removing all Crowdsec references from my compose file and traefik configs - no dice. Any ideas on this one? I searched for others with the same issue, but their symptoms and resolutions were quite different. Screenshot of error in the Swagger UI: ![Image](https://github.com/user-attachments/assets/7ee74c31-a42a-4655-b45b-32de3cba00c7) And screenshot of API permissions: <img width="1415" alt="Image" src="https://github.com/user-attachments/assets/82d338c9-11f8-438b-af80-7ed8f922a410" />
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github/pangolin#1446