Developers

Getting started

You need a Canoprise account in a group that has apps and AI tools switched on. Two minutes from here to your first answer.

1. Make a token

  1. Sign in to Canoprise and open your profile.
  2. Under Apps and AI tools, name the token after what will use it (for example "Energy sync") and choose when it ends: 30, 90 or 365 days, or no end date (it still stops after 90 days unused).
  3. Choose Make a read-only token, or Make a token that can also record values and create tasks if your integration writes.
  4. Copy the token, which starts cnp_. It is shown for ten minutes and cannot be shown again: keep it in your secret store, never in code.

The token acts as you: it sees your properties and does what your role allows, no more. For a long-running integration, make it on an account whose role fits the job. If your group administrator has switched apps and AI tools off (Settings, Apps and AI tools), every token in the group stops at once.

2. Make your first call

GET /me says who the token acts as. It needs no permission, so it is the quickest check that the token works.

Request
curl "https://portal.canoprise.io/api/v1/me" \
  -H "Authorization: Bearer cnp_…"
Answer
{
  "name": "Priya Shah",
  "role": "Property manager",
  "permissions": [
    "data.read",
    "data.enter",
    "tasks.assign"
  ],
  "properties": 4,
  "write": true,
  "expiresAt": "2027-02-27T10:00:00.000Z"
}

3. Read some data

List the properties the token can see, then the register of measures (the codes, such as ENV-01, that values are filed under), then values.

curl "https://portal.canoprise.io/api/v1/properties" -H "Authorization: Bearer cnp_…"
curl "https://portal.canoprise.io/api/v1/measures" -H "Authorization: Bearer cnp_…"
curl "https://portal.canoprise.io/api/v1/data-points?measure=ENV-01&limit=10" -H "Authorization: Bearer cnp_…"

Use the staging address, https://staging.canoprise.io/api/v1, with a token made on staging, while you build. Next: pulling data, pushing data, or every endpoint in the API reference.