Authentication API

Creating a new token

Logs in a registered user.

Parameters

Name Description
email User email
password User password

Request

Headers

Content-Type: application/json
Host: example.org

Route

POST /v1/login

cURL

curl "http://extracker-api.herokuapp.com/v1/login" -d '' -X POST \
	-H "Content-Type: application/json" \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Headers

Content-Type: application/json; charset=utf-8

Status

401

Body

Request

Headers

Content-Type: application/json
Host: example.org

Route

POST /v1/login

Body

cURL

curl "http://extracker-api.herokuapp.com/v1/login" -d '{"email":"sherika@ullrich.biz","password":"foobar"}' -X POST \
	-H "Content-Type: application/json" \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Headers

Content-Type: application/json; charset=utf-8

Status

200

Body