Prisma ORM 8 is here.Read the docs
Misc

Get current authenticated principal

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

GET/v1/me

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

Authorization

AuthorizationBearer <token>

OAuth2 authentication

In: header

Scope: workspace:admin, offline_access

Response Body

application/json

application/json

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"    }  }}