---
title: "Get the linked source status"
method: GET
path: "/v1/projects/{project_id}/source"
---

# Get the linked source status

`GET /v1/projects/{project_id}/source`

## Request

- Base URL: `https://app.ohmyho.st`
- URL: `https://app.ohmyho.st/v1/projects/{project_id}/source`
- Auth: HTTP bearer

GitHub sources use the unchanged released projection by default. Set include_binding=true to request the exact GitHub source connection ID and generation. Managed sources always return their full source binding. The explicit projections are strict; binding fields are never inferred from a legacy response.

## Path parameters

- `project_id` string, required

## Query parameters

- `include_binding` boolean

## Headers

- `X-Request-Id` string

## Response `200`

The current source, using the default or explicitly requested binding projection.

- union
  - GithubProjectSource
    - `provider` 'github', required
    - `installation_id` string, required
    - `repository_full_name` string, required
    - `status` 'pending' | 'ready' | 'failed' | 'revoked', required
    - `linked_at` string, date-time, required
    - `updated_at` string, date-time, required
    - `failure_summary` string
  - GithubSourceBinding
    - `source_connection_id` string, required
    - `source_generation` integer, required
    - `provider` 'github', required
    - `installation_id` string, required
    - `repository_full_name` string, required
    - `status` 'pending' | 'ready' | 'failed' | 'revoked', required
    - `linked_at` string, date-time, required
    - `updated_at` string, date-time, required
    - `failure_summary` string
  - ManagedProjectSource
    - `initialization_operation_id` string
    - `initialization_error_code` string: Canonical public operation failure code for failed initialization; never a provider error.
    - `provider` 'managed', required
    - `source_connection_id` string, required
    - `source_generation` integer, required
    - `namespace` string, required
    - `repository_name` string, required
    - `branch` 'main', required
    - `current_commit_sha` string, nullable, required
    - `status` 'pending' | 'ready' | 'failed' | 'revoked', required
    - `linked_at` string, date-time, required
    - `updated_at` string, date-time, 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)
