Login State Check
Product version: 10.11
Last modified: 31 July 2024
Checks if the user logged in.
Endpoint
https://<Director_IP_address>:4443/c/router
Request Example
curl
Copy
curl --request POST \
--url https://<Director_IP_address>:4443/c/router \
--header "content-type: application/json" \
--cookie @cookies.txt \
--data '{
"action": "AuthenticationManagement",
"method": "isLogged",
"type": "rpc",
"tid": 1}'
Request Fields
Field
|
Type
|
Value(s)
|
Description |
---|---|---|---|
action
|
string |
|
The action that is invoked |
method
|
string | isLogged |
The method that is invoked |
type
|
string | rpc
|
Type of communication protocol |
tid
|
integer | 1 | Transaction ID. Used to identify the request by both the client and the server |
Response Sample
curl
Copy
{
"action": "AuthenticationManagement",
"method": "isLogged",
"tid": "1",
"type": "rpc",
"message": null,
"where": null,
"cause": null,
"data": true
}
Response Fields
Field
|
Value
|
Description
|
---|---|---|
message
|
string | Message if the request failed |
where
|
string | Reference to the method where a problem occurred |
cause
|
string | Cause of failure |
data
|
boolean | true if the user is logged in, false otherwise |