---
title: "Start a git provider connection"
method: POST
path: "/user/git/connect"
tags: ["Git Connections"]
---

# Start a git provider connection

`POST /user/git/connect`

## Request

- Base URL: `https://api.volcano.dev`
- URL: `https://api.volcano.dev/user/git/connect`
- Auth: one of:
  - HTTP bearer
  - HTTP bearer

Starts a first-party dashboard user's git provider connection flow and
returns the provider authorization URL. The response also sets a
short-lived HttpOnly callback binding cookie tied to the authenticated
user through the signed provider state.

## Query parameters

- `provider` 'github'
- `redirect` string
- `callback_url` string, uri

## Response `200`

Provider authorization URL

- GitConnectStartResponse
  - `authorization_url` string, required

## Other responses

- `400`: Unsupported provider or invalid redirect
- `401`: Not authenticated
- `500`: Failed to start the connection
- `503`: Git provider integration is not configured

## Changes

- **2026-10-07** `23e7875e7c4c`: 1 info
  - added the new optional `query` request parameter `callback_url`
- **2026-09-19** `3a6f365f3f35`: 4 breaking, 8 info
  - the response's body type changed from no type to `object` for status `400`
  - the response's body type changed from no type to `object` for status `401`
  - the response's body type changed from no type to `object` for status `500`
  - the response's body type changed from no type to `object` for status `503`
  - …8 more
- **2026-08-27** `bb44e98aba2e`: 8 breaking, 4 warning
  - the response's body type changed from `object` to no type for status `400`
  - the response's body type changed from `object` to no type for status `401`
  - the response's body type changed from `object` to no type for status `500`
  - the response's body type changed from `object` to no type for status `503`
  - …8 more
- **2026-07-27** `bb52784e098a`: 5 info
  - the endpoint scheme security `AuthUserAccessToken` was added to the API
  - added the optional property `code` to the response with the `400` status
  - added the optional property `code` to the response with the `401` status
  - added the optional property `code` to the response with the `500` status
  - …1 more
- **2026-07-14** `1509d6caaae8`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/kong/apis/volcano-api/changes/user/git/connect/post.md)

---

[API](https://skmtc.dev/kong/apis/volcano-api.md) - [All operations](https://skmtc.dev/kong/apis/volcano-api/llms.txt) - [OpenAPI document](https://skmtc.dev/kong/apis/volcano-api/revisions/84c4488f91e9?raw)
