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

# Start agent session

> Creates the session record, appends the initial instruction as a user message event, and triggers the agent workflow — all in a single call. The session_id must be a client-generated UUID v4 and is used to idempotently reference the session afterward.




## OpenAPI

````yaml /openapi.yaml post /org/{org_id}/agent-sessions/{session_id}/start
openapi: 3.0.0
info:
  contact: {}
  title: Cozmo - API
  version: devel
servers:
  - url: https://v2-nova-api.prod.czmx.in/api
security:
  - BearerAuth: []
paths:
  /org/{org_id}/agent-sessions/{session_id}/start:
    post:
      tags:
        - Agent Sessions
      summary: Start agent session
      description: >
        Creates the session record, appends the initial instruction as a user
        message event, and triggers the agent workflow — all in a single call.
        The session_id must be a client-generated UUID v4 and is used to
        idempotently reference the session afterward.
      operationId: startAgentSession
      parameters:
        - description: Organization ID
          in: path
          name: org_id
          required: true
          schema:
            type: string
        - description: Client-generated UUID v4 for the session
          in: path
          name: session_id
          required: true
          schema:
            type: string
            format: uuid
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/agent-sessions.StartSessionRequest'
        description: Session start parameters
        required: true
      responses:
        '201':
          description: Session started
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/agent-sessions.StartSessionResponse'
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/helper.ResponseError'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/helper.ResponseError'
        '429':
          description: Rate limit exceeded
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/helper.ResponseError'
        '500':
          description: Internal Server Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/helper.ResponseError'
components:
  schemas:
    agent-sessions.StartSessionRequest:
      required:
        - agentId
        - instruction
      properties:
        agentId:
          description: ID of the agent to run for this session.
          type: string
        instruction:
          description: Initial instruction sent to the agent as the first user message.
          type: string
        title:
          description: Human-readable label for the session.
          type: string
        source:
          description: Caller identifier (e.g. command-center, api).
          type: string
        prospectId:
          description: ID of an existing prospect to associate with the session.
          type: string
      type: object
    agent-sessions.StartSessionResponse:
      properties:
        sessionId:
          description: The UUID of the newly started session.
          type: string
      type: object
    helper.ResponseError:
      properties:
        data: {}
        error: {}
        message:
          type: string
        status:
          type: boolean
      type: object
  securitySchemes:
    BearerAuth:
      type: apiKey
      in: header
      name: X-API-Key

````