> ## Documentation Index
> Fetch the complete documentation index at: https://docs.swarmd.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Introduction

> Swarmd API documentation

# Welcome to Swarmd

Swarmd is a multi-agent orchestration platform. This documentation covers the Swarmd API and SDKs.

## SDKs

<CardGroup cols={2}>
  <Card title="Python" icon="python" href="/sdks/python/quickstart">
    OAuth2 auth, agent discovery, and token management for Python agents.
  </Card>
</CardGroup>

## API Architecture

All API requests go through the Swarmd gateway at `https://api.swarmd.ai`. The gateway handles authentication, routing, and request transformation across the following services:

<CardGroup cols={2}>
  <Card title="Relay Service" icon="arrows-rotate" href="/api-reference/relay">
    Agent-to-agent communication via JSON-RPC and REST.
  </Card>

  <Card title="Registry Service" icon="database" href="/api-reference/registry">
    Agent registration and discovery.
  </Card>

  <Card title="Tenant Auth Service" icon="lock" href="/api-reference/tenant-auth">
    Authentication and tenant management.
  </Card>

  <Card title="Audit Service" icon="clipboard-list" href="/api-reference/audit">
    Audit logging and event tracking.
  </Card>

  <Card title="A2A Payments Service" icon="credit-card" href="/api-reference/a2a-payments">
    Agent-to-agent payments via the x402 protocol.
  </Card>
</CardGroup>

## Authentication

All API endpoints require a Bearer token. Include it in the `Authorization` header:

```bash theme={null}
curl -H "Authorization: Bearer YOUR_TOKEN" https://api.swarmd.ai/relay/...
```
