Skip to main content
For the complete documentation index, see llms.txt.

Hubble Network developer documentation: integrate Bluetooth devices with terrestrial and satellite connectivity.

Working with an ODM

How device owners and contract manufacturers hand off Bluetooth® devices, so ownership is unambiguous and nobody shares credentials.


Overview​

This guide is for both sides of a device handoff — the manufacturer building Hubble-connected devices, and the device owner receiving them.

ODM Context​

When you order Bluetooth® devices from an original design manufacturer (ODM) such as an asset tag manufacturer or smart label producer, the ODM builds a generic beacon device running a Hubble firmware image. Two things make a device yours: the device key burned into its firmware, and the Hubble organization that the device is registered to. Packet data flows to whichever organization currently owns the device.

Use Device Claims​

Device claims are the recommended approach when working with an ODM. The manufacturer builds devices in their own organization, then transfers them to the device owner when the order ships — so no credentials change hands, and the manufacturer can test the devices under their own account before they are claimed.

Alternatives​

There are two alternatives to device claims, for cases where a device transfer from the manufacturer is not available:

  • Scoped API token — the device owner grants limited access so the manufacturer registers devices directly into their organization.
  • Pre-registered device keys — the device owner generates keys in advance and shares them as a CSV, for facilities without an internet connection.

Why Provision at Factory​

Keys are written onto the device at the factory. Claims only change which organization owns the device after it is provisioned. There are two reasons to handle keys at production time rather than after:

  • Not all firmware images support post-production key writes. Many Bluetooth images don't expose a bootloader or data transfer state after manufacturing, so if the key isn't burned in during the factory flash there may be no path to write it later.
  • It fits existing factory toolchains. ODMs often already handle certificates or other per-device credentials during flashing.

Device Claims​

How it works: the manufacturer registers devices into their own organization, links them to a device claim, and ships the devices. The device owner claims the devices using the claim ID, and every device included in the claim moves into their organization.

Why device owners and manufacturers use device claims:

  • Nobody shares credentials. The device owner never issues an API token, and the manufacturer never has access to their organization.
  • The manufacturer can test first. Devices live in the manufacturer's organization during production, so QA runs under their own account.
  • The buyer needn't be known at build time. Manufacturers may build to stock and assign the claim when the order lands — including after the devices have left the factory.

Once devices are claimed, the transfer cannot be reversed. The manufacturer loses access to those devices and any packet data they produce from that point on.

Manufacturers need access to the device claims API to create a device claim. If your organization doesn't have it yet, reach out to Hubble. (Device owners don't need any special access to claim devices.)

Manufacturer Steps​

Work one shipping unit at a time, and create each claim at run time. Don't create claims ahead of production. Begin each run by creating that unit's claim, then register the unit's devices into it in the same pass — two calls, back to back, as one operation. The devices in a claim are then exactly the devices in that container.

Repeat these steps for each unit you ship:

  1. Begin the run by creating a device claim (POST /device_claims), setting destination_org_id to the device owner's Organization ID if you already know it.
  2. Register that unit's devices, linking each to the claim. Write the returned key into the firmware as usual. One registration call covers up to 1,000 devices, so a shipping unit of 1,000 or fewer maps to a single call.
  3. Provision and test. Devices are yours until they are claimed, so you can verify beaconing and complete QA under your own account. (The Hubble CLI confirms beaconing with just the encryption key.)
  4. (Optional) Assign the claim to the device owner's organization once the order is confirmed, if you didn't set it at creation.
  5. Ship, with the claim reference on the container — printed on the label, or sent separately by email or in the packing documentation.

Match it to how the product physically ships — 200, 500, or 1,000 devices, whatever fills one container. Each claim is handled separately, so smaller units mean more claims, but also let the device owner take ownership as deliveries land rather than waiting for a full order. Note that the maximum claim size is 10,000 devices, which would require 10x POST /devices calls to register.

Device Owner Steps​

  1. (Optional) Give your manufacturer your Organization ID so they can assign the claim to you.
  2. Get the claim ID or a claim token from your manufacturer. You need one of the two so that you may claim the devices. The manufacturer may send it by email, in the packing documentation, or printed on the device or carton e.g., as a QR code.
  3. Look up the claim to check its status and device count before you commit (GET /device_claims/{claim_id}). If you have a token rather than an ID, look it up with id_type=claim_token (GET /device_claims/{base64url(claim_token)}?id_type=claim_token) — the response includes the claim ID.
  4. Claim the devices using the claim ID (POST /device_claims/{claim_id}/claim). Note that processing the claim runs in the background; large batches take time to complete.
  5. Confirm the devices appear in your Hubble organization.

Claimed devices are exclusively yours. The manufacturer can no longer access them or any packet data they produce.

A claim that exceeds your organization's device cap will be rejected (no partial transfers). Talk to Hubble if you expect a large batch during a trial.

Assigning the Claim​

A claim can be created with or without a known device owner:

  • Assigned — you know the device owner at build time. Set destination_org_id when you create the claim, and only that organization can claim it.
  • Unassigned — you're producing inventory ahead of orders. Leave destination_org_id unset and assign it once the order is confirmed.

An available device claim can be assigned at any point, including after the goods have shipped. The claim is a cloud record, independent of the physical shipment, so a build-to-stock run can leave the factory unassigned and be assigned the moment the sale closes, or never assigned.

For unassigned claims ("directionless"), the first organization to present the claim ID is permanently locked in as the owner, and there is no way to reverse it. When creating unassigned claims, you should control who can see the ID or claim token as a secret intended for the recipient.

Updating a Claim​

Everything about a device claim can be changed until the devices are claimed.

Changing the device claim​

Only the manufacturer can do this: assign it to a different organization, change its token, or delete it.

Changing which devices are included​

Use set_device_claim_id on PATCH /devices/{device_id}:

  • A claim ID adds the device to that claim, or moves it over from another one.
  • An empty string ("") removes the device from whatever claim it currently belongs to.

Adding a device needs the same access as creating a claim; removing one doesn't. To correct many devices at once, use the batch endpoint (PATCH /devices) with one entry per device.

Deleting a claim releases every device linked to it. The devices stay in your organization, unlinked and available to add to a new claim.

Optional: Using a Claim Token​

A claim can carry a printed claim token, so the handoff rides on a label you already print. A printed token is most useful on build-to-stock runs, where it lets the physical goods carry their own handoff.

The claim token must be a hyphenated UUID, or a GS1-128 payload beginning with application identifier 01 (GTIN) or 21 (serial number) — a logistics label beginning with 00 (SSCC) is not accepted. Tokens must be unique across all outstanding claims, and are set when the claim is created or updated, not at provisioning time.

A device owner holding only a token looks the claim up to retrieve its ID (GET /device_claims/{base64url(claim_token)}?id_type=claim_token). Claiming devices always requires the claim ID, never the token alone.


Alternatives to Device Claims​

Use one of these when your manufacturer doesn't support device transfers.

Scoped API Token​

How it works: the device owner grants a narrow-scope API token — enough access to register devices into their organization and optionally confirm beaconing, and nothing else.

Device owner: generate an API token using the "Device Manufacturer" preset, which grants read-devices, write-devices, and optionally read-packets. Share it securely, and communicate production details — encryption mode, naming convention, custom tags. You can revoke the token at any time from your account settings, which immediately stops further registrations; devices already provisioned are unaffected.

Manufacturer: register each device with the token before provisioning it, write the returned key into the firmware, and optionally confirm beaconing.

Each token belongs to one organization, so a manufacturer serving several device owners needs a separate token from each.

Pre-registered Device Keys​

How it works: the device owner generates device keys in advance and shares them as a CSV, so the factory needs no live API access at all. Useful during a trial, or at a facility without an internet connection.

Device owner: pre-register the expected number of devices in your organization to generate keys, export them as a CSV, and share it securely.

Manufacturer: assign the next available key from the list to each device during provisioning, and write it into the firmware.

This requires knowing production volume in advance. Unused keys can be deleted or kept for a future run.

With either alternative, device owners typically use device.name for their own identifiers — a serial number or internal UUID — and custom tags for production date or SKU. These are returned with device packet data.


Was this page useful? Please give us feedback.