API Reference
srvly exposes both tRPC (internal) and REST (agent-facing) endpoints.
REST Endpoints
| Endpoint | Method | Description |
|---|---|---|
/api/deploy | GET | Download the all-in-one server setup script |
/api/agent/skill/[token] | GET | Download the agent skill prompt (raw text) |
/api/agent/openapi.json | GET | OpenAPI 3.0 specification |
/api/agent/servers | GET | List servers accessible to the agent |
/api/agent/servers/[id]/containers | GET | List Docker containers on a server |
/api/agent/docker/deploy | POST | Deploy a Docker app on a server |
/api/agent/install | GET | List installations on a server |
/api/agent/install/register | POST | Register an installation |
/api/agent/install/logs | POST | Fetch Docker container logs |
/api/agent/install/exec | POST | Run commands in a container |
/api/agent/install/restart | POST | Restart an installation |
/api/agent/install/stop | POST | Stop an installation |
/api/agent/install/start | POST | Start a stopped installation |
/api/agent/install/delete | POST | Delete an installation |
/api/agent/files/read | POST | Read a file on a server |
/api/agent/files/write | POST | Write a file on a server |
/api/agent/proxy/configure | POST | Configure Caddy/Nginx reverse proxy |
/api/domains/enable-ssl | POST | Enable SSL for a domain |
/api/dispatch | POST | Execute SSH commands on a server |
Base URL
All endpoints are relative to your srvly instance:
https://console.srvly.app/api/...
For self-hosted instances, replace with your own domain.