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

# GetAuthenticatedIdentity

`POST /gitpod.v1.IdentityService/GetAuthenticatedIdentity`

GetAuthenticatedIdentity allows to retrieve the current identity.

## Request body

- GitpodV1GetAuthenticatedIdentityRequest
  - `empty` boolean

## Response `200`

Success

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

## Other responses

- `default` — Error

---

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