API Reference
Complete reference for all Elba endpoints. All agent-facing endpoints return JSON with CORS headers and are publicly accessible.
Base URL: https://useelba.com
Spec Management
Create, read, update, and manage your AgentSpecs.
/api/generateGenerate a new AgentSpec from raw text or OpenAPI input. Automatically extracts capabilities and reasoning docs.
- input (string) — API description, OpenAPI spec, or plain English
AgentSpec object with id, actions, capabilities, and docs/api/docsCORSList all specs. Returns an array of AgentSpec objects sorted by creation date.
AgentSpec[]/api/spec/{id}CORSGet a single spec by ID. Returns the full AgentSpec with all actions and metadata.
- id (path) — Spec ID
AgentSpec object/api/spec/{id}/updateUpdate spec name and description without regenerating.
- name (string, optional) — New name
- description (string, optional) — New description
Updated AgentSpec object/api/spec/{id}/add-actionGenerate and add a new action to an existing spec using AI.
- description (string) — What the new action should do
{ action: AgentAction, spec: AgentSpec }/api/spec/{id}/regenerate-actionRegenerate an existing action with improved documentation using AI.
- actionName (string) — Name of the action to regenerate
{ action: AgentAction, spec: AgentSpec }/api/spec/{id}/remove-actionRemove an action from a spec. Cannot remove the last action.
- actionName (string) — Name of the action to remove
{ removed: string, spec: AgentSpec }Publishing
Publish specs to custom subdomains.
/api/publishPublish a spec to a custom subdomain. Validates subdomain uniqueness.
- id (string) — Spec ID
- subdomain (string) — Desired subdomain
- siteTitle (string, optional) — Site display title
- brandColor (string, optional) — Hex color
- isPublic (boolean, optional) — Visibility
Updated AgentSpec object (409 if subdomain taken)/api/subdomain-checkCheck if a subdomain is available.
- subdomain (query) — Subdomain to check
- excludeId (query, optional) — Spec ID to exclude
{ available: boolean, subdomain: string }Agent Discovery
Endpoints agents use to find and understand your API.
/.well-known/agent.jsonCORSWell-known agent discovery endpoint. Lists all published specs with capabilities and discovery URLs.
Agent discovery manifest with tools array/api/agent/{id}CORSPer-spec agent.json with full details. Tracks agent_fetch analytics events.
- id (path) — Spec ID
Agent JSON payload with version, capabilities, actions, and discovery URLs/api/mcp/{id}CORSMCP server config for a spec. Each action becomes a typed MCP tool.
- id (path) — Spec ID
MCP server config with tools and input schemas/api/registryCORSFull tool registry. Lists all specs with capabilities.
{ tools: [{ name, description, capabilities, agent_json_url }] }/api/agent-searchCORSSearch specs by capability. Weighted scoring by name (10x), capability (8x), description (5x), action (4x).
- q (query) — Search query
{ tools: [{ name, description, capabilities, score, agent_json_url }] }/llms.txtLLM context file listing all APIs, endpoints, and capabilities. Follows the emerging llms.txt standard.
Plain textEmbed & Analytics
Embed your docs anywhere and track usage.
/api/embed/{id}JavaScript snippet that renders an embeddable iframe of your spec. Include as a script tag on any page.
- id (path) — Spec ID
application/javascript/api/analytics/{id}Get analytics for a spec — views, agent fetches, search hits, MCP downloads.
- id (path) — Spec ID
{ views, agent_fetches, search_hits, mcp_fetches, total, last_accessed }/api/dashboardAggregated analytics across all specs.
{ specs: [{ id, name, published, subdomain, analytics }] }Playground
Execute prompts against a spec.
/api/runRun a natural language prompt against a spec. Maps the prompt to an action and returns mock output.
- prompt (string) — Natural language prompt
- specId (string) — Spec ID
{ action: string, inputs: object, output: object }/api/searchHuman-facing search. Returns specs matching a query.
- query (string) — Search query
{ results: [{ doc_id, name, description, capabilities, score }] }Related documentation
Last updated: April 2, 2026