---
title: "Log in to the user account"
method: POST
path: "/blaize/login"
tags: ["Authentication"]
---

# Log in to the user account

`POST /blaize/login`

## Request

- Base URL: `https://demo-site`
- URL: `https://demo-site/blaize/login`
- Auth: one of:
  - API key in cookie `blaize_session`
  - API key in query parameter `jwt`
  - API key in header `x-blaize-jwt`
  - API key in header `x-zephr-jwt`
  - HTTP bearer
  - API key in cookie `blaize_jwt`

This endpoint is utilized for user authentication, granting access to secured endpoints  that mandate authentication. Following successful authentication, a `blaize_session` is generated  for the user, enabling them to access the secure endpoints.

## Headers

- `cookie` string

## Request body

- UserRegistrationRequest
  - `identifiers` object, required
    - `email_address` string
  - `validators` object, required
    - `password` string
    - `use_sso` boolean: When this is present there should be no identifiers in the body. The user is identified through a blaize_session cookie.

## Response `200`

OK. The user has logged in successfully.

- UserLoginResponse
  - `cookie` string: The authenticated user session.
  - `message` string
  - `tracking_id` string: The user tracking ID.

## Other responses

- `400`: Bad Request. The server could not understand the request due to invalid syntax or missing required parameters.
- `401`: Unauthorized. The user is unable to authenticate due to invalid login credentials, resulting in a lack of authentication.

---

[API](https://skmtc.dev/zuora/apis/zuora-2.md) - [All operations](https://skmtc.dev/zuora/apis/zuora-2/llms.txt) - [OpenAPI document](https://skmtc.dev/zuora/apis/zuora-2/revisions/678190d04c40?raw)
