API
This specification
https://ecdsa.com/api/v1/openapi.jsonThe OpenAPI 3.1 document of this API, generated from the same operation definitions the server runs. The same document for every caller: cached by the CDN for an hour, not rate limited.
- API 密钥
- 不读取:对所有人返回相同的响应
- 速率限制
- 无:由 CDN 缓存提供
请求
此操作不需要输入。
响应
200OpenAPI 3.1 document.
| 字段 | 类型 | 必需 | 说明 |
|---|---|---|---|
| openapi | string | 是 | The OpenAPI version, "3.1.0". |
| info | object | 是 |
|
| info.title | string | 是 | |
| info.version | string | 是 | |
| paths | object | 是 |
|
| 状态码 | 含义 | 错误码 |
|---|---|---|
| 404 | Not found. | |
| 405 | Method not allowed. | |
| 500 | Internal server error. |
每个错误响应都带有 JSON 信封;错误表说明了每个错误码的含义和处理方法。
示例
The OpenAPI document
curl -sS 'https://ecdsa.com/api/v1/openapi.json'const response = await fetch("https://ecdsa.com/api/v1/openapi.json");
console.log(response.status, await response.json());import httpx
response = httpx.get("https://ecdsa.com/api/v1/openapi.json", timeout=30.0)
print(response.status_code, response.json())200 响应是 109 KB 的 JSON,太长,无法在此显示:打开查看。
这是 API 对此示例的响应,于2026年10月20日为本页生成;其中的相对时间和天数都以当天为准。
错误码
| 错误码 | 状态码 | 含义 |
|---|---|---|
| not_found | 404 | No operation exists at this path. |
| method_not_allowed | 405 | The path exists but does not accept this HTTP method; see the Allow header. |
| internal_error | 500 | Unexpected server error. |
Schema
Error
The error envelope of every non-2xx response.
| 字段 | 类型 | 必需 | 说明 |
|---|---|---|---|
| error | object | 是 | |
| error.code | string | 是 | Machine-readable error code. Each response lists the codes it can carry; new codes may be added within v1, so treat an unknown code by its HTTP status. |
| error.message | string | 是 | Human-readable explanation (English). |
| error.requestId | string | 否 | The X-Request-Id of this request — quote it when reporting a problem. Sent since v1.1. |
| error.detail | object | 否 | Structured context for the error, such as the offending field; omitted when there is none.
|
| error.docs | string | 否 | Where the error codes are explained. Sent since v1.1.
|
所有操作都列在 API 参考中。