| Method | Endpoint | |
|---|---|---|
| POST | /v1/ua/hello | |
| POST | /v1/ua/discover | |
| POST | /v1/ua/sessions | |
| POST | /v1/ua/sessions/{id}/messages | |
| GET | /v1/ua/sessions/{id} | |
| GET | /v1/ua/sessions/{id}/events |
| Method | Endpoint | |
|---|---|---|
| POST | /v1/wa/register | |
| POST | /v1/wa/hello | |
| PUT | /v1/wa/agents/{handle}/capabilities | |
| POST | /v1/wa/sessions/{id}/messages | |
| GET | /v1/wa/sessions/{id} | |
| POST | /v1/wa/heartbeat |
docker compose up --build
# 1. Register a WA
curl -X POST https://index.agentspot.ru/v1/wa/register \
-H 'Content-Type: application/json' \
-d '{"agent_handle":"my-hotel","display_name":"My Hotel"}'
# 2. Get a UA token
curl -X POST https://index.agentspot.ru/v1/admin/ua-token \
-H 'Content-Type: application/json' \
-d '{"ua_id":"test-ua"}'
# 3. Discover & negotiate
curl -X POST https://index.agentspot.ru/v1/ua/discover \
-H 'Authorization: Bearer <TOKEN>' \
-H 'Content-Type: application/json' \
-d '{"category":"hotel"}'
sessions_started, sessions_completed, deal_rate, avg_rounds, p95_latency_by_agent, fallback_rate, error_rate_by_protocol