Back to docs overview

Examples

Ready-to-run request examples for cURL, Python, and JavaScript.

cURL

Minimal call to fetch the agent list.

curl -X GET https://api.agentic360.de/api/v1/agents \
  -H "Authorization: Bearer <ACCESS_TOKEN>" \
  -H "X-Tenant-ID: <TENANT_ID>"

Python

Typical service-to-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 or Node.js example with error handling.

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);