Notecard API
APIs for interacting with the Notecard in host firmware.
Notehub API
APIs for interacting with Notehub over HTTP.
At a glance
Notehub API (REST)
- Base URL:
https://api.notefile.net - Authentication: every request carries an OAuth 2.0 bearer token in an
Authorization: Bearerheader. Tokens come from the Authorization API using a client ID and secret created in your Notehub project — see Authentication. - Usage limits: 7 requests per minute per billing account free of charge; a
429response means the threshold was exceeded. See Usage Limits. - Machine-readable: OpenAPI 3 specification, Postman collection, and the notehub-js and notehub-py SDKs.
Example: list the devices in a project.
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.
- Shape: a
req(orcmdfor no reply) plus the request's arguments; the reply is a JSON object, with anerrfield on failure. - Try it: the in-browser terminal sends requests to a Notecard connected over USB.
Example: connect a Notecard to a Notehub project.
{"req":"hub.set","product":"com.your-company:your-product-name","mode":"periodic","outbound":60}Other Resources
Can we improve this page? Send us feedback