Discovery API 参考
Platform API v1 的 Discovery:每个操作的路径、参数、请求与回应字段、scope、幂等与错误,直接取自 API 合约。
由 API 合约(Agent Lab Platform API 1.0.0-alpha.1)产生。说明文本是合约的英文原文。
Public documents a client reads before it can authenticate.
This document, as JSON#
GET /v1/openapi.json
| Scope | 身分 | 验证方式 | Idempotency-Key |
|---|---|---|---|
| 无 | — | 无 | — |
回应
| 状态码 | 内容 | 说明 |
|---|---|---|
200 | application/json: object | The OpenAPI document this server conforms to. |
503 | application/json: Error | Try again later (recovery: retry). |
200 application/json
| 字段 | 类型 | 必填 | 说明 |
|---|---|---|---|
openapi | string | 是 | — |
info | object | 是 | — |
paths | object | 是 | — |
OpenID Connect discovery#
GET /.well-known/openid-configuration
Issuer, endpoints and the rules an OpenID relying party reads. Any origin may read it.
| Scope | 身分 | 验证方式 | Idempotency-Key |
|---|---|---|---|
| 无 | — | 无 | — |
回应
| 状态码 | 内容 | 说明 |
|---|---|---|
200 | application/json: OpenIDConfiguration | The provider metadata. |
OAuth authorization server metadata (RFC 8414)#
GET /.well-known/oauth-authorization-server
| Scope | 身分 | 验证方式 | Idempotency-Key |
|---|---|---|---|
| 无 | — | 无 | — |
回应
| 状态码 | 内容 | 说明 |
|---|---|---|
200 | application/json: AuthorizationServerMetadata | The authorization server metadata. |
The key that signs channel event deliveries#
GET /.well-known/agentlab-sdk-event-key.json
The public half of the Ed25519 key that signs sdk-event/v1 deliveries (agentlab-sdk-event-v1-ed25519). Cached for five minutes. When event delivery is not configured the answer is 503, never an empty key a client could cache as valid.
| Scope | 身分 | 验证方式 | Idempotency-Key |
|---|---|---|---|
| 无 | — | 无 | — |
回应
| 状态码 | 内容 | 说明 |
|---|---|---|
200 | application/json: SdkEventVerificationKey | The verification key. |
503 | application/json: LegacyErrorString | Event delivery is not configured on this server. |