Layero Source Connections API
The source_connections API from Layero — 6 operation(s) for source_connections.
The source_connections API from Layero — 6 operation(s) for source_connections.
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-source-connections-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 Source Connections API
version: 0.1.0
tags:
- name: source_connections
paths:
/organizations/{slug}/source-providers:
get:
tags:
- source_connections
summary: List Providers
operationId: list_providers_organizations__slug__source_providers_get
parameters:
- name: slug
in: path
required: true
schema:
type: string
title: Slug
- 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/SourceProviderOut'
title: Response List Providers Organizations Slug Source Providers Get
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
/organizations/{slug}/source-connections:
get:
tags:
- source_connections
summary: List Connections
operationId: list_connections_organizations__slug__source_connections_get
parameters:
- name: slug
in: path
required: true
schema:
type: string
title: Slug
- 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/SourceConnectionOut'
title: Response List Connections Organizations Slug Source Connections Get
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
post:
tags:
- source_connections
summary: Create Connection
operationId: create_connection_organizations__slug__source_connections_post
parameters:
- name: slug
in: path
required: true
schema:
type: string
title: Slug
- name: authorization
in: header
required: false
schema:
anyOf:
- type: string
- type: 'null'
title: Authorization
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/SourceConnectionIn'
responses:
'201':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/SourceConnectionOut'
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
/organizations/{slug}/source-connections/{connection_id}/verify:
post:
tags:
- source_connections
summary: Verify Connection
operationId: verify_connection_organizations__slug__source_connections__connection_id__verify_post
parameters:
- name: slug
in: path
required: true
schema:
type: string
title: Slug
- name: connection_id
in: path
required: true
schema:
type: string
format: uuid
title: Connection Id
- name: authorization
in: header
required: false
schema:
anyOf:
- type: string
- type: 'null'
title: Authorization
responses:
'200':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/SourceConnectionOut'
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
/organizations/{slug}/source-connections/{connection_id}/repos:
get:
tags:
- source_connections
summary: List Repos
operationId: list_repos_organizations__slug__source_connections__connection_id__repos_get
parameters:
- name: slug
in: path
required: true
schema:
type: string
title: Slug
- name: connection_id
in: path
required: true
schema:
type: string
format: uuid
title: Connection Id
- 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/SourceRepoOut'
title: Response List Repos Organizations Slug Source Connections Connection Id Repos Get
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
/organizations/{slug}/source-connections/{connection_id}/branches:
get:
tags:
- source_connections
summary: List Branches
operationId: list_branches_organizations__slug__source_connections__connection_id__branches_get
parameters:
- name: slug
in: path
required: true
schema:
type: string
title: Slug
- name: connection_id
in: path
required: true
schema:
type: string
format: uuid
title: Connection Id
- name: repo
in: query
required: true
schema:
type: string
minLength: 1
maxLength: 300
title: Repo
- 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/SourceBranchOut'
title: Response List Branches Organizations Slug Source Connections Connection Id Branches Get
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
/organizations/{slug}/source-connections/{connection_id}:
delete:
tags:
- source_connections
summary: Delete Connection
operationId: delete_connection_organizations__slug__source_connections__connection_id__delete
parameters:
- name: slug
in: path
required: true
schema:
type: string
title: Slug
- name: connection_id
in: path
required: true
schema:
type: string
format: uuid
title: Connection Id
- name: authorization
in: header
required: false
schema:
anyOf:
- type: string
- type: 'null'
title: Authorization
responses:
'204':
description: Successful Response
'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
SourceConnectionIn:
properties:
provider_id:
type: string
maxLength: 40
minLength: 1
title: Provider Id
token:
type: string
maxLength: 500
minLength: 8
title: Token
display_name:
anyOf:
- type: string
maxLength: 100
- type: 'null'
title: Display Name
base_url:
anyOf:
- type: string
maxLength: 300
- type: 'null'
title: Base Url
type: object
required:
- provider_id
- token
title: SourceConnectionIn
SourceProviderOut:
properties:
id:
type: string
title: Id
title:
type: string
title: Title
web_base_url:
type: string
title: Web Base Url
self_hosted:
type: boolean
title: Self Hosted
webhook_create:
type: boolean
title: Webhook Create
webhook_supported:
type: boolean
title: Webhook Supported
default: true
token_hint:
anyOf:
- type: string
- type: 'null'
title: Token Hint
type: object
required:
- id
- title
- web_base_url
- self_hosted
- webhook_create
title: SourceProviderOut
SourceRepoOut:
properties:
external_id:
type: string
title: External Id
path:
type: string
title: Path
name:
type: string
title: Name
default_branch:
type: string
title: Default Branch
clone_url:
type: string
title: Clone Url
private:
type: boolean
title: Private
updated_at:
anyOf:
- type: string
- type: 'null'
title: Updated At
can_admin:
type: boolean
title: Can Admin
type: object
required:
- external_id
- path
- name
- default_branch
- clone_url
- private
- updated_at
- can_admin
title: SourceRepoOut
SourceConnectionOut:
properties:
id:
type: string
title: Id
provider_id:
type: string
title: Provider Id
provider_title:
type: string
title: Provider Title
external_account:
anyOf:
- type: string
- type: 'null'
title: External Account
display_name:
anyOf:
- type: string
- type: 'null'
title: Display Name
status:
type: string
title: Status
last_error:
anyOf:
- type: string
- type: 'null'
title: Last Error
last_verified_at:
anyOf:
- type: string
format: date-time
- type: 'null'
title: Last Verified At
token_expires_at:
anyOf:
- type: string
format: date-time
- type: 'null'
title: Token Expires At
token_expiry_state:
type: string
title: Token Expiry State
default: unknown
projects_count:
type: integer
title: Projects Count
created_at:
type: string
format: date-time
title: Created At
type: object
required:
- id
- provider_id
- provider_title
- external_account
- display_name
- status
- last_error
- last_verified_at
- projects_count
- created_at
title: SourceConnectionOut
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
SourceBranchOut:
properties:
name:
type: string
title: Name
commit_sha:
type: string
title: Commit Sha
type: object
required:
- name
- commit_sha
title: SourceBranchOut