Base URL
Authentication
Protected endpoints require a Bearer token:TICK_TOKEN- For tick executionWRITE_TOKEN- For write operations
Response Format
All responses are JSON:Rate Limits
Default rate limits:- Read endpoints: 100 requests/minute
- Write endpoints: 20 requests/minute
- Tick endpoint: 12 requests/minute
Endpoints Overview
State & Health
| Method | Path | Description |
|---|---|---|
| GET | /health | Health check |
| GET | /state | Current agent state |
| GET | /logs | Activity logs |
Memory
| Method | Path | Description |
|---|---|---|
| GET | /memories | Query memories |
| GET | /memories/core | Core memories |
| GET | /memories/stats | Memory statistics |
| POST | /memories/store | Store a memory |
Consciousness
| Method | Path | Description |
|---|---|---|
| GET | /consciousness/thoughts | Recent thoughts |
| GET | /consciousness/brilliant | Brilliant moments |
| POST | /consciousness/process | Generate thought |
Control
| Method | Path | Description |
|---|---|---|
| POST | /tick | Trigger a tick |
| POST | /wake | Wake the agent |
| POST | /feed | Apply a feed event |
Knowledge
| Method | Path | Description |
|---|---|---|
| GET | /knowledge | Query knowledge |
| POST | /knowledge | Add knowledge item |
Quick Examples
Check Health
Get Current State
Trigger a Tick
Query Memories
WebSocket Subscriptions
For real-time updates, use Convex’s subscription system:Error Codes
| Code | Description |
|---|---|
UNAUTHORIZED | Invalid or missing token |
RATE_LIMITED | Too many requests |
NOT_FOUND | Resource not found |
VALIDATION_ERROR | Invalid parameters |
INTERNAL_ERROR | Server error |