---
title: "Dev Login"
method: POST
path: "/api/auth/dev/login"
tags: ["auth"]
---

# Dev Login

`POST /api/auth/dev/login`

## Request

- Base URL: `https://api.pigeonly.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.pigeonly.com/api/auth/dev/login`
- Auth: none declared

Stub login: mints a session for a named principal by email, bypassing
Google entirely. For the staging walkers (machines) only; people sign in
with Google.

Three refusals, in this order, all before any database read:
  1. ENVIRONMENT=production: always refused, Google configured or not, because this path trusts a
     caller-supplied email with no identity proof at all.
  2. The server has no DEV_LOGIN_SECRET (Settings.dev_login_secret empty): refused, 403.
  3. The request's X-Dev-Login-Secret header is missing or differs (constant-time compare): refused, 403.

WHY 2 AND 3 (finding T11-auth-safety-01, 2026-11-21; lead decision under Frederick's cleanup order of
2026-11-20): staging is on a public address and holds a nightly copy of production, so an email alone let
anyone on the internet sign in there as any employee. The callers that use this route send the header
(ops/late-pack-and-ship-walk/walk.py); the Mac standby's sign-in is open item STANDBY-DEVLOGIN-1.

## Headers

- `X-Dev-Login-Secret` string, nullable

## Request body

- DevLoginRequest
  - `email` string, required

## Response `200`

Successful Response

- object

## Other responses

- `422`: Validation Error

## Changes

- **2026-11-23** `4b7d67bb389c`: 1 info
  - added the new optional `header` request parameter `X-Dev-Login-Secret`

[Operation history](https://skmtc.dev/pigeonly/apis/roost-v2-pigeonly-company-os/changes/api/auth/dev/login/post.md)

---

[API](https://skmtc.dev/pigeonly/apis/roost-v2-pigeonly-company-os.md) - [All operations](https://skmtc.dev/pigeonly/apis/roost-v2-pigeonly-company-os/llms.txt) - [OpenAPI document](https://skmtc.dev/pigeonly/apis/roost-v2-pigeonly-company-os/revisions/14571c4b7007?raw)
