---
title: "GET /user"
method: GET
path: "/user"
tags: ["Users"]
---

# GET /user

`GET /user`

## Request

- Base URL: `https://api.axiom.co/v2`
- URL: `https://api.axiom.co/v2/user`
- Auth: OAuth 2
  - Authorization code: `https://accounts.google.com/o/oauth2/v2/auth`
  - Token URL: `https://www.googleapis.com/oauth2/v4/token`
- TypeScript: <https://skmtc.dev/axiom/apis/axiom-public-api/docs/user/get.ts> (a function with typed inputs; its response is checked against the schema)

Retrieves the user who owns the personal access token (PAT) used to authenticate. API tokens aren't supported. The response includes `role` only when the `X-AXIOM-ORG-ID` header is set.

## Response `200`

Current user.

- User: Represents a user in the system
  - `email` string, required: User's email address
  - `id` string, required: Unique identifier for the user
  - `name` string, required: User's full name
  - `role` UserDetailsRole, required: Detailed information about a user's role
    - `id` string, required: Unique identifier for the role
    - `name` string, required: Human-readable name of the role

## Other responses

- `403`: The request was authenticated with an API token, or the user isn't a member of the organization in `X-AXIOM-ORG-ID`.

## Changes

- **2026-10-16** (v2) `fbc1b8430feb`: 1 info
  - added the non-success response with the status `403`

[Operation history](https://skmtc.dev/axiom/apis/axiom-public-api/changes/user/get.md)

---

[API](https://skmtc.dev/axiom/apis/axiom-public-api.md) - [All operations](https://skmtc.dev/axiom/apis/axiom-public-api/llms.txt) - [OpenAPI document](https://skmtc.dev/axiom/apis/axiom-public-api/revisions/7e39a295e3ba?raw)
