Login

Authenticates the user.

Resource Information

HTTP Verb
POST
URL
/api/1/services/api/1/security/login.json
Response Formats
JSON

Parameters

Name
Type
Required
Description
username
String
The username
password
String
The password

Example

Request

POST .../api/1/services/api/1/security/login.json

{
  "username" : "jane.doe",
  "password" : "SuperSecretPassword321#"
}

Response

Status 200 OK

{
  "username": "jane.doe",
  "first_name": "Jane",
  "last_name": "Doe",
  "email": "jane.doe@example.com"
}

Responses

Status
Location
Response Body
200

See example above
400

{ "message" : "Bad Request" }
401

{ "message" : "Unauthorized" }
500



{ "message" : "Internal server error.
ACTUAL_EXCEPTION" }