The only supported HTTP VERB for this endpoint is POST. You should post both the username and password as a JSON object to this endpoint:
{"username":"myuser", "password":"PHa55W0rd@123!"}
Upon success you will be granted a token which you can attach to an Authorization header to allow access to the API:
{
"request": {
"url":"\/3.0\/login",
"endpoint":"login",
"requested_version":"3.0",
"api_version":3,
"request_method":"Post",
"timestamp":1507623807,
"session":null
},
"response": {
"message":"Authentication successful",
"user_token":"c87d2527f913f4c2c7881b04008c241d268ecef25092ae270b629771e4c3a7ac"
}
}
If the username and/or password are not valid, you will receive an error response instead.