---
title: "Install Github App"
method: POST
path: "/api/integrations/github-app/install"
tags: ["github-app-integration"]
---

# Install Github App

`POST /api/integrations/github-app/install`

## Request

- Base URL: `https://app.thinqos.com` (the document declares no server; this is the origin it was published from)
- URL: `https://app.thinqos.com/api/integrations/github-app/install`
- Auth: none declared

Begin a GitHub App installation for the calling identity.

1. Refuse cleanly if the GitHub App isn't configured (no broken URL).
2. Resolve-or-create the caller's own instance + folder installation fact.
3. Insert a short-lived ``IdentityMcpOAuthState`` row (no PKCE - the state
   token itself is the callback's auth primitive).
4. Return the GitHub install URL carrying that state.

## Headers

- `x-impersonate-identity-id` string, nullable

## Request body

- GithubAppInstallRequest: Body for POST /api/integrations/github-app/install.
  - `redirect_after` string, nullable

## Response `200`

Successful Response

- GithubAppInstallResponse: Returned after a successful install-initiate.
  - `install_url` string, required

## Other responses

- `422`: Validation Error

---

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