Skip to content

API Reference

RTILA X exposes a REST API for programmatic control.

All API requests require a valid session token:

Authorization: Bearer YOUR_SESSION_TOKEN
GET /api/health

Returns the health status of the RTILA backend.

POST /api/remote

Trigger 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"
}

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:

  • projects
  • sessions
  • logs
  • notifications
  • chats
  • messages
  • schedulers
  • queue
  • users
  • licenses
  • browser_profiles
  • global_variables
  • bots
Terminal window
curl -X GET 'http://127.0.0.1:8880/api/collections/projects/records' \
-H "Authorization: Bearer YOUR_TOKEN"
Terminal window
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"
}'