# CodeCobra ## Docs - [Add Project Repository](https://docs.codecobra.ai/api-reference/public/add-project-repository.md): Add a repository to a project. - [Agent Create Pr](https://docs.codecobra.ai/api-reference/public/agent-create-pr.md): Agent-driven PR opening proxy. - [Check Ci](https://docs.codecobra.ai/api-reference/public/check-ci.md): Synthetic-turn shortcut: ask the agent to verify CI on the task's PRs. - [Create Project](https://docs.codecobra.ai/api-reference/public/create-project.md): Create a new project with optional repositories. Can be personal or org-owned. - [Create Task](https://docs.codecobra.ai/api-reference/public/create-task.md): Create a new task. - [Download Addons Zip](https://docs.codecobra.ai/api-reference/public/download-addons-zip.md): Stream a ZIP archive of the task's user-addons directory. - [Download Invoice Pdf](https://docs.codecobra.ai/api-reference/public/download-invoice-pdf.md): Download invoice/receipt PDF. Tries Odoo first, falls back to Stripe. - [Ensure Pod](https://docs.codecobra.ai/api-reference/public/ensure-pod.md): Ensure the task has a healthy pod, provisioning one if needed. - [Get Attachment Content](https://docs.codecobra.ai/api-reference/public/get-attachment-content.md): Serve the raw binary content of an attachment (for inline display). - [Get Auto Reload](https://docs.codecobra.ai/api-reference/public/get-auto-reload.md): Get auto-reload settings. - [Get Billing Status](https://docs.codecobra.ai/api-reference/public/get-billing-status.md): Get user's billing status, verified against Stripe. - [Get Composer Prefs](https://docs.codecobra.ai/api-reference/public/get-composer-prefs.md): Return the current user's composer prefs for this project. Missing row → all defaults (toggles off, model/env fields null). The frontend calls this on project open to pick the default state for a fresh task. - [Get Current User Profile](https://docs.codecobra.ai/api-reference/public/get-current-user-profile.md) - [Get Feedback Limits](https://docs.codecobra.ai/api-reference/public/get-feedback-limits.md): Return feedback attachment limits for the frontend to validate uploads. - [Get Global Usage](https://docs.codecobra.ai/api-reference/public/get-global-usage.md): Get token usage stats across all user projects, optionally filtered to one project. - [Get Invoices](https://docs.codecobra.ai/api-reference/public/get-invoices.md): Return unified billing history: Stripe payments + Odoo monthly invoices + credit grants. - [Get Organization](https://docs.codecobra.ai/api-reference/public/get-organization.md): Get organization details. Must be a member. - [Get Organization Usage](https://docs.codecobra.ai/api-reference/public/get-organization-usage.md): Org-wide token usage, one row per Claude API call. - [Get Plan Revision](https://docs.codecobra.ai/api-reference/public/get-plan-revision.md): Fetch one specific plan revision's content by version number. - [Get Plan Revisions](https://docs.codecobra.ai/api-reference/public/get-plan-revisions.md): List every plan revision for a task (metadata only — no content). - [Get Project](https://docs.codecobra.ai/api-reference/public/get-project.md): Get a specific project. - [Get Project Permissions](https://docs.codecobra.ai/api-reference/public/get-project-permissions.md): Get the current user's permissions for a specific project. - [Get Project Usage](https://docs.codecobra.ai/api-reference/public/get-project-usage.md): Get token usage stats for a project, grouped by day and model. - [Get Task](https://docs.codecobra.ai/api-reference/public/get-task.md): Get a specific task. - [Get Task Dev Todo](https://docs.codecobra.ai/api-reference/public/get-task-dev-todo.md): Return the current state of this task's planner→dev hand-off checklist. Used by the chat UI to seed the inline TodoListCard on page load; live updates come through the SSE stream piggy-backed on Edit/Write tool calls that touch this file. - [Get Task Messages](https://docs.codecobra.ai/api-reference/public/get-task-messages.md): Get all messages for a task. - [Get Task Plan](https://docs.codecobra.ai/api-reference/public/get-task-plan.md): Get the current plan document for a task. - [Get Task Stream Status](https://docs.codecobra.ai/api-reference/public/get-task-stream-status.md): Lightweight check for whether a task has an active or recent stream. The frontend calls this BEFORE attempting a full reconnect to avoid flashing a "Reconnecting..." UI when there's nothing to reconnect to. - [Get Task Usage Export](https://docs.codecobra.ai/api-reference/public/get-task-usage-export.md): Export model usage grouped by model for one task. - [Get Team](https://docs.codecobra.ai/api-reference/public/get-team.md): Get team details. Any member can view. - [Get Transactions](https://docs.codecobra.ai/api-reference/public/get-transactions.md): Return recent billing transactions (local + Odoo-sourced). - [Get Usage Export Since](https://docs.codecobra.ai/api-reference/public/get-usage-export-since.md): Export all usage rows since a datetime for visible personal + org projects. - [Github App Info](https://docs.codecobra.ai/api-reference/public/github-app-info.md): Public info about the configured GitHub App. - [Github Connection Status](https://docs.codecobra.ai/api-reference/public/github-connection-status.md): Check if user has connected GitHub. - [List Github Installations](https://docs.codecobra.ai/api-reference/public/list-github-installations.md): List every App installation the user can see. - [List Github Repositories](https://docs.codecobra.ai/api-reference/public/list-github-repositories.md): List every repo the user can access via the GitHub App. - [List Invitations](https://docs.codecobra.ai/api-reference/public/list-invitations.md): List pending invitations. Owner/admin only. - [List My Pending Invitations](https://docs.codecobra.ai/api-reference/public/list-my-pending-invitations.md): List pending invitations for the current signed-in user. - [List Org Members](https://docs.codecobra.ai/api-reference/public/list-org-members.md): List organization members. Any member can view. - [List Organizations](https://docs.codecobra.ai/api-reference/public/list-organizations.md): List organizations the current user belongs to. - [List Project Tasks](https://docs.codecobra.ai/api-reference/public/list-project-tasks.md): List all tasks for a project. - [List Projects](https://docs.codecobra.ai/api-reference/public/list-projects.md): List projects: personal projects + org projects visible via teams. - [List Repository Branches](https://docs.codecobra.ai/api-reference/public/list-repository-branches.md): List branches for a repository. - [List Tasks](https://docs.codecobra.ai/api-reference/public/list-tasks.md): List tasks, optionally filtered by project or organization. - [List Team Members](https://docs.codecobra.ai/api-reference/public/list-team-members.md): List members of a team. Any org member can view. - [List Team Projects](https://docs.codecobra.ai/api-reference/public/list-team-projects.md): List projects assigned to a team. Any org member can view. - [List Teams](https://docs.codecobra.ai/api-reference/public/list-teams.md): List teams in the organization. Any member can view. - [Odoo Login Url For Task](https://docs.codecobra.ai/api-reference/public/odoo-login-url-for-task.md): Get a one-time autologin URL for the Odoo instance on the task's pod. - [Odoo Status For Task](https://docs.codecobra.ai/api-reference/public/odoo-status-for-task.md): Proxy endpoint to check whether Odoo is running on the task's K8s pod. - [Odoo Users For Task](https://docs.codecobra.ai/api-reference/public/odoo-users-for-task.md): List all internal Odoo users on the task's pod. - [Org Add Funds](https://docs.codecobra.ai/api-reference/public/org-add-funds.md): Manually top up the org's balance. Owner-only. Uses the supplied payment method or falls back to the org's default. - [Org Attach Payment Method](https://docs.codecobra.ai/api-reference/public/org-attach-payment-method.md): Attach a Stripe payment method to the organization. Owner-only. Idempotent: re-attaching an existing payment method just flips `is_active=True` and re-stamps `attached_by_user_id`. - [Org Detach Payment Method](https://docs.codecobra.ai/api-reference/public/org-detach-payment-method.md): Detach (soft-delete) a payment method from the organization. Owner-only. Clears the default-PM pointer if this was the default. - [Org Get Billing](https://docs.codecobra.ai/api-reference/public/org-get-billing.md): Get organization billing summary. Owner/admin sees full payment-method detail; member-role users get a redacted view (balance + usage only). - [Org Get Transactions](https://docs.codecobra.ai/api-reference/public/org-get-transactions.md): Get organization billing transactions. Owner/admin only. - [Org Get Usage](https://docs.codecobra.ai/api-reference/public/org-get-usage.md): Get organization usage data with optional user and project filters. - [Org Github Status](https://docs.codecobra.ai/api-reference/public/org-github-status.md): Check GitHub connection status for organization. - [Org List Github Repositories](https://docs.codecobra.ai/api-reference/public/org-list-github-repositories.md): List GitHub repositories accessible via org's GitHub installation. - [Org List Payment Methods](https://docs.codecobra.ai/api-reference/public/org-list-payment-methods.md): List attached org payment methods. Owners see full card detail; non-owner members only learn whether the org has cards attached. - [Org List Repository Branches](https://docs.codecobra.ai/api-reference/public/org-list-repository-branches.md): List branches of a repository via org's GitHub token. - [Org Update Billing Settings](https://docs.codecobra.ai/api-reference/public/org-update-billing-settings.md): Update an org's billing settings: billing email, auto-reload thresholds and amount, default payment method. Owner-only. - [Patch Task](https://docs.codecobra.ai/api-reference/public/patch-task.md): Update an empty task. Currently supports moving the task into a different project, which: - [Preview Invoice](https://docs.codecobra.ai/api-reference/public/preview-invoice.md): Return Odoo portal URL for invoice preview, with Stripe fallback for payments. - [Reconnect Task Stream](https://docs.codecobra.ai/api-reference/public/reconnect-task-stream.md): Reconnect to an active SSE stream for a task. If a stream is currently in progress (or recently finished), replays all buffered events and then subscribes to live events until the stream ends. Returns 204 if no active stream exists for this task. - [Restore Plan Revision](https://docs.codecobra.ai/api-reference/public/restore-plan-revision.md): Mark an existing revision as the current plan. - [Send Task Message](https://docs.codecobra.ai/api-reference/public/send-task-message.md): Send a message to a task's chat. Saves the user message, calls the agent on the K8s pod, proxies the SSE stream back to the frontend, and saves the assistant response on completion. - [Start Odoo For Task](https://docs.codecobra.ai/api-reference/public/start-odoo-for-task.md): Proxy endpoint to start/restart Odoo on the task's K8s pod. - [Stop Odoo For Task](https://docs.codecobra.ai/api-reference/public/stop-odoo-for-task.md): Proxy endpoint to stop Odoo on the task's K8s pod. - [Stop Task Stream](https://docs.codecobra.ai/api-reference/public/stop-task-stream.md): Request cancellation of an active stream for a task. Signals the agent to stop gracefully, then sets a Redis flag as a fallback. The agent will emit a final 'done' event with stopped=true, which the proxy loop reads naturally before finishing. Returns 200 on success, 404 if no active stream. - [Submit Task Answer](https://docs.codecobra.ai/api-reference/public/submit-task-answer.md): Forward the user's answers to an AskUserQuestion tool call to the agent. The agent's can_use_tool callback is waiting for this answer to continue. - [Task Heartbeat](https://docs.codecobra.ai/api-reference/public/task-heartbeat.md): Called periodically by the frontend while the user is viewing a task. Updates last_activity_at on the assigned pod to prevent idle reaping. In operator mode, also patches Session CR lastActivityAt to reset the Kopf per-Session idle timer. - [Update Composer Prefs](https://docs.codecobra.ai/api-reference/public/update-composer-prefs.md): Upsert the current user's composer prefs for this project. Every field is independently optional — omitted fields preserve their current value. ``clear_fields`` lets the caller explicitly blank a column back to NULL (otherwise the missing-vs-null ambiguity on JSON decode would prevent that). - [Update Project](https://docs.codecobra.ai/api-reference/public/update-project.md): Update a project. If `repositories` is provided, replaces all repos. - [Update Task Plan](https://docs.codecobra.ai/api-reference/public/update-task-plan.md): Replace the current plan with a new revision. - [Upload Task Attachments](https://docs.codecobra.ai/api-reference/public/upload-task-attachments.md): Upload files for current task chat context. - [Manage payment methods](https://docs.codecobra.ai/billing/manage-payments.md): Add, remove, and manage your credit cards and payment methods. - [Billing](https://docs.codecobra.ai/billing/overview.md): Understand how billing works in CodeCobra. - [Create your account](https://docs.codecobra.ai/getting-started/create-account.md): Sign up for CodeCobra and set up your profile. - [Quickstart](https://docs.codecobra.ai/getting-started/quickstart.md): Go from sign-up to your first Odoo customization in minutes. - [Welcome to CodeCobra](https://docs.codecobra.ai/index.md): Build custom Odoo modules by describing what you need — CodeCobra handles the development for you. - [Members and roles](https://docs.codecobra.ai/organizations/members-and-roles.md): Invite team members to your organization and manage their access levels. - [Organizations](https://docs.codecobra.ai/organizations/overview.md): Collaborate with your team by creating an organization. - [Teams](https://docs.codecobra.ai/organizations/teams.md): Organize members into teams with specific permissions for projects. - [Create a project](https://docs.codecobra.ai/projects/create-project.md): Set up a new project for your Odoo customizations. - [GitHub integration](https://docs.codecobra.ai/projects/github-integration.md): Connect your GitHub repositories to deploy Odoo modules directly from CodeCobra. - [Connect an Odoo environment](https://docs.codecobra.ai/projects/odoo-environments.md): Step-by-step guide to giving CodeCobra access to a real Odoo instance over MCP. - [Projects](https://docs.codecobra.ai/projects/overview.md): Organize your Odoo customizations into projects. - [Settings](https://docs.codecobra.ai/settings.md): Configure your CodeCobra account, profile, appearance, and notifications. - [Support](https://docs.codecobra.ai/support.md): Get help, report issues, or contact the CodeCobra team. - [Create a task](https://docs.codecobra.ai/tasks/create-task.md): Start a new task within a project to explore Odoo features or build a customization. - [Explore and learn Odoo](https://docs.codecobra.ai/tasks/explore-odoo.md): Use CodeCobra to discover Odoo features, understand how modules work, and get answers about your Odoo instance before making any changes. - [Tasks](https://docs.codecobra.ai/tasks/overview.md): Understand how tasks work — the core of the CodeCobra workflow. - [Plan and develop](https://docs.codecobra.ai/tasks/plan-and-develop.md): Walk through the planning and development workflow for a task in detail. - [Review and deploy](https://docs.codecobra.ai/tasks/review-and-deploy.md): Merge your changes to staging and production, or download them as a ZIP. ## OpenAPI Specs - [openapi](https://docs.codecobra.ai/openapi.json)