API Reference
Ideon exposes a RESTful API for frontend interaction. Most endpoints require authentication via session cookies.
MCP (Model Context Protocol)
POST /api/mcp: MCP endpoint using Streamable HTTP transport. RequiresAuthorization: Bearer sk-ideon-...header. See the MCP Server guide for full documentation.
System & Health
GET /api/health: Returns the service health status.GET /api/system/version: Checks for the latest available version on GitHub.GET /api/system/changelog: Fetch the latest changelog from the GitHub repository.
Authentication
Ideon uses NextAuth.js for core authentication flows and supports OAuth 2.0 + OIDC for enterprise SSO.
POST /api/auth/register: Register a new account (if public registration is enabled).POST /api/auth/forgot-password: Request a password reset email.POST /api/auth/reset-password: Reset password using a valid token.GET /api/auth/invite?token=[token]: Validate an invitation token.GET /api/auth/me: Get the currently authenticated user's session data.GET /api/auth/settings: Get public authentication configuration (e.g., enabled OAuth providers).POST /api/auth/sso/[provider]: Initiate OAuth 2.0 flow with specified provider (e.g.,google,discord,slack).
Account Management
PATCH /api/account: Update user profile (username, display name).POST /api/account/avatar: Upload a new profile picture (multipart form, max 5MB, JPEG/PNG/WebP/GIF).GET /api/user/git-tokens: List all connected Git provider tokens.POST /api/user/git-tokens: Add a new Git provider token.PATCH /api/user/git-tokens: Enable/Disable a Git token.DELETE /api/user/git-tokens?id=[id]: Delete a Git token.GET /api/user/api-keys: List your API keys (name, hint, creation and last-use dates).POST /api/user/api-keys: Create an API key. The full key is returned once. A user can hold up to 20 keys.DELETE /api/user/api-keys/[keyId]: Revoke an API key.
API keys are accepted only by POST /api/mcp and by webhook endpoints. Other endpoints use the session cookie.
Dashboard
GET /api/dashboard: Data for the home dashboard (recent and starred items).GET /api/home/search?q=[query]: Search projects and folders by name.
Folders
GET /api/folders?view=[view]: List folders.viewcan bestarred,trash,shared, ormy-projects.POST /api/folders: Create a new folder.GET /api/folders/[id]: Get folder details.PATCH /api/folders/[id]: Update folder (rename, star, soft delete).DELETE /api/folders/[id]?permanent=[bool]: Delete a folder. Ifpermanent=true, projects are moved to root.GET /api/folders/[id]/collaborators: List folder members.POST /api/folders/[id]/collaborators: Add or update a folder collaborator.DELETE /api/folders/[id]/collaborators?userId=[id]: Remove a folder collaborator.
Users (Admin)
Requires admin or superadmin role.
GET /api/users: List all users.PATCH /api/users/[id]: Update a user's role.DELETE /api/users/[id]: Delete a user permanently.GET /api/users/search?q=[query]: Search users by email or name.POST /api/users/invite: Create and send a new user invitation.GET /api/users/invite: List all pending invitations.PUT /api/users/invite/[id]: Resend an invitation email.DELETE /api/users/invite/[id]: Revoke a pending invitation.
Projects
GET /api/projects: List all projects accessible to the user.POST /api/projects: Create a new project.GET /api/projects/[id]: Get project metadata.DELETE /api/projects/[id]: Delete a project (Owner only).POST /api/projects/[id]/open: Update the "last opened" timestamp for the project.POST /api/projects/import: Import an.ideonarchive (multipart form) as a new project. See Project archive.GET /api/projects/[id]/export: Download the project as an.ideonarchive.GET /api/projects/share/[token]: Public read-only snapshot of a shared project (name, description, blocks and links).DELETE /api/projects/trash: Empty the trash (permanently delete all soft-deleted projects and folders).
Project Graph & Content
GET /api/projects/[id]/graph: Fetch the full project graph (blocks and links).POST /api/projects/[id]/graph: Replace the graph state (used for sync).GET /api/projects/[id]/blocks: List the blocks of a project (id, type and title only).PATCH /api/projects/[id]/blocks/[blockId]: Replace a block's metadata (Editor).POSTis accepted as an alias.DELETE /api/projects/[id]/blocks/[blockId]/automation-state: Clear the automation state indicator of a block (Editor).POST /api/projects/[id]/files: Upload a file to the project.GET /api/projects/[id]/files?name=[filename]: Download/Stream a file.DELETE /api/projects/[id]/files?name=[filename]: Delete a file.
Collaboration
GET /api/projects/[id]/collaborators: List project members.POST /api/projects/[id]/collaborators: Add or update a collaborator's role.DELETE /api/projects/[id]/collaborators?userId=[id]: Remove a collaborator.
History (Temporal)
GET /api/projects/[id]/temporal?action=history: Get the list of state snapshots.POST /api/projects/[id]/temporal: Run a history action, selected with theactionfield of the body:create(new snapshot, Editor),apply(restore a state, Owner),update(rename a state or change its intent, Owner) ordelete(Owner). Sealed states cannot be modified or deleted.GET /api/projects/[id]/temporal?action=reconstruct&stateId=[id]: Revert/Preview a specific past state.
Automations
Webhook and Cron blocks are backed by automation rules. See the Automation guide.
GET /api/projects/[id]/automations: List the automation rules of a project.POST /api/projects/[id]/automations: Create a rule (Owner).GET /api/projects/[id]/automations/[ruleId]: Get a rule.PUT /api/projects/[id]/automations/[ruleId]: Update a rule, enable or disable it, or regenerate its secret (Owner).DELETE /api/projects/[id]/automations/[ruleId]: Delete a rule (Owner).GET /api/projects/[id]/automations/[ruleId]/logs: Read the execution log of a rule.POST /api/projects/[id]/automations/[ruleId]/trigger: Run a rule manually (Owner).POST /webhooks/[projectId]/[blockId]: Public webhook endpoint of a Webhook block. Authenticated with an HMAC signature, a shared secret or an API key.
Audit, Records & Provenance
See the Audit Trail guide.
GET /api/projects/[id]/audit: Read the hash-chained audit events (Owner). Supportslimit,before,actionanduserId.GET /api/projects/[id]/audit/verify: Verify the audit hash chain (Owner).GET /api/projects/[id]/records: Get the current official record (seal) and its integrity status.POST /api/projects/[id]/records/seal: Seal a state as an official record (Editor).GET /api/projects/[id]/records/delta: Compare the live canvas with the current seal.GET /api/projects/[id]/provenance?blockId=[id]: Creation and modification history of a block.POST /api/projects/[id]/instrument/dossier: Generate the dossier archive for a seal (Editor).
Repository Sync
See the Git Repository Sync guide.
GET /api/projects/[id]/repository-sync: Read the repository settings (Owner).PATCH /api/projects/[id]/repository-sync: Set the repository URL, branch, path and username (Owner).DELETE /api/projects/[id]/repository-sync: Remove the repository link (Owner).POST /api/projects/[id]/repository-sync?mode=[mode]: Import a repository ZIP.modeismanual,git-winsorideon-wins.POST /api/projects/[id]/repository-sync/remote?mode=[mode]: Synchronize with the configured remote repository.GET /api/projects/[id]/repository-sync/export: Download the repository bundle.
Sharing & Access
GET /api/projects/[id]/share: Get sharing status and public link details (Owner only).POST /api/projects/[id]/share: Generate a new public share link (Owner only).PATCH /api/projects/[id]/share: Toggle public sharing on/off (Owner only).DELETE /api/projects/[id]/share: Revoke the public share link (Owner only).POST /api/projects/[id]/request-access: Request access to a project.GET /api/projects/[id]/request-access: Check the status of your access request.GET /api/projects/[id]/requests: List pending access requests (Owner only).PATCH /api/projects/[id]/requests: Approve or reject access requests (Owner only).
Vercel
Used by the Vercel block. All endpoints require a session.
GET /api/vercel/authorizeandGET /api/vercel/callback: OAuth connection flow.GET|POST|DELETE /api/vercel/token: Read, store or remove the Vercel access token.GET|POST /api/vercel/projects: List or link Vercel projects.GET|POST|DELETE|PATCH /api/vercel/deployments: List, create, cancel and promote deployments.GET /api/vercel/deployments/[deploymentId]/logs: Deployment logs.GET|POST /api/vercel/projects/[projectId]/envandDELETE /api/vercel/projects/[projectId]/env/[envId]: Environment variables.GET /api/vercel/projects/[projectId]/domainsandGET /api/vercel/projects/[projectId]/domains/[domain]/config: Domains and DNS configuration.GET /api/vercel/projects/[projectId]/previews: Preview deployments.POST /api/vercel/projects/[projectId]/protection: Generate a deployment protection bypass.
Management (Admin)
GET /api/management/audit: Retrieve system audit logs.GET /api/management/auth: Get sensitive auth configuration (SSO settings, etc.).POST /api/management/auth: Update auth configuration.POST /api/management/auth/test-smtp: Send a test email to verify SMTP settings.
Utilities
POST /api/links/preview: Fetch OpenGraph metadata for a URL (protected against SSRF). Body:{ url: string }. Returns:{ title, description, image }.GET /api/git/stats?url=[url]: Fetch repository statistics (stars, releases, commits, issues, contributors) for a Git repository. Respects user Git tokens for private/self-hosted repos.POST /api/plantuml/render: Render PlantUML source to SVG through the configuredPLANTUML_SERVER_URL. Returns424when no server is configured or reachable.GET /api/proxy/image?url=[url]: Proxy image requests to avoid CORS issues and provide SSRF protection. Returns the proxied image with appropriate headers.