POST /api/v1/registrations
Create User

Create a new Passdock User.

Supported Formats

json

Success Response:

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

Errors

400 Bad Request
422 Unauthorized

Examples

curl -i -d 'user={"email":"matteo@passdock.com","password":"the_secure_password","password_confirmation":"the_secure_password","name":"Matteo Gavagnin"}' https://api.passdock.com/api/v1/registrations

Params

Param name Description
user
required

The JSON containing the user informations.


Value: Must be a Hash
user[name]
required

Complete User name


Value: Must be String
user[email]
required

Email used for every login


Value: Must be String
user[password]
required

Desired password


Value: Must be String
user[password_confirmation]
required

Confirmation of desired password


Value: Must be String