Skip to main content

API Reference

This API reference is auto-generated from our OpenAPI specification.

Overview

ASG Agent Cloud uses MCP (Model Context Protocol) over HTTP for tool execution. All endpoints accept JSON and return JSON.

Base URL

Authentication

All requests require Bearer authentication with an API key (created in the Console):
API keys use the sk-agent-* prefix. See Authentication for setup details.

Endpoints

Health

GET /health

Check service status. No authentication required.

MCP Gateway

POST /mcp

Execute MCP tool calls. Returns 402 with quote if payment needed.

Receipts

GET /receipts

List your payment receipts.

GET /receipts/{id}

Get a specific receipt by ID.

Runs

GET /runs

List your execution runs.

GET /runs/{id}

Get run details by ID.

OpenAPI Specification

The complete API specification is available at:

Error Handling

All errors follow a consistent format. See Error Codes for the complete reference.

Rate Limits

Rate limit headers are included in responses:
  • X-RateLimit-Limit
  • X-RateLimit-Remaining
  • X-RateLimit-Reset