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.
- 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
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.
-
Navigate to Notehub and sign into your account.
-
From the user menu in the top-right corner, select the API Access option.

-
On the next screen, click the Create New Token button.
-
In the resulting dialog, give your token a Name and an optional Description.
-
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.
-
Choose an Expiration, and then click Create.

-
In the next dialog, use the Copy button to copy the token to your clipboard and store it somewhere safe.

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.

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.

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:
-
Sign in to Notehub, if you're not already signed in.
-
Give the sign-in a Name and an optional Description. These are how the sign-in appears on the API Access page.
-
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.
-
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"
}| Status | Cause | What to do |
|---|---|---|
401 | The 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 project | The 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 forbidden | The 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.
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=value2For 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=tag1And to get devices with multiple tags, you could use the following request:
/projects/{projectOrProductUID}/devices?tag=tag1&tag=tag2If you're using the Notehub API in Postman, the screenshot below shows how you can provide array arguments.

Request Listing
Device API
GET, POST, and DELETE data related to the devices in a Notehub project.
Event API
Retrieve the event data your devices have synced to Notehub.
Jobs API
Create and manage the batch jobs that operate across a Notehub project.
Monitor API
Manage the alerts that notify you when your project needs attention.
Organization API
Retrieve data related to Notehub organizations, including their projects and billing.
Project API
Retrieve and manage project-level data, including fleets and environment variables.
Route API
GET, POST, PUT, and DELETE the routes that forward Notehub events to your cloud.
Usage API
Retrieve usage data and metrics for API requests, data, events, route logs, and sessions.