> For the complete documentation index, see [llms.txt](https://docs.defguard.net/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.defguard.net/2.1/for-developers/rest-api/core/system/get-information-about-the-current-session.md).

# Get information about the current session

The payload tells whether a valid session is present.

```json
{"openapi":"3.1.0","info":{"title":"defguard Core API","version":"2.1.0"},"tags":[{"name":"system","description":"Health check, instance info and other utility endpoints."}],"paths":{"/api/v1/session-info":{"get":{"tags":["system"],"summary":"Get information about the current session","description":"The payload tells whether a valid session is present.","operationId":"get_session_info","responses":{"200":{"description":"Session information.","content":{"application/json":{"schema":{"type":"object"}}}},"500":{"description":"Unable to get session information.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}}}}}},"components":{"schemas":{"ApiErrorResponse":{"type":"object","description":"Body returned with error responses.","required":["msg"],"properties":{"code":{"type":["string","null"],"description":"Machine-readable error code, returned for selected errors."},"msg":{"type":"string","description":"Human-readable error message."}}}}}}
```
