API reference

HTS APIs

Every endpoint, schema and error code, rendered from the published OpenAPI files, in the order you integrate them.

Schema

locale

Locale code representing the language and regional variation of text content. This follows the IETF RFC 5646 standard for language tags, which provides a standardized way to identify languages.

Common examples:

  • "en-US" for U.S. English
  • "fr-FR" for French in France
  • "es-ES" for Spanish in Spain
  • "zh-CN" for Chinese in China
  • "ja-JP" for Japanese in Japan

Fields

string
Pattern ^[a-z]{2,4}(-[A-Z][a-z]{3})?(-([A-Z]{2}|[0-9]{3}))?$ · Example en-US

Locale code representing the language and regional variation of text content. This follows the IETF RFC 5646 standard for language tags, which provides a standardized way to identify languages.

Common examples:

  • "en-US" for U.S. English
  • "fr-FR" for French in France
  • "es-ES" for Spanish in Spain
  • "zh-CN" for Chinese in China
  • "ja-JP" for Japanese in Japan
Example
"en-US"