For the complete documentation index, see llms.txt. This page is also available as Markdown.
Authentication (Sessions)
Get session
get
Gets current session (checks if user is logged in).
Authorizations
AuthorizationstringOptional
Query parameters
includestring[]Optional
Specify additional objects to include in the session response. Supports 'csrfToken' and 'user'. Multiple inclusions may be specified using additional 'include' query parameters or by comma-separated list.
Responses
200
The user is logged in.
application/json
csrfTokenstringOptional
401
The user is not authenticated.
get/auth/sessions/current
Logout
delete
Logs current user out and destroys the active session.
Authorizations
AuthorizationstringOptional
Responses
204
The user was logged out and session closed.
No content
401
The user is not authenticated.
delete/auth/sessions/current
No content
Checks if the user session is active
get
Returns 200 if user session is active and 401 if the session is expired or doesn't exist
Authorizations
AuthorizationstringOptional
Responses
200
The user is authenticated
No content
401
The user is not authenticated.
get/auth/sessions/heartbeat
No content
Login
post
Authenticates a user and creates a new session on the server. Once the user is authenticated then the returned session id can be used to access DGC REST Api in subsequent requests. The method additionally returns the JSESSIONID cookie in a Set-Cookie header. If user already has an open session then this session will be terminated.
Authorizations
AuthorizationstringOptional
Body
usernamestringOptional
passwordstringOptional
Responses
200
The user was logged in and a new session was created. The response includes the CSRF token that is created