API v2 Get client grant endpoint returns 404

Calling the get client grants endpoint /api/v2/client-grants returns a list of all of the client grants in a tenant. When I copy an id from the results (formatted as cgr_####) and attempt to call the individual client grant endpoint /api/v2/client-grants/{id}, it returns an HTTP 404 error in our production environment only. We have a number of grants in our production tenant and they all return 404, while our UAT environment successfully returns the grant information when following the same steps. I’m running into this error while trying to solve why our Terraform project is attempting to recreate the grants rather than update in place.

Hi @jason.raby

Welcome to the Auth0 Community!

Thank you for sharing the details, this issue has been brought up by other users as well and the Product teams have been informed. While we currently do not have an official update, a fix should be pushed to resolve this issue on all tenants with the following Terraform version.

In the meantime, can you please confirm which version are your running? We have had feedback from affected users that version 1.38.0 does work for them, so if this is possible on your end, I recommend trying again with this version to see if you are still being returned a 404 error. This will hopefully be for a short while, until the fix is pushed via a new version or update.

Best regards,
Gerald