---
title: "Start Github Connected Source Setup"
method: POST
path: "/connected-sources/setup/start/github"
tags: ["connected-sources"]
---

# Start Github Connected Source Setup

`POST /connected-sources/setup/start/github`

## Request body

- GitHubBeginSetupInput
  - `redirect_to` string, nullable

## Response `200`

Successful Response

- ConnectedSourceSetupStartResponse
  - `adapter` 'github' | 'slack' | 'uploaded_file', required — Type of source adapter (github, uploaded_file, etc.)
  - `setup_token` string, nullable
  - `expires_in` integer, nullable
  - `setup` union, required
    - OAuthBeginSetupResult
      - `setup_kind` 'oauth'
      - `url` string, nullable
    - UploadBeginSetupResult
      - `setup_kind` 'upload'
      - `file_id` string, required
      - `filename` string, required
      - `content_type` string, nullable
      - `size_bytes` integer, nullable

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.dev/tryscott/apis/one-shot-api.md) · [All operations](https://skmtc.dev/tryscott/apis/one-shot-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/tryscott/one-shot-api/revisions/28bdface01df/schema)
