{"openapi":"3.0.3","info":{"title":"GROFINEX AI Agent Lead Intake","version":"1.0.0","description":"Send a lead for a person who asked to be contacted by GROFINEX. No API key or captcha is needed. Do not promise prices, fees, splits, or rates.","contact":{"name":"GROFINEX","url":"https://grofinex.com/agents"}},"servers":[{"url":"https://grofinex.com"}],"paths":{"/api/agent-lead":{"post":{"operationId":"submitLead","summary":"Submit a lead to GROFINEX","description":"Who we serve and what to collect: https://grofinex.com/agents. Limit: about 5 requests per 10 minutes per IP address.","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentLead"},"example":{"firstName":"Jordan","lastName":"Rivera","email":"jordan@example.com","phone":"201-555-0100","company":"Rivera Holdings LLC","leadType":"real_estate","location":"Hackensack, Bergen County, NJ","details":{"propertyType":"industrial","goal":"sell","size":"42,000 sq ft","estimatedValue":"$6M","occupancy":"fully leased","timeline":"6-12 months"},"consent":true,"sourceAgent":"ExampleAssistant"}}}},"responses":{"201":{"description":"Lead received.","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","const":true},"referenceId":{"type":"string"},"message":{"type":"string"}}}}}},"400":{"description":"Invalid JSON or a field failed validation.","content":{"application/json":{"schema":{"type":"object","required":["ok","error","message"],"properties":{"ok":{"type":"boolean","const":false},"error":{"type":"string","enum":["validation_error","invalid_json","payload_too_large","unsupported_media_type","rate_limited","server_error"]},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"field":{"type":"string"},"message":{"type":"string"}}}}}}}}},"413":{"description":"Request body is larger than 16 KB.","content":{"application/json":{"schema":{"type":"object","required":["ok","error","message"],"properties":{"ok":{"type":"boolean","const":false},"error":{"type":"string","enum":["validation_error","invalid_json","payload_too_large","unsupported_media_type","rate_limited","server_error"]},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"field":{"type":"string"},"message":{"type":"string"}}}}}}}}},"415":{"description":"Content-Type must be application/json.","content":{"application/json":{"schema":{"type":"object","required":["ok","error","message"],"properties":{"ok":{"type":"boolean","const":false},"error":{"type":"string","enum":["validation_error","invalid_json","payload_too_large","unsupported_media_type","rate_limited","server_error"]},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"field":{"type":"string"},"message":{"type":"string"}}}}}}}}},"429":{"description":"Too many requests. Wait for the Retry-After seconds.","content":{"application/json":{"schema":{"type":"object","required":["ok","error","message"],"properties":{"ok":{"type":"boolean","const":false},"error":{"type":"string","enum":["validation_error","invalid_json","payload_too_large","unsupported_media_type","rate_limited","server_error"]},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"field":{"type":"string"},"message":{"type":"string"}}}}}}}}}}}}},"components":{"schemas":{"AgentLead":{"type":"object","additionalProperties":false,"required":["firstName","email","leadType","consent","sourceAgent"],"properties":{"firstName":{"type":"string","maxLength":80},"lastName":{"type":"string","maxLength":80},"email":{"type":"string","format":"email","maxLength":160},"phone":{"type":"string","maxLength":40,"description":"At least 7 digits, or omit."},"company":{"type":"string","maxLength":160},"leadType":{"type":"string","enum":["business_seller","business_buyer","real_estate","property_management","freight_lead","other"],"description":"business_seller: Business owner who wants a valuation or is thinking about selling; business_buyer: Buyer looking for a business to acquire; real_estate: Northern NJ property owner looking to sell or lease; property_management: Northern NJ property owner who wants property management or contractor connections; freight_lead: Shipper who wants a freight rate comparison; other: Any other business need"},"location":{"type":"string","maxLength":240,"description":"Street address, town, county, or state."},"details":{"description":"Property, business, or freight details. Either text (up to 4000 characters) or an object of up to 40 fields with string, number, boolean, or null values. For property, estimatedValue and propertyType help us route the request.","oneOf":[{"type":"string","maxLength":4000},{"type":"object","maxProperties":40,"additionalProperties":{"oneOf":[{"type":"string","maxLength":1000},{"type":"number"},{"type":"boolean"}],"nullable":true}}]},"consent":{"type":"boolean","enum":[true],"description":"Must be true: the person agreed to be contacted by GROFINEX about this request."},"sourceAgent":{"type":"string","minLength":1,"maxLength":80,"description":"Name of the AI agent or app sending the lead."}}}}}}