API Reference

Complete REST API documentation

API Reference

The ACT API is a RESTful API that provides programmatic access to all ACT functionality.

Base URL

https://api.actplatform.dev/api/v1

For self-hosted installations, replace with your server’s URL.

Authentication

All API requests require authentication via Bearer token:

curl -H "Authorization: Bearer YOUR_API_TOKEN" \
  https://api.actplatform.dev/api/v1/servers

Endpoints

Servers

MethodEndpointDescription
GET/serversList all servers
POST/serversCreate a server
GET/servers/:idGet server details
PUT/servers/:idUpdate a server
DELETE/servers/:idDelete a server
POST/servers/:id/commissionCommission a server
GET/servers/:id/statusGet server status

Resources

MethodEndpointDescription
GET/resourcesList all resources
POST/resourcesCreate a resource
GET/resources/:idGet resource details
PUT/resources/:idUpdate a resource
DELETE/resources/:idDelete a resource
POST/resources/:id/deployDeploy a resource
GET/resources/:id/logsStream resource logs (WebSocket)

Environments

MethodEndpointDescription
GET/environmentsList all environments
POST/environmentsCreate an environment
GET/environments/:idGet environment details
PUT/environments/:idUpdate an environment
DELETE/environments/:idDelete an environment

Storage Providers

MethodEndpointDescription
GET/storageList storage providers
POST/storageCreate a storage provider
GET/storage/:idGet storage provider details
DELETE/storage/:idDelete a storage provider
GET/storage/:id/browseBrowse storage contents

WebSocket Endpoints

Terminal

ws://api.actplatform.dev/api/v1/terminal?server=<server_id>

Opens an interactive SSH terminal session to the specified server.

Logs

ws://api.actplatform.dev/api/v1/resources/:id/logs

Streams real-time logs from a running resource.

Error Responses

All errors return a JSON object with an error field:

{
  "error": "Server not found"
}

Common HTTP status codes:

CodeDescription
400Bad Request - Invalid input
401Unauthorized - Invalid or missing token
404Not Found - Resource doesn’t exist
500Internal Server Error

No content in this section yet.