{"openapi":"3.1.0","info":{"title":"My Wreck Check agent API","version":"1.0.0","summary":"Public endpoints of My Wreck Check for AI agents acting for a person.","description":"My Wreck Check is an information and referral service: Free tools that show what your crash claim is actually worth, how long you have to file in your state, how your share of the fault changes what you can recover, and whether the offer on the table is low. Nobody contacts you unless you choose them.\n\nRead https://mywreckcheck.com/agents.md first. It explains when an agent may help a person request contact, and the rules: only at the person's request, only their own details, and only after they agree, in their own words, to consent text shown word for word.\n\nRequests submitted by AI agents are HELD for review: they are stored with their consent evidence, and no company receives them until the site operator reviews them.\n\nRate limits per IP: GET /api/agent/form and POST /api/agent/match 30 requests per 10 minutes per IP (default); POST /api/agent/lead 3 requests per hour per IP (default); /mcp 60 requests per 60 seconds.","contact":{"name":"My Wreck Check","email":"netanel@gtmagentcy.com","url":"https://mywreckcheck.com"}},"servers":[{"url":"https://mywreckcheck.com"}],"externalDocs":{"description":"agents.md: how AI agents may use this site","url":"https://mywreckcheck.com/agents.md"},"paths":{"/api/agent/form":{"get":{"operationId":"getAgentForm","summary":"What a topic asks, the contact formats, and whether it takes requests now","description":"Without `hub`: the topics that take requests and their form URLs. With `hub`: every question (id, label, why it's asked, type, options as {value, label}, required), the contact fields and their formats, `acceptingRequests` and, when false, `tellThePerson`.","parameters":[{"name":"hub","in":"query","required":false,"schema":{"type":"string"},"description":"Topic slug, from the list returned without `hub`."}],"responses":{"200":{"description":"The form, or the list of topics.","content":{"application/json":{"schema":{"type":"object"}}}},"404":{"description":"Unknown or closed topic.","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"const":false},"error":{"type":"string"},"field":{"type":"string"},"tellThePerson":{"type":"string"}},"required":["ok","error"]}}}},"429":{"description":"Rate limited.","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"const":false},"error":{"type":"string"},"field":{"type":"string"},"tellThePerson":{"type":"string"}},"required":["ok","error"]}}}}}}},"/api/agent/match":{"post":{"operationId":"matchCompanies","summary":"The companies that serve the person, with the exact consent texts to show","description":"Read-only. Returns the same company cards as the website (with `paidPartner` labels), the free options in `alwaysShow`, `shareConsent.text` and each company's `consentText`, which must be shown to the person word for word before any request is submitted.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"hub":{"type":"string","minLength":1,"maxLength":80},"state":{"type":"string","enum":["AL","AK","AZ","AR","CA","CO","CT","DE","DC","FL","GA","HI","ID","IL","IN","IA","KS","KY","LA","ME","MD","MA","MI","MN","MS","MO","MT","NE","NV","NH","NJ","NM","NY","NC","ND","OH","OK","OR","PA","RI","SC","SD","TN","TX","UT","VT","VA","WA","WV","WI","WY"]},"answers":{"default":{},"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":["string","number","boolean"]}}},"required":["hub","state"]}}}},"responses":{"200":{"description":"Eligibility, companies and consent texts.","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Invalid request (the error names the field).","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"const":false},"error":{"type":"string"},"field":{"type":"string"},"tellThePerson":{"type":"string"}},"required":["ok","error"]}}}},"403":{"description":"This site or topic does not take requests from AI agents.","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"const":false},"error":{"type":"string"},"field":{"type":"string"},"tellThePerson":{"type":"string"}},"required":["ok","error"]}}}},"404":{"description":"Unknown or closed topic.","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"const":false},"error":{"type":"string"},"field":{"type":"string"},"tellThePerson":{"type":"string"}},"required":["ok","error"]}}}},"429":{"description":"Rate limited.","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"const":false},"error":{"type":"string"},"field":{"type":"string"},"tellThePerson":{"type":"string"}},"required":["ok","error"]}}}},"503":{"description":"The request service is not configured.","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"const":false},"error":{"type":"string"},"field":{"type":"string"},"tellThePerson":{"type":"string"}},"required":["ok","error"]}}}}}}},"/api/agent/lead":{"post":{"operationId":"submitRequest","summary":"Submit a person's request (HELD for review)","description":"Only when the person asked for it, with their own details, after they agreed in their own words to the consent texts from /api/agent/match shown word for word. The server re-renders every consent text and stores it with a SHA-256 fingerprint, the agent's name and the person's words. The request is HELD: stored for review, nothing reaches a company, and `held` is true in the response.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"hub":{"type":"string","minLength":1,"maxLength":80},"answers":{"default":{},"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":["string","number","boolean"]}},"contact":{"type":"object","properties":{"firstName":{"type":"string","minLength":1,"maxLength":80},"lastName":{"type":"string","minLength":1,"maxLength":80},"email":{"type":"string","format":"email","pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"},"phone":{"type":"string","pattern":"^\\+1\\d{10}$"},"zip":{"type":"string","pattern":"^\\d{5}$"},"state":{"type":"string","enum":["AL","AK","AZ","AR","CA","CO","CT","DE","DC","FL","GA","HI","ID","IL","IN","IA","KS","KY","LA","ME","MD","MA","MI","MN","MS","MO","MT","NE","NV","NH","NJ","NM","NY","NC","ND","OH","OK","OR","PA","RI","SC","SD","TN","TX","UT","VT","VA","WA","WV","WI","WY"]}},"required":["firstName","lastName","email","phone","zip","state"]},"vendorIds":{"minItems":1,"maxItems":10,"type":"array","items":{"type":"string","minLength":1}},"agent":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":120},"url":{"type":"string","maxLength":500,"format":"uri"}},"required":["name"]},"consent":{"type":"object","properties":{"shownVerbatim":{"type":"boolean"},"userStatement":{"type":"string","minLength":2,"maxLength":1000},"agreedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["shownVerbatim","userStatement","agreedAt"]}},"required":["hub","contact","vendorIds","agent","consent"]}}}},"responses":{"200":{"description":"Stored. Relay `tellThePerson` to the person.","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"const":true},"leadId":{"type":"string"},"held":{"type":"boolean"},"deliveries":{"type":"array","items":{"type":"object"}},"tellThePerson":{"type":"string"}},"required":["ok","held","tellThePerson"]}}}},"400":{"description":"Invalid request (the error names the field).","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"const":false},"error":{"type":"string"},"field":{"type":"string"},"tellThePerson":{"type":"string"}},"required":["ok","error"]}}}},"403":{"description":"This site or topic does not take requests from AI agents.","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"const":false},"error":{"type":"string"},"field":{"type":"string"},"tellThePerson":{"type":"string"}},"required":["ok","error"]}}}},"404":{"description":"Unknown or closed topic.","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"const":false},"error":{"type":"string"},"field":{"type":"string"},"tellThePerson":{"type":"string"}},"required":["ok","error"]}}}},"409":{"description":"A chosen company is not eligible for this request.","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"const":false},"error":{"type":"string"},"field":{"type":"string"},"tellThePerson":{"type":"string"}},"required":["ok","error"]}}}},"422":{"description":"The person is not eligible (see reasons).","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"const":false},"error":{"type":"string"},"field":{"type":"string"},"tellThePerson":{"type":"string"}},"required":["ok","error"]}}}},"429":{"description":"Rate limited.","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"const":false},"error":{"type":"string"},"field":{"type":"string"},"tellThePerson":{"type":"string"}},"required":["ok","error"]}}}},"503":{"description":"The request service is not configured.","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"const":false},"error":{"type":"string"},"field":{"type":"string"},"tellThePerson":{"type":"string"}},"required":["ok","error"]}}}}}}},"/mcp":{"get":{"operationId":"describeMcpServer","summary":"MCP server description (serverInfo, protocolVersion, tools)","responses":{"200":{"description":"Server description.","content":{"application/json":{"schema":{"type":"object"}}}}}},"post":{"operationId":"mcpJsonRpc","summary":"MCP Streamable HTTP endpoint (stateless JSON-RPC 2.0, read-only tools)","description":"Methods: initialize, ping, tools/list, tools/call. Tools are read-only; the server cannot submit a request for a person.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"jsonrpc":{"const":"2.0"},"id":{"type":["string","integer","null"]},"method":{"type":"string"},"params":{"type":"object"}},"required":["jsonrpc","method"]}}}},"responses":{"200":{"description":"JSON-RPC response.","content":{"application/json":{"schema":{"type":"object"}}}},"202":{"description":"Notification accepted."},"429":{"description":"Rate limited.","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"const":false},"error":{"type":"string"},"field":{"type":"string"},"tellThePerson":{"type":"string"}},"required":["ok","error"]}}}}}}}}}