---
title: "Claim Bot Installation Endpoint"
method: POST
path: "/github-app/claim-bot-installation/{installation_id}"
tags: ["github-app"]
---

# Claim Bot Installation Endpoint

`POST /github-app/claim-bot-installation/{installation_id}`

Claim a single bot installation for the signed-in user.

* ``account_type=User``: claimed if ``account_login`` matches the
  user's ``github_username``. (Personal installs are also
  auto-claimed on /auth/sync — this endpoint is the manual fallback.)
* ``account_type=Organization``: requires the user to be an admin of
  the org, verified via ``GET /orgs/{org}/memberships/{user}`` using
  the user's GitHub OAuth provider token (passed in the request body
  as ``provider_token`` or in the ``X-GitHub-Token`` header).

## Path parameters

- `installation_id` integer, required

## Response `200`

Successful Response

- unknown

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.dev/repowise/apis/repowise-hosted-api.md) · [All operations](https://skmtc.dev/repowise/apis/repowise-hosted-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/repowise/repowise-hosted-api/revisions/1e57283a9737/schema)
