---
title: "🔒 Получение URL установки приложения GitHub App. state подписан и привязан к компании и пользователю сессии: завершить установку (integration/git/create) можно только с ним."
method: GET
path: "/integration/git/github/install"
tags: ["Integrations: Git"]
---

# 🔒 Получение URL установки приложения GitHub App. state подписан и привязан к компании и пользователю сессии: завершить установку (integration/git/create) можно только с ним.

`GET /integration/git/github/install`

## Request

- Base URL: `http://localhost`
- URL: `http://localhost/integration/git/github/install`
- Auth: one of:
  - API key in header `sid` and API key in header `rts` and API key in header `sig`
  - HTTP bearer

Получение URL установки приложения GitHub App. state подписан и привязан к компании и пользователю сессии: завершить установку (integration/git/create) можно только с ним.

**Access:** `authorized` (10 ) · **Scope:** `write`

**Allows:** `integration:git` (все обязательны; без ресурса)

### TypeScript (copy-paste)

**`GET /integration/git/github/install`**

<details open><summary><b>Response</b></summary>

```typescript
export type IntegrationGitGithubInstallResponse = IServerResponse<Resp_integration_git_github_install>

export interface IServerResponse<T = any> {
  code: number
  data: T
  srvTS: number
  rkey: string
}
```

</details>

> Полный файл типов: [`/docs/types`](/docs/types) · raw: [`/docs/api-types.ts`](/docs/api-types.ts)

## Headers

- `devID` string, uuid, required
- `tz` string, required
- `app` string, required
- `appVer` string, required
- `rKey` string

## Response `200`

OK — `IServerResponse<Resp_integration_git_github_install>`

- object
  - `code` integer, required
  - `data` RespIntegrationGitGithubInstall, required: ResponseData for integration/git/github/install
    - `url` string, required
  - `srvTS` integer, required: Server timestamp (ms)
  - `rkey` string, required: Request key

## Other responses

- `400`: BadRequest / Validation — неверные params/body/headers
- `401`: Unauthorized: Active user session required
- `403`: AccessNotAllowed: Privilege integration:git required
- `406`: TimeResync — расхождение rts с сервером

---

[API](https://skmtc.dev/kosmodrom/apis/kosmodrom-backend-api.md) · [All operations](https://skmtc.dev/kosmodrom/apis/kosmodrom-backend-api/llms.txt) · [OpenAPI document](https://skmtc.dev/kosmodrom/apis/kosmodrom-backend-api/revisions/a143b51ba29a?raw)
