---
title: "Get git provider integrations"
method: GET
path: "/v2/integrations/git"
tags: ["Users"]
---

# Get git provider integrations

`GET /v2/integrations/git`

## Request

- Base URL: `https://api.apify.com`
- URL: `https://api.apify.com/v2/integrations/git`
- Auth: one of:
  - HTTP bearer
  - API key in query parameter `token`

Gets your connected git provider accounts (GitHub App, GitLab and Bitbucket), each with the workspaces you can
create a repository in. Only authorized accounts are returned, and accounts whose access was revoked are left
out.

Use the `id` of an integration as the `providerId` in the
[Create git repository](/api/v2/integrations-git-create-repo-post) and
[Register deployment key](/api/v2/integrations-git-register-deployment-key-post) endpoints.

## Response `200`

- ListOfGitProviderIntegrationsResponse
  - `data` GitProviderIntegration[], required
    - `id` string, required: The provider ID to use in the `providerId` path parameter: `github-app` for the GitHub App, or the ID of a connected GitLab or Bitbucket integration.
    - `provider` 'github' | 'gitlab' | 'bitbucket', required
    - `workspaces` GitProviderWorkspace[], required: The workspaces the account can create a repository in. Empty if listing them failed.
      - `id` string, required: The workspace identifier to pass as `workspace` when creating a repository: the account or organization login on GitHub, the numeric namespace ID on GitLab, or the workspace slug on Bitbucket.
      - `label` string, required
    - `addWorkspaceUrl` string: URL where the user can install the GitHub App on another account or organization. Only for the GitHub App.

## Other responses

- `400`: Bad request - invalid input parameters or request body.
- `401`: Unauthorized - authentication required or invalid token.
- `403`: Forbidden - insufficient permissions to perform this action.
- `405`: Method not allowed.
- `429`: Too many requests - rate limit exceeded.

## Changes

> 25 revisions in range; 1 not diffed.

- **2026-10-27** `ec76185eb934`: 5 info
  - added the optional property `error/data` to the response with the `400` status
  - added the optional property `error/data` to the response with the `401` status
  - added the optional property `error/data` to the response with the `403` status
  - added the optional property `error/data` to the response with the `405` status
  - …1 more
- **2026-10-27** `e52dd2239cee`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/apify/apis/apify-api/changes/v2/integrations/git/get.md)

---

[API](https://skmtc.dev/apify/apis/apify-api.md) - [All operations](https://skmtc.dev/apify/apis/apify-api/llms.txt) - [OpenAPI document](https://skmtc.dev/apify/apis/apify-api/revisions/68d2d102e6a2?raw)
