---
title: "Login as tenant"
method: POST
path: "/api/auth/login"
tags: ["Auth"]
---

# Login as tenant

`POST /api/auth/login`

Authenticate with email and password. Returns an access token and refresh token.

## Request body

- LoginDto
  - `email` string, required
  - `password` string, required

## Response `200`

Login successful.

- LoginResponse
  - `accessToken` string, required
  - `refreshToken` string, required
  - `tenant` TenantInfoResponse, required
    - `id` string, required
    - `name` string, required
    - `slug` string, required
    - `email` string, required
    - `apiKey` string, required
    - `webhookUrl` string
    - `webhookSecret` string
    - `isActive` boolean, required
    - `settings` object
    - `lastLoginAt` string
    - `createdAt` string, required
    - `updatedAt` string, required

## Other responses

- `401` — Invalid email or password

---

[API](https://skmtc.net/novabilling/apis/novabilling-api.md) · [All operations](https://skmtc.net/novabilling/apis/novabilling-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/novabilling/novabilling-api/revisions/0e449a4e0dc8/schema)
