介绍
平台介绍
Unkey API 使用 HTTP RPC 风格的方法,通常遵循以下模式:
https://api.unkey.dev/{version}/{service}.{method}例如 GET https://api.unkey.dev/v1/apis.listKeys 用于列出 API 的所有密钥。
HTTP 方法
我们严格只使用 GET 和 POST 方法。不使用 PUT 和 DELETE。
GET
GET 方法用于读取数据。过滤、排序或分页通过查询参数完成。
curl "https://api.unkey.dev/v1/keys.getKey?keyId=key_123" \
-H "Authorization: Bearer <ROOT_KEY>"POST
POST 方法用于创建、更新和删除数据。数据以 application/json 格式在请求体中传递。
curl -XPOST "https://api.unkey.dev/v1/keys.createKey" \
-H "Authorization: Bearer <ROOT_KEY>" \
-H "Content-Type: application/json" \
-d '{"apiId": "api_123", "name": "My Key"}'Markdown
Fumadocs has some additional features for authoring content.
Navigation
Learn how to customise navigation links and sidebar items.
Routing
Learn how to organise content.
Components
See all available components to enhance your docs
See also
Find additional resources and documentation to enhance your Sunar experience. These links offer valuable insights and advanced techniques for bot development.
Last updated on