> ## Documentation Index
> Fetch the complete documentation index at: https://docs.ariacompute.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Log In to Aria Compute ROUTER Session

> POST /v1/router/auth/login authenticates a user and sets a session cookie for Aria Compute ROUTER management and data plane access.

Authenticate with Aria Compute ROUTER using your username and password. A successful login sets a session cookie that you can use for subsequent requests to both the management plane and the data plane.

## Endpoint

```http theme={null}
POST /v1/router/auth/login
```

## Authentication

No authentication required.

## Request Body

<ParamField body="username" type="string" required>
  Username of the account.
</ParamField>

<ParamField body="password" type="string" required>
  Password for the account.
</ParamField>

## Response

<ResponseField name="id" type="string">
  Unique identifier of the authenticated user.
</ResponseField>

<ResponseField name="username" type="string">
  Username of the authenticated user.
</ResponseField>

<ResponseField name="email" type="string | null">
  Email address if set, otherwise null.
</ResponseField>

<ResponseField name="role" type="string">
  User role, such as `"user"` or `"admin"`.
</ResponseField>

<ResponseField name="disabled" type="boolean">
  Whether the account is currently disabled.
</ResponseField>

<RequestExample>
  ```bash cURL theme={null}
  curl -X POST https://router.example.com:8080/v1/router/auth/login \
    -H "Content-Type: application/json" \
    -d '{"username":"alice","password":"secret123"}' \
    -c cookies.txt
  ```
</RequestExample>

<ResponseExample>
  ```json 200 theme={null}
  {
    "id": "user-abc123",
    "username": "alice",
    "email": "alice@example.com",
    "role": "user",
    "disabled": false
  }
  ```
</ResponseExample>


## Related topics

- [Log Out of Aria Compute ROUTER Session](/api-reference/router/auth/logout.md)
- [Authenticate with Aria Compute ROUTER](/api-reference/router/authentication.md)
- [Aria Compute ROUTER: OpenAI-compatible inference gateway](/api-reference/router/introduction.md)
- [Change Aria Compute ROUTER Password](/api-reference/router/auth/password.md)
- [List Users on Aria Compute ROUTER](/api-reference/router/users/list.md)
