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"
}

Autorisierungen

Authorization
string
header
erforderlich

JWT-based authentication

Body

application/json

The postal address to validate

value
string
erforderlich

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

Beispiel:

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

Antwort

Validation result

valid
boolean

Whether the postal address is valid

Beispiel:

true

reason
string

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

Beispiel:

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