{"openapi":"3.1.0","info":{"title":"Content Rabbit Agent API","version":"1.0.0","description":"Agent-facing endpoints for Content Rabbit. Sign up non-interactively to mint an API key, then drive the product over the Model Context Protocol (MCP) or the public REST API (/api/public/v1/*) with `Authorization: Bearer <key>`."},"servers":[{"url":"https://contentrabbitai.com"}],"paths":{"/api/v1/agent/signup":{"post":{"operationId":"agentSignup","summary":"Provision an agent account and API key","description":"Creates a free-tier user and personal team and mints ONE API key, returned in plaintext only in this response. The server stores only a hash. Returns 409 if the email already has an account. Rate-limited per IP; no CAPTCHA, no human review.","security":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["email"],"properties":{"email":{"type":"string","format":"email","maxLength":320},"name":{"type":"string","minLength":1,"maxLength":200},"referralSource":{"type":"string","maxLength":200},"sandbox":{"type":"boolean","description":"When true, mints a sandbox key: every mutating MCP tool returns a simulated success with NO real side effect (nothing created, scheduled, published, generated, or billed). Read tools work normally."}}}}}},"responses":{"201":{"description":"Account provisioned. The API key is shown only once — store it.","content":{"application/json":{"schema":{"type":"object","properties":{"apiKey":{"type":"string","description":"Plaintext API key. Shown once."},"keyPreview":{"type":"string"},"userId":{"type":"string"},"teamId":{"type":"string"},"plan":{"type":"string","enum":["free"]},"usage":{"type":"string"}}}}}},"400":{"description":"Invalid JSON body or payload failed validation."},"403":{"description":"Email not allowed (disposable-address guard)."},"409":{"description":"An account already exists for this email."},"429":{"description":"Signup rate limit exceeded for this IP.","headers":{"Retry-After":{"schema":{"type":"string"}}}}}}},"/api/v1/mcp":{"post":{"operationId":"mcp","summary":"MCP endpoint (Streamable HTTP transport)","description":"Model Context Protocol over Streamable HTTP. Send JSON-RPC messages (initialize, tools/list, tools/call, ...). Stateless mode: no session id required. GET opens an SSE stream for server-initiated messages; DELETE closes a session. Every call is scoped to the team the API key was issued for and is rate-limited per team by plan tier.","security":[{"bearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["jsonrpc","id","method"],"properties":{"jsonrpc":{"type":"string","enum":["2.0"]},"id":{"oneOf":[{"type":"string"},{"type":"number"}]},"method":{"type":"string","enum":["initialize","tools/list","tools/call","ping"]},"params":{"type":"object"}}}}}},"responses":{"200":{"description":"JSON-RPC response."},"401":{"description":"Invalid or missing API key."},"429":{"description":"Per-team rate limit exceeded for the key's plan tier."}}}}},"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer","description":"API key obtained from POST /api/v1/agent/signup."}}}}