---
title: "Log in"
method: POST
path: "/login"
tags: ["Auth"]
---

# Log in

`POST /login`

**Plan: All plans.**

Exchange user credentials for an auth token. The token is tied to one user and one
account. Treat it as expirable: on a later `401`, log in again and retry once. Send
`account_id` + `authToken` on every other request.

## Request body

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

## Response `200`

Authenticated.

- LoginResponse
  - `authToken` string
  - `accountID` string

## Other responses

- `401` — Invalid e-mail or password.

---

[API](https://skmtc.net/shopvox/apis/shopvox-public-api.md) · [All operations](https://skmtc.net/shopvox/apis/shopvox-public-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/shopvox/shopvox-public-api/revisions/7ac1ff5d444a/schema)
