---
title: "POST /ai/applications/{application_public_id}/git-connections"
method: POST
path: "/ai/applications/{application_public_id}/git-connections"
tags: ["AI Applications"]
---

# POST /ai/applications/{application_public_id}/git-connections

`POST /ai/applications/{application_public_id}/git-connections`

## Request

- Base URL: `/api` (relative, and the document was published on a file host, not at the API’s origin)
- URL: `/api/ai/applications/{application_public_id}/git-connections`
- Auth: HTTP bearer

## Path parameters

- `application_public_id` string, required

## Request body

- BindApplicationGitConnectionRequest
  - `connectionId` integer, required
  - `projectId` integer, required
  - `remoteName` string, required
  - `repositoryId` integer, required

## Response `201`

- GitBindingResponse
  - `connectionId` integer, required
  - `createdAt` string, required
  - `id` integer, required
  - `projectId` integer, required
  - `remoteName` string, required
  - `repositoryId` integer, required
  - `repositoryUrl` string, required
  - `status` string, required: `configured` means the durable authorization exists; it does not claim a live remote.
  - `updatedAt` string, required

## Other responses

- `400`
- `401`
- `403`
- `404`
- `409`

## Changes

- **2026-09-13** `dbda5c31c626`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/gotempsh/apis/temps/changes/ai/applications/:application_public_id/git-connections/post.md)

---

[API](https://skmtc.dev/gotempsh/apis/temps.md) - [All operations](https://skmtc.dev/gotempsh/apis/temps/llms.txt) - [OpenAPI document](https://skmtc.dev/gotempsh/apis/temps/revisions/3b040526eb43?raw)
