---
title: "Logs in a PassiveLogic device"
method: GET
path: "/api/device/login"
tags: ["Device Communications"]
deprecated: true
---

# Logs in a PassiveLogic device

`GET /api/device/login`

## Request

- Base URL: `https://passivelogic.com` (the document declares no server; this is the origin it was published from)
- URL: `https://passivelogic.com/api/device/login`
- Auth: one of:
  - API key in header `X-PL-AUTH`
  - API key in header `Authorization: PL-API-KEY`
  - API key in header `PL-API-KEY`
  - HTTP basic
- TypeScript: <https://skmtc.dev/passivelogic/apis/passivelogic-http-api/docs/api/device/login/get.ts> (a function with typed inputs; its response is checked against the schema)

> **Deprecated.**

DEPRECATED: Device communication should use mTLS, where login is not required.

Logs in a PassiveLogic device, responding with the authentication token.

## Response `200`

OK

- DeviceLoginResponse: Response to /api/device/login
  - `token` string, required: Signed authentication JWT

---

[API](https://skmtc.dev/passivelogic/apis/passivelogic-http-api.md) - [All operations](https://skmtc.dev/passivelogic/apis/passivelogic-http-api/llms.txt) - [OpenAPI document](https://skmtc.dev/passivelogic/apis/passivelogic-http-api/revisions/28fce63bcdbb?raw)
