---
title: "Admin Login"
method: POST
path: "/api/v1/admin/login"
tags: ["Admin"]
---

# Admin Login

`POST /api/v1/admin/login`

## Request

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

Admin login backed by environment-configured credentials.

## Request body

- AdminLoginRequest
  - `username` string, required
  - `password` string, required
  - `remember_me` boolean

## Response `200`

Successful Response

- AdminLoginResponse
  - `status` string, required
  - `expires_at` string, required
  - `max_age` integer, required
  - `token` string, required

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/freeastroapi/apis/astroservice-api.md) · [All operations](https://skmtc.dev/freeastroapi/apis/astroservice-api/llms.txt) · [OpenAPI document](https://skmtc.dev/freeastroapi/apis/astroservice-api/revisions/0c9b4a759522?raw)
