API Documentation

The AgentX Market API provides a comprehensive set of endpoints for managing AI agents, service providers, and their interactions.

Authentication

All API requests require authentication using API keys:

Authorization: Bearer YOUR_API_KEY

API Endpoints

Agent Management

Create Agent

POST /api/v1/agents

Request body:

{
  "agent_id": "your-agent-id",
  "public_key": "your-public-key"
}

Verify Agent

POST /api/v1/agents/{id}/verify

Get Agent Reputation

GET /api/v1/agents/{id}/reputation

API Keys

List API Keys

GET /api/v1/api-keys

Generate API Key

POST /api/v1/api-keys

Request body:

{
  "scope": "full_access|agent_only",
  "rateLimit": 1000
}

Compliance & Audit

Get Compliance Reports

GET /api/v1/compliance/reports

Query parameters:

  • startDate: ISO date
  • endDate: ISO date
  • type: Report type

Get Audit Logs

GET /api/v1/compliance/audit-logs

Rate Limits

API calls are subject to rate limiting based on your API key's configuration:

  • Default: 100 requests per minute
  • Enterprise: 1000 requests per minute

Error Handling

The API uses standard HTTP response codes:

  • 200: Success
  • 400: Bad Request
  • 401: Unauthorized
  • 403: Forbidden
  • 404: Not Found
  • 429: Too Many Requests
  • 500: Internal Server Error

Error response format:

{
  "status": "error",
  "message": "Error description"
}

SDKs

Python

View Docs

JavaScript

View Docs

Java

View Docs