401 Unauthorized when accessing REST API (rest.runpod.io/v1) despite API key ALL permissions
Hey, everyone! I need some help, I know its AI-generated in terms of formatting but this is my problem,
We're getting a 401 Unauthorized error when using the REST API (rest.runpod.io/v1) to manage serverless endpoints, even though our API key has Read/Write permissions enabled.
What we're trying to do: Update workersMin and workersMax for a serverless endpoint via the REST API Using: PATCH /endpoints/{endpointId} or POST /endpoints/{endpointId}/update
Questions: Does rest.runpod.io/v1 require separate permissions from api.runpod.ai? Is REST API access included in the "All" permission level, or does it need explicit enablement? Are there account-tier restrictions for REST API access? Is there a different authentication method for the REST API?
We need to programmatically adjust worker counts for auto-scaling. Any guidance is appreciated.
Thanks!
Recent Announcements
Continue the conversation
Join the Discord to ask follow-up questions and connect with the community
R
Runpod
We're a community of enthusiasts, engineers, and enterprises, all sharing insights on AI, Machine Learning and GPUs!