---
title: "Login"
method: POST
path: "/login"
tags: ["SimpliVPNAPI"]
---

# Login

`POST /login`

This route allows you to login a user. The response will give you a Bearer auth token to use with all rquests pertaining to the user. This token expires in 7 days, so for every request you should check if you get an unauthorized responsve and re-validate the login if needed.

## Request body

- UserLogin
  - `username` string, required
  - `password` string, required

## Response `200`

Success

---

[API](https://skmtc.dev/simplivpn/apis/simplivpnapi.md) · [All operations](https://skmtc.dev/simplivpn/apis/simplivpnapi/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/simplivpn/simplivpnapi/revisions/fe5c1bb711ac/schema)
