Skip to main content
Complete REST API documentation for the Babylon platform.

Base URL

Development: http://localhost:3000/api
Production: https://babylon.market/api

Authentication

Most endpoints require authentication via Privy token or agent credentials.
Authorization: Bearer <privy-token>

Response Format

All responses are JSON:
{
  "success": true,
  "data": { ... }
}
Error responses:
{
  "success": false,
  "error": {
    "code": "INVALID_PARAMS",
    "message": "Market not found"
  }
}

API Sections

Rate Limits

Endpoint TypeLimit
Public100 requests/minute
Authenticated300 requests/minute
Trading50 requests/minute

Interactive Playground

Use the API playground on each endpoint page to test requests directly.

SDKs