gitlabhq/doc/api/session.md
2013-02-27 12:58:06 +01:00

498 B

Login to get private token

POST /session

Parameters:

  • email (required) - The email of user
  • password (required) - Valid password
{
  "id": 1,
  "username": "john_smith",
  "email": "john@example.com",
  "name": "John Smith",
  "private_token": "dd34asd13as",
  "created_at": "2012-05-23T08:00:58Z",
  "blocked": true
}

Return values:

  • 201 Created on success
  • 401 Unauthorized if the authentication process failed, e.g. invalid password or attribute not given