---
title: "Get health issues for a website"
method: POST
path: "/health/get_website"
tags: ["Health"]
---

# Get health issues for a website

`POST /health/get_website`

## Request

- Base URL: `https://api.foudroyer.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.foudroyer.com/health/get_website`
- Auth: HTTP bearer

Retrieves existing health issues for a website. If no health issues exist, automatically runs a health check and returns the results.

## Request body

- HealthGetWebsiteInputDto
  - `website_id` string, required: The ID of the website to get health issues for

## Response `200`

Health issues for the website

- HealthIssueResponseDto
  - `id` string, required: Unique identifier of the health issue
  - `fk_website_id` string, required: The website ID this health issue belongs to
  - `robots` HealthIssueTypeDto[], required: Robots.txt related issues
    - `id` string, required: Unique identifier of the issue
    - `type` 'robots' | 'server' | 'sitemap', required: Type of the issue
    - `name` 'robots/crawl-allowed' | 'robots/empty' | 'robots/javascript' | 'server/error' | 'server/not-https' | 'server/not-sc-domain/not-same-url' | 'server/not-sc-domain' | 'server/no-index' | 'sitemap/no-sitemap' | 'sitemap/server-error' | 'sitemap/bad-formed' | 'sitemap/hreflang-without-loc' | 'sitemap/contains-external-url' | 'sitemap/no-same-website', required: Name of the specific issue
    - `status` 'pass' | 'dont-pass' | 'warning', required: Status of the issue
    - `context` object, required: Additional context about the issue
    - `created_at` string, date-time, required: Date when the issue was created
    - `updated_at` string, date-time, required: Date when the issue was last updated
  - `server` HealthIssueTypeDto[], required: Server related issues
    - `id` string, required: Unique identifier of the issue
    - `type` 'robots' | 'server' | 'sitemap', required: Type of the issue
    - `name` 'robots/crawl-allowed' | 'robots/empty' | 'robots/javascript' | 'server/error' | 'server/not-https' | 'server/not-sc-domain/not-same-url' | 'server/not-sc-domain' | 'server/no-index' | 'sitemap/no-sitemap' | 'sitemap/server-error' | 'sitemap/bad-formed' | 'sitemap/hreflang-without-loc' | 'sitemap/contains-external-url' | 'sitemap/no-same-website', required: Name of the specific issue
    - `status` 'pass' | 'dont-pass' | 'warning', required: Status of the issue
    - `context` object, required: Additional context about the issue
    - `created_at` string, date-time, required: Date when the issue was created
    - `updated_at` string, date-time, required: Date when the issue was last updated
  - `sitemap` HealthIssueTypeDto[], required: Sitemap related issues
    - `id` string, required: Unique identifier of the issue
    - `type` 'robots' | 'server' | 'sitemap', required: Type of the issue
    - `name` 'robots/crawl-allowed' | 'robots/empty' | 'robots/javascript' | 'server/error' | 'server/not-https' | 'server/not-sc-domain/not-same-url' | 'server/not-sc-domain' | 'server/no-index' | 'sitemap/no-sitemap' | 'sitemap/server-error' | 'sitemap/bad-formed' | 'sitemap/hreflang-without-loc' | 'sitemap/contains-external-url' | 'sitemap/no-same-website', required: Name of the specific issue
    - `status` 'pass' | 'dont-pass' | 'warning', required: Status of the issue
    - `context` object, required: Additional context about the issue
    - `created_at` string, date-time, required: Date when the issue was created
    - `updated_at` string, date-time, required: Date when the issue was last updated
  - `synced_at` object, nullable, required: Date when the health check was last synced
  - `created_at` string, date-time, required: Date when the health issue was created
  - `updated_at` string, date-time, required: Date when the health issue was last updated

---

[API](https://skmtc.dev/foudroyer/apis/foudroyer-api.md) - [All operations](https://skmtc.dev/foudroyer/apis/foudroyer-api/llms.txt) - [OpenAPI document](https://skmtc.dev/foudroyer/apis/foudroyer-api/revisions/5b917c67e013?raw)
