---
title: "Issue an independently revocable API key"
method: POST
path: "/api/v1/auth/login"
tags: ["Authentication"]
---

# Issue an independently revocable API key

`POST /api/v1/auth/login`

## Request

- Base URL: `https://xcatcher.top`
- URL: `https://xcatcher.top/api/v1/auth/login`
- Auth: none declared

## Request body

- AuthRequest
  - `username` string, required
  - `password` string, password, required

## Response `200`

Key issued

- AuthResponse
  - `success` boolean, required
  - `username` string, required
  - `points` integer, required
  - `api_key` string, required
  - `key_id` integer, required
  - `scopes` string[], required

## Other responses

- `401`: Invalid credentials
- `409`: Active-key limit reached

---

[API](https://skmtc.dev/xcatcher/apis/xcatcher-agent-api.md) · [All operations](https://skmtc.dev/xcatcher/apis/xcatcher-agent-api/llms.txt) · [OpenAPI document](https://skmtc.dev/xcatcher/apis/xcatcher-agent-api/revisions/855ba4646e5a?raw)
