Overview
The RunAgent API is a RESTful interface that allows you to deploy, manage, and interact with AI agents programmatically. All API access is over HTTPS, and data is sent and received as JSON.Base URL
Authentication
All API requests require authentication using an API key:Never expose your API key in client-side code or public repositories.
Request Format
Headers
Required headers for all requests:Request Body
POST and PUT requests accept JSON:Response Format
Success Response
Error Response
Status Codes
Code | Meaning |
---|---|
200 | Success |
201 | Created |
400 | Bad Request |
401 | Unauthorized |
404 | Not Found |
429 | Rate Limited |
500 | Internal Error |
Rate Limiting
API requests are rate limited:- Free tier: 100 requests per hour
- Pro tier: 1,000 requests per hour
- Enterprise: Custom limits
Pagination
List endpoints support pagination:Versioning
The API is versioned via the URL path:- Current version:
v1
- Legacy support: 12 months
- Deprecation notices: 6 months in advance
Common Patterns
Async Operations
Long-running operations return immediately:Streaming Responses
For streaming endpoints, use Server-Sent Events:Batch Operations
Submit multiple requests in one call:SDK vs Direct API
Feature | SDK | Direct API |
---|---|---|
Ease of use | ⭐⭐⭐⭐⭐ | ⭐⭐⭐ |
Type safety | ✅ | ❌ |
Auto-retry | ✅ | ❌ |
Streaming support | ✅ | Manual |
Language support | Multiple | Any |