---
title: "Renew the certificate of a status page's custom domain"
method: POST
path: "/status-pages/{status_page_id}/domains/{domain_id}/renew"
tags: ["Status Page"]
---

# Renew the certificate of a status page's custom domain

`POST /status-pages/{status_page_id}/domains/{domain_id}/renew`

## 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}/domains/{domain_id}/renew`
- Auth: HTTP bearer

Starts a new ACME order while the current certificate keeps being served.
HTTP-01 completes immediately. DNS-01 returns `renewal_pending` with the
new `_acme-challenge` TXT record: publish it, then call verify.

## Path parameters

- `status_page_id` integer, required
- `domain_id` integer, required

## Response `200`

Renewal started (DNS-01) or completed (HTTP-01)

- StatusPageDomainResponse
  - `certificate_expires_at` string, date-time, nullable
  - `created_at` string, date-time, required
  - `dns_records` DnsRecordInstruction[], required
    - `name` string, required: Fully qualified record name.
    - `purpose` string, required: Why the record is needed.
    - `record_type` string, required: `CNAME`, `A` or `TXT`.
    - `value` string, required: Record value.
  - `hostname` string, required
  - `id` integer, required
  - `last_error` string, nullable: Reason the last verification failed, if it did.
  - `serving` boolean, required: True when visitors can open the page on this hostname right now: the hostname is verified and the page is published.
  - `status` 'pending' | 'active' | 'failed' | 'unverified' | 'renewal_pending' | 'renewal_failed', required: Lifecycle of a custom hostname.
  - `verification_method` 'http-01' | 'dns-01', required: How ownership of a hostname is proven.

## Other responses

- `400`: The new order could not be validated
- `401`: Unauthorized
- `403`: Insufficient permissions
- `404`: Status page or domain not found
- `409`: The page is unpublished, the domain has no certificate yet, or another verify or renew of this hostname is in progress
- `429`: Too many domain operations for this project

## Changes

- **2026-10-12** `0fda1aa1af69`: 1 info
  - endpoint added

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