{"activeVersionTag":"latest","latestAvailableVersionTag":"latest","collection":{"info":{"_postman_id":"e0ab0ed9-e77f-4a65-a7b9-e225f71d07a6","name":"StructurrAI Hotel Mapping","description":"StructurrAI Hotel Mapping gives travel companies, OTAs and hotel aggregators one deduplicated hotel catalog built from many supplier feeds. AI-driven matching groups every supplier listing of the same physical property into a single **StructurrAI hotel**, identified by a stable `standardized_hotel_id`.\n\n### API Structure\n\n| Module | Endpoint | Purpose |\n| --- | --- | --- |\n| **Country Master** | `GET /api/v2/countries` | Standardized list of countries with StructurrAI country codes (e.g. `SI-IN`). |\n| **City Master** | `GET /api/v2/cities` | Standardized cities and StructurrAI city codes for a country, with synonyms and parent (satellite) city links. |\n| **CDC: Added Hotels** | `GET /api/v2/addedhotels` | Ids of hotel clusters added since a given date. Paged by `token` / `next_token`. |\n| **CDC: Updated Hotels** | `GET /api/v2/updatedhotels` | Ids of hotel clusters whose details or mappings changed since a given date. Paged by `token` / `next_token`. |\n| **CDC: Deleted Hotels** | `GET /api/v2/deletedhotels` | Ids of hotel clusters removed since a given date. Paged by `token` / `next_token`. |\n| **Paginated Search** | `POST /api/v2/hotel/search` | Hotel ids in one city, one page at a time (up to 50 per page). 1 city per call. Paged by `token` / `next_token` (recommended) or `page`. |\n| **Static Hotel Data** | `POST /api/v2/hotel/data/static` | Static content for up to 50 hotel ids per call. |\n| **Static Data Provider** | `POST /api/v2/hotel/data/provider` | Canonical record plus supplier mappings for up to 50 hotel ids per call. |\n\n### Authentication\n\nSend your API key in the `api-key` header on every request.\n\n```\napi-key: <your_api_key>\n\n ```\n\nA missing or invalid key returns `401 {\"detail\": \"Invalid or missing API key\"}`.\n\n### Base URL\n\n| Environment | URL |\n| --- | --- |\n| Test | `https://test.structurrai.com` |\n| Production | `https://api.structurrai.com` |\n\n### Response envelope\n\nEvery successful response uses the same envelope:\n\n``` json\n{\n  \"success\": true,\n  \"message\": \"Human-readable status\",\n  \"data\": { },\n  \"errors\": null\n}\n\n ```\n\n### Errors\n\n| Status | When | Body |\n| --- | --- | --- |\n| `400` | Invalid `token` (send back the `next_token` you received, unchanged) | `{\"detail\": \"...\"}` |\n| `401` | Missing or invalid `api-key` | `{\"detail\": \"Invalid or missing API key\"}` |\n| `404` | Unknown resource (e.g. unknown `country_id`) | `{\"detail\": {\"success\": false, \"message\": \"...\", \"data\": null, \"errors\": [\"...\"]}}` |\n| `422` | Request validation failed (missing field, empty list, over the limit, bad date) | `{\"detail\": [{\"type\": \"...\", \"loc\": [\"body\", \"\"], \"msg\": \"...\"}]}` |\n\n### Which endpoints to use\n\n| Goal | Endpoints |\n| --- | --- |\n| Discover codes | [Country Master](https://documenter.getpostman.com/view/46998739/2sBXihpXmG#d433eec2-96f7-4903-bf33-395ce0588a41) → [City Master](https://documenter.getpostman.com/view/46998739/2sBXihpXmG#c639ea5d-54a8-40b6-81a0-23072293992e) |\n| All hotels in a city, page by page | [Paginated Search](https://documenter.getpostman.com/view/46998739/2sBXihpXmG#6c6e782d-25d7-4b9f-9be6-1f62081e71a4) → [Static Hotel Data](https://documenter.getpostman.com/view/46998739/2sBXihpXmG#c6ba445e-9197-4052-b77b-4e94cd5d709c) / [Static Data Provider](https://documenter.getpostman.com/view/46998739/2sBXihpXmG#02b27752-00b6-418d-9797-82928918e7cc) |\n| Keep a local copy in sync | [CDC](https://documenter.getpostman.com/view/46998739/2sBXihpXmG#91270405-0be3-4681-a528-ca404d503723) (added / updated / deleted) → [Static Hotel Data](https://documenter.getpostman.com/view/46998739/2sBXihpXmG#c6ba445e-9197-4052-b77b-4e94cd5d709c) / [Static Data Provider](https://documenter.getpostman.com/view/46998739/2sBXihpXmG#02b27752-00b6-418d-9797-82928918e7cc) |\n\n### Limits\n\n| Input | Limit |\n| --- | --- |\n| `standardized_city_codes` | 1 city per call, on every endpoint that takes it |\n| `standardized_hotel_ids` | 1–50 per request |\n| `page_size` | 1–50, default 50 (paginated search and CDC) |\n| `token` | the previous response's `next_token`, sent back unchanged; leave it out on the first call (paginated search and CDC) |","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","isPublicCollection":false,"owner":"46998739","team":9006174,"collectionId":"e0ab0ed9-e77f-4a65-a7b9-e225f71d07a6","publishedId":"2sBXihpXmG","public":true,"publicUrl":"https://documenter-api.postman.tech/view/46998739/2sBXihpXmG","privateUrl":"https://go.postman.co/documentation/46998739-e0ab0ed9-e77f-4a65-a7b9-e225f71d07a6","customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FF6C37"},"documentationLayout":"classic-double-column","customisation":{"metaTags":[{"name":"description","value":""},{"name":"title","value":""}],"appearance":{"default":"light","themes":[{"name":"dark","logo":null,"colors":{"top-bar":"212121","right-sidebar":"303030","highlight":"FF6C37"}},{"name":"light","logo":null,"colors":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FF6C37"}}]}},"version":"8.12.14","publishDate":"2026-09-11T08:26:54.000Z","activeVersionTag":"latest","documentationTheme":"light","metaTags":{"title":"","description":""},"logos":{"logoLight":null,"logoDark":null}},"statusCode":200},"environments":[],"user":{"authenticated":false,"permissions":{"publish":false}},"run":{"button":{"js":"https://run.pstmn.io/button.js","css":"https://run.pstmn.io/button.css"}},"web":"https://www.getpostman.com/","team":{"logo":"https://postman-image-service.postman.com/api/cloudinary-proxy/postman/image/upload/t_team_logo_pubdoc/v1/team/8e86560becc51bc231ef6f95c0f48a1602fb22497213a664a39103470bd2973d","favicon":""},"isEnvFetchError":false,"languages":"[{\"key\":\"csharp\",\"label\":\"C#\",\"variant\":\"HttpClient\"},{\"key\":\"csharp\",\"label\":\"C#\",\"variant\":\"RestSharp\"},{\"key\":\"curl\",\"label\":\"cURL\",\"variant\":\"cURL\"},{\"key\":\"dart\",\"label\":\"Dart\",\"variant\":\"http\"},{\"key\":\"go\",\"label\":\"Go\",\"variant\":\"Native\"},{\"key\":\"http\",\"label\":\"HTTP\",\"variant\":\"HTTP\"},{\"key\":\"java\",\"label\":\"Java\",\"variant\":\"OkHttp\"},{\"key\":\"java\",\"label\":\"Java\",\"variant\":\"Unirest\"},{\"key\":\"javascript\",\"label\":\"JavaScript\",\"variant\":\"Fetch\"},{\"key\":\"javascript\",\"label\":\"JavaScript\",\"variant\":\"jQuery\"},{\"key\":\"javascript\",\"label\":\"JavaScript\",\"variant\":\"XHR\"},{\"key\":\"c\",\"label\":\"C\",\"variant\":\"libcurl\"},{\"key\":\"nodejs\",\"label\":\"NodeJs\",\"variant\":\"Axios\"},{\"key\":\"nodejs\",\"label\":\"NodeJs\",\"variant\":\"Native\"},{\"key\":\"nodejs\",\"label\":\"NodeJs\",\"variant\":\"Request\"},{\"key\":\"nodejs\",\"label\":\"NodeJs\",\"variant\":\"Unirest\"},{\"key\":\"objective-c\",\"label\":\"Objective-C\",\"variant\":\"NSURLSession\"},{\"key\":\"ocaml\",\"label\":\"OCaml\",\"variant\":\"Cohttp\"},{\"key\":\"php\",\"label\":\"PHP\",\"variant\":\"cURL\"},{\"key\":\"php\",\"label\":\"PHP\",\"variant\":\"Guzzle\"},{\"key\":\"php\",\"label\":\"PHP\",\"variant\":\"HTTP_Request2\"},{\"key\":\"php\",\"label\":\"PHP\",\"variant\":\"pecl_http\"},{\"key\":\"powershell\",\"label\":\"PowerShell\",\"variant\":\"RestMethod\"},{\"key\":\"python\",\"label\":\"Python\",\"variant\":\"http.client\"},{\"key\":\"python\",\"label\":\"Python\",\"variant\":\"Requests\"},{\"key\":\"r\",\"label\":\"R\",\"variant\":\"httr\"},{\"key\":\"r\",\"label\":\"R\",\"variant\":\"RCurl\"},{\"key\":\"ruby\",\"label\":\"Ruby\",\"variant\":\"Net::HTTP\"},{\"key\":\"shell\",\"label\":\"Shell\",\"variant\":\"Httpie\"},{\"key\":\"shell\",\"label\":\"Shell\",\"variant\":\"wget\"},{\"key\":\"swift\",\"label\":\"Swift\",\"variant\":\"URLSession\"}]","languageSettings":[{"key":"csharp","label":"C#","variant":"HttpClient"},{"key":"csharp","label":"C#","variant":"RestSharp"},{"key":"curl","label":"cURL","variant":"cURL"},{"key":"dart","label":"Dart","variant":"http"},{"key":"go","label":"Go","variant":"Native"},{"key":"http","label":"HTTP","variant":"HTTP"},{"key":"java","label":"Java","variant":"OkHttp"},{"key":"java","label":"Java","variant":"Unirest"},{"key":"javascript","label":"JavaScript","variant":"Fetch"},{"key":"javascript","label":"JavaScript","variant":"jQuery"},{"key":"javascript","label":"JavaScript","variant":"XHR"},{"key":"c","label":"C","variant":"libcurl"},{"key":"nodejs","label":"NodeJs","variant":"Axios"},{"key":"nodejs","label":"NodeJs","variant":"Native"},{"key":"nodejs","label":"NodeJs","variant":"Request"},{"key":"nodejs","label":"NodeJs","variant":"Unirest"},{"key":"objective-c","label":"Objective-C","variant":"NSURLSession"},{"key":"ocaml","label":"OCaml","variant":"Cohttp"},{"key":"php","label":"PHP","variant":"cURL"},{"key":"php","label":"PHP","variant":"Guzzle"},{"key":"php","label":"PHP","variant":"HTTP_Request2"},{"key":"php","label":"PHP","variant":"pecl_http"},{"key":"powershell","label":"PowerShell","variant":"RestMethod"},{"key":"python","label":"Python","variant":"http.client"},{"key":"python","label":"Python","variant":"Requests"},{"key":"r","label":"R","variant":"httr"},{"key":"r","label":"R","variant":"RCurl"},{"key":"ruby","label":"Ruby","variant":"Net::HTTP"},{"key":"shell","label":"Shell","variant":"Httpie"},{"key":"shell","label":"Shell","variant":"wget"},{"key":"swift","label":"Swift","variant":"URLSession"}],"languageOptions":[{"label":"C# - HttpClient","value":"csharp - HttpClient - C#"},{"label":"C# - RestSharp","value":"csharp - RestSharp - C#"},{"label":"cURL - cURL","value":"curl - cURL - cURL"},{"label":"Dart - http","value":"dart - http - Dart"},{"label":"Go - Native","value":"go - Native - Go"},{"label":"HTTP - HTTP","value":"http - HTTP - HTTP"},{"label":"Java - OkHttp","value":"java - OkHttp - Java"},{"label":"Java - Unirest","value":"java - Unirest - Java"},{"label":"JavaScript - Fetch","value":"javascript - Fetch - JavaScript"},{"label":"JavaScript - jQuery","value":"javascript - jQuery - JavaScript"},{"label":"JavaScript - XHR","value":"javascript - XHR - JavaScript"},{"label":"C - libcurl","value":"c - libcurl - C"},{"label":"NodeJs - Axios","value":"nodejs - Axios - NodeJs"},{"label":"NodeJs - Native","value":"nodejs - Native - NodeJs"},{"label":"NodeJs - Request","value":"nodejs - Request - NodeJs"},{"label":"NodeJs - Unirest","value":"nodejs - Unirest - NodeJs"},{"label":"Objective-C - NSURLSession","value":"objective-c - NSURLSession - Objective-C"},{"label":"OCaml - Cohttp","value":"ocaml - Cohttp - OCaml"},{"label":"PHP - cURL","value":"php - cURL - PHP"},{"label":"PHP - Guzzle","value":"php - Guzzle - PHP"},{"label":"PHP - HTTP_Request2","value":"php - HTTP_Request2 - PHP"},{"label":"PHP - pecl_http","value":"php - pecl_http - PHP"},{"label":"PowerShell - RestMethod","value":"powershell - RestMethod - PowerShell"},{"label":"Python - http.client","value":"python - http.client - Python"},{"label":"Python - Requests","value":"python - Requests - Python"},{"label":"R - httr","value":"r - httr - R"},{"label":"R - RCurl","value":"r - RCurl - R"},{"label":"Ruby - Net::HTTP","value":"ruby - Net::HTTP - Ruby"},{"label":"Shell - Httpie","value":"shell - Httpie - Shell"},{"label":"Shell - wget","value":"shell - wget - Shell"},{"label":"Swift - URLSession","value":"swift - URLSession - Swift"}],"layoutOptions":[{"value":"classic-single-column","label":"Single Column"},{"value":"classic-double-column","label":"Double Column"}],"versionOptions":[],"environmentOptions":[{"value":"0","label":"No Environment"}],"canonicalUrl":"https://documenter.gw.postman.com/view/metadata/2sBXihpXmG"}