Eshway GitHub API

The GitHub API from Eshway — 10 operation(s) for github.

GitHub OpenAPI

Operations 10

GET /v1/integration/github/install/{organization_id}/{project_id} Start Github Installation #
GET /v1/integration/github/oauth/callback Github Oauth Callback #
GET /v1/integration/github/projects/{organization_id} Get Github Projects #
GET /v1/integration/github/installations/{installation_id}/repos Get Installation Repos #
GET /v1/integration/github/projects/{project_id}/branches Get Project Branches #
POST /v1/integration/github/projects/{organization_id}/{project_id}/connect Connect Github Project #
PUT /v1/integration/github/projects/{organization_id}/{project_id}/preferences Update Github Project Preferences #
DELETE /v1/integration/github/organizations/{organization_id}/disconnect Disconnect All Github Projects #
DELETE /v1/integration/github/projects/{organization_id}/{project_id}/disconnect Disconnect Github Project #
POST /v1/integration/github/webhook Github Webhook #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/eshway-com:eshway-com-github-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

eshway-com-github-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Fast GitHub API
  version: 0.1.0
tags:
- name: Github
paths:
  /v1/integration/github/install/{organization_id}/{project_id}:
    get:
      tags:
      - Github
      summary: Start Github Installation
      description: Start GitHub App installation for a project (org admin, super_admin, or manager).
      operationId: start_github_installation_v1_integration_github_install__organization_id___project_id__get
      security:
      - OAuth2PasswordBearer: []
      parameters:
      - name: organization_id
        in: path
        required: true
        schema:
          type: integer
          title: Organization Id
      - name: project_id
        in: path
        required: true
        schema:
          type: integer
          title: Project Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /v1/integration/github/oauth/callback:
    get:
      tags:
      - Github
      summary: Github Oauth Callback
      description: Handle GitHub App installation callback.
      operationId: github_oauth_callback_v1_integration_github_oauth_callback_get
      parameters:
      - name: installation_id
        in: query
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Installation Id
      - name: setup_action
        in: query
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Setup Action
      - name: state
        in: query
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: State
      - name: code
        in: query
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Code
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /v1/integration/github/projects/{organization_id}:
    get:
      tags:
      - Github
      summary: Get Github Projects
      description: Get projects with GitHub integration status (scoped by role).
      operationId: get_github_projects_v1_integration_github_projects__organization_id__get
      security:
      - OAuth2PasswordBearer: []
      parameters:
      - name: organization_id
        in: path
        required: true
        schema:
          type: integer
          title: Organization Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GitHubProjectsResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /v1/integration/github/installations/{installation_id}/repos:
    get:
      tags:
      - Github
      summary: Get Installation Repos
      description: 'List repositories available for a GitHub App installation.


        Authorization: the caller must be privileged (manager/admin) on `project_id` —

        the project they are connecting. Without this, any authenticated user could

        enumerate arbitrary `installation_id` values and read other organizations''

        connected repositories (cross-tenant leak). Defense-in-depth: if the project is

        already connected to a DIFFERENT installation, reject — you may only list repos

        for your own installation.'
      operationId: get_installation_repos_v1_integration_github_installations__installation_id__repos_get
      security:
      - OAuth2PasswordBearer: []
      parameters:
      - name: installation_id
        in: path
        required: true
        schema:
          type: integer
          title: Installation Id
      - name: project_id
        in: query
        required: true
        schema:
          type: integer
          title: Project Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /v1/integration/github/projects/{project_id}/branches:
    get:
      tags:
      - Github
      summary: Get Project Branches
      description: Return the list of branches for the repository connected to a project.
      operationId: get_project_branches_v1_integration_github_projects__project_id__branches_get
      security:
      - OAuth2PasswordBearer: []
      parameters:
      - name: project_id
        in: path
        required: true
        schema:
          type: integer
          title: Project Id
      - name: search
        in: query
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Search
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /v1/integration/github/projects/{organization_id}/{project_id}/connect:
    post:
      tags:
      - Github
      summary: Connect Github Project
      description: Connect a project to a GitHub repository (org admin, super_admin, or manager).
      operationId: connect_github_project_v1_integration_github_projects__organization_id___project_id__connect_post
      security:
      - OAuth2PasswordBearer: []
      parameters:
      - name: organization_id
        in: path
        required: true
        schema:
          type: integer
          title: Organization Id
      - name: project_id
        in: path
        required: true
        schema:
          type: integer
          title: Project Id
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              title: Payload
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /v1/integration/github/projects/{organization_id}/{project_id}/preferences:
    put:
      tags:
      - Github
      summary: Update Github Project Preferences
      description: Update per-project GitHub automation preferences (org admin, super_admin, or manager).
      operationId: update_github_project_preferences_v1_integration_github_projects__organization_id___project_id__preferences_put
      security:
      - OAuth2PasswordBearer: []
      parameters:
      - name: organization_id
        in: path
        required: true
        schema:
          type: integer
          title: Organization Id
      - name: project_id
        in: path
        required: true
        schema:
          type: integer
          title: Project Id
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/GitHubPreferencesUpdate'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /v1/integration/github/organizations/{organization_id}/disconnect:
    delete:
      tags:
      - Github
      summary: Disconnect All Github Projects
      description: Disconnect all GitHub projects for an organization (org admin only).
      operationId: disconnect_all_github_projects_v1_integration_github_organizations__organization_id__disconnect_delete
      security:
      - OAuth2PasswordBearer: []
      parameters:
      - name: organization_id
        in: path
        required: true
        schema:
          type: integer
          title: Organization Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /v1/integration/github/projects/{organization_id}/{project_id}/disconnect:
    delete:
      tags:
      - Github
      summary: Disconnect Github Project
      description: Disconnect a project from GitHub (org admin, super_admin, or manager).
      operationId: disconnect_github_project_v1_integration_github_projects__organization_id___project_id__disconnect_delete
      security:
      - OAuth2PasswordBearer: []
      parameters:
      - name: organization_id
        in: path
        required: true
        schema:
          type: integer
          title: Organization Id
      - name: project_id
        in: path
        required: true
        schema:
          type: integer
          title: Project Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /v1/integration/github/webhook:
    post:
      tags:
      - Github
      summary: Github Webhook
      description: Handle GitHub webhooks.
      operationId: github_webhook_v1_integration_github_webhook_post
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
components:
  schemas:
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    GitHubProjectResponse:
      properties:
        project_id:
          type: integer
          title: Project Id
        project_name:
          type: string
          title: Project Name
        is_connected:
          type: boolean
          title: Is Connected
        installation_id:
          anyOf:
          - type: integer
          - type: 'null'
          title: Installation Id
        account_login:
          anyOf:
          - type: string
          - type: 'null'
          title: Account Login
        account_type:
          anyOf:
          - type: string
          - type: 'null'
          title: Account Type
        repo_full_name:
          anyOf:
          - type: string
          - type: 'null'
          title: Repo Full Name
        repo_name:
          anyOf:
          - type: string
          - type: 'null'
          title: Repo Name
        uses_custom_statuses:
          anyOf:
          - type: boolean
          - type: 'null'
          title: Uses Custom Statuses
          default: false
        default_branch:
          anyOf:
          - type: string
          - type: 'null'
          title: Default Branch
        auto_create_branches:
          anyOf:
          - type: boolean
          - type: 'null'
          title: Auto Create Branches
          default: true
      type: object
      required:
      - project_id
      - project_name
      - is_connected
      title: GitHubProjectResponse
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
            - type: string
            - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
      type: object
      required:
      - loc
      - msg
      - type
      title: ValidationError
    GitHubProjectsResponse:
      properties:
        projects:
          items:
            $ref: '#/components/schemas/GitHubProjectResponse'
          type: array
          title: Projects
      type: object
      required:
      - projects
      title: GitHubProjectsResponse
    GitHubPreferencesUpdate:
      properties:
        auto_create_branches:
          type: boolean
          title: Auto Create Branches
      type: object
      required:
      - auto_create_branches
      title: GitHubPreferencesUpdate
  securitySchemes:
    OAuth2PasswordBearer:
      type: oauth2
      flows:
        password:
          scopes: {}
          tokenUrl: token