Get User Session Info
Gets information about the user session for the calypso-session-id
cookie or Bearer authorization token 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.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. |