Current sign-in state
GET
/api/v1/auth/session
const url = 'https://example.com/api/v1/auth/session';const options = {method: 'GET'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://example.com/api/v1/auth/sessionReports whether the caller has a valid session. Behind an SSO proxy with a matching trust token and no session cookie, creates a pangolin-sso session and sets the cookies.
Responses
Abschnitt betitelt „Responses“Successful Response
Media typeapplication/json
SessionInfo
object
Example
{ "bootstrap": false, "scope": "read", "source": "api-key"}