andrey
andrey11mo ago

How to use Metadata api correctly

I'm building an application that requires users to register. Before users can use the application, they need to register first. User needs to validate their email as usual in the regular flow. After that, the callback will go to the application again to complete the user profile. I have a problem with this part because I tried to call the metadata to post the complete profile but failed. This is the API endpoint I used, https://{ZITADEL_DOMAIN}/management/v1/users/:id/metadata/:key I tried to follow this link documentation: https://zitadel.com/docs/apis/resources/mgmt/management-service-set-user-metadata It always failed with {"code":16,"message":"Errors.Token.Invalid (AUTH-7fs1e)","details":[{"@type":"type.googleapis.com/zitadel.v1.ErrorDetail","id":"AUTH-7fs1e","message":"Errors.Token.Invalid"}]} I believe the Token is valid because it can create the user. So I don't know what is wrong. Any suggestion?
ZITADEL Docs
This endpoint either adds or updates a metadata value for the requested key. Make sure the value is base64 encoded.
3 Replies
andrey
andreyOP10mo ago
done, fix
Raccine
Raccine10mo ago
Hi @andrey :gigipixel: Glad to hear that you were able to find a fix for this issue. Could you share what the fix ended up being here?
Unknown User
Unknown User9mo ago
Message Not Public
Sign In & Join Server To View

Did you find this page helpful?