[{"data":1,"prerenderedAt":579},["ShallowReactive",2],{"page:\u002Fleads\u002Flist":3,"operation:listLeads":86},{"id":4,"title":5,"body":6,"description":76,"extension":77,"meta":78,"navigation":79,"operation":80,"path":81,"rawbody":82,"seo":83,"stem":84,"__hash__":85},"docs\u002Fleads\u002Flist.md","List leads",{"type":7,"value":8,"toc":70},"minimark",[9,13,27,32,55],[10,11,12],"p",{},"Returns every lead of the workspace — whatever its type or status, and however it was created — ordered by creation date, newest first.",[14,15,16,24],"warning",{},[10,17,18,19,23],{},"Leads contain personal data: names, phone numbers and emails. Grant ",[20,21,22],"code",{},"leads:read"," only to systems that need it, such as a CRM sync, and never to a key used by a public website.",[10,25,26],{},"Internal CRM data is not part of the response: notes, ID documents, rating and scoring, assigned agent, capture details and follow-up dates stay in Vestta.",[28,29,31],"h2",{"id":30},"pagination","Pagination",[10,33,34,37,38,42,43,45,46,49,50,54],{},[20,35,36],{},"count"," is the number of leads ",[39,40,41],"strong",{},"in this page",", not the total. Keep requesting pages while ",[20,44,36],{}," equals ",[20,47,48],{},"limit",". See ",[51,52,31],"a",{"href":53},"\u002Fpagination#paging-through-leads",".",[10,56,57,58,61,62,65,66,69],{},"The endpoint has no filters. To pick up new leads periodically, page from ",[20,59,60],{},"offset=0"," and stop when you reach a ",[20,63,64],{},"created_at"," (or an ",[20,67,68],{},"id",") you have already processed.",{"title":71,"searchDepth":72,"depth":72,"links":73},"",3,[74],{"id":30,"depth":75,"text":31},2,"Return the leads of the workspace, newest first.","md",{},true,"listLeads","\u002Fleads\u002Flist","---\ntitle: List leads\ndescription: Return the leads of the workspace, newest first.\noperation: listLeads\n---\n\nReturns every lead of the workspace — whatever its type or status, and however it was created — ordered by creation date, newest first.\n\n::warning\nLeads contain personal data: names, phone numbers and emails. Grant `leads:read` only to systems that need it, such as a CRM sync, and never to a key used by a public website.\n\nInternal CRM data is not part of the response: notes, ID documents, rating and scoring, assigned agent, capture details and follow-up dates stay in Vestta.\n::\n\n## Pagination\n\n`count` is the number of leads **in this page**, not the total. Keep requesting pages while `count` equals `limit`. See [Pagination](\u002Fpagination#paging-through-leads).\n\nThe endpoint has no filters. To pick up new leads periodically, page from `offset=0` and stop when you reach a `created_at` (or an `id`) you have already processed.\n",{"title":5,"description":76},"leads\u002Flist","qmlWigaLKFpLrH9mZrHso88Xh-9o1EmsepX_ZhoCei0",{"id":80,"method":87,"path":88,"fullPath":89,"summary":90,"tag":91,"scopes":92,"url":93,"description":94,"pathParams":95,"queryParams":96,"headerParams":109,"responses":110,"samples":562,"docsPath":81},"GET","\u002Fleads","\u002Fv1\u002Fleads","List contacts","Leads",[22],"https:\u002F\u002Fapi.vestta.io\u002Fv1\u002Fleads","Lists the business contacts. Requires the `leads:read` scope.",[],[97,104],{"name":48,"type":98,"required":99,"nullable":99,"defaultValue":100,"constraints":101},"integer",false,"100",[102,103],"≥ 1","≤ 1000",{"name":105,"type":98,"required":99,"nullable":99,"defaultValue":106,"constraints":107},"offset","0",[108],"≥ 0",[],[111,542,546,549,552,555,559],{"status":112,"description":113,"schemaName":114,"fields":115,"example":540,"exampleHtml":541},"200","Successful response.","LeadListResponse",[116,122,527,530,533,536],{"name":117,"type":118,"required":79,"nullable":99,"enumValues":119,"constraints":121},"status","string",[120],"ok",[],{"name":123,"type":124,"required":79,"nullable":99,"constraints":125,"children":126},"data","array of objects",[],[127,130,133,137,140,144,148,152,155,158,161,164,168,520,523],{"name":68,"type":98,"required":79,"nullable":99,"description":128,"constraints":129},"Numeric lead ID.",[],{"name":131,"type":118,"required":99,"nullable":79,"constraints":132},"name",[],{"name":134,"type":118,"required":99,"nullable":79,"description":135,"constraints":136},"type","`demandante` (looking for a property), `propietario` (owner), `agencia-inmobiliaria`, `entidad-bancaria` or `proveedor-servicios`.",[],{"name":117,"type":118,"required":99,"nullable":79,"description":138,"constraints":139},"Pipeline status, e.g. `new`, `searching_property`, `active_negotiation`, `closed` or `inactive`.",[],{"name":141,"type":142,"required":99,"nullable":79,"constraints":143},"active","boolean",[],{"name":145,"type":118,"required":99,"nullable":79,"description":146,"constraints":147},"source","Where the lead came from, e.g. `web`, `manual`, or the `source` sent on ingestion.",[],{"name":149,"type":118,"required":99,"nullable":79,"description":150,"constraints":151},"phone_number_1","Primary phone in E.164 format.",[],{"name":153,"type":118,"required":99,"nullable":79,"constraints":154},"phone_number_2",[],{"name":156,"type":118,"required":99,"nullable":79,"constraints":157},"landline_phone",[],{"name":159,"type":118,"required":99,"nullable":79,"constraints":160},"personal_email",[],{"name":162,"type":118,"required":99,"nullable":79,"constraints":163},"professional_email",[],{"name":165,"type":118,"required":99,"nullable":79,"description":166,"constraints":167},"preferred_language","`es`, `gb`, `fr`, `ge` or `it`.",[],{"name":169,"type":124,"required":99,"nullable":79,"description":170,"constraints":171,"children":172},"search_preferences","Structured search requests without internal notes.",[],[173,176,180,183,186,243,288,324,355,379,416,447,469,509,512,515,518],{"name":174,"type":118,"required":99,"nullable":79,"constraints":175},"request_id",[],{"name":177,"type":178,"required":99,"nullable":99,"constraints":179},"operations","array of strings",[],{"name":181,"type":178,"required":99,"nullable":99,"constraints":182},"property_types",[],{"name":184,"type":124,"required":99,"nullable":99,"constraints":185},"locations",[],{"name":187,"type":188,"required":99,"nullable":99,"constraints":189,"children":190},"apartamento","ApartmentPreferences",[],[191,194,198,201,204,207,210,213,216,219,222,225,228,231,234,237,240],{"name":192,"type":178,"required":99,"nullable":99,"constraints":193},"requireds",[],{"name":195,"type":196,"required":99,"nullable":79,"constraints":197},"specs","object",[],{"name":199,"type":178,"required":99,"nullable":79,"constraints":200},"views",[],{"name":202,"type":178,"required":99,"nullable":79,"constraints":203},"features",[],{"name":205,"type":178,"required":99,"nullable":79,"constraints":206},"subtypes",[],{"name":208,"type":98,"required":99,"nullable":79,"constraints":209},"size_max",[],{"name":211,"type":98,"required":99,"nullable":79,"constraints":212},"size_min",[],{"name":214,"type":98,"required":99,"nullable":79,"constraints":215},"price_max",[],{"name":217,"type":98,"required":99,"nullable":79,"constraints":218},"price_min",[],{"name":220,"type":98,"required":99,"nullable":79,"constraints":221},"price_rent_max",[],{"name":223,"type":98,"required":99,"nullable":79,"constraints":224},"price_rent_min",[],{"name":226,"type":98,"required":99,"nullable":79,"constraints":227},"bedrooms_min",[],{"name":229,"type":98,"required":99,"nullable":79,"constraints":230},"bathrooms_min",[],{"name":232,"type":98,"required":99,"nullable":79,"constraints":233},"num_terraces_min",[],{"name":235,"type":98,"required":99,"nullable":79,"constraints":236},"size_terraces_min",[],{"name":238,"type":98,"required":99,"nullable":79,"constraints":239},"doble_bedrooms_min",[],{"name":241,"type":98,"required":99,"nullable":79,"constraints":242},"suite_bathrooms_min",[],{"name":244,"type":245,"required":99,"nullable":99,"constraints":246,"children":247},"casa","HousePreferences",[],[248,250,252,254,256,258,260,262,264,266,268,270,272,274,276,278,280,282,285],{"name":192,"type":178,"required":99,"nullable":99,"constraints":249},[],{"name":195,"type":196,"required":99,"nullable":79,"constraints":251},[],{"name":199,"type":178,"required":99,"nullable":79,"constraints":253},[],{"name":202,"type":178,"required":99,"nullable":79,"constraints":255},[],{"name":205,"type":178,"required":99,"nullable":79,"constraints":257},[],{"name":208,"type":98,"required":99,"nullable":79,"constraints":259},[],{"name":211,"type":98,"required":99,"nullable":79,"constraints":261},[],{"name":214,"type":98,"required":99,"nullable":79,"constraints":263},[],{"name":217,"type":98,"required":99,"nullable":79,"constraints":265},[],{"name":220,"type":98,"required":99,"nullable":79,"constraints":267},[],{"name":223,"type":98,"required":99,"nullable":79,"constraints":269},[],{"name":226,"type":98,"required":99,"nullable":79,"constraints":271},[],{"name":229,"type":98,"required":99,"nullable":79,"constraints":273},[],{"name":232,"type":98,"required":99,"nullable":79,"constraints":275},[],{"name":235,"type":98,"required":99,"nullable":79,"constraints":277},[],{"name":238,"type":98,"required":99,"nullable":79,"constraints":279},[],{"name":241,"type":98,"required":99,"nullable":79,"constraints":281},[],{"name":283,"type":98,"required":99,"nullable":79,"constraints":284},"plot_size_min",[],{"name":286,"type":98,"required":99,"nullable":79,"constraints":287},"porch_size_min",[],{"name":289,"type":290,"required":99,"nullable":99,"constraints":291,"children":292},"local","LocalPreferences",[],[293,295,297,299,301,303,305,307,309,311,313,316,319,322],{"name":192,"type":178,"required":99,"nullable":99,"constraints":294},[],{"name":195,"type":196,"required":99,"nullable":79,"constraints":296},[],{"name":202,"type":178,"required":99,"nullable":79,"constraints":298},[],{"name":205,"type":178,"required":99,"nullable":79,"constraints":300},[],{"name":208,"type":98,"required":99,"nullable":79,"constraints":302},[],{"name":211,"type":98,"required":99,"nullable":79,"constraints":304},[],{"name":214,"type":98,"required":99,"nullable":79,"constraints":306},[],{"name":217,"type":98,"required":99,"nullable":79,"constraints":308},[],{"name":220,"type":98,"required":99,"nullable":79,"constraints":310},[],{"name":223,"type":98,"required":99,"nullable":79,"constraints":312},[],{"name":314,"type":98,"required":99,"nullable":79,"constraints":315},"height_min",[],{"name":317,"type":98,"required":99,"nullable":79,"constraints":318},"facade_meters_min",[],{"name":320,"type":98,"required":99,"nullable":79,"constraints":321},"showcase_meters_min",[],{"name":229,"type":98,"required":99,"nullable":79,"constraints":323},[],{"name":325,"type":326,"required":99,"nullable":99,"constraints":327,"children":328},"nave","NavePreferences",[],[329,331,333,335,337,339,341,343,345,347,349,351,353],{"name":192,"type":178,"required":99,"nullable":99,"constraints":330},[],{"name":195,"type":196,"required":99,"nullable":79,"constraints":332},[],{"name":202,"type":178,"required":99,"nullable":79,"constraints":334},[],{"name":205,"type":178,"required":99,"nullable":79,"constraints":336},[],{"name":208,"type":98,"required":99,"nullable":79,"constraints":338},[],{"name":211,"type":98,"required":99,"nullable":79,"constraints":340},[],{"name":214,"type":98,"required":99,"nullable":79,"constraints":342},[],{"name":217,"type":98,"required":99,"nullable":79,"constraints":344},[],{"name":220,"type":98,"required":99,"nullable":79,"constraints":346},[],{"name":223,"type":98,"required":99,"nullable":79,"constraints":348},[],{"name":314,"type":98,"required":99,"nullable":79,"constraints":350},[],{"name":317,"type":98,"required":99,"nullable":79,"constraints":352},[],{"name":320,"type":98,"required":99,"nullable":79,"constraints":354},[],{"name":356,"type":357,"required":99,"nullable":99,"description":358,"constraints":359,"children":360},"almacenaje","StoragePreferences","Preferencias para almacenes y trasteros independientes.",[],[361,363,365,367,369,371,373,375,377],{"name":192,"type":178,"required":99,"nullable":99,"constraints":362},[],{"name":202,"type":178,"required":99,"nullable":79,"constraints":364},[],{"name":205,"type":178,"required":99,"nullable":79,"constraints":366},[],{"name":208,"type":98,"required":99,"nullable":79,"constraints":368},[],{"name":211,"type":98,"required":99,"nullable":79,"constraints":370},[],{"name":214,"type":98,"required":99,"nullable":79,"constraints":372},[],{"name":217,"type":98,"required":99,"nullable":79,"constraints":374},[],{"name":220,"type":98,"required":99,"nullable":79,"constraints":376},[],{"name":223,"type":98,"required":99,"nullable":79,"constraints":378},[],{"name":380,"type":381,"required":99,"nullable":99,"constraints":382,"children":383},"oficina","OficinaPreferences",[],[384,386,388,390,392,394,396,398,400,402,404,407,409,412,414],{"name":192,"type":178,"required":99,"nullable":99,"constraints":385},[],{"name":195,"type":196,"required":99,"nullable":79,"constraints":387},[],{"name":202,"type":178,"required":99,"nullable":79,"constraints":389},[],{"name":205,"type":178,"required":99,"nullable":79,"constraints":391},[],{"name":208,"type":98,"required":99,"nullable":79,"constraints":393},[],{"name":211,"type":98,"required":99,"nullable":79,"constraints":395},[],{"name":214,"type":98,"required":99,"nullable":79,"constraints":397},[],{"name":217,"type":98,"required":99,"nullable":79,"constraints":399},[],{"name":220,"type":98,"required":99,"nullable":79,"constraints":401},[],{"name":223,"type":98,"required":99,"nullable":79,"constraints":403},[],{"name":405,"type":98,"required":99,"nullable":79,"constraints":406},"offices_min",[],{"name":229,"type":98,"required":99,"nullable":79,"constraints":408},[],{"name":410,"type":98,"required":99,"nullable":79,"constraints":411},"meeting_rooms_min",[],{"name":232,"type":98,"required":99,"nullable":79,"constraints":413},[],{"name":235,"type":98,"required":99,"nullable":79,"constraints":415},[],{"name":417,"type":418,"required":99,"nullable":99,"constraints":419,"children":420},"terreno","TerrenoPreferences",[],[421,423,425,427,429,432,434,436,438,440,442,444],{"name":192,"type":178,"required":99,"nullable":99,"constraints":422},[],{"name":199,"type":178,"required":99,"nullable":79,"constraints":424},[],{"name":202,"type":178,"required":99,"nullable":79,"constraints":426},[],{"name":205,"type":178,"required":99,"nullable":79,"constraints":428},[],{"name":430,"type":178,"required":99,"nullable":79,"constraints":431},"topography",[],{"name":208,"type":98,"required":99,"nullable":79,"constraints":433},[],{"name":211,"type":98,"required":99,"nullable":79,"constraints":435},[],{"name":214,"type":98,"required":99,"nullable":79,"constraints":437},[],{"name":217,"type":98,"required":99,"nullable":79,"constraints":439},[],{"name":220,"type":98,"required":99,"nullable":79,"constraints":441},[],{"name":223,"type":98,"required":99,"nullable":79,"constraints":443},[],{"name":445,"type":98,"required":99,"nullable":79,"constraints":446},"size_built_min",[],{"name":448,"type":449,"required":99,"nullable":99,"constraints":450,"children":451},"aparcamiento","AparcamientoPreferences",[],[452,454,456,458,461,463,465,467],{"name":192,"type":178,"required":99,"nullable":99,"constraints":453},[],{"name":202,"type":178,"required":99,"nullable":79,"constraints":455},[],{"name":205,"type":178,"required":99,"nullable":79,"constraints":457},[],{"name":459,"type":98,"required":99,"nullable":79,"constraints":460},"min_seats",[],{"name":214,"type":98,"required":99,"nullable":79,"constraints":462},[],{"name":217,"type":98,"required":99,"nullable":79,"constraints":464},[],{"name":220,"type":98,"required":99,"nullable":79,"constraints":466},[],{"name":223,"type":98,"required":99,"nullable":79,"constraints":468},[],{"name":470,"type":471,"required":99,"nullable":99,"constraints":472,"children":473},"edificio","BuildingPreferences",[],[474,476,478,480,482,484,486,488,490,492,494,497,500,503,506],{"name":192,"type":178,"required":99,"nullable":99,"constraints":475},[],{"name":195,"type":196,"required":99,"nullable":79,"constraints":477},[],{"name":202,"type":178,"required":99,"nullable":79,"constraints":479},[],{"name":208,"type":98,"required":99,"nullable":79,"constraints":481},[],{"name":211,"type":98,"required":99,"nullable":79,"constraints":483},[],{"name":205,"type":178,"required":99,"nullable":79,"constraints":485},[],{"name":214,"type":98,"required":99,"nullable":79,"constraints":487},[],{"name":217,"type":98,"required":99,"nullable":79,"constraints":489},[],{"name":220,"type":98,"required":99,"nullable":79,"constraints":491},[],{"name":223,"type":98,"required":99,"nullable":79,"constraints":493},[],{"name":495,"type":98,"required":99,"nullable":79,"constraints":496},"num_floors_min",[],{"name":498,"type":98,"required":99,"nullable":79,"constraints":499},"num_locales_min",[],{"name":501,"type":98,"required":99,"nullable":79,"constraints":502},"usable_area_min",[],{"name":504,"type":98,"required":99,"nullable":79,"constraints":505},"num_parkings_min",[],{"name":507,"type":98,"required":99,"nullable":79,"constraints":508},"num_viviendas_min",[],{"name":510,"type":118,"required":99,"nullable":79,"constraints":511},"title",[],{"name":513,"type":118,"required":99,"nullable":79,"constraints":514},"color",[],{"name":516,"type":118,"required":99,"nullable":79,"constraints":517},"urgency",[],{"name":117,"type":118,"required":99,"nullable":79,"constraints":519},[],{"name":64,"type":118,"required":99,"nullable":79,"description":521,"constraints":522},"ISO 8601 timestamp with UTC offset. Leads are ordered by this field, newest first.",[],{"name":524,"type":118,"required":99,"nullable":79,"description":525,"constraints":526},"updated_at","ISO 8601 timestamp with UTC offset.",[],{"name":36,"type":98,"required":79,"nullable":99,"description":528,"constraints":529},"Total contacts in the business, across all pages.",[],{"name":48,"type":98,"required":79,"nullable":99,"description":531,"constraints":532},"The `limit` that was applied.",[],{"name":105,"type":98,"required":79,"nullable":99,"description":534,"constraints":535},"The `offset` that was applied.",[],{"name":537,"type":118,"required":99,"nullable":79,"description":538,"constraints":539},"authenticated_as","Name of the business that owns the API key.",[],"{\n  \"status\": \"ok\",\n  \"data\": [\n    {\n      \"id\": 227,\n      \"name\": \"Ana García\",\n      \"type\": \"demandante\",\n      \"status\": \"searching_property\",\n      \"active\": true,\n      \"source\": \"web\",\n      \"phone_number_1\": \"+34600111222\",\n      \"preferred_language\": \"es\",\n      \"search_preferences\": [\n        {\n          \"operations\": [\n            \"alquiler\"\n          ],\n          \"property_types\": [\n            \"apartamento\"\n          ],\n          \"locations\": [\n            {\n              \"name\": \"Madrid\"\n            }\n          ]\n        }\n      ],\n      \"created_at\": \"2026-09-29T18:24:55.569028+02:00\",\n      \"updated_at\": \"2026-09-29T18:24:55.569028+02:00\"\n    }\n  ],\n  \"count\": 1,\n  \"limit\": 20,\n  \"offset\": 0,\n  \"authenticated_as\": \"Inmobiliaria Ejemplo\"\n}","\u003Cpre class=\"shiki github-light\" style=\"background-color:#fff;color:#24292e\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan style=\"color:#24292E\">{\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan style=\"color:#005CC5\">  \"status\"\u003C\u002Fspan>\u003Cspan style=\"color:#24292E\">: \u003C\u002Fspan>\u003Cspan style=\"color:#032F62\">\"ok\"\u003C\u002Fspan>\u003Cspan style=\"color:#24292E\">,\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan style=\"color:#005CC5\">  \"data\"\u003C\u002Fspan>\u003Cspan style=\"color:#24292E\">: [\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan style=\"color:#24292E\">    {\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan style=\"color:#005CC5\">      \"id\"\u003C\u002Fspan>\u003Cspan style=\"color:#24292E\">: \u003C\u002Fspan>\u003Cspan style=\"color:#005CC5\">227\u003C\u002Fspan>\u003Cspan style=\"color:#24292E\">,\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan style=\"color:#005CC5\">      \"name\"\u003C\u002Fspan>\u003Cspan style=\"color:#24292E\">: \u003C\u002Fspan>\u003Cspan style=\"color:#032F62\">\"Ana García\"\u003C\u002Fspan>\u003Cspan style=\"color:#24292E\">,\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan style=\"color:#005CC5\">      \"type\"\u003C\u002Fspan>\u003Cspan style=\"color:#24292E\">: \u003C\u002Fspan>\u003Cspan style=\"color:#032F62\">\"demandante\"\u003C\u002Fspan>\u003Cspan style=\"color:#24292E\">,\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan style=\"color:#005CC5\">      \"status\"\u003C\u002Fspan>\u003Cspan style=\"color:#24292E\">: \u003C\u002Fspan>\u003Cspan style=\"color:#032F62\">\"searching_property\"\u003C\u002Fspan>\u003Cspan style=\"color:#24292E\">,\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan style=\"color:#005CC5\">      \"active\"\u003C\u002Fspan>\u003Cspan style=\"color:#24292E\">: \u003C\u002Fspan>\u003Cspan style=\"color:#005CC5\">true\u003C\u002Fspan>\u003Cspan style=\"color:#24292E\">,\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan style=\"color:#005CC5\">      \"source\"\u003C\u002Fspan>\u003Cspan style=\"color:#24292E\">: \u003C\u002Fspan>\u003Cspan style=\"color:#032F62\">\"web\"\u003C\u002Fspan>\u003Cspan style=\"color:#24292E\">,\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan style=\"color:#005CC5\">      \"phone_number_1\"\u003C\u002Fspan>\u003Cspan style=\"color:#24292E\">: \u003C\u002Fspan>\u003Cspan style=\"color:#032F62\">\"+34600111222\"\u003C\u002Fspan>\u003Cspan style=\"color:#24292E\">,\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan style=\"color:#005CC5\">      \"preferred_language\"\u003C\u002Fspan>\u003Cspan style=\"color:#24292E\">: \u003C\u002Fspan>\u003Cspan style=\"color:#032F62\">\"es\"\u003C\u002Fspan>\u003Cspan style=\"color:#24292E\">,\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan style=\"color:#005CC5\">      \"search_preferences\"\u003C\u002Fspan>\u003Cspan style=\"color:#24292E\">: [\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan style=\"color:#24292E\">        {\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan style=\"color:#005CC5\">          \"operations\"\u003C\u002Fspan>\u003Cspan style=\"color:#24292E\">: [\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan style=\"color:#032F62\">            \"alquiler\"\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan style=\"color:#24292E\">          ],\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan style=\"color:#005CC5\">          \"property_types\"\u003C\u002Fspan>\u003Cspan style=\"color:#24292E\">: [\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan style=\"color:#032F62\">            \"apartamento\"\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan style=\"color:#24292E\">          ],\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan style=\"color:#005CC5\">          \"locations\"\u003C\u002Fspan>\u003Cspan style=\"color:#24292E\">: [\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan style=\"color:#24292E\">            {\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan style=\"color:#005CC5\">              \"name\"\u003C\u002Fspan>\u003Cspan style=\"color:#24292E\">: \u003C\u002Fspan>\u003Cspan style=\"color:#032F62\">\"Madrid\"\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan style=\"color:#24292E\">            }\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan style=\"color:#24292E\">          ]\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan style=\"color:#24292E\">        }\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan style=\"color:#24292E\">      ],\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan style=\"color:#005CC5\">      \"created_at\"\u003C\u002Fspan>\u003Cspan style=\"color:#24292E\">: \u003C\u002Fspan>\u003Cspan style=\"color:#032F62\">\"2026-09-29T18:24:55.569028+02:00\"\u003C\u002Fspan>\u003Cspan style=\"color:#24292E\">,\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan style=\"color:#005CC5\">      \"updated_at\"\u003C\u002Fspan>\u003Cspan style=\"color:#24292E\">: \u003C\u002Fspan>\u003Cspan style=\"color:#032F62\">\"2026-09-29T18:24:55.569028+02:00\"\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan style=\"color:#24292E\">    }\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan style=\"color:#24292E\">  ],\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan style=\"color:#005CC5\">  \"count\"\u003C\u002Fspan>\u003Cspan style=\"color:#24292E\">: \u003C\u002Fspan>\u003Cspan style=\"color:#005CC5\">1\u003C\u002Fspan>\u003Cspan style=\"color:#24292E\">,\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan style=\"color:#005CC5\">  \"limit\"\u003C\u002Fspan>\u003Cspan style=\"color:#24292E\">: \u003C\u002Fspan>\u003Cspan style=\"color:#005CC5\">20\u003C\u002Fspan>\u003Cspan style=\"color:#24292E\">,\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan style=\"color:#005CC5\">  \"offset\"\u003C\u002Fspan>\u003Cspan style=\"color:#24292E\">: \u003C\u002Fspan>\u003Cspan style=\"color:#005CC5\">0\u003C\u002Fspan>\u003Cspan style=\"color:#24292E\">,\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan style=\"color:#005CC5\">  \"authenticated_as\"\u003C\u002Fspan>\u003Cspan style=\"color:#24292E\">: \u003C\u002Fspan>\u003Cspan style=\"color:#032F62\">\"Inmobiliaria Ejemplo\"\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan style=\"color:#24292E\">}\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>",{"status":543,"description":544,"schemaName":545},"401","The API key is missing, malformed, unknown, revoked or expired.","ExternalApiError",{"status":547,"description":548,"schemaName":545},"403","The API key lacks the required scope.",{"status":550,"description":551,"schemaName":545},"404","The resource does not exist in this business.",{"status":553,"description":554,"schemaName":545},"409","Duplicate contact or idempotency key reused with a different payload.",{"status":556,"description":557,"schemaName":558},"422","A path parameter, query parameter or body field is invalid.","ExternalValidationError",{"status":560,"description":561,"schemaName":545},"500","Unexpected server error while processing the request.",[563,569,574],{"id":564,"label":565,"lang":566,"code":567,"html":568},"curl","cURL","bash","curl \"https:\u002F\u002Fapi.vestta.io\u002Fv1\u002Fleads?limit=20\" \\\n  -H \"X-Api-Key: $VESTTA_API_KEY\"","\u003Cpre class=\"shiki github-light\" style=\"background-color:#fff;color:#24292e\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan style=\"color:#6F42C1\">curl\u003C\u002Fspan>\u003Cspan style=\"color:#032F62\"> \"https:\u002F\u002Fapi.vestta.io\u002Fv1\u002Fleads?limit=20\"\u003C\u002Fspan>\u003Cspan style=\"color:#005CC5\"> \\\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan style=\"color:#005CC5\">  -H\u003C\u002Fspan>\u003Cspan style=\"color:#032F62\"> \"X-Api-Key: \u003C\u002Fspan>\u003Cspan style=\"color:#24292E\">$VESTTA_API_KEY\u003C\u002Fspan>\u003Cspan style=\"color:#032F62\">\"\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>",{"id":570,"label":571,"lang":570,"code":572,"html":573},"javascript","JavaScript","const response = await fetch('https:\u002F\u002Fapi.vestta.io\u002Fv1\u002Fleads?limit=20', {\n  headers: { 'X-Api-Key': process.env.VESTTA_API_KEY },\n})\n\nconst data = await response.json()","\u003Cpre class=\"shiki github-light\" style=\"background-color:#fff;color:#24292e\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan style=\"color:#D73A49\">const\u003C\u002Fspan>\u003Cspan style=\"color:#005CC5\"> response\u003C\u002Fspan>\u003Cspan style=\"color:#D73A49\"> =\u003C\u002Fspan>\u003Cspan style=\"color:#D73A49\"> await\u003C\u002Fspan>\u003Cspan style=\"color:#6F42C1\"> fetch\u003C\u002Fspan>\u003Cspan style=\"color:#24292E\">(\u003C\u002Fspan>\u003Cspan style=\"color:#032F62\">'https:\u002F\u002Fapi.vestta.io\u002Fv1\u002Fleads?limit=20'\u003C\u002Fspan>\u003Cspan style=\"color:#24292E\">, {\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan style=\"color:#24292E\">  headers: { \u003C\u002Fspan>\u003Cspan style=\"color:#032F62\">'X-Api-Key'\u003C\u002Fspan>\u003Cspan style=\"color:#24292E\">: process.env.\u003C\u002Fspan>\u003Cspan style=\"color:#005CC5\">VESTTA_API_KEY\u003C\u002Fspan>\u003Cspan style=\"color:#24292E\"> },\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan style=\"color:#24292E\">})\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan style=\"color:#D73A49\">const\u003C\u002Fspan>\u003Cspan style=\"color:#005CC5\"> data\u003C\u002Fspan>\u003Cspan style=\"color:#D73A49\"> =\u003C\u002Fspan>\u003Cspan style=\"color:#D73A49\"> await\u003C\u002Fspan>\u003Cspan style=\"color:#24292E\"> response.\u003C\u002Fspan>\u003Cspan style=\"color:#6F42C1\">json\u003C\u002Fspan>\u003Cspan style=\"color:#24292E\">()\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>",{"id":575,"label":576,"lang":575,"code":577,"html":578},"python","Python","import os\n\nimport requests\n\nresponse = requests.get(\n    \"https:\u002F\u002Fapi.vestta.io\u002Fv1\u002Fleads\",\n    headers={\"X-Api-Key\": os.environ[\"VESTTA_API_KEY\"]},\n    params={\n        \"limit\": 20,\n    },\n)\nresponse.raise_for_status()\ndata = response.json()","\u003Cpre class=\"shiki github-light\" style=\"background-color:#fff;color:#24292e\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan style=\"color:#D73A49\">import\u003C\u002Fspan>\u003Cspan style=\"color:#24292E\"> os\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan style=\"color:#D73A49\">import\u003C\u002Fspan>\u003Cspan style=\"color:#24292E\"> requests\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan style=\"color:#24292E\">response \u003C\u002Fspan>\u003Cspan style=\"color:#D73A49\">=\u003C\u002Fspan>\u003Cspan style=\"color:#24292E\"> requests.get(\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan style=\"color:#032F62\">    \"https:\u002F\u002Fapi.vestta.io\u002Fv1\u002Fleads\"\u003C\u002Fspan>\u003Cspan style=\"color:#24292E\">,\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan style=\"color:#E36209\">    headers\u003C\u002Fspan>\u003Cspan style=\"color:#D73A49\">=\u003C\u002Fspan>\u003Cspan style=\"color:#24292E\">{\u003C\u002Fspan>\u003Cspan style=\"color:#032F62\">\"X-Api-Key\"\u003C\u002Fspan>\u003Cspan style=\"color:#24292E\">: os.environ[\u003C\u002Fspan>\u003Cspan style=\"color:#032F62\">\"VESTTA_API_KEY\"\u003C\u002Fspan>\u003Cspan style=\"color:#24292E\">]},\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan style=\"color:#E36209\">    params\u003C\u002Fspan>\u003Cspan style=\"color:#D73A49\">=\u003C\u002Fspan>\u003Cspan style=\"color:#24292E\">{\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan style=\"color:#032F62\">        \"limit\"\u003C\u002Fspan>\u003Cspan style=\"color:#24292E\">: \u003C\u002Fspan>\u003Cspan style=\"color:#005CC5\">20\u003C\u002Fspan>\u003Cspan style=\"color:#24292E\">,\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan style=\"color:#24292E\">    },\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan style=\"color:#24292E\">)\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan style=\"color:#24292E\">response.raise_for_status()\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan style=\"color:#24292E\">data \u003C\u002Fspan>\u003Cspan style=\"color:#D73A49\">=\u003C\u002Fspan>\u003Cspan style=\"color:#24292E\"> response.json()\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>",1791929309678]