The Git Providers API manages OAuth and token-based connections to your source code hosting platforms. Once a provider is connected, you can list repositories and branches, link them to applications or Compose stacks, and enable automatic deployments triggered by webhooks. Dokploy supports GitHub (via OAuth App or GitHub App), GitLab, Bitbucket, and self-hosted Gitea instances.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/Nettalco/dokploy/llms.txt
Use this file to discover all available pages before exploring further.
Endpoints
| Method | Endpoint | Description |
|---|---|---|
| GET | /gitProvider.getAll | List all connected Git providers |
| POST | /gitProvider.remove | Remove a Git provider connection |
| GET | /github.one | Fetch a GitHub provider by ID |
| GET | /github.getGithubRepositories | List repositories for a GitHub account |
| GET | /github.getGithubBranches | List branches for a GitHub repository |
| GET | /github.githubProviders | List all configured GitHub providers |
| POST | /github.testConnection | Test a GitHub provider connection |
| POST | /github.update | Update a GitHub provider |
| POST | /gitlab.create | Create a GitLab provider |
| GET | /gitlab.one | Fetch a GitLab provider by ID |
| GET | /gitlab.gitlabProviders | List all configured GitLab providers |
| GET | /gitlab.getGitlabRepositories | List GitLab repositories |
| GET | /gitlab.getGitlabBranches | List branches for a GitLab repository |
| POST | /gitlab.testConnection | Test a GitLab provider connection |
| POST | /gitlab.update | Update a GitLab provider |
| POST | /bitbucket.create | Create a Bitbucket provider |
| GET | /bitbucket.one | Fetch a Bitbucket provider by ID |
| GET | /bitbucket.bitbucketProviders | List all configured Bitbucket providers |
| GET | /bitbucket.getBitbucketRepositories | List Bitbucket repositories |
| GET | /bitbucket.getBitbucketBranches | List branches for a Bitbucket repository |
| POST | /bitbucket.testConnection | Test a Bitbucket provider connection |
| POST | /bitbucket.update | Update a Bitbucket provider |
| POST | /gitea.create | Create a Gitea provider |
| GET | /gitea.one | Fetch a Gitea provider by ID |
| GET | /gitea.giteaProviders | List all configured Gitea providers |
| GET | /gitea.getGiteaRepositories | List Gitea repositories |
| GET | /gitea.getGiteaBranches | List branches for a Gitea repository |
| POST | /gitea.testConnection | Test a Gitea provider connection |
| POST | /gitea.update | Update a Gitea provider |
| GET | /gitea.getGiteaUrl | Get the configured Gitea instance URL |
Key Endpoints
POST /gitlab.create
Register a GitLab provider using a Personal Access Token or OAuth token.
Display name for this GitLab connection.
GitLab instance URL (e.g.,
https://gitlab.com or your self-hosted URL).GitLab Personal Access Token with
read_api and read_repository scopes.OAuth refresh token (if using OAuth flow).
Optional GitLab group or namespace to scope repository listing.
Unique ID of the created GitLab provider.
POST /bitbucket.create
Register a Bitbucket Cloud provider using App Password credentials.
Display name for this Bitbucket connection.
Bitbucket account username.
Bitbucket App Password with
repository:read permission.Unique ID of the created Bitbucket provider.
GET /github.getGithubRepositories
List all repositories accessible to a configured GitHub provider.
ID of the GitHub provider.
Page number for pagination (default:
1).List of repository objects.
Repository name.
Full name including the owner (e.g.,
owner/repo).Whether the repository is private.
GET /github.getGithubBranches
List all branches for a specific GitHub repository.
Repository name (without owner, e.g.,
my-app).Repository owner (username or organization).
ID of the GitHub provider.
POST /gitea.create
Register a self-hosted Gitea instance as a Git provider.
Display name for this Gitea connection.
URL of the Gitea instance (e.g.,
https://git.example.com).Gitea Personal Access Token.
Unique ID of the created Gitea provider.
Notes
GitHub providers are configured via the Dokploy dashboard OAuth flow (GitHub App or OAuth App). Use the API to list, test, and update existing providers — not to create new ones from scratch.