API Documentation
Comprehensive API reference for integrating Automa8 AI agents into your systems. All endpoints use tRPC with automatic type safety.
Quick Start
Installation
npm install @automa8/sdkAuthentication
All API requests require authentication via your Manus OAuth session. The tRPC client automatically handles this.
import { trpc } from '@automa8/sdk';
// Automatically authenticated via session cookie
const result = await trpc.audit.submitResponses.useMutation();API Endpoints
/api/trpc/audit.submitResponsesSubmit Agent-Readiness Audit responses and get score
Parameters:
responses: Record<string, number>Example:
const result = await trpc.audit.submitResponses.useMutation();
await result.mutateAsync({
responses: {
"apis": 1,
"data_formats": 1,
"monitoring": 0,
"scalability": 1,
"security": 1,
"integration": 1,
"documentation": 0,
"governance": 1
}
});/api/trpc/analytics.getMetricsGet agent performance metrics
Parameters:
userId: string, timeframe: "24h" | "7d" | "30d"Example:
const { data: metrics } = trpc.analytics.getMetrics.useQuery({
userId: "user-123",
timeframe: "7d"
});/api/trpc/agents.getDeployedGet list of deployed agents for a user
Parameters:
userId: stringExample:
const { data: agents } = trpc.agents.getDeployed.useQuery({
userId: "user-123"
});/api/trpc/agents.deployDeploy a new autonomous agent
Parameters:
agentConfig: AgentConfig, walletAddress: stringExample:
const deploy = trpc.agents.deploy.useMutation();
await deploy.mutateAsync({
agentConfig: {
name: "MyAgent",
type: "trading",
capabilities: ["monitoring", "trading"]
},
walletAddress: "0x..."
});/api/trpc/leaderboard.getTopGet top Agent-Ready scores on leaderboard
Parameters:
limit: numberExample:
const { data: leaderboard } = trpc.leaderboard.getTop.useQuery({
limit: 10
});/api/trpc/profile.getUserGet user profile and achievements
Parameters:
userId: stringExample:
const { data: profile } = trpc.profile.getUser.useQuery({
userId: "user-123"
});SDK Examples
JavaScript/TypeScript
import { trpc } from '@automa8/sdk';
// Query data
const { data } = trpc.agents
.getDeployed.useQuery({ userId });
// Mutate data
const deploy = trpc.agents
.deploy.useMutation();
await deploy.mutateAsync(config);Python
from automa8 import Client
client = Client(api_key="...")
# Get deployed agents
agents = client.agents.get_deployed(
user_id="user-123"
)
# Deploy new agent
result = client.agents.deploy(
config=agent_config
)cURL
curl -X POST \
https://api.automa8.ai/trpc/audit.submitResponses \
-H "Content-Type: application/json" \
-d '{
"responses": {
"apis": 1,
"data_formats": 1
}
}'REST API
# All tRPC endpoints available at:
/api/trpc/[procedure]
# Example:
GET /api/trpc/leaderboard.getTop?limit=10
POST /api/trpc/agents.deploy
# Response format:
{
"result": {
"data": {...}
}
}Rate Limiting & Quotas
- •
Standard Tier:
1,000 requests/hour
- •
Pro Tier:
10,000 requests/hour
- •
Enterprise:
Custom limits
Support & Resources
Ready to Integrate?
Start building with Automa8 AI today. Deploy your first autonomous agent in minutes.