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

# Start Device Link

> Reference for merged 0.6.0 source. The latest verified binary release is 0.5.5; use your Engine’s /api/openapi.json for its installed contract.



## OpenAPI

````yaml /engine/openapi.json post /api/link/device
openapi: 3.1.0
info:
  title: nerditd
  version: 0.6.0
  description: >-
    Current source interface (0.6.0); verify your installed Engine version. This
    is not a claim that 0.6.0 is released.
servers:
  - url: http://127.0.0.1:9321
    description: Default local Engine; use your configured endpoint.
security: []
paths:
  /api/link/device:
    post:
      tags:
        - Link
      summary: Start Device Link
      description: >-
        Reference for merged 0.6.0 source. The latest verified binary release is
        0.5.5; use your Engine’s /api/openapi.json for its installed contract.
      operationId: start_device_link
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/LinkDeviceStartRequest'
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/LinkDeviceStartView'
          description: HTTP 200 response
        '422':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
          description: HTTP 422 response
components:
  schemas:
    LinkDeviceStartRequest:
      properties:
        api_url:
          type: string
          maxLength: 512
          minLength: 1
          title: Api Url
        relay_url:
          anyOf:
            - type: string
              maxLength: 512
            - type: 'null'
          title: Relay Url
        enable:
          type: boolean
          title: Enable
          default: true
      additionalProperties: false
      type: object
      required:
        - api_url
      title: LinkDeviceStartRequest
    LinkDeviceStartView:
      properties:
        session:
          type: string
          title: Session
        user_code:
          type: string
          title: User Code
        verification_uri:
          type: string
          title: Verification Uri
        verification_uri_complete:
          type: string
          title: Verification Uri Complete
        credential_fingerprint:
          type: string
          title: Credential Fingerprint
        hostname:
          anyOf:
            - type: string
            - type: 'null'
          title: Hostname
        daemon_version:
          type: string
          title: Daemon Version
        os:
          type: string
          title: Os
        expires_in:
          type: integer
          title: Expires In
        interval:
          type: integer
          title: Interval
      type: object
      required:
        - session
        - user_code
        - verification_uri
        - verification_uri_complete
        - credential_fingerprint
        - hostname
        - daemon_version
        - os
        - expires_in
        - interval
      title: LinkDeviceStartView
    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
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError

````