---
title: "POST /user/session"
method: POST
path: "/user/session"
---

# POST /user/session

`POST /user/session`

## Request

- Base URL: `https://developers.whmcs.com/api/v2`
- URL: `https://developers.whmcs.com/api/v2/user/session`
- Auth: none declared

Begin a user's session.

## Request body

- object
  - `email` string, required: The user's email address.
  - `password` string, required: The user's password.

## Response `200`

Success

- object
  - `data` User, required: Logged-in user data.
    - `email` string, required
    - `firstname` string, required
    - `lastname` string, required
    - `clients` Client[], required
      - `uuid` string, required
      - `company` string
      - `selected` boolean

## Other responses

- `202`: You must provide a second authentication factor to login.
- `401`: Access Not Authorized
- `default`: General Error

---

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