---
title: "Register Installation"
method: POST
path: "/v1/github-app/installations"
tags: ["v1-github-app"]
---

# Register Installation

`POST /v1/github-app/installations`

## Request

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

Register a new GitHub App installation.

Called by frontend after user completes installation on GitHub.
Fetches installation details from GitHub API and stores in database.

## Request body

- RegisterInstallationRequest: Request body for POST /v1/github-app/installations.
  - `installation_id` integer, required
  - `setup_action` string

## Response `200`

Successful Response

- RegisterInstallationResponse: Response for POST /v1/github-app/installations.
  - `success` boolean, required
  - `installation_id` integer, required
  - `github_account_login` string, required
  - `repository_selection` string, required
  - `message` string, required

## Other responses

- `422`: Validation Error

---

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