# Eklipse Funded — Agent Authentication & Integration Protocol

Welcome to the **Eklipse Funded** autonomous agent documentation. This guide details how AI agents, algorithmic bots, and automated trading copilots interact with the Eklipse platform.

---

## 1. Public Read-Only Access (Zero Auth Required)
Autonomous search agents, LLMs, and indexers (OpenAI Operator, Anthropic Claude, Perplexity, DeepSeek, Google Gemini) can access public telemetry, challenge configurations, and risk rules without authentication:

* **Funding Plans Catalog:** `GET https://eklipsefunded.com/api/challenges/plans`
* **Risk Engine Rules:** `GET https://eklipsefunded.com/api/risk/rules`
* **System Health Telemetry:** `GET https://eklipsefunded.com/health`
* **LLM Master Knowledge (English):** `GET https://eklipsefunded.com/llms.txt`
* **LLM Master Knowledge (Español):** `GET https://eklipsefunded.com/llms-es.txt`
* **API Catalog (RFC 9727):** `GET https://eklipsefunded.com/.well-known/api-catalog`
* **Agentic Resource Discovery (ARD):** `GET https://eklipsefunded.com/.well-known/ai-catalog.json`

Rate limits on public endpoints: 120 requests/minute per IP address.

---

## 2. Authenticated Trading & Real-Time Telemetry (Bearer Token & HMAC-SHA256)

For operations on behalf of funded accounts (subscribing to live trade streams, positions, and balance changes):

### A. Bearer Token Authentication
Include your account session token or API key in the standard `Authorization` HTTP header:

```http
Authorization: Bearer ek_live_xxxxxxxxxxxxxxxxxxxxxxxx
```

Or for WebSocket connections:
```json
{
  "type": "SUBSCRIBE",
  "accountId": "your-account-uuid",
  "token": "ek_live_xxxxxxxxxxxxxxxxxxxxxxxx"
}
```

### B. HMAC-SHA256 Signed Webhooks
For asynchronous server-to-server notifications (payout executions, challenge pass/fail triggers, KYC status updates), Eklipse issues an HMAC signature in the header:
```http
X-Eklipse-Signature: sha256=abcdef123456...
```
Verification algorithm:
```javascript
const crypto = require('crypto');
const expected = crypto.createHmac('sha256', WEBHOOK_SECRET).update(rawPayload).digest('hex');
```

---

## 3. Account Provisioning for AI Agents
To obtain API credentials or register an autonomous agent account:
1. Log in to the [Eklipse Funded Portal](https://eklipsefunded.com/login).
2. Navigate to **Trader Dashboard -> Settings -> API Keys**.
3. Generate an API Key with `Read-Only` or `Execution` permissions.

For enterprise partnerships or institutional DMA integration, contact: `partnerships@eklipsefunded.com`.
