API Documentation
Comprehensive developer resources for integrating with the 4UAI platform
Quick Start
Authentication
curl -H "Authorization: Bearer your_api_key" \
-H "Content-Type: application/json" \
https://api.4uai.com/v1/agents
Making Your First Request
POST /v1/agents/chat
{
"agent_id": "business_analyst",
"message": "Analyze Q3 sales data",
"context": {}
}
Core API Endpoints
Agents API
Method | Endpoint | Description |
---|---|---|
GET | /v1/agents |
List all available agents |
GET | /v1/agents/{id} |
Get specific agent details |
POST | /v1/agents/{id}/chat |
Start conversation with agent |
PUT | /v1/agents/{id}/configure |
Update agent configuration |
Workflows API
Method | Endpoint | Description |
---|---|---|
POST | /v1/workflows |
Create new workflow |
GET | /v1/workflows/{id} |
Get workflow status |
POST | /v1/workflows/{id}/execute |
Execute workflow |
DELETE | /v1/workflows/{id} |
Cancel workflow |
Analytics API
Method | Endpoint | Description |
---|---|---|
GET | /v1/analytics/usage |
Get usage statistics |
GET | /v1/analytics/performance |
Get performance metrics |
GET | /v1/analytics/costs |
Get cost breakdown |
Rate Limits
Plan | Requests/min | Daily Limit |
---|---|---|
Free | 60 | 1,000 |
Pro | 300 | 10,000 |
Enterprise | Unlimited | Custom |
Authentication
- API Keys: Bearer token authentication
- OAuth 2.0: For user applications
- JWT: For service-to-service
- Webhooks: HMAC signature verification
Need Help Getting Started?
Our developer support team is here to help you integrate successfully