DoltHub/DoltLab API#

DoltHub and DoltLab expose HTTP APIs for programmatic access to your hosted databases.

For terminal workflows, the DoltHub CLI (dh) provides commands for SQL, imports, and pull requests, as well as direct v2 API requests.

REST API#

The REST API is available in two versions. New integrations should use v2.

  • v2 API — the current generation. An explicit, versioned, OpenAPI-defined contract with consistent HTTP semantics, a single RFC 9457 error model, a uniform response envelope, and a standardized async-operations protocol. Start here.
  • v1alpha1 API — the original API. Still supported, but new endpoints are being added to v2 only. See the migration guide if you are moving an existing integration.

Other API surfaces#

  • CSV API — bulk export and import of table data as CSV.
  • Webhooks — receive HTTP callbacks when events happen on your database (pushes, pull-request activity, and so on).

Note: please send requests to https://www.dolthub.com, not https://dolthub.com.