---
title: "Account Login"
method: POST
path: "/api/account/login"
---

# Account Login

`POST /api/account/login`

## Request

- Base URL: `https://opwhcervi3.execute-api.ca-central-1.amazonaws.com`
- URL: `https://opwhcervi3.execute-api.ca-central-1.amazonaws.com/api/account/login`
- Auth: none required

Authenticates an existing account and returns a bearer session token. No entitlement, trial, quota, billing, email, or account state change occurs; failed attempts are rate-limited and recorded.

## Request body

- AccountLoginRequest
  - `email` string, required
  - `password` string, required

## Response `200`

Successful Response

- AccountAuthResponse
  - `account` AccountPublicView, required
    - `address` AccountAddress, required
      - `city` string, required
      - `country` string, required
      - `postal` string, required
      - `street` string, required
    - `api_keys` AccountApiKeyView[]
      - `created_at` string, required
      - `id` string, required
      - `label` string, required
      - `prefix` string, required
      - `revoked` boolean, required
    - `api_keys_notice` string
    - `business_name` string, required
    - `contact_name` string, nullable
    - `created_at` string, required
    - `email` string, required
    - `entitlements` object[]
    - `id` string, required
    - `industrial_sector` 'discrete_mfg' | 'automotive' | 'process' | 'pharma' | 'food_bev' | 'energy' | 'other', required
  - `token` string, required

## Other responses

- `422`: Validation Error
- `429`: The applicable rate or quota limit has been reached. `quota_exceeded` names the limit in `scope` (for example `free_quota`: the free Advisor's 10 questions this month). `pro_allowance_exhausted`: the dxpert Pro monthly allowance, shared by the Advisor and every agent, is used up; service resumes when it renews (`resets_at`). There is no overage and nothing extra to buy.

---

[API](https://skmtc.dev/dxpert/apis/dxpert-ai-api.md) · [All operations](https://skmtc.dev/dxpert/apis/dxpert-ai-api/llms.txt) · [OpenAPI document](https://skmtc.dev/dxpert/apis/dxpert-ai-api/revisions/460f1c8c53d1?raw)
