REST API
Cloud Only
The Cloud REST API is available at https://api.adhf.dev. Self-hosted users can access a local API at http://localhost:3847.
Authentication
All API requests require an API key:
bash
curl -H "Authorization: Bearer adk_your_key" \
https://api.adhf.dev/api/v1/daemonsEndpoints
List Daemons
http
GET /api/v1/daemonsReturns all connected machines.
List IDEs on a Machine
http
GET /api/v1/daemons/{daemonId}/idesSend Message to Agent
http
POST /api/v1/agents/{ideId}/sendjson
{
"agentType": "cursor",
"message": "Fix the login bug"
}Approve/Reject Agent Action
http
POST /api/v1/agents/{ideId}/approvejson
{
"agentType": "cursor",
"approve": true
}Read Current Chat
http
GET /api/v1/agents/{ideId}/chatTake Screenshot
http
POST /api/v1/agents/{ideId}/screenshotReturns a JPEG screenshot of the IDE.
Rate Limits
| Plan | Monthly Calls |
|---|---|
| Free | 1,000 |
| Pro | 50,000 |
| Team | 500,000 |
| Enterprise | Unlimited |
Error Codes
| Code | Description |
|---|---|
| 401 | Invalid or missing API key |
| 403 | Action not permitted for this key's scope |
| 404 | Daemon or IDE not found |
| 429 | Rate limit exceeded |
| 500 | Server error |
