---
title: "Register a webhook on a status page"
method: POST
path: "/status-pages/{status_page_id}/webhooks"
tags: ["Status Page"]
---

# Register a webhook on a status page

`POST /status-pages/{status_page_id}/webhooks`

## 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}/webhooks`
- Auth: HTTP bearer

Each new public event of the page (an incident update or resolution, a
scheduled maintenance window) is posted to the URL as JSON, signed in
`X-Temps-Signature` with the secret returned here, once. The URL must be
`https://` and resolve to a public address. `enabled` defaults to `true`.

## Path parameters

- `status_page_id` integer, required

## Request body

- CreateStatusPageWebhookRequest
  - `enabled` boolean: Whether events are posted to it (default `true`). A webhook created switched off receives nothing until it is enabled.
  - `url` string, required: `https://` URL with a public address, at most 2048 characters.

## Response `201`

Webhook registered; the secret is shown only now

- StatusPageWebhookCreatedResponse: The new webhook and its signing secret. The secret is shown only here.
  - `secret` string, required: Verify `X-Temps-Signature` with it. Store it now: it is never shown again.
  - `webhook` StatusPageWebhookResponse, required
    - `created_at` string, date-time, required
    - `enabled` boolean, required
    - `has_secret` boolean, required: The signing secret is stored encrypted and shown only when the webhook is created.
    - `id` integer, required
    - `last_attempt_at` string, date-time, nullable
    - `last_failure_reason` string, nullable: Why the last delivery failed, until one succeeds.
    - `last_success_at` string, date-time, nullable
    - `status_page_id` integer, required
    - `updated_at` string, date-time, required
    - `url` string, required

## Other responses

- `400`: Invalid URL or non-public address
- `401`: Unauthorized
- `403`: Insufficient permissions
- `404`: Status page not found
- `409`: The page already has the most webhooks allowed
- `500`: Internal server error

## Changes

- **2026-11-26** `e1864d950604`: 1 info
  - added the new optional request property `enabled`
- **2026-11-21** `d57a37c13a27`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/gotempsh/apis/temps/changes/status-pages/:status_page_id/webhooks/post.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)
