> ## Documentation Index
> Fetch the complete documentation index at: https://docs.codecobra.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Odoo Login Url For Task

> Get a one-time autologin URL for the Odoo instance on the task's pod.

The returned URL sets the session cookie and redirects to /web, so the
user is transparently logged in when the iframe loads this URL.
Accepts an optional ``login`` query param to specify the Odoo user.

Returns 423 (Locked) while the app is mid-development (``app_ready``
is false) — the preview unlocks when the agent's tests go green. This
is the server-side half of the gate; the frontend mirrors it on the
Preview pill.



## OpenAPI

````yaml /openapi.json get /api/tasks/{task_id}/odoo-login-url
openapi: 3.1.0
info:
  description: >-
    Public CodeCobra API. Authenticate by sending a personal API key in the
    `Authorization: Bearer <key>` header. Generate keys from Settings → API keys
    in the CodeCobra dashboard.
  title: CodeCobra Public API
  version: 1.0.0
servers: []
security: []
paths:
  /api/tasks/{task_id}/odoo-login-url:
    get:
      tags:
        - public
      summary: Odoo Login Url For Task
      description: |-
        Get a one-time autologin URL for the Odoo instance on the task's pod.

        The returned URL sets the session cookie and redirects to /web, so the
        user is transparently logged in when the iframe loads this URL.
        Accepts an optional ``login`` query param to specify the Odoo user.

        Returns 423 (Locked) while the app is mid-development (``app_ready``
        is false) — the preview unlocks when the agent's tests go green. This
        is the server-side half of the gate; the frontend mirrors it on the
        Preview pill.
      operationId: odoo_login_url_for_task_api_tasks__task_id__odoo_login_url_get
      parameters:
        - in: path
          name: task_id
          required: true
          schema:
            format: uuid
            title: Task Id
            type: string
        - in: query
          name: login
          required: false
          schema:
            default: admin
            title: Login
            type: string
      responses:
        '200':
          content:
            application/json:
              schema: {}
          description: Successful Response
        '422':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
          description: Validation Error
      security:
        - HTTPBearer: []
components:
  schemas:
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          title: Detail
          type: array
      title: HTTPValidationError
      type: object
    ValidationError:
      properties:
        ctx:
          title: Context
          type: object
        input:
          title: Input
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          title: Location
          type: array
        msg:
          title: Message
          type: string
        type:
          title: Error Type
          type: string
      required:
        - loc
        - msg
        - type
      title: ValidationError
      type: object
  securitySchemes:
    HTTPBearer:
      scheme: bearer
      type: http

````