获取 API 密钥
人工智能

DELETE /api/ai/agents/:runId

DELETE https://api.iagenify.com/api/ai/agents/RUNID

DELETE /api/ai/agents/:runId 参考。

需要身份验证无 JSON 请求体

HTTP 请求

curl https://api.iagenify.com/api/ai/agents/RUNID -X DELETE -H "Authorization: Bearer $IAGENIFY_TOKEN"

JavaScript

const response = await fetch("https://api.iagenify.com/api/ai/agents/RUNID", {
  method: "DELETE",
  headers: { Authorization: `Bearer ${process.env.IAGENIFY_TOKEN}` }
});
const result = await response.json();
if (!response.ok) throw new Error(result.error);

Python

import os
import requests

response = requests.request("DELETE", "https://api.iagenify.com/api/ai/agents/RUNID", headers={"Authorization": "Bearer " + os.environ["IAGENIFY_TOKEN"]}, timeout=30)
response.raise_for_status()
result = response.json()

路径参数

runIdstring必填

:runId 的值。

响应与错误

成功时,端点返回 JSON。