canonical: https://jentic.com/apis/blues/blues

# Blues Notehub API

Notehub is the Blues cloud service for managing cellular IoT devices built around the Notecard module. The API exposes projects, products, fleets, devices, events, routes, monitors, billing accounts, and usage data, letting integrators provision new devices, group them into fleets, push environment variables, and route incoming Notes to downstream cloud services. Authentication uses Bearer tokens obtained from `/oauth2/token` using a Personal Access Token or OAuth client credentials.

## For AI agents

Provision Blues Notecard devices, group them into fleets, push configuration, and route incoming events from cellular IoT hardware to your cloud.

## Scope

Does not run firmware on devices, send cellular data plans, or expose raw modem AT commands - use for cloud-side fleet, route, and event management against Notehub only.

## Capabilities

- Provision new Notecard devices into a Notehub project and assign them to fleets
- Push environment variables down to a project, fleet, or individual device
- Configure routes that forward incoming Notes to AWS, Azure, MQTT, or HTTP endpoints
- Set up monitors that alert on device dropout, route failure, or threshold breach
- Read billing account usage to track per-device cellular data consumption
- Clone an entire project or product configuration to bootstrap a new deployment
- Manage project membership and per-member access roles

## Use cases

### Fleet provisioning at manufacturing time

Bring a batch of newly manufactured Notecard devices online by registering them in Notehub and assigning them to the right fleet. Use POST `/v1/projects/{projectOrProductUID}/fleets` to create the fleet, then PUT `/v1/projects/{projectOrProductUID}/fleets/{fleetUID}` to add devices. Suitable for contract manufacturing handoff, kit-based product launches, and staged rollouts.

Example prompt: Call POST `/v1/projects/{projectOrProductUID}/fleets` to create a fleet named 'pilot-batch-1', then add the listed device UIDs to it.

### Configuration rollout across fleet

Push configuration changes to fielded devices through environment variables, which the Notecard surfaces to host firmware. PUT `/v1/projects/{projectOrProductUID}/environment_variables` sets project-wide values, while the fleet-scoped variant targets a single fleet. Useful for rolling out telemetry interval changes, feature flags, or backend URL updates without a firmware push.

Example prompt: Call PUT `/v1/projects/{projectOrProductUID}/fleets/{fleetUID}/environment_variables` with {telemetry_interval: 300} to set a 5-minute interval for all devices in the fleet.

### Cloud event routing

Forward incoming Notecard events to a downstream cloud target by creating a Notehub route. Routes can target AWS IoT, Azure IoT Hub, Google Cloud, generic HTTP webhooks, or MQTT brokers, with JSONata transforms applied before delivery. Manage routes via `/v1/projects/{projectOrProductUID}/routes` and inspect their delivery health.

Example prompt: List existing routes via GET `/v1/projects/{projectOrProductUID}/routes` and return each route's name, target type, and last successful delivery timestamp.

### Device health monitoring

Detect device dropout and route failures by configuring Notehub monitors. Monitors evaluate conditions on incoming events and trigger notifications when thresholds are breached. Combine with `/v1/projects/{projectOrProductUID}/devices/{deviceUID}/events` to investigate per-device history when a monitor fires.

Example prompt: Pull GET `/v1/projects/{projectOrProductUID}/devices` and identify any device whose last event timestamp is older than 24 hours.

### AI agent IoT operations assistant

Let an AI agent answer operations questions and run runbooks against a Blues fleet. The agent searches Jentic for the right Notehub operation by intent, loads the schema, and executes with the Bearer token held in your Jentic One instance. Suitable for fleet ops chatbots, on-call investigation copilots, and customer support agents who need read access to device state.

Example prompt: Search Jentic for 'list Notehub devices in a project', load the schema, and execute it with the projectOrProductUID to return all devices and their last-seen timestamps.

## Key endpoints

| Method | Path | Description |
| --- | --- | --- |
| POST | `/oauth2/token` | Exchange a Personal Access Token for an OAuth bearer token |
| GET | `/v1/projects` | List all accessible projects |
| POST | `/v1/projects/{projectOrProductUID}/fleets` | Create a new fleet within a project |
| GET | `/v1/projects/{projectOrProductUID}/devices` | List devices in a project |
| PUT | `/v1/projects/{projectOrProductUID}/environment_variables` | Set project-wide environment variables |
| POST | `/v1/projects/{projectOrProductUID}/clone` | Clone a project as a template |
| GET | `/v1/billing-accounts` | List billing accounts and usage |

## Key resources

- **Projects** — Top-level container for IoT deployments, with members, fleets, and environment variables
- **Products** — Product groupings within a project for managing device classes
- **Fleets** — Logical groups of devices for targeted configuration and monitoring
- **Devices** — Individual Notecard records with state, environment variables, and event history
- **Events** — Incoming Notes from devices, queryable per project, fleet, or device
- **Routes** — Outbound delivery rules to AWS, Azure, MQTT, or HTTP targets
- **Monitors** — Conditional alerts on device state and route delivery
- **Billing Accounts** — Cellular data usage and billing summaries

## AI readiness

This API is usable in Jentic One now. Its AI-readiness score against Jentic's framework shows where it stands today and where improvements would make it even easier for agents to use.

- **Score:** 69 / 100
- **Maturity:** AI-Aware
- **Dimensions:**
  - Foundational Compliance: 80 / 100
  - Developer Experience & Jentic Compatibility: 63 / 100
  - AI-Readiness & Agent Experience: 55 / 100
  - Agent Usability: 91 / 100
  - Security: 60 / 100
  - AI Discoverability: 100 / 100
- **View full report:** https://jentic.com/apis/blues/blues/scorecard
- **How the score is calculated:** https://docs.jentic.com/reference/api-readiness-framework/overview/
- **More about the dimensions:** https://docs.jentic.com/reference/api-readiness-framework/specification/#dimensional-model-overview

### Score it yourself

Every API in the directory is allowlisted, so you can re-score it with no key required.

- **Score your own API:** https://jentic.com/scorecard.md
- **Scoring CLI agent skill:** https://github.com/jentic/jentic-api-scorecard/blob/main/skills/jentic-api-scorecard/SKILL.md

```sh
npx @jentic/api-scorecard-cli score <openapi-url>
```

## Why Jentic

- **Setup:** Wiring the Blues Notehub API by hand means exchanging your personal access token at `/oauth2/token` for a bearer and threading project ids through each call yourself. Through Jentic you install once, import Notehub from the API Directory, store the token once, and your agent calls it.
- **Permission scoping:** Notehub puts the project id in the URL path (`/v1/projects/{projectOrProductUID}/devices`), so a rule can pin your agent to one project: it can list devices or create a fleet there and nothing else. You choose the operations it may call, so cloning a project is not included unless you add it.
- **Credential handling:** Your Blues personal access token is stored once, encrypted, by your own Jentic One instance and injected at execution time, and the token exchange runs there too. It never enters the agent's prompt, logs, or context.
- **Discovery method:** Agents search Jentic by intent such as 'list Notehub projects' or 'create a fleet', and Jentic returns the matching Notehub operation with its input schema so the agent calls the right endpoint without browsing dev.blues.io.

## Related APIs

- **Blues Notehub API** — Sister Notehub spec under blues.io with expanded endpoint coverage including firmware and notes
- **Blynk** — IoT platform with device dashboards and mobile app - alternative for hobbyist and prosumer IoT instead of cellular Notecard
- **Blueshift** — Customer engagement platform - pair when IoT events should trigger customer-facing notifications

## FAQ

### Does Blues publish an official OpenAPI specification for the Notehub API?

Yes. Blues publishes an OpenAPI 3.0.3 document titled Notehub API, carrying info.version 1.2.0, in its notehub-js SDK repository at https://raw.githubusercontent.com/blues/notehub-js/main/openapi.yaml. That path tracks the repository default branch and the file is regenerated alongside SDK releases, so its contents change over time. The specification behind this page is a Jentic-authored document built from the Blues API reference at dev.blues.io, covering 72 operations across 50 paths, and the vendor document is broader; this page is queued to be regenerated from it. Get started with Jentic One, the self-hosted execution layer.

### What authentication does the Blues Notehub API use?

Notehub uses HTTP Bearer authentication. You exchange a Personal Access Token (issued from the Notehub dashboard) for a short-lived OAuth bearer token via POST `/oauth2/token`, then pass it as Authorization: Bearer <token>. Through Jentic, the PAT is stored encrypted and the token exchange happens automatically at execution.

### Can I provision new Notecard devices through this API?

Yes. Devices typically activate themselves on first connection, but you can pre-provision and assign them via the project and fleet endpoints. Use GET `/v1/projects/{projectOrProductUID}/devices` to enumerate, and PUT `/v1/projects/{projectOrProductUID}/fleets/{fleetUID}` to attach a device UID to a fleet.

### What are the rate limits for the Blues Notehub API?

Notehub applies per-account rate limits not enumerated in the spec. Published guidance is to keep below roughly 60 requests per minute per token; HTTP 429 responses include backoff hints. Higher limits are available for enterprise customers on request.

### How do I push configuration to a fleet through Jentic?

Search Jentic for 'set Notehub environment variables for a fleet', load the schema for PUT `/v1/projects/{projectOrProductUID}/fleets/{fleetUID}/environment_variables`, and execute it with the variable map. Install with pip install jentic and call await client.execute(ExecutionRequest(...)).

### Does Notehub support routing events to AWS or Azure?

Yes. The `/v1/projects/{projectOrProductUID}/routes` endpoints let you create routes targeting AWS IoT, Azure IoT Hub, Google Cloud, generic HTTP, or MQTT brokers. Routes support JSONata transforms so events can be reshaped before delivery.

### Is the Blues Notehub API free?

Notehub offers a free developer tier sufficient for prototyping (with limits on devices, events per month, and data egress). Paid tiers scale device count and event volume, billed per the active billing account.

### Can I limit what my agent is allowed to do with the Blues Notehub API?

Yes. Jentic One runs self-hosted, so your own rules decide which Notehub operations and credentials the agent may use. Because Notehub puts the project id in the URL path, such as `/v1/projects/{projectOrProductUID}/devices`, a rule can pin the agent to a single project where it lists devices or creates a fleet and nothing beyond that. You pick the operations it may call, so a sensitive action like POST `/v1/projects/{projectOrProductUID}/clone` stays off limits unless you explicitly allow it.
