---
title: "Log in and start a device session."
method: POST
path: "/v1/auth/login"
---

# Log in and start a device session.

`POST /v1/auth/login`

## Request

- Base URL: `https://api.cortexplus.io`
- URL: `https://api.cortexplus.io/v1/auth/login`
- Auth: none required

Log in with email and password and issue a device token for this app install.

## Request body

- object
  - `email` string, email, required
  - `password` string, required
  - `deviceName` string
  - `platform` string

## Response `200`

Successful response.

- object
  - `deviceToken` string, required: Device credential (cxd_…); use it as the bearer token.
  - `user` object, required

## Other responses

- `403`: Request failed.
- `default`: Request failed.

---

[API](https://skmtc.dev/cortexplus/apis/cortexplus-rest-api.md) · [All operations](https://skmtc.dev/cortexplus/apis/cortexplus-rest-api/llms.txt) · [OpenAPI document](https://skmtc.dev/cortexplus/apis/cortexplus-rest-api/revisions/2d04f1593663?raw)
