cURL
curl --request GET \ --url https://{tenant_id}.hanko.io/admin/users/{id}/metadata \ --header 'Authorization: Bearer <token>'
{ "public_metadata": { "role": "admin" }, "private_metadata": { "internal_id": "e6c19cfb-09a2-41e5-a908-e33193b7ca0a" }, "unsafe_metadata": { "birthday": "2025-05-12" } }
Bearer authentication header of the form Bearer <token>, where <token> is your API key. Must only be used when using Hanko Cloud.
Bearer <token>
<token>
UUID of the requested object
OK
User metadata
Was this page helpful?