Skip to content

Sign in to the web UI

POST
/api/v1/auth/session
curl --request POST \
--url https://example.com/api/v1/auth/session \
--header 'Content-Type: application/json' \
--data '{ "key": "example" }'

Exchanges an API key with print or admin scope — or, while no admin key exists, the one-time bootstrap key — for a browser session. Sets an HttpOnly session cookie and a CSRF cookie. The key itself is never stored in the browser. Rate limited per client IP.

Media typeapplication/json
SignInRequest
object
key
required
Key
string
>= 1 characters <= 512 characters

Example generated

{
"key": "example"
}

Successful Response

Invalid key

Key scope too low (read-only)

Validation Error

Media typeapplication/json
HTTPValidationError
object
detail
Detail
Array<object>
ValidationError
object
ctx
Context
object
input
Input
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string

Example generated

{
"detail": [
{
"ctx": {},
"input": "example",
"loc": [
"example"
],
"msg": "example",
"type": "example"
}
]
}

Too many sign-in attempts