======================= REST API Authentication ======================= The API documented here uses token-based authentication over SSL (https://). In order to receive an access token a POST request like the following must be made: .. http:post:: /api/v1/auth-token/ :synopsis: Gets the acces token for the user especified in the request content body. **Example request**: .. sourcecode:: http POST /api/v1/auth-token/ HTTP/1.1 Host: localhost:8000 Accept: application/json { "username": "bob", "password": "bob-pass" } **Example response**: .. sourcecode:: http HTTP/1.1 200 OK Allow: POST, OPTIONS Content-Type: application/json { "token": "1612a857a43c21d688ccbe849dbfbf078cef8cc7" } :reqheader Accept: application/json :json string token: access token for future authentications :statuscode 200: no error :statuscode 400: unable to log in with provided credentials