---
title: "Get current user information"
method: GET
path: "/api/user/info"
tags: ["User"]
---

# Get current user information

`GET /api/user/info`

Returns authentication status and username. When no bearer token is provided the response indicates an unauthenticated session. This endpoint does not require authentication.

## Response `200`

User information.

- UserInfoResponse — User authentication and identity information.
  - `authenticated` boolean, required — Whether the user is authenticated.
  - `error` string — An error message if user lookup failed.
  - `username` string — The username of the authenticated user. Absent when not authenticated.

---

[API](https://skmtc.dev/pgedge/apis/pgedge-postgres-mcp-server-api.md) · [All operations](https://skmtc.dev/pgedge/apis/pgedge-postgres-mcp-server-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/pgedge/pgedge-postgres-mcp-server-api/revisions/6084bab46b1e/schema)
