---
title: "Read the workspace GitHub connection"
method: GET
path: "/v1/organizations/{organization_id}/github"
---

# Read the workspace GitHub connection

`GET /v1/organizations/{organization_id}/github`

## Request

- Base URL: `https://app.ohmyho.st`
- URL: `https://app.ohmyho.st/v1/organizations/{organization_id}/github`
- Auth: HTTP bearer

## Path parameters

- `organization_id` string, required

## Headers

- `X-Request-Id` string

## Response `200`

Current workspace connection status.

- GithubOrganizationConnectionStatus
  - `status` 'not_connected' | 'connected' | 'revoked', required
  - `connection` GithubOrganizationConnection, required
    - `connection_id` string, required
    - `organization_id` string, required
    - `installation_id` string, required
    - `account_id` string, required
    - `account_login` string, required
    - `account_type` 'User' | 'Organization', required
    - `github_user_id` string, required
    - `github_user_login` string, required
    - `connected_at` string, date-time, required
    - `revoked_at` string, date-time, nullable, required
    - `settings_url` string, uri, required

## Other responses

- `400`: The request failed.
- `401`: The request failed.
- `403`: The request failed.
- `404`: The resource does not exist or is not visible to the authenticated principal.
- `429`: The request failed.
- `503`: The request failed.

---

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