Skip to main content

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

For local development:

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

Rate Limiting

API requests are rate limited:
  • Free tier: 100 requests per hour
  • Pro tier: 1,000 requests per hour
  • Enterprise: Custom limits
Rate limit headers:

Pagination

List endpoints support pagination:
Response includes pagination metadata:

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

Quick Start

Next Steps

Authentication

Set up API authentication

Endpoints

Explore available endpoints

Still have a question?