Coder Git API

The Git API from Coder — 3 operation(s) for git.

Operations 5

GET /api/v2/external-auth Get user external auths #
GET /api/v2/external-auth/{externalauth} Get external auth by ID #
GET /api/v2/external-auth/{externalauth}/device Get external auth device by ID. #
POST /api/v2/external-auth/{externalauth}/device Post external auth device by ID #

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/coder-git-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

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

coder-git-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  description: Coderd is the service created by running coder server. It is a thin API that connects workspaces, provisioners and users. coderd stores its state in Postgres and is the only service that communicates with Postgres.
  title: Coder Agents Git API
  termsOfService: https://coder.com/legal/terms-of-service
  contact:
    name: API Support
    url: https://coder.com
    email: support@coder.com
  license:
    name: AGPL-3.0
    url: https://github.com/coder/coder/blob/main/LICENSE
  version: '2.0'
servers:
- url: https://{coderHost}/api/v2
  description: Coder instance
  variables:
    coderHost:
      default: coder.example.com
      description: Your Coder deployment hostname
security:
- CoderSessionToken: []
tags:
- name: Git
paths:
  /api/v2/external-auth:
    get:
      operationId: get-user-external-auths
      summary: Get user external auths
      tags:
      - Git
      security:
      - CoderSessionToken: []
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/codersdk.ExternalAuthLink'
  /api/v2/external-auth/{externalauth}:
    get:
      operationId: get-external-auth-by-id
      summary: Get external auth by ID
      tags:
      - Git
      security:
      - CoderSessionToken: []
      parameters:
      - name: externalauth
        in: path
        required: true
        description: Git Provider ID
        schema:
          type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/codersdk.ExternalAuth'
    delete:
      operationId: delete-external-auth-user-link-by-id
      summary: Delete external auth user link by ID
      tags:
      - Git
      security:
      - CoderSessionToken: []
      parameters:
      - name: externalauth
        in: path
        required: true
        description: Git Provider ID
        schema:
          type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/codersdk.DeleteExternalAuthByIDResponse'
  /api/v2/external-auth/{externalauth}/device:
    get:
      operationId: get-external-auth-device-by-id
      summary: Get external auth device by ID.
      tags:
      - Git
      security:
      - CoderSessionToken: []
      parameters:
      - name: externalauth
        in: path
        required: true
        description: Git Provider ID
        schema:
          type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/codersdk.ExternalAuthDevice'
    post:
      operationId: post-external-auth-device-by-id
      summary: Post external auth device by ID
      tags:
      - Git
      security:
      - CoderSessionToken: []
      parameters:
      - name: externalauth
        in: path
        required: true
        description: External Provider ID
        schema:
          type: string
      responses:
        '204':
          description: No Content
components:
  schemas:
    codersdk.ExternalAuthDevice:
      type: object
      properties:
        device_code:
          type: string
        expires_in:
          type: integer
        interval:
          type: integer
        user_code:
          type: string
        verification_uri:
          type: string
    codersdk.ExternalAuthUser:
      type: object
      properties:
        avatar_url:
          type: string
        id:
          type: integer
        login:
          type: string
        name:
          type: string
        profile_url:
          type: string
    codersdk.ExternalAuth:
      type: object
      properties:
        app_install_url:
          type: string
          description: AppInstallURL is the URL to install the app.
        app_installable:
          type: boolean
          description: AppInstallable is true if the request for app installs was successful.
        authenticated:
          type: boolean
        device:
          type: boolean
        display_name:
          type: string
        installations:
          type: array
          description: AppInstallations are the installations that the user has access to.
          items:
            $ref: '#/components/schemas/codersdk.ExternalAuthAppInstallation'
        supports_revocation:
          type: boolean
        user:
          description: User is the user that authenticated with the provider.
          allOf:
          - $ref: '#/components/schemas/codersdk.ExternalAuthUser'
    codersdk.ExternalAuthLink:
      type: object
      properties:
        authenticated:
          type: boolean
        created_at:
          type: string
          format: date-time
        expires:
          type: string
          format: date-time
        has_refresh_token:
          type: boolean
        provider_id:
          type: string
        updated_at:
          type: string
          format: date-time
        validate_error:
          type: string
    codersdk.DeleteExternalAuthByIDResponse:
      type: object
      properties:
        token_revocation_error:
          type: string
        token_revoked:
          type: boolean
          description: TokenRevoked set to true if token revocation was attempted and was successful
    codersdk.ExternalAuthAppInstallation:
      type: object
      properties:
        account:
          $ref: '#/components/schemas/codersdk.ExternalAuthUser'
        configure_url:
          type: string
        id:
          type: integer
  securitySchemes:
    CoderSessionToken:
      type: apiKey
      in: header
      name: Coder-Session-Token