API Reference
Build powerful integrations with our comprehensive REST and GraphQL APIs. Full documentation, SDKs, and code examples to get you started.
Quick Start
curl -X POST https://api.zilionix.com/v1/agents \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"name": "My First Agent",
"model": "gpt-4",
"instructions": "You are a helpful assistant"
}'
Built for Developers
Everything you need for seamless integration
RESTful API
Clean, predictable REST endpoints with JSON responses
GraphQL Support
Query exactly what you need with our GraphQL endpoint
Webhooks
Real-time event notifications for agent activities
Rate Limiting
10,000 requests per hour with burst support
Authentication
Secure API keys and OAuth 2.0 support
Versioning
Stable API versions with backward compatibility
Core Endpoints
Essential API endpoints for agent management
GET
/api/v1/agents
List all agents in your workspace
POST
/api/v1/agents
Create a new AI agent
GET
/api/v1/agents/{id}
Get details of a specific agent
PUT
/api/v1/agents/{id}
Update agent configuration
POST
/api/v1/agents/{id}/execute
Execute an agent task
DELETE
/api/v1/agents/{id}
Delete an agent
Official SDKs
Get started quickly with our language-specific libraries
🐍
Python
from zilionix import Client
client = Client(api_key="your_api_key")
agent = client.agents.create(
name="Customer Support",
model="gpt-4",
instructions="Help customers..."
)
📜
JavaScript
import { Zilionix } from '@zilionix/sdk';
const client = new Zilionix({
apiKey: 'your_api_key'
});
const agent = await client.agents.create({
name: 'Customer Support',
model: 'gpt-4'
});
🐹
Go
import "github.com/zilionix/zilionix-go"
client := zilionix.NewClient("your_api_key")
agent, err := client.Agents.Create(&zilionix.Agent{
Name: "Customer Support",
Model: "gpt-4",
})
💎
Ruby
require 'zilionix'
client = Zilionix::Client.new(api_key: 'your_api_key')
agent = client.agents.create(
name: 'Customer Support',
model: 'gpt-4'
)