---
"@context": https://schema.org
"@type": TechArticle
"@id": https://www.twilio.com/docs/api/errors/19033#article
headline: "19033: Location validation error"
url: https://www.twilio.com/docs/api/errors/19033
inLanguage: en
dateModified: 2026-06-09T11:00:42.000Z
author:
  "@type": Organization
  name: Twilio Developer Education Team
publisher:
  "@type": Organization
  name: Twilio
---

# 19033: Location validation error

Log Type: APPLICATION

Log Level: ERROR

## Description

This error occurs when a location object in your request body contains invalid input values. Twilio returns it when one or more location fields fail validation, including invalid lengths or incorrect data types.

### Possible causes

* A field in the location object has an invalid length.
* A field in the location object uses the wrong data type.
* The location `type` value is not one of `work`, `home`, or `other`.
* The location country code is not a valid `ISO 3166-1 alpha-2` value.
* The request body includes a missing, invalid, or duplicate location field.

### Possible solutions

* Validate every location field in the request body before you send it. Make sure each value uses the expected data type and stays within the supported length.
* Set the location `type` to `work`, `home`, or `other`.
* Use a valid two-letter `ISO 3166-1 alpha-2` country code, such as `US`, for the location country value.
* Remove duplicate fields and add any required location fields that are missing from the payload.
* Review the Contact API request format and retry the request after you correct the invalid location fields.

#### Additional resources

* [Contact API](/docs/messaging/features/contact-api)
* [Compliance Toolkit for Programmable Messaging](/docs/messaging/features/compliance-toolkit)
* [Consent Management API](/docs/messaging/features/consent-api)
