---
title: "Sign in with credentials"
method: POST
path: "/api/v1/auth/signin"
tags: ["Auth"]
---

# Sign in with credentials

`POST /api/v1/auth/signin`

## Request

- Base URL: `http://localhost:5000`
- URL: `http://localhost:5000/api/v1/auth/signin`
- Auth: none declared

Authenticates a user and returns JWT tokens. Account is locked after 5 failed attempts.

## Request body

- object
  - `email` string, email, required
  - `password` string, required

## Response `200`

Authentication successful

- object
  - `success` boolean
  - `tokens` Tokens
    - `accessToken` string
    - `refreshToken` string
  - `user` UserSummary
    - `id` string
    - `email` string, email
    - `firstName` string
    - `lastName` string
    - `company` string
    - `plan` 'free' | 'basic' | 'premium' | 'business' | 'platinum'
    - `role` 'customer' | 'admin' | 'support'

## Other responses

- `400`: Missing email or password
- `401`: Invalid credentials
- `403`: Account is disabled
- `423`: Account is locked due to too many failed attempts
- `500`: Internal server error

---

[API](https://skmtc.dev/sslwebsites/apis/sslwebsites-com-api.md) · [All operations](https://skmtc.dev/sslwebsites/apis/sslwebsites-com-api/llms.txt) · [OpenAPI document](https://skmtc.dev/sslwebsites/apis/sslwebsites-com-api/revisions/16dfd60144a0?raw)
