Misc
Get current authenticated principal
Returns the user, workspace, and credential represented by the current token.
Returns the user, workspace, and credential represented by the current token.
GET
/v1/meAuthorizationBearer <token>
OAuth2 authentication
In: header
Scope: workspace:admin, offline_access
Response Body
application/json
application/json
curl -X GET "https://api.prisma.io/v1/me"{
"data": {
"user": {
"id": "string",
"email": "user@example.com",
"name": "string"
},
"workspace": {
"id": "string",
"name": "string"
},
"credential": {
"type": "oauth",
"id": "string",
"name": "string"
}
}
}{
"error": {
"code": "string",
"message": "string",
"hint": "string"
}
}