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

# POST /admin/session

`POST /admin/session`

## Request

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

Begin an administrator session.

## Request body

- object
  - `username` string, required: The administrator's username.
  - `password` string, required: The administrator's password.

## Response `200`

Success

- object
  - `data` Administrator, required: Logged-in administrator data.
    - `email` string, required
    - `firstname` string, required
    - `lastname` string, required

## Other responses

- `401`: Access Not Authorized
- `412`: You must provide a second authentication factor to login.
- `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)
