Get User Session Info
Gets information about the user session for the calypso-session-id
cookie included in the request headers.
Authorizations: All
Requests
GET /apis/authentication/login |
Response
Example:
{ "data": { |
Caution
This data is informational only and subject to change. The User Session resource is not a defined resource with full support in HMP v2.5.REST API developers are encouraged to check for a
200 OK
status to verify that a session is valid, but otherwise ignore this response. REST API applications that use the data from this response may stop functioning and break user logins if this response is changed.
Error
Code | Payload | Description |
---|---|---|
401 | {"code":"020001", "name":"UserNotAuthorized", | User is not authenticated. |