codefmt Ask API

The Ask API from codefmt — 1 operation(s) for ask.

GitHub OpenAPI

Operations 2

1 of 2 operations are conformant: apis.io called them with no credentials and the responses matched this contract. Checked 2026-11-11. how this works · status file

GET /ask Ask a question about codefmt and get a grounded, cited answer conformant #
POST /ask Same as GET /ask, with the question in a JSON body #

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/codefmt-dev:codefmt-dev-ask-api"
All apis
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.

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. 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 Specification

codefmt-dev-ask-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Codefmt Dev Ask API
  version: 1.0.0
  contact:
    name: codefmt
    url: https://codefmt.dev/contact
    email: support@codefmt.dev
  license:
    name: Proprietary
    url: https://codefmt.dev/privacy
  description: 'Operations tagged Ask across 2 of this provider''s published API definitions: codefmt-dev-openapi.json, codefmt-dev-openapi.yml. Each path carries the servers of the definition it was published in.'
servers:
- url: https://codefmt.dev
  description: Production
tags:
- name: Ask
paths:
  /ask:
    get:
      operationId: ask
      summary: Ask a question about codefmt and get a grounded, cited answer
      description: Answers from codefmt's own published FAQ and page content and cites the source URLs. Questions the content does not cover are refused rather than guessed; `confidence` is at or above the answer bar exactly when the question was answered. Shares the per-IP rate limit with the format API.
      parameters:
      - name: query
        in: query
        required: false
        schema:
          type: string
          maxLength: 2048
        description: The question. `q` is accepted as an alias. Omit both for usage instructions. Over 2048 characters is answered 200 with "query too long" in answer.
      - name: prefer.streaming
        in: query
        required: false
        schema:
          type: string
          enum:
          - 'true'
        description: Ask for the text/event-stream form. An Accept header that merely includes text/event-stream also selects it.
      responses:
        '200':
          description: 'An answer, or a refusal that names the closest pages. JSON by default; text/event-stream when prefer.streaming is set or Accept includes text/event-stream (events: start, one result per result, then complete carrying the same AskResponse). Note an MCP-style Accept of ''application/json, text/event-stream'' selects the stream.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AskResponse'
            text/event-stream:
              schema:
                type: string
        '429':
          description: Rate limited (60 requests per minute per IP, shared with the format API). The body has the AskResponse shape with the message in answer.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AskResponse'
      tags:
      - Ask
    post:
      operationId: askPost
      summary: Same as GET /ask, with the question in a JSON body
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                query:
                  type: string
                  maxLength: 2048
                q:
                  type: string
                  maxLength: 2048
                  description: Alias for query.
                prefer.streaming:
                  type: boolean
                  description: Ask for the text/event-stream form.
      responses:
        '200':
          description: 'An answer, or a refusal that names the closest pages. JSON by default; text/event-stream when prefer.streaming is set or Accept includes text/event-stream (events: start, one result per result, then complete carrying the same AskResponse). Note an MCP-style Accept of ''application/json, text/event-stream'' selects the stream.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AskResponse'
            text/event-stream:
              schema:
                type: string
        '429':
          description: Rate limited (60 requests per minute per IP, shared with the format API).
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AskResponse'
      tags:
      - Ask
    servers:
    - url: https://codefmt.dev
      description: Production
components:
  schemas:
    AskResponse:
      type: object
      required:
      - answer
      - sources
      - results
      properties:
        query:
          type: string
          description: The question as received. Absent on the usage, query-too-long and rate-limit replies.
        answer:
          type: string
          description: The grounded answer, or the refusal text.
        sources:
          type: array
          items:
            type: string
          description: Cited source URLs.
        results:
          type: array
          description: Ranked matching entries.
          items:
            type: object
            required:
            - label
            - source
            - score
            properties:
              label:
                type: string
              source:
                type: string
              score:
                type: number
        confidence:
          type: number
          minimum: 0
          maximum: 1
          description: How much of the question the answer covers, weighted toward its rarer terms.
externalDocs:
  description: Full API reference (llms.txt)
  url: https://codefmt.dev/llms.txt
x-refined-from:
- codefmt-dev-openapi.json
- codefmt-dev-openapi.yml