> ## Documentation Index
> Fetch the complete documentation index at: https://docs.bijection.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Azure Digital Twins

> Observe twins by ID through the Azure Digital Twins query service.

Grant an Entra service principal read access to the reviewed Azure Digital
Twins instance. Use [app-rest](https://docs.bijection.com/integrations/native-rest.md#mount-and-bind),
`providerEndpoint`, provider `azure-digital-twins.query.observations`,
the instance's public HTTPS endpoint and `/query`. Seal an OAuth2 credential
or bearer token with Azure Digital Twins audience. Pass the same label to the receiver binder and as the app's `data`.

Initialize with
`{ profile: { mode: "provider", provider: "azure-digital-twins.query.observations", limit: 20 } }`.
The app starts with `SELECT * FROM DIGITALTWINS` at API version
`2023-10-31` and publishes observations keyed by `$dtId`. It follows each
opaque continuation token, up to the configured 1–50 records and 36 KiB
per page. A terminal answer resets the position for another live sweep.
Omitted twins remain published. The app reads twin records and their
provider properties.

[Azure Digital Twins Query API](https://learn.microsoft.com/en-us/rest/api/digital-twins/dataplane/query/query-twins?view=rest-dataplane-2023-10-31)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.