Authentication

Authenticate

Authenticates user and issues auth token

post/auth/authenticate

Request body

passwordstring
usernamestring

Response

Authentication succeeded

expires_atstring
tokenstring

Example response

{
  "expires_at": "2019-06-06T11:04:43.910035Z",
  "token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VybmFtZSI6Im15c3QiLCJleHAiOjE2MDEwNDA1NzB9.hnn9FosblyWtx1feSupx3MhZZdkbCuMTaiM6xl54VwQ"
}

Changes

Changed in 4 of the 52 revisions of this API.210

    • added the non-success response with the status 400

      response-non-success-status-added

    • added the non-success response with the status 401

      response-non-success-status-added

    • added the success response with the status 200

      response-success-status-added

    • removed the success response with the status 200

      response-success-status-removed

    • removed the non-success response with the status 400

      response-non-success-status-removed

    • removed the non-success response with the status 401

      response-non-success-status-removed

    • added the non-success response with the status 400

      response-non-success-status-added

    • added the non-success response with the status 401

      response-non-success-status-added

    • added the success response with the status 200

      response-success-status-added

  • 928024decbd912See the full diff
    • removed the success response with the status 200

      response-success-status-removed

    • removed the non-success response with the status 400

      response-non-success-status-removed

    • removed the non-success response with the status 401

      response-non-success-status-removed