---
title: "Validate domain DNS records"
method: POST
path: "/domains/{id}/validate"
tags: ["Domains"]
---

# Validate domain DNS records

`POST /domains/{id}/validate`

Triggers DNS validation for the domain via SendGrid.
Returns whether validation passed and any errors for specific DNS records.

## Response `200`

Domain validated successfully

- object
  - `message` string
  - `valid` boolean
  - `domain` WhitelabelDomain
    - `id` integer
    - `domain` string, required
    - `sendgrid_whitelabel_domain_id` integer, nullable
    - `validated_at` string, date-time, nullable
    - `dns` object — DNS records from SendGrid (included on show)
    - `created_at` string, date-time
    - `updated_at` string, date-time

## Other responses

- `400` — Validation failed (DNS records not configured correctly)
- `403` — Forbidden. Most often an ownership/authorization failure (Laravel's default `{"message": "..."}` shape). If the account is restricted by SendFox, the response instead carries the structured `account_restricted` body with a link to the account status page.

---

[API](https://skmtc.net/sendfox/apis/sendfox-api.md) · [All operations](https://skmtc.net/sendfox/apis/sendfox-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/sendfox/sendfox-api/versions/ea591a7644e7/schema)
