OpenAPI 参考文档¶
DotID 通过公共 APaaS API 网关以 OpenAPI 3.1 规范公开公共 REST API。本页是外部开发者查阅 Schema 和生成客户端的起点。
Live reference¶
The public API reference is an aggregated, read-only Stoplight Elements page generated from DotID's real service OpenAPI documents and the public capability→route mapping:
Published reference: https://docs.flexgalaxy.ai/api/dotid/
https://api.flexgalaxy.ai redirects to the API-reference index (https://docs.flexgalaxy.ai/api/), which links to the DotID reference above.
Machine-readable spec: the same page serves its bundled OpenAPI document at https://docs.flexgalaxy.ai/api/dotid/_static/fg-stoplight/spec.yaml — fetch that to generate clients.
The reference is browsable — schemas, status codes, and examples — but does not send live requests. It is regenerated from the running services' specs on every docs deploy, so it always tracks the deployed API.
Each DotID service also publishes a service-local OpenAPI document at the
standard springdoc path /v3/api-docs (JSON) or /swagger-ui.html (interactive
UI). Those service-local paths are internal implementation details and are
not reachable through the public gateway; use the published reference above.
Identity API¶
公共 Identity API 通过公共 API 网关访问。公共路由仅使用网关能力前缀;内部服务控制器路径属于实现细节。
/identity/v1/accounts/{account_id}/service-users...— non-human service users./identity/v1/accounts/{account_id}/policies...— policies./identity/v1/accounts/{account_id}/access-keys...— access keys (create, list, get, rotate, delete)./organizations/v1...— organizations, OUs, SCPs./identity/v1/organizations/{orgId}/identity-center/...— Identity Center workforce users and groups./identity/v1/organizations/{orgId}/permission-sets...— 权限集。/identity/v1/organizations/{orgId}/account-assignments...— Identity Center 账户分配。
每个端点的请求 Schema、响应 Schema 和错误目录都在实时规范中有完整文档。
Audit 服务规范¶
公共 Audit API 通过网关的 /audit/ 前缀暴露:
/audit/v1/self— the caller's audit profile./audit/v1/accounts/{account_id}/events— paginated query over one account's audit log./audit/v1/events/{event_id}— single-event fetch by event ID.
用它来排查 DotID 的决策结果及理由。每一次 PDP 决策和每一次信任策略变更都会产生一条审计事件。
版本管理¶
DotID 所有 API 均通过 URL 路径进行版本管理(/v1/,未来 /v2/ 等)。平台不使用基于 Accept header 的版本管理。版本保持稳定:v1 端点可新增可选响应字段,但不会更改已有字段的语义。不兼容变更将以新的主版本发布。
OpenAPI snapshots for each release are published as the
openapi-snapshots-<tag-with-slashes-as-hyphens>.tar.gz asset on that release's
api/vX.Y.Z GitHub Release tag (plus its .sha256) — api/v1.0.0 ships
openapi-snapshots-api-v1.0.0.tar.gz; browse them at
https://github.com/SiriusVoyager/DotID/releases?q=api%2Fv. Pin your
generated clients to the snapshot version of the service you target, not "latest", to
keep CI deterministic. Every change to a committed baseline is checked against the last
release's snapshot by scripts/check-openapi-breaking.py (openapi-breaking.yml), so an
in-place breaking change fails CI instead of shipping, unless a reasoned declaration
(docs/openapi/breaking-change-declarations.json) authorises that one change.
内部 API 和控制台 API¶
First-party console, admin-console, service-local, and service-to-service APIs are not part of this public API reference. Internal interactive references use Scalar behind insider docs authentication. The public developer reference is a read-only Stoplight Elements page generated from the public OpenAPI documents.