> ## 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.

# Login - POST /v1/auth/login

> Exchange email and password for a JWT via POST /v1/auth/login. Returns token and user object.

Log in with email and password to obtain a JWT (`token`). Use it in the `Authorization: Bearer <token>` header for all business endpoints, or [create an API key](https://docs.ariacompute.com/api-reference/memo/apikeys/create-list.md) to switch to `X-API-Key`.

## Endpoint

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

## Authentication

None (open login).

## Request body

**email** `string` *required*

Account email.

**password** `string` *required*

Login password.

## Response

**token** `string`

JWT, valid for the server-configured lifetime.

**user** `object`

Current account info.

**user**

**id** `string`

User id.

**email** `string`

Email.

**display\_name** `string`

Display name.

## Example

```bash cURL theme={null}
curl -X POST https://memo.ariacompute.com/v1/auth/login \
  -H "Content-Type: application/json" \
  -d '{"email":"you@example.com","password":"<pwd>"}'
```

```json 200 theme={null}
{
  "token": "<jwt>",
  "user": {
    "id": "usr_01a2b3c4d5e6",
    "email": "you@example.com",
    "display_name": "You"
  }
}
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.