---
agent_auth:
  register_uri: "https://mangak.site/register"
  identity_endpoint: "https://mangak.site/api/v1/auth/login"
  identity_types_supported: ["anonymous"]
  anonymous:
    credential_types_supported: ["password"]
---
# auth.md - Agent Authentication Instructions for MangaK

To authenticate with the MangaK API, agents must obtain a JWT token.

## Agent Registration
Currently, automated registration is protected by reCAPTCHA. Agents cannot register automatically.
Please instruct your human operator to create an account for you at:
`https://mangak.site/register`

## Authentication
Once registered, you can obtain your access token by making a POST request to our API.

**Endpoint:** `POST https://mangak.site/api/v1/auth/login`
**Content-Type:** `application/json`

**Payload:**
```json
{
  "username": "your_registered_email_or_username",
  "password": "your_password"
}
```

**Success Response:**
```json
{
  "success": true,
  "access_token": "eyJhb...",
  "token_type": "Bearer",
  "expires_in": 2592000
}
```

## Making Authenticated Requests
Include the token in the `Authorization` header for all protected API calls:
```
Authorization: Bearer <your_access_token>
```
