6.1 HTTP API

The EventQL HTTP API gives you full access to EventQL via HTTP. All EventQL operations can be executed via this API. The EventQL CLI uses the HTTP API to access EventQL.

Version Prefix

All API routes are prefixed with /api/v1/. This documentation is only for the v1 version of the API

Backwards compatibility: At the current version, EventQL does not yet promise backwards compatibility even with the v1 prefix. We'll remove this warning when this policy changes. We expect we'll reach API stability by EventQL 1.0.

Tables

POST /api/v1/tables/upload_table Upload a table
POST /api/v1/tables/create_table Create a new table (or overwrite an existing table).
POST /api/v1/tables/add_field Add a field to an existing table.
POST /api/v1/tables/remove_field Remove a field from an existing table.
POST /api/v1/tables/insert Insert or update row(s)
GET /api/v1/tables List existing tables.
GET /api/v1/tables/[table] Obtain information about the table and its columns

SQL

GET /api/v1/sql Execute SQL
POST /api/v1/sql/aggregate_partition Insert or update row(s)
GET /api/v1/sql/scan_partition Insert or update row(s)

Auth

POST /api/v1/auth/login Login
POST /api/v1/auth/logout Logout