Blues Notehub

Get device environment variables from Blues Notehub

get

Retrieves environment variables for a Blues Notehub device. This endpoint proxies the request to the Blues Notehub API using your organization's stored Notehub PAT credential.

Prerequisites:

  • Device must be a Blues Notehub device (source_type: "notehub")

  • Organization must have a Notehub PAT credential configured in External Credentials

  • API key must have "read" scope permission

How it works:

  1. Validates your Qubitro API key and extracts your organization

  2. Looks up the Notehub PAT credential stored in your organization's external credentials

  3. Fetches the device to get its Notehub device UID

  4. Proxies the request to Blues Notehub API

  5. Returns the environment variables from Notehub

Authorizations
AuthorizationstringRequired

Enter your API key with the Bearer prefix, e.g. "Bearer QB_your_api_key_here"

Path parameters
project_idstringRequired

Project ID (UUID format)

Example: 3e5c0246-c759-48e8-8345-27db13f11ff7
device_idstringRequired

Device ID (UUID format)

Example: dev-abc123
Responses
200

Environment variables retrieved successfully

application/json
get
/v2/projects/{project_id}/devices/{device_id}/blues/environment-variables

Set device environment variables in Blues Notehub

put

Sets environment variables for a Blues Notehub device. This endpoint proxies the request to the Blues Notehub API using your organization's stored Notehub PAT credential.

Prerequisites:

  • Device must be a Blues Notehub device (source_type: "notehub")

  • Organization must have a Notehub PAT credential configured in External Credentials

  • API key must have "update" scope permission

  • Notehub PAT must have at least "developer" role permissions

How it works:

  1. Validates your Qubitro API key and extracts your organization

  2. Looks up the Notehub PAT credential stored in your organization's external credentials

  3. Fetches the device to get its Notehub device UID

  4. Proxies the request to Blues Notehub API to set the environment variables

  5. Returns success if the variables were set

Note: Environment variables set via this endpoint will be synchronized to the Notecard device on its next sync with Notehub.

Authorizations
AuthorizationstringRequired

Enter your API key with the Bearer prefix, e.g. "Bearer QB_your_api_key_here"

Path parameters
project_idstringRequired

Project ID (UUID format)

Example: 3e5c0246-c759-48e8-8345-27db13f11ff7
device_idstringRequired

Device ID (UUID format)

Example: dev-abc123
Body
Responses
200

Environment variables set successfully

application/json
put
/v2/projects/{project_id}/devices/{device_id}/blues/environment-variables

Last updated