Authentication - /token

GET /token

Obtain a token for API users.

Example request

GET /token HTTP/1.1
Accept: */*
Accept-Encoding: gzip, deflate
Authorization: Basic dXNlcjpwYXNz
Connection: keep-alive
Host: localhost:5000
User-Agent: HTTPie/0.9.3

Example response

HTTP/1.0 200 OK
Content-Length: 139
Content-Type: application/json
Date: Tue, 09 Feb 2016 20:23:11 GMT
Server: Werkzeug/0.11.3 Python/3.5.0

{
    "token": "eyJhbGciOiJIUzI1NIsImlhdCI6MTQ1NTA0OTM5MSwiZXhwIjo..."
}
Request Headers
Response JSON Object
  • token (string) – Token string. Use this token in the basic auth username field.

Status Codes