API Reference

Quickstart

Contact [email protected] for API credentials.

All API endpoints are authenticated using OAuth 2.0. API credentials are provided as Client Credential Grant.

1. Get an access token

Request an access token from the Authenticate endpoint, providing your client ID and secret:

curl --request POST \
  --url https://armoredthings.auth0.com/oauth/token \
  --header 'content-type: application/json' \
  --data-raw '{
    "client_id":"<CLIENT ID>",
    "client_secret":"<CLIENT SECRET>",
    "audience":"api.lambentspaces.com",
    "grant_type":"client_credentials"
  }'

Response

{
  "access_token": "<TOKEN>",
  "token_type": "Bearer"
}

2. Query the Level Occupancy API

Query the Level Occupancy v1 endpoint by providing your access token in the Authorization header:

curl --request GET \
  --url https://prod-api-ag.lambentspaces.app/analyze/v1/occupancy/level \
  --header 'Authorization: Bearer <TOKEN>'