> ## 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.

# Create Cyberdriver Web Session

> Mint a short-lived browser session for Cyberdriver 1.x web streaming.



## OpenAPI

````yaml /openapi.json post /v1/machines/{machine_id}/cyberdriver/web-session
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/web-session:
    post:
      tags:
        - machines
      summary: Create Cyberdriver Web Session
      description: Mint a short-lived browser session for Cyberdriver 1.x web streaming.
      operationId: >-
        create_cyberdriver_web_session_v1_machines__machine_id__cyberdriver_web_session_post
      parameters:
        - name: machine_id
          in: path
          required: true
          schema:
            type: string
            format: uuid
            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
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CyberdriverWebSessionResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - HTTPBearer: []
components:
  schemas:
    CyberdriverWebSessionResponse:
      properties:
        machine_id:
          type: string
          format: uuid
          title: Machine Id
        rustdesk_peer_id:
          type: string
          title: Rustdesk Peer Id
        desktop_label:
          type: string
          title: Desktop Label
        selected_organization_id:
          type: string
          title: Selected Organization Id
        token:
          type: string
          title: Token
        expires_at:
          type: integer
          title: Expires At
        mode:
          type: string
          title: Mode
        endpoints:
          $ref: '#/components/schemas/CyberdriverWebSessionEndpoints'
        public_key:
          type: string
          title: Public Key
        features:
          additionalProperties:
            type: boolean
          type: object
          title: Features
      type: object
      required:
        - machine_id
        - rustdesk_peer_id
        - desktop_label
        - selected_organization_id
        - token
        - expires_at
        - mode
        - endpoints
        - public_key
        - features
      title: CyberdriverWebSessionResponse
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    CyberdriverWebSessionEndpoints:
      properties:
        hbbs_url:
          type: string
          title: Hbbs Url
          description: Browser-safe hbbs WSS endpoint
        hbbr_url:
          type: string
          title: Hbbr Url
          description: Browser-safe hbbr WSS endpoint
      type: object
      required:
        - hbbs_url
        - hbbr_url
      title: CyberdriverWebSessionEndpoints
    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

````