Enneo

General

Validate a value of the given type

POST /validation/{type}

POST /validation/{type}

Validates a value against the rules of the specified validation type. Supported types are email and letterAddress.

Path parameters

typeenumpathrequired

The validation type to apply.

Request body

The value to validate

valuestringbodyrequired

The value to validate. For email, an email address. For letterAddress, a postal address (name + street + zip/city), separated by newlines or commas.

Request Example

{
  "value": "user@example.com"
}

Responses

200 — Validation result

Response Example

{
  "valid": true,
  "reason": "Invalid email address format"
}

400 — Bad request — missing required field or unsupported type

500 — Internal error