Codag Cli API

The Cli API from Codag — 2 operation(s) for cli.

Operations 2

POST /api/cli/confirm Cli Confirm #
POST /api/cli/deny Cli Deny #

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/codag-cli-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 email required.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

codag-cli-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: infra-logs templater Activate Cli API
  description: Token compression for log streams. POST raw logs, get back templates or capsules.
  version: 0.1.0
servers:
- url: https://api.codag.ai
  description: Base URL declared by the provider in apis.yml (roadmap#122).
tags:
- name: Cli
paths:
  /api/cli/confirm:
    post:
      summary: Cli Confirm
      description: 'Browser → server: ''I''m signed in, please link this user_code to me + org X''.'
      operationId: cli_confirm_api_cli_confirm_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CLIConfirmRequest'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CLIConfirmResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      tags:
      - Cli
  /api/cli/deny:
    post:
      summary: Cli Deny
      description: 'Browser → server: ''user clicked Deny on the /cli-auth page''.'
      operationId: cli_deny_api_cli_deny_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CLIConfirmRequest'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CLIConfirmResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      tags:
      - Cli
components:
  schemas:
    CLIConfirmResponse:
      properties:
        ok:
          type: boolean
          title: Ok
        user_code:
          type: string
          title: User Code
        org:
          type: string
          title: Org
      type: object
      required:
      - ok
      - user_code
      - org
      title: CLIConfirmResponse
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    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
    CLIConfirmRequest:
      properties:
        user_code:
          type: string
          maxLength: 10
          minLength: 8
          title: User Code
        org_id:
          anyOf:
          - type: string
            maxLength: 64
            minLength: 1
          - type: 'null'
          title: Org Id
        org_slug:
          anyOf:
          - type: string
            maxLength: 64
            minLength: 1
          - type: 'null'
          title: Org Slug
      type: object
      required:
      - user_code
      title: CLIConfirmRequest