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

# Start Worker

> Start a worker and fetch its configuration.

This endpoint is called by workers on startup with just worker_id and API key.
It returns all necessary configuration for the worker to connect to Temporal.

Args:
    worker_id: Worker ID (UUID created in UI)
    start_request: System information from worker

Returns:
    Complete worker configuration including Temporal credentials



## OpenAPI

````yaml https://control-plane.kubiya.ai/api/openapi.json post /api/v1/workers/{worker_id}/start
openapi: 3.1.0
info:
  title: Agent Control Plane API
  description: Multi-tenant agent orchestration with Temporal workflows
  version: 1.0.0
servers: []
security:
  - BearerAuth: []
tags:
  - name: health
    description: 🏥 **Health & Status** - Check API health and availability
  - name: authentication
    description: 🔐 **Authentication** - Token validation and auth management
  - name: agents
    description: 🤖 **Agents** - Create and manage AI agents with custom capabilities
  - name: skills
    description: 🛠️ **Tool Sets** - Manage agent skills and tool configurations
  - name: integrations
    description: 🔌 **Integrations** - Connect to external services (Kubiya managed)
  - name: custom-integrations
    description: >-
      ⚙️ **Custom Integrations** - User-defined integration instances with env
      vars, secrets, and files
  - name: integration-templates
    description: >-
      📦 **Integration Templates** - Pre-configured templates for common
      services (PostgreSQL, Redis, MongoDB, etc.)
  - name: secrets
    description: 🔑 **Secrets** - Secure credential storage and retrieval
  - name: teams
    description: 👥 **Teams** - Team management and collaboration
  - name: workflows
    description: 📊 **Workflows** - Multi-step automation and orchestration
  - name: executions
    description: ▶️ **Executions** - Track and monitor workflow runs
  - name: jobs
    description: ⏰ **Jobs** - Scheduled and webhook-triggered tasks
  - name: policies
    description: 🛡️ **Policies** - Access control and security policies
  - name: analytics
    description: 📈 **Analytics** - Usage metrics and performance monitoring
  - name: projects
    description: 📁 **Projects** - Project organization and management
  - name: environments
    description: 🌍 **Environments** - Environment configuration (dev, staging, prod)
  - name: models
    description: 🧠 **Models** - LLM model configuration and management
  - name: runtimes
    description: ⚡ **Runtimes** - Agent execution runtime environments
  - name: workers
    description: 👷 **Workers** - Worker registration and heartbeat monitoring
  - name: storage
    description: 💾 **Storage** - File storage and cloud integration
  - name: context-graph
    description: 🕸️ **Context Graph** - Knowledge graph and context management
  - name: temporal-workflows
    description: >-
      ⚙️ **Temporal Workflows** - Background workflows for context graph
      ingestion, connector operations, and scheduled jobs
  - name: templates
    description: 📝 **Templates** - Reusable configuration templates
paths:
  /api/v1/workers/{worker_id}/start:
    post:
      summary: Start Worker
      description: >-
        Start a worker and fetch its configuration.


        This endpoint is called by workers on startup with just worker_id and
        API key.

        It returns all necessary configuration for the worker to connect to
        Temporal.


        Args:
            worker_id: Worker ID (UUID created in UI)
            start_request: System information from worker

        Returns:
            Complete worker configuration including Temporal credentials
      operationId: start_worker_api_v1_workers__worker_id__start_post
      parameters:
        - name: worker_id
          in: path
          required: true
          schema:
            type: string
            title: Worker Id
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/WorkerStartRequest'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WorkerConfigResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    WorkerStartRequest:
      properties:
        system_info:
          additionalProperties: true
          type: object
          title: System Info
          default: {}
      type: object
      title: WorkerStartRequest
      description: Request to start a worker and fetch its config
    WorkerConfigResponse:
      properties:
        worker_id:
          type: string
          title: Worker Id
        worker_queue_name:
          type: string
          title: Worker Queue Name
        environment_name:
          type: string
          title: Environment Name
        task_queue_name:
          type: string
          title: Task Queue Name
        temporal_namespace:
          type: string
          title: Temporal Namespace
        temporal_host:
          type: string
          title: Temporal Host
        temporal_api_key:
          type: string
          title: Temporal Api Key
        organization_id:
          type: string
          title: Organization Id
        control_plane_url:
          type: string
          title: Control Plane Url
        heartbeat_interval:
          type: integer
          title: Heartbeat Interval
          default: 60
        litellm_api_url:
          type: string
          title: Litellm Api Url
        litellm_api_key:
          type: string
          title: Litellm Api Key
        otel_enabled:
          type: boolean
          title: Otel Enabled
          default: true
        otel_exporter_otlp_endpoint:
          anyOf:
            - type: string
            - type: 'null'
          title: Otel Exporter Otlp Endpoint
        otel_service_name:
          type: string
          title: Otel Service Name
          default: agent-control-plane-worker
        otel_traces_sampler:
          type: string
          title: Otel Traces Sampler
          default: parentbased_always_on
        otel_traces_sampler_arg:
          anyOf:
            - type: number
            - type: 'null'
          title: Otel Traces Sampler Arg
      type: object
      required:
        - worker_id
        - worker_queue_name
        - environment_name
        - task_queue_name
        - temporal_namespace
        - temporal_host
        - temporal_api_key
        - organization_id
        - control_plane_url
        - litellm_api_url
        - litellm_api_key
      title: WorkerConfigResponse
      description: Worker configuration response
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: 'Enter your Kubiya API token (format: Bearer <token>)'

````