Base URL
All API requests should be made to:API Endpoints
The AgentHuman Client API (/v1/*) is designed for building applications and integrations with API key authentication.
Client API (/v1/*)
Client endpoints use API key authentication and are ideal for:
- Building custom integrations
- Automating sessions
- Creating agents programmatically
- Managing resources via API
Response Format
All API responses follow a consistent JSON structure:Success Response
Error Response
HTTP Status Codes
| Status Code | Description |
|---|---|
200 | Success - Request completed successfully |
201 | Created - Resource created successfully |
204 | No Content - Request successful with no response body |
400 | Bad Request - Invalid request parameters |
401 | Unauthorized - Invalid or missing API key |
403 | Forbidden - Insufficient permissions |
404 | Not Found - Resource does not exist |
429 | Too Many Requests - Rate limit exceeded |
500 | Internal Server Error - Server error |
503 | Service Unavailable - Service temporarily offline |
Rate Limiting
To ensure fair usage and system stability, we enforce rate limits:| Endpoint Type | Limit | Window |
|---|---|---|
API Endpoints (/v1/*) | 60 requests | 1 minute |
Best Practices
- Store API Keys Securely: Never expose API keys in client-side code or public repositories
- Handle Errors Gracefully: Implement proper error handling and retry logic
- Respect Rate Limits: Implement exponential backoff when approaching limits
- Use HTTPS: Always use HTTPS for API requests
- Monitor Usage: Track your API usage to optimize performance
Getting Started
- Generate an API Key: Create an API key from your account settings
- Make Your First Request: Test your API key with a simple GET request
- Explore Endpoints: Browse the available endpoints in this documentation
Client API Reference
Endpoints for client applications and integrations
Support
Need help? Contact our support team:Email Support
Status Page
Check API status at status.agenthuman.com