Application Access

Application Access provides server-to-server device access for the current organization only. Parent organizations, child organizations, and other organizations are outside the request scope.

OAuth2 client credentials required

Use the existing Obtain / Refresh Tokens endpoint with grant_type=client_credentials. It authenticates your backend application and provides an access token for its assigned organization.

Use a dedicated Application Access client ID and secret, separate from the User Access client. No browser login, user consent, authorization code, redirect URI, or refresh token is required. User-authorized access tokens are not a substitute. At expiry, repeat the client-credentials request. See the Authentication Guide.

curl --request POST 'https://api.elecq.com/api/v1/oauth2/token' \
  --user 'CLIENT_ID:CLIENT_SECRET' \
  --header 'Content-Type: application/x-www-form-urlencoded' \
  --data-urlencode 'grant_type=client_credentials' \
  --data-urlencode 'scope=application.device.read application.device.credentials.read'

Request only scopes assigned to your client, and send them explicitly. Omitting scope grants no resource API permissions. application.device.read permits the device list and basic fields; application.device.credentials.read additionally permits PINs and Random Codes. The organization is resolved from the application's trusted identity, not a request-supplied organization ID. Organization hierarchy does not expand this scope.

Available reference

  • List Organization Devices: cursor-based retrieval for initial import and periodic full reconciliation, with field selection and optional import-time bounds.

This endpoint is available to onboarded Application Access clients with the required scopes and a registered recipient public key. The base URL https://api.elecq.com covers Europe-region data. Start with the Application Access quick start.

Encrypted business responses are mandatory

Provide ELECQ with your RSA public key as a PEM file and the corresponding OAuth2 client ID. Wait for ELECQ to confirm activation and provide the key identifier (kid) before retrieving device data. Keep the private key on your own server. Every successful device-list response is an entire-page JWE Compact value using RSA-OAEP-256 + A256GCM, returned as application/jose. There is no ordinary-JSON success option or plaintext fallback, even when only basic fields are selected.

Send Authorization: Bearer ACCESS_TOKEN and Accept: application/jose to the device endpoint. A request Content-Type does not enable or disable encryption. The JSON examples in the endpoint description show the data after decryption. Token responses and API-generated errors remain JSON. Gateways may return a different error format; inspect HTTP status and Content-Type before decryption.

Follow Business Data Encryption for key registration, decryption, key rotation, and error handling.