v1alpha1 API#

API version: v1alpha1

The v1alpha1 API is the main HTTP surface for managing databases on DoltHub and DoltLab. Every endpoint lives under https://www.dolthub.com/api/v1alpha1/.

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

Browse the per-resource pages in the sidebar, or jump straight to an endpoint from the index below.

All endpoints#

SQL#

MethodPathWhat it does
GET/{owner}/{database}SQL read queries on the default branch
GET/{owner}/{database}/{ref}SQL read queries on a specified ref
POST/{owner}/{database}/write/{from_branch}/{to_branch}SQL write query and merge branches
GET/{owner}/{database}/writeCheck write query operation status

User#

MethodPathWhat it does
GET/userGet current user

Databases#

MethodPathWhat it does
POST/databaseCreate a new Dolt database
POST/forkFork an existing Dolt database
GET/forkCheck fork operation status
GET/{owner}/{database}/forksList Forks

Branches#

MethodPathWhat it does
POST/{owner}/{database}/branchesCreate Branch
GET/{owner}/{database}/branchesList Branches

Pull Requests#

MethodPathWhat it does
POST/{owner}/{database}/pullsCreate a new pull request
GET/{owner}/{database}/pulls/{pull_id}Get pull request by ID
PATCH/{owner}/{database}/pulls/{pull_id}Update Pull Request
GET/{owner}/{database}/pullsList pull requests of a database
POST/{owner}/{database}/pulls/{pull_id}/commentsAdd comment to pull request
POST/{owner}/{database}/pulls/{pull_id}/mergeMerge a pull request
GET/{owner}/{database}/pulls/{pull_id}/mergeCheck merge operation status

Releases#

MethodPathWhat it does
POST/{owner}/{database}/releasesCreate Release
GET/{owner}/{database}/releasesList Releases

Tags#

MethodPathWhat it does
POST/{owner}/{database}/tagsCreate Tag
GET/{owner}/{database}/tagsList Tags

File Uploads#

MethodPathWhat it does
POST/{owner}/{database}/uploadUpload a file to a DoltHub database
GET/{owner}/{database}/uploadCheck import operation status

Jobs#

MethodPathWhat it does
GET/users/{username}/operationsList operations
GET/{owner}/{database}/jobsList jobs