$ curl -i \
-H 'Accept: application/json; version=1' \
-X POST \
-H 'Content-type: application/json' \
-d '{"user": { "username": "[email protected]", "password": "5up3r53kr37" }}' \
https://api.record360.com/api/users/authenticate
HTTP/1.1 200 OK
Content-Type: application/json; charset=utf-8
Cache-Control: max-age=0, private, must-revalidate
{
"auth_token": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiIyIiwiaWF0IjoxNDY0MDQxODAzfQ.F33A91GOdYvXfe5fo-Sq3mL-dVGwCyeevd5sceuCLko",
"user": {
"id": "42",
"username": "[email protected]",
"first_name": "Some",
"last_name": "User",
"phone_number": "366.555.1570 x78744",
"role": "user",
"external_id": "s_user42",
"created_at": "2016-05-23T22:16:43.000Z",
"updated_at": "2016-05-23T22:16:43.000Z",
"location": {
"id": "89",
"name": "Main Office",
"address1": "4726 Thackeray Pl NE",
"address2": "Suite 405",
"city": "Seattle",
"state": "WA",
"zipcode": "98105",
"timezone": "PST",
"created_at": "2014-04-01T19:00:00.000Z",
"updated_at": "2016-04-14T21:46:56.000Z",
"workflow": { ... }
}
}
}
| Param name | Description |
|---|---|
|
user
required |
Validations:
|
|
user[username]
required |
User’s login or email address Validations:
|
|
user[password]
required |
User’s password Validations:
|