Skip to main content
POST
/
v1
/
auth
/
login
Login
curl --request POST \
  --url http://localhost:3000/v1/auth/login \
  --header 'Content-Type: application/json' \
  --data '
{
  "email": "user@example.com",
  "password": "secretpassword123"
}
'
{
  "token": "f47ac10b-58cc-4372-a567-0e02b2c3d479",
  "expires_at": "2023-11-07T05:31:56Z",
  "user": {
    "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "email": "jsmith@example.com",
    "is_verified": true,
    "is_admin": true,
    "created_at": "2023-11-07T05:31:56Z"
  }
}

Body

application/json
email
string<email>
required
Example:

"user@example.com"

password
string
required
Example:

"secretpassword123"

Response

Login successful

token
string
required

The access token to be used in standard Bearer authentication.

Example:

"f47ac10b-58cc-4372-a567-0e02b2c3d479"

expires_at
string<date-time>
required

The timestamp when this access token expires.

user
object
required