---
title: "Persist GitHub App installation after portal redirect"
method: POST
path: "/github/app/install/complete"
tags: ["GitHub"]
---

# Persist GitHub App installation after portal redirect

`POST /github/app/install/complete`

## Request

- Base URL: `https://api.apphandoff.com/api`
- URL: `https://api.apphandoff.com/api/github/app/install/complete`
- Auth: API key in cookie `sb-access-token`

Called from the SPA with Bearer or cookie session; upserts the installations row.

## Request body

- object
  - `installation_id` integer, required
  - `setup_action` 'install' | 'update'

## Response `200`

Installation saved

- object
  - `ok` boolean, required
  - `status` 'installed' | 'updated', required

## Other responses

- `400`: Invalid request
- `401`: Not authenticated
- `500`: Server error

---

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