Help Shape What We Build Next: Take the 2026 Blues Developer Survey

Blues Developers
What’s New
Resources
API Reference
Notecard and Notehub API documentation
Blog
Technical articles for developers
Connected Product Guidebook
In-depth guides for connected product development
Developer Certification
Get certified on wireless connectivity with Blues
Newsletter
The monthly Blues developer newsletter
Terminal
Connect to a Notecard in your browser
Webinars
Listing of Blues technical webinars
Blues.comNotehub
Shop
Docs
Help
Support DocsNotehub StatusSecurity AdvisoriesVisit our Forum
Sign In
Docs Home
What’s New
Resources
API Reference
Notecard and Notehub API documentation
Blog
Technical articles for developers
Connected Product Guidebook
In-depth guides for connected product development
Developer Certification
Get certified on wireless connectivity with Blues
Newsletter
The monthly Blues developer newsletter
Terminal
Connect to a Notecard in your browser
Webinars
Listing of Blues technical webinars
Blues.comNotehub
Shop
Docs
API Reference
Glossary
System Notefiles
Notecard API
card Requests
dfu Requests
env Requests
file Requests
hub Requests
note Requests
ntn Requests
var Requests
web Requests
Notehub API
Device API
Event API
Jobs API
Monitor API
Organization API
Project API
Route API
Usage API
homechevron_rightDocschevron_rightAPI Referencechevron_rightNotehub API

Notehub API

This API reference contains an overview of all requests relevant to interacting with Notehub. Each section details request parameters, response members, example cURL requests, and JSON responses.

tip
  • New to the Notehub API?
    • Check out Using the Notehub API, our tutorial which walks you through running your first few requests.
  • Want to access the Notehub API in JavaScript or Python apps?
    • Try our Notehub JS and Notehub Py libraries, available on npm and PyPI, respectively.
  • Are you a Postman user?
    • We provide a Postman Collection for easy access to all Notehub API requests.

On this page:

  • Authentication
  • Usage Limits
  • Using Array Arguments
  • Request Listing

Authentication

Every Notehub API request must include a credential in an Authorization: Bearer <token> header. There are two types of credentials:

  • Personal access tokens are for your own scripts and integrations, such as a dashboard, a CI job, or a backend service. You create a token in Notehub and paste it into your code or configuration.
  • OAuth authorizations are for apps and AI agents that sign in to Notehub as you, such as an AI agent. With this workflow, the app or agent opens Notehub in your browser, you approve it, and the app or agent receives its own token.

Both types of credentials work the same way once they exist. You choose the same access options for both, both appear on Notehub's API Access page, and you can suspend or delete either at any time.

Personal Access Tokens

A personal access token is a long-lived credential tied to your Notehub user account, which you create and manage from the Notehub user interface.

Creating a Personal Access Token

Complete the following steps to create a new personal access token.

  1. Navigate to Notehub and sign into your account.

  2. From the user menu in the top-right corner, select the API Access option. The Personal Access Token menu in Notehub

  3. On the next screen, click the Create New Token button.

  4. In the resulting dialog, give your token a Name and an optional Description.

  5. Use the Limit Access To dropdown to choose what the token can access (see Access Options). If you choose a one-project option, also select the token's Project.

  6. Choose an Expiration, and then click Create. Dialog for creating new personal access tokens in Notehub

  7. In the next dialog, use the Copy button to copy the token to your clipboard and store it somewhere safe. Copying a personal access token in Notehub

    warning

    Treat personal access tokens like passwords. Anyone with your token can do anything the token's access allows.

Using a Personal Access Token

Pass your token in an Authorization: Bearer <your_token> header on each Notehub API request.

curl -X GET \
  -L 'https://api.notefile.net/v1/projects' \
  -H 'Authorization: Bearer <your_token>'

Managing Personal Access Tokens

Personal access tokens expire according to the interval you selected when you created the token. The API Access page lists each of your tokens with a Type of Token, along with its access, expiration date, and when it was last used.

Expiring a personal access token in Notehub

Use the action menu on the right-hand side of the table to manage a token:

  • Edit allows you to change the token's name, description, or expiration date.
  • Suspend stops the token from authorizing Notehub API requests until you Resume it.
  • Delete removes the token from Notehub entirely. Anything using the token stops working.

Personal access token action menu

OAuth Authorizations

An OAuth authorization lets an app or AI agent use the Notehub API as you, without you creating or copying a token. Notehub calls each authorization a sign-in.

How an App Signs In

The first time an app needs your Notehub account, it opens Notehub's Authorize screen in your browser. There you:

  1. Sign in to Notehub, if you're not already signed in.

  2. Give the sign-in a Name and an optional Description. These are how the sign-in appears on the API Access page.

  3. Use the Limit Access To dropdown to choose what the app can access (see Access Options). If you choose a one-project option, also select the Project.

  4. Click Authorize.

The app then makes Notehub API requests as you, limited to the access you chose. See Authorizing Apps and AI Agents in the Notehub walkthrough for a full walkthrough.

Managing OAuth Authorizations

The API Access page lists each app you've authorized with a Type of Sign-in, alongside your personal access tokens. Use the same action menu to manage a sign-in:

  • Edit changes the sign-in's name or description. A sign-in's access and expiration date can't be edited.
  • Suspend stops the app from making Notehub API requests until you Resume it.
  • Delete removes the sign-in. The app has to ask you to authorize it again before it can make more requests.

A sign-in stays active while the app uses it. If an app doesn't use its sign-in for three days, the sign-in expires and the app has to ask you to authorize it again.

Access Options

When you create a personal access token or authorize an app, the Limit Access To option controls what the credential can do. You can't change it later. To change a credential's access, create a new token or authorize the app again, and then delete the old credential.

  • My Privileges in All Projects and Organizations: Everything your Notehub account can do. This is the default.
  • My Privileges in All Projects: Everything you can do in your projects, but no access to your organizations.
  • My Privileges in One Project: Everything you can do in a single project.
  • Viewer Privileges in All Projects: Read-only access to your projects.
  • Viewer Privileges in One Project: Read-only access to a single project.

We recommend choosing the narrowest access option that works. A dashboard that only reads one project's events, for example, needs only Viewer Privileges in One Project. If a request needs more access than its credential has, the Notehub API refuses it (see Access Errors).

Access Errors

The Notehub API returns a JSON error when it refuses a request because of its credential. The err field describes the problem:

{
  "err": "session does not allow access to this project",
  "code": 403,
  "status": "Forbidden"
}
StatusCauseWhat to do
401The request has no credential, or its credential is invalid, expired, suspended, or deleted.Check the Authorization header and the credential's status on the API Access page.
403 with session does not allow access to this projectThe credential is limited to one project, and the request is for a different project.Use a credential with access to that project.
403 with The requested action was forbiddenThe credential's access doesn't allow the action. For example, a Viewer Privileges credential tried to change something, or a credential without organization access made an organization request. This is also the error when your own Notehub role doesn't allow the action.Use a credential with broader access, or ask a project or organization owner for a role that allows the action.

Usage Limits

You may perform 7 Notehub API requests per minute (up to 10,200/day), per billing account, free of charge.

If you exceed this threshold you may receive a 429 HTTP response code from subsequent Notehub API calls, indicating you've exceeded the free threshold. For high-volume or "bulk" operations, you may be able to utilize a Batch Job instead.

note

Higher API usage limits are available through Notehub Enterprise plans. See Blues pricing or contact Blues sales for more information.

Using Array Arguments

Many Notehub API request arguments accept arrays as values. For example, the Get Project Devices request offers a tag argument that allows you to filter devices by their associated tags.

When array arguments are accepted by GET requests, the Notehub API expects them to be passed in the following format:

/endpoint-name?argumentName=value1&argumentName=value2

For example, to use the Get Project Devices endpoint to get devices with a single tag, you could use the following request:

/projects/{projectOrProductUID}/devices?tag=tag1

And to get devices with multiple tags, you could use the following request:

/projects/{projectOrProductUID}/devices?tag=tag1&tag=tag2

If you're using the Notehub API in Postman, the screenshot below shows how you can provide array arguments.

Using array arguments in Postman

Request Listing

devices

Device API

GET, POST, and DELETE data related to the devices in a Notehub project.

View reference arrow_forward
list_alt

Event API

Retrieve the event data your devices have synced to Notehub.

View reference arrow_forward
work_history

Jobs API

Create and manage the batch jobs that operate across a Notehub project.

View reference arrow_forward
monitor_heart

Monitor API

Manage the alerts that notify you when your project needs attention.

View reference arrow_forward
corporate_fare

Organization API

Retrieve data related to Notehub organizations, including their projects and billing.

View reference arrow_forward
folder_special

Project API

Retrieve and manage project-level data, including fleets and environment variables.

View reference arrow_forward
alt_route

Route API

GET, POST, PUT, and DELETE the routes that forward Notehub events to your cloud.

View reference arrow_forward
analytics

Usage API

Retrieve usage data and metrics for API requests, data, events, route logs, and sessions.

View reference arrow_forward
Device API
Can we improve this page? Send us feedback
© 2026 Blues Inc.
© 2026 Blues Inc.
AboutDocsAPI ReferenceTermsPrivacy