外部开发者的 API 概述¶
DotID 为在 FlexGalaxy.AI APaaS 上构建应用的开发者公开合作伙伴 API。这些 API 使用通用产品名称,因此集成者无需了解内部服务代号。
API 发布位置¶
External developer APIs are exported through the public API edge.
环境 |
基础 URL |
|---|---|
生产 |
Your integration contract is exactly two things: the base URL above and the capability path you call under it —
/developer/v1/… /service-catalog/v1/… /identity/v1/… /accounts/v1/…
/organizations/v1/… /passport/v1/… /quota/v1/… /audit/v1/… /directory/v1/…
Two standards-protocol paths are also served, without a capability prefix:
POST /oauth2/token (RFC 8693 token exchange) and the /.well-known/…
metadata (JWKS and protected-resource discovery). The operator-only residency
family is NOT part of a partner contract and is not listed here.
Everything behind that edge — which gateway product terminates it, how it is deployed, and which internal service answers — is an implementation choice you cannot observe and must not depend on. It can change without notice; the base URL and the capability path cannot.
Local development may also use direct service ports while debugging, but examples and published API docs should use the edge-facing names.
API 类别¶
API 类别 |
用途 |
|---|---|
|
与用户、组、权限集和分配相关的身份 API,可安全公开给已注册的应用。 |
|
针对 PassPort 注册应用的应用作用域登录、启动、会话和作用域检查。 |
|
账户级发现和账户作用域的应用安装工作流。 |
|
组织级发现和组织作用域的安装工作流。 |
|
发现服务、能力、应用注册和可安装集成。 |
|
注册面向开发者的能力和应用作用域。 |
|
读取配额信息,并在调用方有权限时提交配额调整请求。 |
|
读取调用方账户或组织上下文可用的审计事件。 |
|
Cross-organization account-directory lookup for counterparty pickers, limited to ACTIVE org-member accounts the caller may see. |
内部服务代号不属于外部合约的一部分。
身份验证¶
Protected tenant APIs exported through the public API edge use AWS-shaped signed requests:
a static AKIA service-user key, or temporary DotID STS ASIA credentials including the
signed X-FGAI-Security-Token header. Human OAuth/OIDC bearer tokens authenticate browser
sessions, not CLI or direct public API-edge calls.
The full model — which host admits which scheme, the route-level exceptions, and the exact refusal a caller sees — is stated ONCE in External authentication model. Read that page rather than inferring a credential from an endpoint's status code.
不要从合作伙伴应用调用 Keycloak Admin API。Keycloak 是 DotID 背后的身份提供方,而不是公共管理 API。
资源命名¶
同时作为 稳定标识符 的资源名称 — Identity Center groups 和 permission sets、IAM users(service users)、groups、roles、managed and inline policies、SCPs、resource policies,以及 workload identities — 必须匹配 AWS IAM / Identity Center 名称字符集 ^[\w+=,.@-]+$:仅允许字母、数字和 + = , . @ _ -(不允许空格或其他空白,也不允许其他标点)。这些名称会按值引用(FRN segments、group↔permission-set pairing、customer-managed-policy name resolution),因此任何超出字符集的内容都会在 create/update 时被拒绝并返回 400。使用 - 或 _ 分隔词(例如 store-manager,而不是 Store Manager)。自由文本 description 字段和人类显示名称(organization 和 account names、user first/last names)不受影响。
Inline policies¶
Inline policies are refused on customer accounts. Creating one against any account other
than the platform account returns 400 with the error code
IAM_INLINE_POLICY_FORBIDDEN_ON_PRODUCTION. Compose a managed policy and attach it by FRN
instead (ADR-0026 §4); the refusal payload names the replacement explicitly.
未导出的内容¶
以下接口面向内部使用,不是合作伙伴 API:
内部管理应用使用的平台 admin-console API。
First-root plus standalone-Account bootstrap (
POST /accounts/v1). Existing Organizations use the public member-account/provisioning capabilities instead.第一方 Web 应用使用的仅限控制台 API。
内部服务间端点。
原始 Keycloak 管理 REST 端点。
Terraform、部署、seed 或操作员端点。
如果您的集成需要的能力似乎位于这些接口背后,请申请合作伙伴 API,而不是依赖内部路由。
文档格式¶
External API references are published as an aggregated, read-only Stoplight Elements page at https://docs.flexgalaxy.ai/api/dotid/. They are read-only by design so external developers can browse schemas, status codes, and examples without sending live requests from the documentation site.
请参阅 OpenAPI 参考 获取已发布的规范,并参阅 外部开发者 API 示例 获取可运行的集成演练。