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

# Shutdown Cyberdriver via tunnel

> Request CyberDriver process shutdown through the existing tunnel proxy path.



## OpenAPI

````yaml /openapi.json post /v1/machines/{machine_id}/cyberdriver/shutdown
openapi: 3.1.0
info:
  title: Cyberdesk Cloud
  description: >-
    The Cyberdesk API provides programmatic access to all platform features,
    enabling you to automate desktop tasks at scale.
  version: 1.0.0
servers:
  - url: https://api.cyberdesk.io
    description: Production server
  - url: https://cyberdesk-api-dev.fly.dev
    description: Development server
security: []
paths:
  /v1/machines/{machine_id}/cyberdriver/shutdown:
    post:
      tags:
        - computer
      summary: Shutdown Cyberdriver via tunnel
      description: >-
        Request CyberDriver process shutdown through the existing tunnel proxy
        path.
      operationId: cyberdriver_shutdown_v1_machines__machine_id__cyberdriver_shutdown_post
      parameters:
        - name: machine_id
          in: path
          required: true
          schema:
            type: string
            title: Machine Id
        - name: Idempotency-Key
          in: header
          required: false
          description: >-
            Unique key for idempotent requests. If provided, the server ensures
            the request is processed at most once. Retries with the same key
            return the original response. SDKs auto-generate this for write
            requests.
          schema:
            type: string
            example: 550e8400-e29b-41d4-a716-446655440000
      requestBody:
        content:
          application/json:
            schema:
              anyOf:
                - $ref: '#/components/schemas/CyberdriverShutdownRequest'
                - type: 'null'
              title: Request
      responses:
        '200':
          description: Shutdown was accepted by CyberDriver
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
                title: >-
                  Response Cyberdriver Shutdown V1 Machines  Machine Id 
                  Cyberdriver Shutdown Post
              examples:
                shutting_down:
                  summary: Fresh shutdown
                  value:
                    status: shutting_down
                    pid: 12345
                    reason: user_disabled_machine
                    source: cloud-api
                already_shutting_down:
                  summary: Idempotent repeat
                  value:
                    status: already_shutting_down
                    pid: 12345
                    reason: user_disabled_machine
                    source: cloud-api
        '403':
          description: Tunnel-only endpoint rejected outside tunnel path
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - HTTPBearer: []
components:
  schemas:
    CyberdriverShutdownRequest:
      properties:
        source:
          type: string
          title: Source
          description: Caller identifier for shutdown auditing
          default: cloud-api
        reason:
          anyOf:
            - type: string
            - type: 'null'
          title: Reason
          description: Reason for shutting down the CyberDriver process
          default: user_disabled_machine
      type: object
      title: CyberdriverShutdownRequest
    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
        input:
          title: Input
        ctx:
          type: object
          additionalProperties: true
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    HTTPBearer:
      type: http
      scheme: bearer

````