Get Current Session

Get Current Session

Returns information about the current session, if any.

Request
URI
GET
https://{api_host}/session
COPY
Authentication
This operation uses the following authentication methods.
Responses
200

Returns information about the currently authenticated session.

Returns SessionInfo of type(s) application/json
{
    "username": "string"
}
string
username
Optional

The user name in the session.


400

Bad request - the server could not understand the request due to invalid syntax or invalid request body content

Returns ResponseError of type(s) application/json
{
    "error_code": "string",
    "message": "string",
    "op_id": "string"
}
string
error_code
Optional

The code of the error.

string
message
Optional

The message of the error.

string As uuid As uuid
op_id
Optional

The ID of the operation.


500

Internal server error - unexpected condition prevents fulfilling the request

Returns ResponseError of type(s) application/json
{
    "error_code": "string",
    "message": "string",
    "op_id": "string"
}
string
error_code
Optional

The code of the error.

string
message
Optional

The message of the error.

string As uuid As uuid
op_id
Optional

The ID of the operation.