summaryrefslogtreecommitdiff
path: root/doc/api/session.md
blob: c7e57aaca7a896b62a769ad5c31bea51060e7b4a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
Login to get private token

```
POST /session
```

Parameters:

+ `email` (required) - The email of user
+ `password` (required) - Valid password


```json
{
  "id": 1,
  "username": "john_smith",
  "email": "john@example.com",
  "name": "John Smith",
  "private_token": "dd34asd13as",
  "created_at": "2012-05-23T08:00:58Z",
  "blocked": true
}
```