---
title: API Reference
description: API reference for Blues Notecard and Notehub, covering every Notecard JSON request, the Notehub REST API, System Notefiles, and a glossary of Blues terms.
source_url: https://dev.blues.io/api-reference/
canonical_url: https://dev.blues.io/api-reference/
markdown_url: https://dev.blues.io/api-reference.md
---

# API Reference

Comprehensive reference documentation for Blues developer APIs

## Notecard API

APIs for interacting with the Notecard in host firmware.

### In this section

[Introduction](https://dev.blues.io/api-reference/notecard-api.md)[card Requests](https://dev.blues.io/api-reference/notecard-api/card-requests/latest.md)[dfu Requests](https://dev.blues.io/api-reference/notecard-api/dfu-requests/latest.md)[env Requests](https://dev.blues.io/api-reference/notecard-api/env-requests/latest.md)[file Requests](https://dev.blues.io/api-reference/notecard-api/file-requests/latest.md)[hub Requests](https://dev.blues.io/api-reference/notecard-api/hub-requests/latest.md)[note Requests](https://dev.blues.io/api-reference/notecard-api/note-requests/latest.md)[ntn Requests](https://dev.blues.io/api-reference/notecard-api/ntn-requests/latest.md)[var Requests](https://dev.blues.io/api-reference/notecard-api/var-requests/latest.md)[web Requests](https://dev.blues.io/api-reference/notecard-api/web-requests/latest.md)

## Notehub API

APIs for interacting with Notehub over HTTP.

### In this section

[Introduction](https://dev.blues.io/api-reference/notehub-api.md)[Billing Account API](https://dev.blues.io/api-reference/notehub-api/billing-account-api.md)[Device API](https://dev.blues.io/api-reference/notehub-api/device-api.md)[Event API](https://dev.blues.io/api-reference/notehub-api/event-api.md)[Jobs API](https://dev.blues.io/api-reference/notehub-api/jobs-api.md)[Monitor API](https://dev.blues.io/api-reference/notehub-api/monitor-api.md)[Organization API](https://dev.blues.io/api-reference/notehub-api/organization-api.md)[Project API](https://dev.blues.io/api-reference/notehub-api/project-api.md)[Route API](https://dev.blues.io/api-reference/notehub-api/route-api.md)[Usage API](https://dev.blues.io/api-reference/notehub-api/usage-api.md)

***

## At a glance

### Notehub API (REST)

- **Base URL:** `https://api.notefile.net`
- **Authentication:** every request carries a personal access token in an `Authorization: Bearer` header. Create tokens on Notehub's API Access page, and optionally limit each one to a single project or to read-only access — see [Authentication](https://dev.blues.io/api-reference/notehub-api.md#authentication).
- **Usage limits:** 7 requests per minute per billing account free of charge; a `429` response means the threshold was exceeded. See [Usage Limits](https://dev.blues.io/api-reference/notehub-api.md#usage-limits).
- **Machine-readable:** [OpenAPI 3 specification](https://dev.blues.io/openapi.json), [Postman collection](https://dev.blues.io/postmanNotehubCollection.json), and the [notehub-js](https://dev.blues.io/tools-and-sdks/notehub-sdks/notehub-js-library.md) and [notehub-py](https://dev.blues.io/tools-and-sdks/notehub-sdks/notehub-py-library.md) SDKs.

Example: list the devices in a project.

```bash
curl -L 'https://api.notefile.net/v1/projects/app:00000000-0000-0000-0000-000000000000/devices' \
  -H 'Authorization: Bearer <token>'
```

### Notecard API (JSON)

- **Transport:** newline-terminated JSON objects over Serial, USB, or I2C from your host firmware — see the [Notecard API introduction](https://dev.blues.io/api-reference/notecard-api.md).
- **Shape:** a `req` (or `cmd` for no reply) plus the request's arguments; the reply is a JSON object, with an `err` field on failure.
- **Try it:** the [in-browser terminal](https://dev.blues.io/terminal/) sends requests to a Notecard connected over USB.

Example: connect a Notecard to a Notehub project.

```json
{"req":"hub.set","product":"com.your-company:your-product-name","mode":"periodic","outbound":60}
```

***

## Other Resources

### [Glossary](https://dev.blues.io/api-reference/glossary.md)

[A comprehensive listing of terms and definitions used throughout Blues hardware and services.](https://dev.blues.io/api-reference/glossary.md)

[Read glossary](https://dev.blues.io/api-reference/glossary.md)

### [System Notefiles](https://dev.blues.io/api-reference/system-notefiles.md)

[A reference of all Notefiles created automatically on the Notecard and/or on Notehub.](https://dev.blues.io/api-reference/system-notefiles.md)

[Visit reference](https://dev.blues.io/api-reference/system-notefiles.md)

Can we improve this page? [Send us feedback](mailto:devrel@blues.com)
