Zum Hauptinhalt springen
POST
/
validation
/
letterAddress
Validate a postal/letter address
curl --request POST \
  --url https://demo.enneo.ai/api/mind/validation/letterAddress \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "value": "John Doe\nMain Street 123\n12345 Berlin\nGermany"
}
'
{
  "valid": true,
  "reason": "Address must have at least 3 lines: The name, 1 line for the street and 1 line for the zip code + city"
}

Authorizations

Authorization
string
header
required

JWT-based authentication

Body

application/json

The postal address to validate

value
string
required

The postal address to validate. Can use newlines or commas as separators.

Example:

"John Doe\nMain Street 123\n12345 Berlin\nGermany"

Response

Validation result

valid
boolean

Whether the postal address is valid

Example:

true

reason
string

The reason why the postal address is invalid (only present if valid is false)

Example:

"Address must have at least 3 lines: The name, 1 line for the street and 1 line for the zip code + city"