API Reference
RTILA X exposes a REST API for programmatic control.
Authentication
Section titled “Authentication”All API requests require a valid session token:
Authorization: Bearer YOUR_SESSION_TOKENEndpoints
Section titled “Endpoints”Health Check
Section titled “Health Check”GET /api/healthReturns the health status of the RTILA backend.
Remote Execution
Section titled “Remote Execution”POST /api/remoteTrigger a project run remotely.
Request Body:
{ "api_key": "PROJECT_API_KEY", "variables": { "query": "search term" }}Response:
{ "message": "Project execution queued", "queue_id": "queue_record_id"}PocketBase API
Section titled “PocketBase API”RTILA X uses PocketBase as its backend. The full PocketBase API is available at:
http://127.0.0.1:8880/api/Collections available via the API:
projectssessionslogsnotificationschatsmessagesschedulersqueueuserslicensesbrowser_profilesglobal_variablesbots
Example: List Projects
Section titled “Example: List Projects”curl -X GET 'http://127.0.0.1:8880/api/collections/projects/records' \ -H "Authorization: Bearer YOUR_TOKEN"Example: Create a Notification
Section titled “Example: Create a Notification”curl -X POST 'http://127.0.0.1:8880/api/collections/notifications/records' \ -H "Authorization: Bearer YOUR_TOKEN" \ -H "Content-Type: application/json" \ -d '{ "title": "Test", "message": "Hello from API", "type": "info" }'