---
title: "Master Login"
method: POST
path: "/api/v1/master/auth/login"
tags: ["master-auth"]
---

# Master Login

`POST /api/v1/master/auth/login`

## Request

- Base URL: `https://teraads.co` (the document declares no server; this is the origin it was published from)
- URL: `https://teraads.co/api/v1/master/auth/login`
- Auth: none declared

Authenticate as master admin. Sets httpOnly master_token cookie.

## Request body

- MasterLoginRequest
  - `username` string, required
  - `password` string, required

## Response `200`

Successful Response

- MasterLoginResponse
  - `ok` boolean, required
  - `username` string, required

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/teraads/apis/tera-ads-api.md) · [All operations](https://skmtc.dev/teraads/apis/tera-ads-api/llms.txt) · [OpenAPI document](https://skmtc.dev/teraads/apis/tera-ads-api/revisions/fb2526b5cf3c?raw)
