Unidy Docs

Instance and principal discovery

Discover API-documentation connection capabilities and inspect the current principal.

Tools integrating Unidy API documentation can discover an instance's connection capabilities. These endpoints describe a connection; they do not replace authorization checks on the operation being called.

EndpointAccess and result
GET /.well-known/unidy-api-docsPublic capability discovery, including API-key availability and OAuth connection metadata.
GET /api/docs/bootstrapAuthenticated instance identity, environment, permitted brands and principal information.
GET /api/v2/auth/principalAuthenticated principal information; requires API v2 enabled.
GET /api/docs/instancesDeployment-directory results for eligible Unidy staff only, when a directory is configured.

Send an API key in Authorization: Bearer … for API access. Principal metadata identifies a system key, personal key or documentation OAuth user and reports grants. A grant marked limited has additional constraints; its displayed resource/actions are not an unrestricted permission promise.

Documentation OAuth is a separate capability

The documentation connection metadata currently advertises authentication.oauth: false, even when OAuth endpoint/client metadata is present. Honor the capability value instead of assuming that endpoint URLs enable an OAuth API connection.

A documentation OAuth connection uses the distinct api_docs scope and does not authorize API calls. Check the returned principal.api_access; do not treat a successful bootstrap or documentation sign-in as a usable API credential. The MCP OAuth flow instead uses api_v2 and has its own rollout requirement.

Bootstrap can list permitted API-key names and status metadata for an authorized key owner, but does not return their plaintext tokens. Obtain the token through the supported key-creation workflow.

Directory access is restricted separately. A normal customer connection does not provide a tenant directory. An unconfigured or unavailable directory can return 503 directory_unavailable; denied access returns 403.

These responses are not cacheable connection state. Refresh them when changing the instance or credential, and continue to handle authorization failures from actual API requests.

Was this page helpful?