Create a new User session and get the api_token.

Examples

curl -i -d '{"user": {"email":"matteo@passdock.com","password":"the_secure_password"}}' https://api.passdock.com/api/v1/sessions

Supported Formats

json

Success Response:

200 Authenticated
              {
      "api_token": "0161851792e6fe45816488bbfc709c50",
      "email": "matteo@passdock.com",
      "success": true
    }
          

Errors

400 Bad Request
401 Invalid login or password
422 Missing parameters

Params

Param name Description
user
required

The JSON containing the login informations.


Value: Must be a Hash
user[email]
required

Email used for every login


Value: Must be String
user[password]
required

Desired password


Value: Must be String