API Reference
Complete reference for the Vexly API.
Overview
The Vexly API provides programmatic access to all platform features. The API is:
- RESTful - Uses standard HTTP methods
- JSON-based - All requests and responses use JSON
- Authenticated - Requires API key authentication
- Versioned - Supports multiple API versions
Base URL
Authentication
All API requests require authentication using an API key:
Common Endpoints
Agents
List Agents
Returns a list of all agents.
Create Agent
Creates a new agent.
Request Body:
{
"name": "MyAgent",
"description": "Agent description",
"config": {
"model": "gpt-4",
"temperature": 0.7
}
}
Get Agent
Retrieves details for a specific agent.
Update Agent
Updates an existing agent.
Delete Agent
Deletes an agent.
Analytics
Get Usage Metrics
Returns usage statistics for your agents.
Query Parameters:
- start_date - Start date (ISO 8601)
- end_date - End date (ISO 8601)
- agent_id - Filter by specific agent (optional)
Response Codes
200 OK- Request successful201 Created- Resource created successfully400 Bad Request- Invalid request parameters401 Unauthorized- Missing or invalid API key404 Not Found- Resource not found429 Too Many Requests- Rate limit exceeded500 Internal Server Error- Server error
Rate Limiting
API requests are rate limited to:
- 1000 requests per hour for standard tier
- 10000 requests per hour for premium tier
Rate limit headers are included in all responses:
Error Handling
Error responses include details to help diagnose issues:
{
"error": {
"code": "INVALID_PARAMETER",
"message": "The 'name' parameter is required",
"details": {
"parameter": "name"
}
}
}
SDK Libraries
Official SDKs are available for:
- Python:
pip install agentspot-sdk - JavaScript:
npm install @agentspot/sdk - Go:
go get github.com/agentspot/go-sdk
Examples
Python
from agentspot import VexlyClient
client = VexlyClient(api_key="YOUR_API_KEY")
# List agents
agents = client.agents.list()
# Create agent
agent = client.agents.create(
name="MyAgent",
config={"model": "gpt-4"}
)
JavaScript
const Vexly = require('@agentspot/sdk');
const client = new Vexly({ apiKey: 'YOUR_API_KEY' });
// List agents
const agents = await client.agents.list();
// Create agent
const agent = await client.agents.create({
name: 'MyAgent',
config: { model: 'gpt-4' }
});
Support
For API support:
- Email: api-support@agentspot.com
- Documentation: https://docs.agentspot.com
- Status: https://status.agentspot.com