Skip to main content
GET
/
api
/
auth
/
whoami
Get the current caller's identity
curl --request GET \
  --url https://app.solya.app/api/auth/whoami \
  --header 'Authorization: Bearer <token>'
{
  "data": {
    "effectivePermissions": [
      "<string>"
    ],
    "email": "<string>",
    "name": "<string>",
    "organizationId": "<string>",
    "organizationName": "<string>",
    "roles": [
      "<string>"
    ],
    "userId": "<string>"
  }
}

Authorizations

Authorization
string
header
required

User session token issued by NextAuth. For human users accessing Solya via the web application.

Response

Successful response

data
object
required
success
enum<boolean>
required
Available options:
true