---
title: "Get Identity"
method: GET
path: "/api/agent/identity"
tags: ["MiscService"]
---

# Get Identity

`GET /api/agent/identity`

Returns the agent's bearer identity

## Response `200`

OK

- ProtosMiscV1GetIdentityResponse
  - `identity` string
  - `userId` string, int64 — Internal user ID of the token owner. Populated for API tokens; absent for other identity types (e.g., web sessions).
  - `deploymentId` string, int64 — Deployment ID associated with the API token. Populated for API tokens; absent for other identity types.

---

[API](https://skmtc.net/semgrep/apis/semgrep-web-app.md) · [All operations](https://skmtc.net/semgrep/apis/semgrep-web-app/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/semgrep/semgrep-web-app/versions/6483eeecd582/schema)
