> ## Documentation Index
> Fetch the complete documentation index at: https://docs.hanko.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Learn how to use the Hanko Admin API

> Hanko Admin API provides helps with user management, audit logs and metrics.

<Note>
  The Hanko Admin API is available in Hanko Pro and Enterprise plans. Check out
  our [pricing page](https://www.hanko.io/pricing) for more information.
</Note>

This minimal example showcases how you can get user data using Admin API from the userID obtained from the JWT.

```js theme={null}
const getUserData = async () => {
  const adminAPIURL = process.env.ADMIN_API_URL;
  const adminAPIKey = process.env.ADMIN_API_KEY;
  const options = {
    method: "GET",
    headers: {
      Authorization: `Bearer ${adminAPIKey}`,
    },
  };

  const response = await fetch(`${adminAPIURL}/users/${userID}`, options);

  return response.json();
};

const userData = await getUserData();
console.log("user data:", userData);
```
