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

# Get authenticated user

> Fetch the authenticated Luma user profile with luma.users.get(), returning the id, name, email, and avatar linked to your API key.

<Badge color="purple">SDK</Badge> `luma.users.get(): Promise<User>`

Returns the authenticated user tied to your API key.

<RequestExample>
  ```typescript Example theme={null}
  import { Luma } from "@alhwyn/luma";

  const luma = new Luma(process.env.LUMA_API_KEY!);
  const user = await luma.users.get();

  console.log(user.email, user.id);
  ```
</RequestExample>

<ResponseExample>
  ```json Response theme={null}
  {
    "id": "usr-abc123",
    "email": "you@example.com",
    "name": "Jane Doe"
  }
  ```
</ResponseExample>

### Parameters

Takes no parameters.

### Test it

```typescript theme={null}
import { Luma } from "@alhwyn/luma";

const luma = new Luma(process.env.LUMA_API_KEY!);
const user = await luma.users.get();
console.log("Authenticated as:", user.email);
```

Run the script:

<CodeGroup>
  ```bash npm theme={null}
  LUMA_API_KEY=your-key-here npx tsx script.ts
  ```

  ```bash bun theme={null}
  LUMA_API_KEY=your-key-here bun script.ts
  ```
</CodeGroup>
