NeonN
Neon3mo ago
1 reply
slow-yellow

List supported regions API endpoint only works with personal apikey

My backend needs to list available regions in neon, but when querying the endpoint with an apikey I got this error.
After trying different keys, it only works with personal apikey (which is useless to me)
And doesn't work with org wide apikeys NOR project scoped apikeys

cUrl
curl --request GET \
     --url https://console.neon.tech/api/v2/regions \
     --header 'accept: application/json' \
     --header 'authorization: Bearer xxxxxxxx'

response
{
  "request_id": "1571c26f-4471-4336-a2be-xxxxxxxxxxxxx",
  "code": "",
  "message": "not allowed for organization API keys"
}


I think there is no reason to allow it only for personal keys.
Was this page helpful?