---
title: "Start GitHub OAuth login"
method: GET
path: "/api/v1/auth/github"
tags: ["Authentication"]
---

# Start GitHub OAuth login

`GET /api/v1/auth/github`

## Request

- Base URL: `https://api.skills-hub.ai`
- URL: `https://api.skills-hub.ai/api/v1/auth/github`
- Auth: one of:
  - HTTP bearer
  - API key in header `Authorization`

Public. Redirects the browser to GitHub's `authorize` endpoint with an HMAC-signed `state` parameter for CSRF protection. The client should follow the redirect to begin GitHub sign-in.

## Response `200`

Successful response. The returned fields are described in this endpoint's summary/description; typed per-field response schemas are being added incrementally.

---

[API](https://skmtc.dev/skills-hub/apis/skills-hub-ai-api.md) · [All operations](https://skmtc.dev/skills-hub/apis/skills-hub-ai-api/llms.txt) · [OpenAPI document](https://skmtc.dev/skills-hub/apis/skills-hub-ai-api/revisions/cb5d46d80300?raw)
