---
title: "create session"
method: POST
path: "/api/login"
tags: ["Users"]
---

# create session

`POST /api/login`

## Request

- Base URL: `http://localhost:3000`
- URL: `http://localhost:3000/api/login`
- Auth: HTTP bearer

## Request body

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

## Response `200`

successful

- object
  - `message` string
  - `user` object
    - `id` integer
    - `paid` boolean
    - `is_verified` boolean
    - `account_valid_till` string, date
    - `available_credits` integer
    - `full_name` string
    - `email` string
    - `plan_id` integer
    - `plan_name` string
    - `total_credits` integer
    - `used_credits` integer
    - `avatar_letter` string
    - `percentage_credits` number
    - `out_of_credits` boolean
  - `token` string
  - `token_expired_at` integer
  - `refresh_token` string
  - `refresh_token_expired_at` integer

---

[API](https://skmtc.dev/aeroleads/apis/api-v1.md) · [All operations](https://skmtc.dev/aeroleads/apis/api-v1/llms.txt) · [OpenAPI document](https://skmtc.dev/aeroleads/apis/api-v1/revisions/f903ee7ec7fa?raw)
