{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/the-things-network/json-schema/the-things-network-v3-claim-end-device-request-schema.json",
  "title": "v3ClaimEndDeviceRequest",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/the-things-network-enddeviceclaimingserver-api-openapi.yml#/components/schemas/v3ClaimEndDeviceRequest",
  "type": "object",
  "properties": {
    "authenticated_identifiers": {
      "$ref": "#/$defs/v3ClaimEndDeviceRequestAuthenticatedIdentifiers",
      "description": "Authenticated identifiers."
    },
    "qr_code": {
      "type": "string",
      "format": "byte",
      "description": "Raw QR code contents."
    },
    "target_application_ids": {
      "$ref": "#/$defs/v3ApplicationIdentifiers",
      "description": "Application identifiers of the target end device."
    },
    "target_device_id": {
      "type": "string",
      "description": "End device ID of the target end device. If empty, use the source device ID."
    }
  },
  "$defs": {
    "v3ApplicationIdentifiers": {
      "type": "object",
      "properties": {
        "application_id": {
          "type": "string"
        }
      }
    },
    "v3ClaimEndDeviceRequestAuthenticatedIdentifiers": {
      "type": "object",
      "properties": {
        "join_eui": {
          "type": "string",
          "format": "string",
          "description": "JoinEUI (or AppEUI) of the device to claim."
        },
        "dev_eui": {
          "type": "string",
          "format": "string",
          "description": "DevEUI of the device to claim."
        },
        "authentication_code": {
          "type": "string",
          "description": "Authentication code to prove ownership.\nIn the LoRa Alliance TR005 specification, this equals the OwnerToken."
        }
      }
    }
  }
}