← Back to Marketplace

GitHub

Bearer

Repos, issues, PRs, actions, and users. Build on top of the world's code.

https://api.github.com
OVERVIEW

The GitHub REST API provides full access to repositories, issues, pull requests, actions, users, organizations, and more. It's the foundation for CI/CD integrations, project management tools, code review automation, and developer analytics.

Fine-grained personal access tokens let you scope access to specific repositories and permissions. The API supports pagination, conditional requests (ETags), and webhook events for real-time notifications.

GET YOUR API KEY

Authentication setup

  1. Go to github.com/settings/tokens
  2. Click Generate new token (fine-grained recommended)
  3. Select repository access (all repos or specific ones)
  4. Choose permissions (e.g. Contents: read, Issues: write)
  5. Copy the token. Classic tokens start with ghp_, fine-grained with github_pat_
Token format ghp_... or github_pat_...
Auth type bearer
QUICK CONNECT

Create a connection in one request.

CONNECT GITHUB
POST /connections Authorization: Bearer $TOKEN Content-Type: application/json { "name": "GitHub", "base_url": "https://api.github.com", "auth_type": "bearer", "auth_config": {"token": "ghp_..."} } → {"id": "cn_xxxxxxxx", "name": "GitHub"}
KEY ENDPOINTS

What you can call via proxy.

MethodPathDescription
GET /user/repos List repositories for the authenticated user
GET /repos/{owner}/{repo} Get repository details
GET /repos/{owner}/{repo}/issues List issues
POST /repos/{owner}/{repo}/issues Create an issue
GET /repos/{owner}/{repo}/pulls List pull requests
POST /repos/{owner}/{repo}/pulls Create a pull request
GET /repos/{owner}/{repo}/actions/runs List workflow runs
GET /user Get the authenticated user's profile
EXAMPLE

List Repositories

PROXY CALL
GET /proxy/cn_xxxxxxxx/user/repos?sort=updated&per_page=3 Authorization: Bearer $TOKEN [ { "full_name": "alice/my-app", "description": "A cool application", "stargazers_count": 42, "language": "TypeScript", "updated_at": "2026-03-24T08:00:00Z" }, { "full_name": "alice/dotfiles", "description": "My configuration files", "stargazers_count": 12, "language": "Shell", "updated_at": "2026-03-23T16:00:00Z" } ]
USE CASES

What people build with GitHub.

CI/CD Integration

Trigger workflows, check run status, and manage deployments programmatically.

Issue Tracking

Create, label, and assign issues from external tools or automated processes.

Code Review Automation

List PRs, post review comments, and enforce merge policies via the API.

Developer Analytics

Track commits, contributor activity, and repository metrics over time.

# GitHub > Repos, issues, PRs, actions, and users. Build on top of the world's code. ## Overview The GitHub REST API provides full access to repositories, issues, pull requests, actions, users, organizations, and more. It's the foundation for CI/CD integrations, project management tools, code review automation, and developer analytics. Fine-grained personal access tokens let you scope access to specific repositories and permissions. The API supports pagination, conditional requests (ETags), and webhook events for real-time notifications. - **Base URL:** https://api.github.com - **Auth type:** bearer - **Token format:** ghp_... or github_pat_... ## Get Your API Key 1. Go to github.com/settings/tokens 2. Click Generate new token (fine-grained recommended) 3. Select repository access (all repos or specific ones) 4. Choose permissions (e.g. Contents: read, Issues: write) 5. Copy the token. Classic tokens start with ghp_, fine-grained with github_pat_ ## Quick Connect bashcurl -X POST https://api.liteio.dev/connections \ -H "Authorization: Bearer $TOKEN" \ -H "Content-Type: application/json" \ -d '{ "name": "GitHub", "base_url": "https://api.github.com", "auth_type": "bearer", "auth_config": {"token": "ghp_..."} }' ## Key Endpoints MethodPathDescription GET/user/reposList repositories for the authenticated user GET/repos/{owner}/{repo}Get repository details GET/repos/{owner}/{repo}/issuesList issues POST/repos/{owner}/{repo}/issuesCreate an issue GET/repos/{owner}/{repo}/pullsList pull requests POST/repos/{owner}/{repo}/pullsCreate a pull request GET/repos/{owner}/{repo}/actions/runsList workflow runs GET/userGet the authenticated user's profile ## Example: List Repositories bashcurl https://api.liteio.dev/proxy/cn_xxx/user/repos?sort=updated&per_page=3 \ -H "Authorization: Bearer $TOKEN" ## Use Cases - **CI/CD Integration**: Trigger workflows, check run status, and manage deployments programmatically. - **Issue Tracking**: Create, label, and assign issues from external tools or automated processes. - **Code Review Automation**: List PRs, post review comments, and enforce merge policies via the API. - **Developer Analytics**: Track commits, contributor activity, and repository metrics over time. ## Links - Back to Marketplace - Developer Guide - Get API Key