Getting Started

Follow these steps to start using Headless Agents in your application.

1. Get Your API Key

2. Make Your First API Call

3. Integration Examples

Python

import requests

API_KEY = 'your_api_key'
AGENT_ID = 'your_agent_id'

response = requests.post(
    f'https://api.headlessagents.ai/call/{AGENT_ID}',
    headers={'X-API-Key': API_KEY},
    json={'request': 'Hello!'}
)
print(response.json())

JavaScript

const response = await fetch(
  `https://api.headlessagents.ai/call/${agentId}`,
  {
    method: 'POST',
    headers: {
      'X-API-Key': 'your_api_key',
      'Content-Type': 'application/json',
    },
    body: JSON.stringify({
      request: 'Hello!'
    }),
  }
);
const data = await response.json();

Next Steps

Now that you’ve made your first API call, explore these resources to learn more: