{"openapi":"3.1.0","info":{"title":"DealStrike API & MCP Platform","version":"1.4.1","description":"Official API and Model Context Protocol (MCP) server for DealStrike — the voice-first AI sales CRM companion for field sales teams.","contact":{"name":"DealStrike Developer Support","email":"mindmaxxxing@gmail.com","url":"https://trydealstrike.com/contact"},"license":{"name":"Proprietary"}},"servers":[{"url":"https://trydealstrike.com","description":"Production API Server"}],"paths":{"/api/voice-command":{"post":{"summary":"Asynchronous Voice Command Intake","description":"Uploads audio recording, reserves a voice job, and returns 202 Accepted immediately for background execution.","operationId":"submitVoiceCommand","requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"type":"object","properties":{"client_request_id":{"type":"string","format":"uuid","description":"Unique client-generated UUID for idempotency"},"audio":{"type":"string","format":"binary","description":"Audio recording file (webm, mp4, m4a, wav)"}},"required":["client_request_id","audio"]}}}},"responses":{"202":{"description":"Job queued successfully","content":{"application/json":{"schema":{"type":"object","properties":{"jobId":{"type":"string","format":"uuid"},"workflowRunId":{"type":"string","format":"uuid"},"status":{"type":"string","example":"queued"}}}}}},"401":{"description":"Unauthorized"},"409":{"description":"Conflict: Duplicate client_request_id"}}}},"/api/parse-intent":{"post":{"summary":"Parse Voice Transcript into CRM Actions","description":"Uses LLM decomposition with few-shot Indian business context to extract leads, tasks, follow-ups, and notes.","operationId":"parseIntent","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"transcript":{"type":"string","description":"Raw spoken transcript (English, Hindi, Hinglish)","example":"Met Sharma ji at Kharadi site, budget 80 lakh, follow up Tuesday"}},"required":["transcript"]}}}},"responses":{"200":{"description":"Parsed structured intent and executable actions","content":{"application/json":{"schema":{"type":"object","properties":{"actions":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"type":{"type":"string"},"payload":{"type":"object"},"description":{"type":"string"},"blastRadius":{"type":"string","enum":["low","medium","high"]}}}}}}}}},"401":{"description":"Unauthorized"}}}},"/api/execute-actions":{"post":{"summary":"Execute CRM Actions","description":"Executes verified CRM actions through the certified execution layer.","operationId":"executeActions","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"actions":{"type":"array","items":{"type":"object"}}},"required":["actions"]}}}},"responses":{"200":{"description":"Execution results","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object"}}}}}}}}}},"/api/mcp":{"post":{"summary":"Model Context Protocol (MCP) JSON-RPC Endpoint","description":"Handles JSON-RPC 2.0 tool calls (create_lead, query_lead, update_lead_status, schedule_followup, add_note, generate_artifact).","operationId":"mcpJsonRpc","security":[{"BearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"jsonrpc":{"type":"string","example":"2.0"},"method":{"type":"string","example":"tools/call"},"params":{"type":"object"},"id":{"type":"string","example":"1"}},"required":["jsonrpc","method"]}}}},"responses":{"200":{"description":"JSON-RPC response"},"401":{"description":"Missing or invalid MCP token"}}},"get":{"summary":"MCP Tools Manifest","description":"Returns available MCP tools list for authenticated client.","operationId":"getMcpTools","security":[{"BearerAuth":[]}],"responses":{"200":{"description":"Tools list manifest"},"401":{"description":"Missing or invalid MCP token"}}}}},"components":{"securitySchemes":{"BearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT or MCP API Token"}}}}