Ejemplos
Ejemplos listos para usar con cURL, Python y JavaScript.
cURL
Llamada mínima para obtener la lista de agentes.
curl -X GET https://api.agentic360.de/api/v1/agents \
-H "Authorization: Bearer <ACCESS_TOKEN>" \
-H "X-Tenant-ID: <TENANT_ID>"Python
Solicitud típica de servicio a servicio.
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
Ejemplo para navegador o Node.js con manejo de errores.
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);