Skip to main content

Get the current session's user

GET 

/auth/session

Required role: viewer. An account or token with the viewer or admin role can call this operation.

Example request
curl --request GET \
--header "Authorization: Bearer $HOSERVA_TOKEN" \
"https://$HOSERVA_HOST:8008/api/v1/auth/session"

The signed-in user this session cookie belongs to.

Responses​

The signed-in user.