Beispiele
Direkt nutzbare Beispielaufrufe fuer cURL, Python und JavaScript.
cURL
Minimaler Call zum Laden der Agentenliste.
curl -X GET https://api.agentic360.de/api/v1/agents \
-H "Authorization: Bearer <ACCESS_TOKEN>" \
-H "X-Tenant-ID: <TENANT_ID>"Python
Typischer Service-zu-Service Request.
import requests
response = requests.get(
"https://api.agentic360.de/api/v1/agents",
headers={
"Authorization": "Bearer <ACCESS_TOKEN>",
"X-Tenant-ID": "<TENANT_ID>",
},
)
print(response.status_code, response.json())JavaScript
Browser oder Node.js Beispiel mit Fehlerpruefung.
const response = await fetch("https://api.agentic360.de/api/v1/agents", {
headers: {
Authorization: "Bearer <ACCESS_TOKEN>",
"X-Tenant-ID": "<TENANT_ID>",
},
});
if (!response.ok) throw new Error(`API error: ${response.status}`);
const data = await response.json();
console.log(data);