> ## Documentation Index
> Fetch the complete documentation index at: https://cognitio-agent.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Get VCS info

> Retrieve version control system (VCS) information for the current project, such as git branch.



## OpenAPI

````yaml /openapi.json get /vcs
openapi: 3.1.1
info:
  title: cognitio
  description: cognitio api
  version: 1.0.0
servers: []
security: []
paths:
  /vcs:
    get:
      summary: Get VCS info
      description: >-
        Retrieve version control system (VCS) information for the current
        project, such as git branch.
      operationId: vcs.get
      parameters:
        - in: query
          name: directory
          schema:
            type: string
        - in: query
          name: workspace
          schema:
            type: string
      responses:
        '200':
          description: VCS info
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/VcsInfo'
      x-codeSamples:
        - lang: js
          source: |-
            import { createCognitioClient } from "@cognitio/sdk

            const client = createCognitioClient()
            await client.vcs.get({
              ...
            })
components:
  schemas:
    VcsInfo:
      type: object
      properties:
        branch:
          type: string
        default_branch:
          type: string

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.