Ordnary Serverlite

SQL databases over HTTPS. Run statements and batches from anywhere, with rows back as JSON.

Databases

  • GET /databases The databases the token can reach.
  • POST /databases Create a database.
  • GET /databases/{database} A database's size, tables and location.
  • DELETE /databases/{database} Delete a database and its backups.

Queries

  • POST /databases/{database}/query Run a statement or a batch, rows as objects.
  • POST /databases/{database}/raw The same, with rows as arrays.

Backups

  • GET /databases/{database}/backups The restore points of the last 30 days.
  • POST /databases/{database}/restore Restore the database to a point in time.

Example

Run a query
curl https://serverlite.ordnary.com/v1/databases/production/query \
  -H "Authorization: Bearer $OSQ_TOKEN" \
  -d '{ "sql": "SELECT * FROM users WHERE id = ?", "params": [1] }'
Query API guide

Other APIs

Choose which cookies Ordnary may use. You can change this at any time via Cookie settings at the bottom of every page.