---
title: "Set, change or remove a status page's password"
method: PUT
path: "/status-pages/{status_page_id}/password"
tags: ["Status Page"]
---

# Set, change or remove a status page's password

`PUT /status-pages/{status_page_id}/password`

## Request

- Base URL: `/api` (relative, and the document was published on a file host, not at the API’s origin)
- URL: `/api/status-pages/{status_page_id}/password`
- Auth: HTTP bearer

With a password (8 to 256 characters), visitors must type it to read the
page, its JSON or subscribe, and the page's Atom feed is not served.
`null` makes the page open again. Any change signs every visitor out.

## Path parameters

- `status_page_id` integer, required

## Request body

- SetPagePasswordRequest: `password` set: protect the page with it (8 to 256 characters), ending every visitor's session. `null`: remove the password. A credential: the AI assistant can only pass it through a secret slot.
  - `password` string, password, nullable: A credential. Write-only: it is never returned, and the AI assistant supplies it through a secret slot instead of typing it into the conversation.

## Response `200`

Password changed

- PagePasswordResponse: Whether a page needs a password. The password is never returned.
  - `has_password` boolean, required
  - `status_page_id` integer, required

## Other responses

- `400`: Invalid password
- `401`: Unauthorized
- `403`: Insufficient permissions
- `404`: Status page not found
- `429`: Too many password checks or changes are running; retry in a moment
- `500`: Internal server error

## Changes

- **2026-11-21** `d57a37c13a27`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/gotempsh/apis/temps/changes/status-pages/:status_page_id/password/put.md)

---

[API](https://skmtc.dev/gotempsh/apis/temps.md) - [All operations](https://skmtc.dev/gotempsh/apis/temps/llms.txt) - [OpenAPI document](https://skmtc.dev/gotempsh/apis/temps/revisions/3b040526eb43?raw)
