Skip to main content
Call Seneca over the REST API from a backend or agent runtime, or over MCP from a client that speaks Streamable HTTP. Both use the same API key, panels, and credit ledger. Read the key from SENECA_API_KEY. Never hard-code or commit it. Prefer detail=compact unless the original question object or full provenance is explicitly required. Plain-text quickstart, no JavaScript: https://seneca.professionalaiagents.com/api.md OpenAPI: https://seneca-research.fly.dev/v1/openapi.json

Instructions for an agent

MCP

Connect the client to https://mcp.seneca.professionalaiagents.com/mcp and send Authorization: Bearer with the same seneca_sk_ key. Discover the six tools. create_research spends the panel price (Wide 15, Consensus 45, Seneca 100). get_account, get_research, get_research_result, list_model_responses, and get_model_response_text do not spend credits. Approve the panel and the cost before the agent calls create_research. The Cursor config and the tool list are on the MCP page. A2A is not available.

Python

If that program loses the 202 response, run it again with the same IDEMPOTENCY_KEY, prompt, and panel. The second call returns the same run_id.

TypeScript