POST /status-pages

Authentication

Bearer Token (hu_api_key)

Request Body required

application/json
name string REQUIRED
Min length 1Max length 100
slug string REQUIRED
Min length 1Max length 50Pattern ^[a-z0-9-]+$
template string REQUIRED
Default minimalValues minimal brand terminal modern clean developer
brand_color string REQUIRED
Default #2563ebPattern ^#[0-9a-fA-F]{6}$

Responses

201 Status page created

No response body

409 Slug conflict
curl -X POST 'https://happyuptime.com/api/v1/status-pages' \  -H 'Authorization: Bearer YOUR_API_TOKEN' \  -H 'Content-Type: application/json' \  -d '{  "name": "string",  "slug": "string",  "template": "minimal",  "brand_color": "#2563eb"}'
const response = await fetch('https://happyuptime.com/api/v1/status-pages', {  method: 'POST',  headers: {      "Authorization": "Bearer YOUR_API_TOKEN",      "Content-Type": "application/json"  },  body: JSON.stringify({    "name": "string",    "slug": "string",    "template": "minimal",    "brand_color": "#2563eb"  })});const data = await response.json();console.log(data);
import requestsheaders = {    'Authorization': 'Bearer YOUR_API_TOKEN'}response = requests.post('https://happyuptime.com/api/v1/status-pages', headers=headers, json={  "name": "string",  "slug": "string",  "template": "minimal",  "brand_color": "#2563eb"})print(response.json())
409 Response
{  "error": {    "code": "not_found",    "message": "Monitor not found",    "status": 404  }}
Ask a question... ⌘I