Skip to main content

Python SDK (Coming Soon)

A Python SDK for MeetLoyd is planned but not yet available. In the meantime, you can use the REST API directly from Python with any HTTP library (requests, httpx, aiohttp).

Using the REST API with Python

Here is a minimal example using the requests library:

import requests

API_KEY = "sk_live_your_api_key"
BASE_URL = "https://app.meetloyd.com/api/v1"

headers = {
"Authorization": f"Bearer {API_KEY}",
"Content-Type": "application/json",
}

# List agents
response = requests.get(f"{BASE_URL}/agents", headers=headers)
response.raise_for_status()

agents = response.json()
for agent in agents.get("agents", []):
print(f"{agent['id']} - {agent['name']} ({agent['status']})")

For async usage, consider httpx or aiohttp:

import httpx

async def list_agents():
async with httpx.AsyncClient() as client:
response = await client.get(
"https://app.meetloyd.com/api/v1/agents",
headers={"Authorization": "Bearer sk_live_your_api_key"},
)
response.raise_for_status()
return response.json()

See the API Overview for the full list of available endpoints.


Next: Learn about the CLI Reference for command-line usage.