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
application/json
Section titled “application/json”application/json
Section titled “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"
}
}
}