API-Schlüssel abrufen
KI

POST /api/ai/agents/:runId/tool-results/:callId

POST https://api.iagenify.com/api/ai/agents/RUNID/tool-results/CALLID

Referenz für POST /api/ai/agents/:runId/tool-results/:callId.

Authentifizierung erforderlichkein JSON-Anfragetext

HTTP-Anfrage

curl https://api.iagenify.com/api/ai/agents/RUNID/tool-results/CALLID -X POST -H "Authorization: Bearer $IAGENIFY_TOKEN"

JavaScript

const response = await fetch("https://api.iagenify.com/api/ai/agents/RUNID/tool-results/CALLID", {
  method: "POST",
  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("POST", "https://api.iagenify.com/api/ai/agents/RUNID/tool-results/CALLID", headers={"Authorization": "Bearer " + os.environ["IAGENIFY_TOKEN"]}, timeout=30)
response.raise_for_status()
result = response.json()

Pfadparameter

runIdstringerforderlich

Wert für :runId.

callIdstringerforderlich

Wert für :callId.

Antwort und Fehler

Bei Erfolg gibt der Endpunkt JSON zurück. Explizite Statuscodes: 404. Fehlercodes: tool_request_not_found.