Skip to main content
Prisma Documentation Docs

Search documentation

Type to search this documentation.

On this pageOverview

Get current authenticated principal

GET/v1/me

Returns the user, workspace, and credential represented by the current token.

AuthorizationBearer <token>

OAuth2 authentication

In: header

Scope: workspace:admin, offline_access

curl -X GET "https://example.com/v1/me"
{
  "data": {
    "user": {
      "id": "string",
      "email": "user@example.com",
      "name": "string"
    },
    "workspace": {
      "id": "string",
      "name": "string"
    },
    "credential": {
      "type": "oauth",
      "id": "string",
      "name": "string"
    }
  }
}
Suggest an edit

Propose a replacement for this page. The site team reviews it before applying any changes.

Export
Documentation menu