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

# Create manufacturer device connection

> Connect a user and his device(s) by a manufacturer.



## OpenAPI

````yaml /api-docs/manufacturer-integration/openapi-manufacturer-auth-v2.json post /manufacturer/device-connections
openapi: 3.0.3
info:
  title: NOX Authenticator API — Manufacturer
  description: >-
    Endpoints for device manufacturers to create link sessions and device
    connections.
  version: 2.0.0
  contact:
    name: NOX Energy
servers:
  - url: https://auth.nox.energy/v2
    description: Production
security: []
tags:
  - name: Manufacturer
    description: >-
      Endpoints for device manufacturers to create link sessions and device
      connections.
paths:
  /manufacturer/device-connections:
    post:
      tags:
        - Manufacturer
      summary: Create manufacturer device connection
      description: Connect a user and his device(s) by a manufacturer.
      operationId: createManufacturerDeviceConnection
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateManufacturerDeviceConnectionRequest'
      responses:
        '201':
          description: Device connection created successfully.
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/CreateManufacturerDeviceConnectionResponse
        '400':
          description: Validation error.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                error: user_id is required and must be a string
        '401':
          description: Missing or invalid API key, or manufacturer not enabled.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                error: Invalid API key
        '500':
          description: Unexpected server error.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                error: Internal server error
      security:
        - ApiKeyAuth: []
components:
  schemas:
    CreateManufacturerDeviceConnectionRequest:
      type: object
      required:
        - user_id
      properties:
        user_id:
          type: string
          description: >-
            The manufacturer's internal user ID to register a device connection
            for.
          example: manufacturer_user_id_123
    CreateManufacturerDeviceConnectionResponse:
      type: object
      required:
        - manufacturer_user_id
        - nox_user_id
      properties:
        manufacturer_user_id:
          type: string
          description: The manufacturer's user ID that was provided.
          example: manufacturer_user_id_123
        nox_user_id:
          type: string
          description: The NOX subscriber ID (resolved or newly created).
          example: nox_subscriber_456
    ErrorResponse:
      type: object
      required:
        - error
      properties:
        error:
          type: string
          description: Human-readable error message.
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key
      description: API key assigned to the manufacturer.

````