Layero GitHub API
The github API from Layero — 4 operation(s) for github.
The github API from Layero — 4 operation(s) for github.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
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.curl "https://apis.io/api/v1/apis/layero-ru:layero-ru-github-api"
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.
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. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: Layero GitHub API
version: 0.1.0
tags:
- name: Github
paths:
/github/repos:
get:
tags:
- Github
summary: List Repos
description: 'Repos accessible via the user''s OAuth token (mixed personal + orgs).
Legacy endpoint kept for back-compat; new picker uses /owned-repos
and /orgs/{login}/repos to avoid mixing scopes.'
operationId: list_repos_github_repos_get
parameters:
- name: authorization
in: header
required: false
schema:
anyOf:
- type: string
- type: 'null'
title: Authorization
responses:
'200':
description: Successful Response
content:
application/json:
schema:
type: array
items:
$ref: '#/components/schemas/RepoOut'
title: Response List Repos Github Repos Get
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
/github/owned-repos:
get:
tags:
- Github
summary: List Owned Repos
description: 'Repos owned by the authenticated user (no organization spillover).
Backs the personal-Layero-org picker entry "Личный GitHub (OAuth)".
`/user/repos?affiliation=owner` excludes everything the user only sees
through org membership — exactly what the picker needs to keep scope
clean.'
operationId: list_owned_repos_github_owned_repos_get
parameters:
- name: authorization
in: header
required: false
schema:
anyOf:
- type: string
- type: 'null'
title: Authorization
responses:
'200':
description: Successful Response
content:
application/json:
schema:
type: array
items:
$ref: '#/components/schemas/RepoOut'
title: Response List Owned Repos Github Owned Repos Get
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
/github/user/orgs:
get:
tags:
- Github
summary: List User Orgs
description: 'GitHub organizations the user is a member of.
Backs the picker''s "via OAuth" source entries — for each org returned
here, the picker can let the user import repos via OAuth even when no
App is installed on that org. Includes whether the OAuth token has
`read:org` scope, because without it the list silently filters to
public memberships only.'
operationId: list_user_orgs_github_user_orgs_get
parameters:
- name: authorization
in: header
required: false
schema:
anyOf:
- type: string
- type: 'null'
title: Authorization
responses:
'200':
description: Successful Response
content:
application/json:
schema:
type: object
additionalProperties: true
title: Response List User Orgs Github User Orgs Get
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
/github/orgs/{org_login}/repos:
get:
tags:
- Github
summary: List Org Repos
description: 'Repos in a specific GitHub Organization, scoped by user OAuth.
Used by the picker when the user picks an " (via OAuth)"
entry — i.e. a GitHub org the user is admin of where the App isn''t
installed (yet). The OAuth token determines visibility; private repos
show up only when read:org or repo scope is granted.'
operationId: list_org_repos_github_orgs__org_login__repos_get
parameters:
- name: org_login
in: path
required: true
schema:
type: string
title: Org Login
- name: authorization
in: header
required: false
schema:
anyOf:
- type: string
- type: 'null'
title: Authorization
responses:
'200':
description: Successful Response
content:
application/json:
schema:
type: array
items:
$ref: '#/components/schemas/RepoOut'
title: Response List Org Repos Github Orgs Org Login Repos Get
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
components:
schemas:
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
RepoOut:
properties:
id:
type: integer
title: Id
full_name:
type: string
title: Full Name
name:
type: string
title: Name
private:
type: boolean
title: Private
default_branch:
type: string
title: Default Branch
html_url:
type: string
title: Html Url
clone_url:
type: string
title: Clone Url
pushed_at:
anyOf:
- type: string
format: date-time
- type: 'null'
title: Pushed At
type: object
required:
- id
- full_name
- name
- private
- default_branch
- html_url
- clone_url
title: RepoOut
HTTPValidationError:
properties:
detail:
items:
$ref: '#/components/schemas/ValidationError'
type: array
title: Detail
type: object
title: HTTPValidationError