---
title: "Finish GitHub authorization"
method: POST
path: "/v1/cloud-coding/github/callback"
tags: ["Organizations"]
---

# Finish GitHub authorization

`POST /v1/cloud-coding/github/callback`

## Request

- Base URL: `https://api.openworklabs.com`
- URL: `https://api.openworklabs.com/v1/cloud-coding/github/callback`
- Auth: one of:
  - API key in header `x-api-key`
  - HTTP bearer

Completes GitHub authorization for the signed-in member and organization that started it.

## Request body

- CloudCodingGithubCallbackInput
  - `code` string, required
  - `state` string, required
  - `installationId` integer

## Response `200`

Finish GitHub authorization

- CloudCodingGithubCallbackResult
  - `outcome` 'connected' | 'linked' | 'choose' | 'install', required
  - `redirectUrl` string, uri

## Other responses

- `400`: Check the information you entered.
- `401`: Sign in to continue.
- `403`: You do not have permission.
- `404`: Cloud coding or this person is not available.
- `409`: Cloud coding is not ready for this action.
- `502`: GitHub could not complete the request.

## Changes

- **2026-11-29** `8a5cecbbb048`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/openworklabs/apis/den-api/changes/v1/cloud-coding/github/callback/post.md)

---

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