---
title: "Add a custom domain to a status page"
method: POST
path: "/api/{org_id}/status_pages/{id}/domains"
tags: ["Status Pages"]
---

# Add a custom domain to a status page

`POST /api/{org_id}/status_pages/{id}/domains`

## Request

- Base URL: `https://api.openobserve.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://api.openobserve.ai/api/{org_id}/status_pages/{id}/domains`
- Auth: API key in header `Authorization`
- TypeScript: <https://skmtc.dev/openobserve/apis/openobserve-api-http/docs/api/:org_id/status_pages/:id/domains/post.ts> (a function with typed inputs; its response is checked against the schema)

## Path parameters

- `org_id` string, required
- `id` string, required

## Request body

- CreateDomainRequest
  - `domain` string, required

## Response `200`

Success

- CreateDomainResponse: The DNS TXT record the admin needs to create — `txt_name`/`txt_value` spelled out because the raw `domain` + `verification_token` pairing isn't self-explanatory to a non-engineer reading it off an API response.
  - `domain` string, required
  - `id` string, required
  - `txt_name` string, required
  - `txt_value` string, required

---

[API](https://skmtc.dev/openobserve/apis/openobserve-api-http.md) - [All operations](https://skmtc.dev/openobserve/apis/openobserve-api-http/llms.txt) - [OpenAPI document](https://skmtc.dev/openobserve/apis/openobserve-api-http/revisions/0529b8a10252?raw)
