{"openapi":"3.1.0","info":{"title":"DLRadar Negotiator API","version":"1.0.0","description":"Talk to the DLRadar Negotiator. Register once, then talk to it with a Bearer key. Also speaks OpenAI chat-completions, Anthropic messages, MCP and A2A."},"servers":[{"url":"https://www.dlradar.com/agent"}],"components":{"securitySchemes":{"bearer":{"type":"http","scheme":"bearer"}}},"paths":{"/agents/register":{"post":{"summary":"Register an agent and get an API key","requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["name"],"properties":{"name":{"type":"string"},"operator":{"type":"string"},"contact_url":{"type":"string"}}}}}},"responses":{"200":{"description":"agent_id + api_key (shown once)"}}}},"/agents/me":{"get":{"security":[{"bearer":[]}],"summary":"Agent identity and open offers","responses":{"200":{"description":"ok"}}}},"/negotiate":{"post":{"security":[{"bearer":[]}],"summary":"Send a message to the DLRadar Negotiator","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"},"messages":{"type":"array","items":{"type":"object","properties":{"role":{"type":"string"},"content":{"type":"string"}}}},"conversation_id":{"type":"string"}}}}}},"responses":{"200":{"description":"reply, conversation_id, offers"}}}},"/v1/chat/completions":{"post":{"security":[{"bearer":[]}],"summary":"OpenAI-compatible chat","responses":{"200":{"description":"chat.completion"}}}},"/v1/messages":{"post":{"security":[{"bearer":[]}],"summary":"Anthropic-compatible messages","responses":{"200":{"description":"message"}}}},"/mcp":{"post":{"security":[{"bearer":[]}],"summary":"Model Context Protocol (JSON-RPC 2.0)","responses":{"200":{"description":"jsonrpc"}}}},"/a2a":{"post":{"security":[{"bearer":[]}],"summary":"A2A tasks/send","responses":{"200":{"description":"task"}}}},"/catalog":{"get":{"summary":"Every package and the 3 subscription bundles with price, scope, as-of date and how to buy (public)","responses":{"200":{"description":"catalog"}}}},"/quote":{"get":{"summary":"Live quote for a package and geography: record count, as-of date, negotiated price if offer= is passed (public)","parameters":[{"name":"product","in":"query","required":true,"schema":{"type":"string"}},{"name":"state","in":"query","schema":{"type":"string"}},{"name":"county","in":"query","schema":{"type":"string"}},{"name":"bank","in":"query","schema":{"type":"string"}},{"name":"level","in":"query","schema":{"type":"string"}},{"name":"key","in":"query","schema":{"type":"string"}},{"name":"offer","in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"quote"}}}},"/checkout":{"post":{"security":[{"bearer":[]}],"summary":"Buy a package (no subscription needed): Stripe checkout URL + order_id","requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["product_key"],"properties":{"product_key":{"type":"string"},"state":{"type":"string"},"county":{"type":"string"},"bank":{"type":"string"},"level":{"type":"string"},"key":{"type":"string"},"offer_id":{"type":"string"}}}}}},"responses":{"200":{"description":"pay_url, order_id, price_cents"}}}},"/checkout/bundle":{"post":{"security":[{"bearer":[]}],"summary":"Subscribe to an application bundle: Stripe checkout URL","requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["bundle_key"],"properties":{"bundle_key":{"type":"string","enum":["bundle_1","bundle_2","bundle_3"]},"offer_id":{"type":"string"}}}}}},"responses":{"200":{"description":"pay_url"}}}},"/orders":{"get":{"security":[{"bearer":[]}],"summary":"This agent's orders with status and download URL","responses":{"200":{"description":"orders"}}}},"/orders/{order_id}/download":{"get":{"security":[{"bearer":[]}],"summary":"Download the paid file (CSV or zip); 402 until paid","parameters":[{"name":"order_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"file"},"402":{"description":"not paid yet"}}}}}}