Auth

Authenticates a user and creates a new access token.

post/v1/auth/login

Request

  • Base URL: http://localhost:3000
  • URL: http://localhost:3000/v1/auth/login
  • Auth: none declared

Request body

emailstring email required
passwordstring required

Example request

{
  "email": "user@example.com",
  "password": "secretpassword123"
}

Response

Login successful

tokenstring required

The access token to be used in standard Bearer authentication.

expires_atstring date-time required

The timestamp when this access token expires.

Example response

{
  "token": "f47ac10b-58cc-4372-a567-0e02b2c3d479"
}

Changes

    • info

      added the non-success response with the status

    • info

      added the required property / to the response with the status

    • info

      added the required property / to the response with the status