跳转到内容
EN

搜索文档

GET/meta/v1/docs/search● 支持

请求参数

  • qstring必填

    query: Keywords describing the syntax or guide needed, for example export or workflow.

  • limitinteger可选
    默认 20

    query: Maximum number of matching pages returned; integer 1–50, default 20.

  • langstring可选
    默认 "zh"

    query: Documentation language: zh for Chinese (default), en for English.

    取值 zhen

返回

200

错误按 problem+json 格式返回,参见 错误码

请求示例

curl
curl "https://api.deepraxis.com/meta/v1/docs/search?q=export&limit=3&lang=zh"
Python
import requests

opts = dict(
    base_url="https://api.deepraxis.com/meta",
)

resp = requests.get(
    f"{opts['base_url']}/v1/docs/search",
    params={"q": "export", "limit": 3, "lang": "zh"},
)
print(resp.json())
TypeScript
const opts = {
  baseURL: "https://api.deepraxis.com/meta",
};

const resp = await fetch(`${opts.baseURL}/v1/docs/search?q=export&limit=3&lang=zh`);
console.log(await resp.json());

响应示例 200

[
  {
    "path": "api/compatible/e2b",
    "title": "E2B 兼容接口",
    "url": "https://docs.deepraxis.com/api/compatible/e2b",
    "snippet": "ercontent.com`。 也可以不改代码,只设环境变量: <QuickstartCode code=\"&#x22;export E2B_API_KEY=$PRAXIS_API_KEY\\nexport E2B_API_URL=https://api.deepraxis.com/e2b\\nexport E2B_DOMAIN=praxisusercontent.com&#x22;\" language=\"bash\" /> ## 端点 [#端点] | 方法 | 路径 | 说明 | 支持 | | ------ | --------------------------------------------------------------"
  },
  {
    "path": "api/native/agent/getCustomerDeletion",
    "title": "查询客户删除任务",
    "url": "https://docs.deepraxis.com/api/native/agent/getCustomerDeletion",
    "snippet": "ier. | | status | string | pending: accepted; snapshotting: exporting recovery data; deleting: verified snapshot exists and erasure is running; done: erasure completed; failed: stopped safely, retry DELETE to resume the same task. | | counts | object | Counts from the verified snapshot; empty until snapshotting complet"
  },
  {
    "path": "api/native/automation/archiveAction",
    "title": "归档动作",
    "url": "https://docs.deepraxis.com/api/native/automation/archiveAction",
    "snippet": "ementation\": { \"kind\": \"code\", \"language\": \"ts\", \"source\": \"export default async (input: { n: number }) => ({ answer: input.n + 1 });\" }, \"host\": \"isolate\", \"platform_apis\": [], \"created_by\": { \"type\": \"api_key\", \"id\": \"key_rbq66f5v9vxqbk6cd702x5er\" }, \"message\": \"回滚到 actr_00mvoxlgsk801cc9175f4f4a49977639b88f9fe24d\", \""
  }
]

响应

HTTP 200

Matching documentation pages; empty when no page contains all keywords.

application/json

名称 类型 说明
[].path string Documentation path, including the requested section anchor when present.
[].title string Human-readable title of the documentation page.
[].url string Canonical documentation URL for reading the page in a browser.
[].snippet string Short excerpt from the matching page to help choose which documentation to retrieve.