Ownkube Version control API
The Version control API from Ownkube — 3 operation(s) for version control.
The Version control API from Ownkube — 3 operation(s) for version control.
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/ownkube-io:ownkube-io-version-control-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: Ownkube CLI Version control API
version: 1.15.0
description: API for the Ownkube CLI tool. Authenticate via browser-based flow, then use x-api-key header for subsequent requests.
servers:
- url: /api/cli
security:
- apiKey: []
tags:
- name: Version control
paths:
/v1/vcs/connections:
get:
tags:
- Version control
summary: List connected version control accounts
description: Lists the GitHub and GitLab accounts connected to the organization. Connecting a new account happens in the dashboard at `connectUrl`.
security:
- apiKey: []
responses:
'200':
description: Connected accounts
content:
application/json:
schema:
$ref: '#/components/schemas/VcsConnections'
'400':
description: Bad request
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'401':
description: Invalid or missing API key
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'403':
description: Forbidden
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'404':
description: Not found
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'409':
description: Conflict
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'412':
description: Precondition failed
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'429':
description: Rate limited; retry after the Retry-After header's seconds
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'500':
description: Internal server error
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
operationId: getV1VcsConnections
x-operation-id-source: derived
/v1/vcs/repos:
get:
tags:
- Version control
summary: List repositories the connected accounts can see
description: Lists repositories visible to the organization's connected GitHub and GitLab accounts, optionally for one connection.
security:
- apiKey: []
parameters:
- schema:
type: string
minLength: 1
description: Only list this connected account's repositories. Omit to list across every connected account.
required: false
description: Only list this connected account's repositories. Omit to list across every connected account.
name: connectionId
in: query
responses:
'200':
description: Repositories
content:
application/json:
schema:
$ref: '#/components/schemas/VcsRepositories'
'400':
description: Bad request
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'401':
description: Invalid or missing API key
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'403':
description: Forbidden
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'404':
description: Not found
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'409':
description: Conflict
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'412':
description: Precondition failed
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'429':
description: Rate limited; retry after the Retry-After header's seconds
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'500':
description: Internal server error
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
operationId: getV1VcsRepos
x-operation-id-source: derived
/v1/vcs/branches:
get:
tags:
- Version control
summary: List a repository's branches
description: Lists a repository's branches, most recently committed first, through the connected account that can see it.
security:
- apiKey: []
parameters:
- schema:
type: string
minLength: 3
description: 'Repository as owner/repo (GitLab: group/subgroup/project).'
required: true
description: 'Repository as owner/repo (GitLab: group/subgroup/project).'
name: repository
in: query
- schema:
type: string
minLength: 1
description: Connected account to read through. Omit to use whichever connected account can see the repository.
required: false
description: Connected account to read through. Omit to use whichever connected account can see the repository.
name: connectionId
in: query
responses:
'200':
description: Branches
content:
application/json:
schema:
$ref: '#/components/schemas/VcsBranches'
'400':
description: Bad request
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'401':
description: Invalid or missing API key
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'403':
description: Forbidden
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'404':
description: Not found
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'409':
description: Conflict
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'412':
description: Precondition failed
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'429':
description: Rate limited; retry after the Retry-After header's seconds
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'500':
description: Internal server error
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
operationId: getV1VcsBranches
x-operation-id-source: derived
components:
schemas:
VcsConnections:
type: object
properties:
connections:
type: array
items:
$ref: '#/components/schemas/VcsConnection'
connectUrl:
type: string
description: Dashboard page to connect GitHub or GitLab, or grant access to more repositories.
required:
- connections
- connectUrl
ErrorResponse:
type: object
properties:
error:
type: string
description: Human-readable error message
code:
type: string
description: Machine-readable error code
required:
- error
- code
VcsRepository:
type: object
properties:
fullName:
type: string
description: owner/repo; pass it as repository when setting a source.
defaultBranch:
type: string
description: The repository's default branch.
private:
type: boolean
description: Whether the repository is private.
url:
type: string
description: Repository web URL.
connectionId:
type: string
description: Connected account the repository was listed through.
account:
type: string
nullable: true
description: Login of the connected account the repository came from.
required:
- fullName
- defaultBranch
- private
- url
- connectionId
- account
VcsRepositories:
type: object
properties:
repositories:
type: array
items:
$ref: '#/components/schemas/VcsRepository'
required:
- repositories
VcsBranches:
type: object
properties:
branches:
type: array
items:
type: object
properties:
name:
type: string
description: Branch name.
lastCommitAt:
type: string
nullable: true
description: ISO timestamp of the branch tip commit, when known.
required:
- name
- lastCommitAt
required:
- branches
VcsConnection:
type: object
properties:
id:
type: string
description: Connection id; pass it as connectionId.
provider:
type: string
enum:
- github
- gitlab
description: The version control provider.
account:
type: string
nullable: true
description: Connected account or group name, e.g. the GitHub org login.
accountType:
type: string
nullable: true
description: Organization or User (GitHub), or the GitLab namespace kind.
status:
type: string
description: active when usable; anything else needs fixing in the dashboard.
required:
- id
- provider
- account
- accountType
- status
securitySchemes:
apiKey:
type: apiKey
in: header
name: x-api-key
description: API key issued by the browser-based CLI authorization flow.