---
search:
  tags:
    - Account
    - POST
seo:
  description: >-
    Starts a session with an email address and a password. No credential is
    needed. Reference for the POST /_luna/auth/login endpoint in the Luna API.
sidebar:
  label: Log in
  badge: POST
title: Log in
type: openapi-operation
---
Starts a session with an email address and a password. No credential is needed.

`POST /_luna/auth/login`

**Request body** (`application/json`, required)

- `email` (string, required)
- `password` (string, required)

Request body example:

```json
{
  "email": "string",
  "password": "string"
}
```

**Responses**

- `200` — The account and its new session.
- `default` — The request failed. The status says how and \`error.message\` says why.

Response example, 200:

```json
{
  "token": "string",
  "account": {
    "id": "string",
    "email": "string",
    "name": "string"
  }
}
```
