Kagura AI Github Oauth2 API

GitHub OAuth2 login and callback flow

GitHub OpenAPI

Operations 2

GET /api/v1/auth/github/login Github Login #
GET /api/v1/auth/github/callback Github Callback #

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/kagura-ai-com:kagura-ai-com-github-oauth2-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

kagura-ai-com-github-oauth2-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Kagura Memory Cloud Github Oauth2 API
  description: Universal AI Memory Platform - Remote MCP Server + Web Management
  version: 0.158.1
tags:
- name: github-oauth2
  description: GitHub OAuth2 login and callback flow
paths:
  /api/v1/auth/github/login:
    get:
      tags:
      - github-oauth2
      summary: Github Login
      description: 'Initiate GitHub OAuth2 login flow.


        ``invite`` is an optional closed-beta invite token (#1581),

        ``accepted_terms`` the terms version agreed to (#1665), and ``locale`` /

        ``timezone`` the sign-in page''s UI language (``en`` / ``ja``) and the

        browser''s IANA time zone, which seed a NEW account only (#2700) — see

        ``google_login``; both providers share ``_remember_beta_invite``,

        ``_remember_accepted_terms`` and ``_remember_signup_prefs``.'
      operationId: github_login_api_v1_auth_github_login_get
      parameters:
      - name: return_to
        in: query
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Return To
      - name: add_account
        in: query
        required: false
        schema:
          type: boolean
          default: false
          title: Add Account
      - name: invite
        in: query
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Invite
      - name: accepted_terms
        in: query
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Accepted Terms
      - name: locale
        in: query
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Locale
      - name: timezone
        in: query
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Timezone
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/v1/auth/github/callback:
    get:
      tags:
      - github-oauth2
      summary: Github Callback
      description: 'Handle GitHub OAuth2 callback.


        Same flow as Google callback: CSRF validation → token exchange →

        user info → session creation → cookie → redirect.'
      operationId: github_callback_api_v1_auth_github_callback_get
      parameters:
      - name: code
        in: query
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          description: GitHub authorization code
          title: Code
        description: GitHub authorization code
      - name: state
        in: query
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          description: CSRF state token
          title: State
        description: CSRF state token
      - name: error
        in: query
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          description: OAuth2 error code (e.g. access_denied) when the user cancels
          title: Error
        description: OAuth2 error code (e.g. access_denied) when the user cancels
      - name: error_description
        in: query
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          description: Human-readable OAuth2 error detail (not reflected)
          title: Error Description
        description: Human-readable OAuth2 error detail (not reflected)
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
            - type: string
            - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
      - loc
      - msg
      - type
      title: ValidationError