---
title: "GetAuthenticatedIdentity"
method: POST
path: "/gitpod.v1.IdentityService/GetAuthenticatedIdentity"
tags: ["gitpod.v1.IdentityService"]
---

# GetAuthenticatedIdentity

`POST /gitpod.v1.IdentityService/GetAuthenticatedIdentity`

Retrieves information about the currently authenticated identity.

 Use this method to:
 - Get current user information
 - Check authentication status
 - Retrieve organization context
 - Validate authentication principal

 ### Examples

 - Get current identity:

   Retrieves details about the authenticated user.

   ```yaml
   {}
   ```

## Request body

- GitpodV1GetAuthenticatedIdentityRequest
  - `empty` boolean

## Response `200`

Success

- GitpodV1GetAuthenticatedIdentityResponse
  - `organizationId` string
  - `organizationTier` string
  - `subject` GitpodV1Subject
    - `id` string, uuid — id is the UUID of the subject
    - `principal` 'PRINCIPAL_UNSPECIFIED' | 'PRINCIPAL_ACCOUNT' | 'PRINCIPAL_USER' | 'PRINCIPAL_RUNNER' | 'PRINCIPAL_ENVIRONMENT' | 'PRINCIPAL_SERVICE_ACCOUNT' | 'PRINCIPAL_RUNNER_MANAGER'

## Other responses

- `default` — Error

---

[API](https://skmtc.net/gitpod-io/apis/gitpod-v1.md) · [All operations](https://skmtc.net/gitpod-io/apis/gitpod-v1/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/gitpod-io/gitpod-v1/revisions/44d50c2ac284/schema)
