Initiate User Session
Requests
|
Response
Example:
|
Caution
This data is informational only and subject to change in future HMP releases. The User Session resource is a private resource 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.
A calypso-session-id cookie is returned via the Set-Cookie HTTP header. This cookie is used to authenticate the user for all subsequent requests.
Error
Code | Payload | Description |
|---|---|---|
|
| A user name or password was missing or the wrong JSON type. |
|
| User has no role assigned. |
|
| The user name and or the password was incorrect. |
|
| An internal error occurred. |
|
| An internal error occurred. |
|
| Authentication service is unavailable. Please try again later. |