Validates MDX against the real Doxbrix component schema and returns errors (unknown components, bad props) plus an optional quality score. Returns HTTP 200 even when the MDX is invalid — check the valid field.
Validates the MDX and returns errors.
POST
/validateBearer token — `Bearer dxb_live_…`.
The MDX to validate.
Also return a content-quality score.
Response
200Validation result
cURL
curl --request POST \
--url https://api.doxbrix.io/v1/validate \
--header 'Content-Type: application/json' \
--data '{
"content": "<string>",
"score": false
}'{ "valid": false, "errors": [ { "line": 1, "message": "Unknown component 'Stepz'. Did you mean 'Steps'?" } ] }