malte
malte•4w ago

Problem using AuthorizationService API - {"code":5,"message":"Not Found"}

I am trying to use the Authorization Service API but can't get it to work. For Authorization i am using a service User PAT. The service user has "Org User Manager" and many more memberships. Endpoints like zitadel.cloud/v2/users/ work and return the expected data. For /zitadel.authorization.v2beta.AuthorizationService/CreateAuthorization i only ever get '{"code":5,"message":"Not Found"}'. Does anybody have a working Example? Is there anything to enable the beta API? Greetings! Malte
curl --location 'https://********.us1.zitadel.cloud/zitadel.authorization.v2beta.AuthorizationService/CreateAuthorization' \
--header 'Content-Type: application/json' \\
--header 'Authorization: Bearer ******** \
--data '{
"userId": "*****",
"projectId": "*****",
"organizationId": "*****",
"roleKeys": []
}'
curl --location 'https://********.us1.zitadel.cloud/zitadel.authorization.v2beta.AuthorizationService/CreateAuthorization' \
--header 'Content-Type: application/json' \\
--header 'Authorization: Bearer ******** \
--data '{
"userId": "*****",
"projectId": "*****",
"organizationId": "*****",
"roleKeys": []
}'
12 Replies
Rajat Singh
Rajat Singh•4w ago
Hey @malte are you on cloud or self hosted?.
malte
malteOP•4w ago
Hey @Rajat Singh , I am Cloud Hostet, currently Free Tier.
Rajat
Rajat•4w ago
hey @malte the API actually works but only on v4+ right now, I just ran it on my self hosted docker image and it worked, you didn't do anything wrong.
No description
Rajat
Rajat•4w ago
malte
malteOP•4w ago
@Rajat Singh Thank you! The older api works fine for what I want to achieve 🙂
Kalcode
Kalcode•4w ago
Is there like a version where v1 and V2 aren't available? I keep trying to user either endpoints and both return "Not Found" code 5 🥺
Rajat
Rajat•4w ago
hey @Kalcode yes, because we are still transitioning from v1->v2, so few endpoints are only available on zitadel v4+
Vandu Murugan
Vandu Murugan•3w ago
Hi @Rajat Singh , I’m a newbie. Just spun up a Docker instance (v4.0.2) and I’m running into the same 4xx "Not Found" error when trying to access the login/console page. I can confirm that the DB has been created though.
Rajat
Rajat•2w ago
hey @Vandu Murugan can you pls open a new thread?. https://discord.com/channels/927474939156643850/1019895518383583323 Thanks
bela
bela•2w ago
suggestion for the docs: Dont mark all v1 APIs related to user grants as deprecated, while the v2 APIs have not been stabilized and are subject to change and are not yet available on the hosted version of Zitadel.
bela
bela•2w ago
This also seems just wrong
No description
No description
No description
Rajat
Rajat•2w ago
hey @bela yes, that is why they are marked as deprecated, and may be released in future releases. We are aware that V2s are not stablizied but thanks for pointing this out.

Did you find this page helpful?