---
title: "POST /api/v1/auth/login"
method: POST
path: "/api/v1/auth/login"
tags: ["Authentication"]
---

# POST /api/v1/auth/login

`POST /api/v1/auth/login`

Creates a session in the Product API hostname-selected realm or the fixed administrative realm. The browser never chooses the account scope, and Product accounts are not searched from the administrative API.

## Request body

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

## Response `200`

Login succeeded and an opaque session cookie was set.

- object
  - `redirectTo` '/dashboard' | '/admin' | '/affiliate', required
  - `status` 'complete', required

## Other responses

- `400` — The JSON request does not match the login contract.
- `401` — The credentials are invalid.
- `403` — The request did not originate from this Product.

---

[API](https://skmtc.dev/expertschat/apis/billing-core-api.md) · [All operations](https://skmtc.dev/expertschat/apis/billing-core-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/expertschat/billing-core-api/revisions/c6d0e986ce32/schema)
