v51

OpenAPI 3.1.0raw.githubusercontent.com2026-08-018486293.2 KB
auth

Create Session

Verify the master key and set the HttpOnly session cookie.

The rate-limit check deliberately runs only after a failed verification, not before it: a pre-verification gate can't know whether this attempt would have succeeded, so once an IP has used up its failure quota it would end up blocking that IP's legitimate owner too, not just further attackers. The issue this implements explicitly rules that out. The DB/hash lookup this exposes to repeated attempts only runs when no fixed master_key is configured (the auto-generated bootstrap-key path); with a configured master_key, verification is a constant-time string compare, not a DB round trip.

post/v1/auth/session

Request body

master_keystring required

The gateway master key; verified once and never stored by the browser.

Response

Successful Response

expires_atstring date-time required

When the session cookie stops being accepted.