POST /auth/signin

Authenticates a user and returns a JWT token.

application/json

Body Required

  • email string(email)

    User's email address

  • password string

    User's password

Responses

  • 200 application/json

    Successful login

    Hide response attributes Show response attributes object
    • success boolean
    • code integer(int32)
    • message string
    • data object
      Hide data attributes Show data attributes object
      • access_token string

        JWT access token for authenticated requests

      • refresh_token string

        JWT refresh token for obtaining new access tokens

      • token_type string

        Type of the token, typically "Bearer"

      • expires_in integer

        Expiration time of the access token in seconds

  • 401 application/json

    Unauthorized - Invalid credentials

    Hide response attributes Show response attributes object
    • success boolean
    • code integer
    • errorCode string
    • message string
    • timestamp string(date-time)
  • 500 application/json

    Internal Server Error

    Hide response attributes Show response attributes object
    • success boolean
    • code integer
    • errorCode string
    • message string
    • timestamp string(date-time)
POST /auth/signin
curl \
 --request POST 'http://localhost:8080/api/auth/signin' \
 --header "Content-Type: application/json" \
 --data '{"email":"user@example.com","password":"password123"}'
Request examples
{
  "email": "user@example.com",
  "password": "password123"
}
Response examples (200)
{
  "success": true,
  "code": 200,
  "message": "string",
  "data": {
    "access_token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...",
    "refresh_token": "dGhpc0lzQVRlc3RSZWZyZXNoVG9rZW4...",
    "token_type": "Bearer",
    "expires_in": 3600
  }
}
Response examples (401)
{
  "success": false,
  "code": 42,
  "errorCode": "string",
  "message": "string",
  "timestamp": "2026-05-04T09:42:00Z"
}
Response examples (500)
{
  "success": false,
  "code": 42,
  "errorCode": "string",
  "message": "string",
  "timestamp": "2026-05-04T09:42:00Z"
}