Skip to main content
Get an access token and list the buildings your service can access. This takes about five minutes and confirms that your credentials and permissions work.

Before you begin

You need:
  • The client ID supplied with your KODE project delivery.
  • The private key registered for that client ID.
  • curl and jq, Node.js 18 or later, Python 3, or PowerShell 7.
Never commit a private key, client assertion, or access token to source control. Store secrets in an approved secrets manager.

Send your first request

Use the language menu on a sample to switch it. The other samples on this page follow that choice.
1

Create a client assertion

Sign a JWT client assertion with your private key, following RFC 7523. Then store it in an environment variable:
macOS and Linux
See Authentication for the full token flow.
2

Request an access token

Exchange the assertion for a short-lived access token:
cURL
3

List your buildings

Send the token in the Authorization header:
cURL
A successful response returns 200 OK with a paginated data array:

If something goes wrong

Next steps

Try it in the playground

Paste your token and send the buildings request from the browser.

Ingest device data

Create devices and send point values from your system.

Fork in Postman

Copy the KODE API collection into your Postman workspace, then run the requests there.
Last modified on November 10, 2026