gitlab-org--gitlab-foss/doc/api/session.md

37 lines
684 B
Markdown
Raw Normal View History

Login to get private token
```
POST /session
```
Parameters:
2013-07-16 04:50:00 -04:00
+ `login` (required) - The login of user
+ `email` (required if login missing) - The email of user
+ `password` (required) - Valid password
2013-07-16 04:50:00 -04:00
__You can login with both GitLab and LDAP credentials now__
```json
{
"id": 1,
"username": "john_smith",
"email": "john@example.com",
"name": "John Smith",
"private_token": "dd34asd13as",
2013-03-18 17:06:24 -04:00
"blocked": false,
"created_at": "2012-05-23T08:00:58Z",
2013-03-18 17:06:24 -04:00
"bio": null,
"skype": "",
"linkedin": "",
"twitter": "",
"dark_scheme": false,
"theme_id": 1
"is_admin": false,
"can_create_group" : true,
"can_create_team" : true,
"can_create_project" : true
}
```