Languages
The Rently API can return localized texts (messages, catalog names and descriptions)
according to the language of each request. The language is controlled with the ?language= query parameter,
which takes precedence over the rest of the configuration.
How to request a language
Add the language parameter to the query string of any API call. The resolved
language is applied to that request.
curl "https://{tenant}.rently.com.ar/api/search?From=2026-07-01T10:00:00&To=2026-07-05T10:00:00&FromPlace=1&language=es-AR" \
-H "Authorization: Bearer {token}"
The ?language= parameter only affects API requests (/api/ routes). On the rest
of the surfaces it has no effect.
Supported values
The accepted values are not a fixed list: they depend on each account's
(tenant's) configuration. To find out which languages are enabled in your account, query the
GET /api/languages-info endpoint, which returns each language with its Name (full culture, e.g.
es-AR) and its TwoLetterISOLanguageName (two-letter ISO code, e.g. es).
curl "https://{tenant}.rently.com.ar/api/languages-info" \
-H "Authorization: Bearer {token}"
Response (example):
[
{
"Name": "en-US",
"DisplayName": "English (United States)",
"EnglishName": "English (United States)",
"NativeName": "English (United States)",
"ThreeLetterWindowsLanguageName": "ENU",
"ThreeLetterISOLanguageName": "eng",
"TwoLetterISOLanguageName": "en"
},
{
"Name": "es-AR",
"DisplayName": "Spanish (Argentina)",
"EnglishName": "Spanish (Argentina)",
"NativeName": "español (Argentina)",
"ThreeLetterWindowsLanguageName": "ESS",
"ThreeLetterISOLanguageName": "spa",
"TwoLetterISOLanguageName": "es"
}
]
Formats accepted in ?language=
You can send either of these two forms:
- Full culture name:
es-AR,en-US,pt. - Two-letter ISO code:
es,en.
If the two-letter code corresponds to more than one enabled culture, the first available match for your account is resolved.
When you need precise localization (including country formatting), use the full
culture name, for example es-AR instead of es.
Default language
If you don't send ?language=, the API resolves the language using your account's
configuration. The system default
value is es-AR, which is used when no other applicable
preference exists.
Precedence
The language of each request is resolved in this order, from highest to lowest priority:
?language=from the query, if present and a valid value for your account. It takes precedence over everything else.- Authenticated user's language, associated with the credentials the token was obtained with.
- Account (tenant) default language.
es-ARas the final fallback value.
If ?language= contains a value that is not enabled for your account, it is ignored and the API
continues with the next precedence level (user's language, account's language and,
finally, es-AR). An invalid value does not produce an error: it simply is not applied.
Full example
Search availability explicitly requesting responses in Argentine Spanish:
curl "https://{tenant}.rently.com.ar/api/search?From=2026-07-01T10:00:00&To=2026-07-05T10:00:00&FromPlace=1&language=es-AR" \
-H "Authorization: Bearer {token}"
For more details about the available endpoints, see the API reference.