Référence / Enrichment / Validate a location filter value
Validate a location filter value
Les résumés et descriptions des routes viennent du contrat OpenAPI et restent en anglais.
Validate a location name before you put it in a signal's locations or excludedLocations filter — so a typo fails fast here instead of silently producing a signal that matches no one.
GET https://api.rodz.io/api/v1/enrichment/validate-location
Documenté depuis le contrat OpenAPI, version 2.0.0 de l’API.
Lire la description complète
Validate a location name before you put it in a signal’s locations or excludedLocations filter — so a typo fails fast here instead of silently producing a signal that matches no one.
Input: name (query parameter) — a single country, region, or city name (e.g. France, Île-de-France, Paris). Optional signalType — set it to job_offers, republished_job_offers or recruitment_campaign when the name is for a job signal’s locations: job postings are searched against their own place directory, so validate them against that one. A qualifier is understood — Nantes (France), Berlin, Germany — and checked against the match. A continent is valid for a job signal and covers all of its countries: Europe, Asia, Africa, North America, South America, Oceania, in English or French (Asie, Amérique du Nord); name returns it in English.
Output: valid (boolean — whether the name is recognized), id (the matched location’s geo id, or null), name (the geo directory’s label for the match — use it to confirm your input resolved to the place you meant; null when not recognized), and message (why it was rejected, present only when valid is false).
Submit the plain name you intend (never a geo id) in a signal’s locations / excludedLocations; the filter matches on the name. Use this endpoint to catch two mistakes before writing a signal: an unrecognized name (valid: false), and a recognized-but-wrong match — e.g. uk matches Ukraine, so if you mean the United Kingdom, submit United Kingdom. The create and update endpoints reject any unrecognized name with a 400 INVALID_LOCATION listing the offending values.
Authentification et en-têtes
Toutes les routes demandent une clé d’API. Vous la créez dans le tableau de bord, sous Intégrations puis API. Voir comment obtenir une clé.
Authorization requis Bearer suivi de votre clé d’API, par exemple Bearer USR_...
Paramètres
name string query requis Location name to validate, e.g. 'France', 'Paris', 'Germany'.
signalType string query facultatif accepte null Optional. The signal type the location is for. Pass job_offers, republished_job_offers or recruitment_campaign to validate a job signal's locations — job postings are searched against their own place directory, so a name can be valid for one and not the other.
Réponses
200 Validation result. Schéma de la réponse · LocationValidationResponse
valid boolean requis True if the name is a recognized location.
id string facultatif accepte null Geo id for the recognized location (null when not recognized).
name string facultatif accepte null The geo directory's label for the matched location — use it to confirm your input resolved to the place you meant (e.g. uk matches Ukraine). Null when not recognized.
message string facultatif accepte null Human-readable reason when valid is false; null when valid.
403 Partner accounts only: this configuration helper answers API keys of accounts approved as partners. Ask support@rodz.io to enable an account. 422 Validation Error Schéma de la réponse · HTTPValidationError
detail object[] facultatif 5 champs dans detail
loc string | integer[] requis msg string requis type string requis input any facultatif ctx object facultatif 429 Configuration-helper limit reached (30 calls per minute per API key and 500 calls per account per UTC day). This route helps build signal configurations; it is not a data feed. Retry after the number of seconds in the Retry-After header. 503 The limit could not be checked. Retry in a minute.