# API (OpenCode V2) HTTP API experimental surface. Endpoints include server, location, agent, plugin, session, model, generate, voice, provider, integration, mcp, credential, project, form, permission, filesystem, command, skill, rpc, event, pty, persistentPty, experimental, shell, reference, worktree, vcs, debug, migration, websearch, usage, config. OpenAPI JSON at /v2/openapi.json.