KnownGate API

KnownGate API as documented publicly: 4 operations. Contract generated from the documentation by API Evangelist (2026-11-13); not the provider's own document.

GitHub OpenAPI

Operations 4

POST /api/knowngate/v0/check_item POST /api/knowngate/v0/check_item #
POST /v0/check_item POST /v0/check_item #
POST /v0/keys Refusal rate · KnownGate REFUSAL RATE #
GET /v0/stats Refusal rate · KnownGate REFUSAL RATE #

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/knowngate-com:knowngate-com-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

knowngate-com-openapi-generated.yml Raw ↑
openapi: 3.1.0
info:
  title: KnownGate API
  version: '2026-11-13'
  description: 'GENERATED FROM DOCUMENTATION by API Evangelist on 2026-11-13: 4 operation(s) read from 25 public documentation page(s) (each operation
    names its page in x-source). This is not the provider''s published contract; KnownGate has published no machine-readable contract that the
    pipeline could find. Engine: local.'
  x-evidence-tiers:
    code-example: 1
    documentation: 3
    pages-with-code: 2
    pages-read: 25
  x-generated-from: documentation
  x-provenance: generated
  x-authored-by: API Evangelist
  x-generated: '2026-11-13'
  x-generator: generate-contract-from-docs.py
  x-engine: local
  x-sources:
  - https://www.knowngate.com/refusals
  - https://www.knowngate.com/developers
  - https://www.knowngate.com/developers.md
  - https://www.knowngate.com/check
  - https://www.knowngate.com/agents
  - https://www.knowngate.com/questions
  - https://www.knowngate.com/standard
  - https://www.knowngate.com/walkthrough
  - https://www.knowngate.com/refusals?layer1=zero
  - https://www.knowngate.com/refusals?layer1=low_n
  - https://www.knowngate.com/walkthrough/check?mode=human&step=1
  - https://www.knowngate.com/walkthrough/check?mode=human&step=2
  - https://www.knowngate.com/walkthrough/check?mode=human&step=3
  - https://www.knowngate.com/walkthrough/check?mode=human&step=4
  - https://www.knowngate.com/walkthrough/check?mode=agent&step=1
  - https://www.knowngate.com/walkthrough/check?mode=agent&step=2
  - https://www.knowngate.com/walkthrough/check?mode=agent&step=3
  - https://www.knowngate.com/walkthrough/check?mode=agent&step=4
  - https://www.knowngate.com/console
  - https://www.knowngate.com/walkthrough/console?keys=none
  - https://www.knowngate.com/walkthrough/console?keys=shown_once
  - https://www.knowngate.com/walkthrough/console?keys=active
  - https://www.knowngate.com/account
  - https://www.knowngate.com/check?mode=human&step=4
  - https://www.knowngate.com/check?mode=agent&step=4
paths:
  /api/knowngate/v0/check_item:
    post:
      operationId: post_api_knowngate_v0_check_item
      tags:
      - Api
      summary: POST /api/knowngate/v0/check_item
      x-source: https://www.knowngate.com/developers
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PostApiKnowngateV0CheckItemRequest'
      responses:
        '201':
          description: Success (shape read from the example response on the page)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PostApiKnowngateV0CheckItemResponse'
      x-evidence:
        kind: code-example
        language: curl
        snippet: "curl https://www.knowngate.com/api/knowngate/v0/check_item  -H \"Authorization: Bearer kg_live_…\"  -d '{\"subject\":{\"upc\"\
          :\"0 78742 11934 6\"},\n \"restrictions\":[\"peanut\",\"sesame\"],\n \"thresholds\":[{\"nutrient\":\"sodium\",\"max\":600,\n \"unit\"\
          :\"mg\",\"basis\":\"per_serving\"}]}'"
  /v0/check_item:
    post:
      operationId: post_v0_check_item
      tags:
      - Check Item
      summary: POST /v0/check_item
      x-source: https://www.knowngate.com/agents
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PostV0CheckItemRequest'
      responses:
        '201':
          description: Success (status as documented)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PostV0CheckItemResponse'
      x-evidence:
        kind: documentation
  /v0/keys:
    post:
      operationId: post_v0_keys
      tags:
      - Keys
      summary: Refusal rate · KnownGate REFUSAL RATE
      x-source: https://www.knowngate.com/refusals
      responses:
        '201':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
  /v0/stats:
    get:
      operationId: get_v0_stats
      tags:
      - Stats
      summary: Refusal rate · KnownGate REFUSAL RATE
      x-source: https://www.knowngate.com/refusals
      responses:
        '200':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
components:
  schemas:
    PostApiKnowngateV0CheckItemRequest:
      type: object
      properties:
        subject:
          type: object
          properties:
            upc:
              type: string
        restrictions:
          type: array
          items:
            type: string
        thresholds:
          type: array
          items:
            type: object
            properties:
              nutrient:
                type: string
              max:
                type: integer
              unit:
                type: string
              basis:
                type: string
    PostApiKnowngateV0CheckItemResponse:
      type: object
      properties:
        verdict:
          type: string
        allergen_hits:
          type: array
          items: {}
        threshold_hits:
          type: array
          items:
            type: object
            properties:
              nutrient:
                type: string
              found:
                type: integer
              unit:
                type: string
              basis:
                type: string
              max:
                type: integer
        axes:
          type: object
          properties:
            composition:
              type: string
            preparation:
              type: string
        source:
          type: object
          properties:
            kind:
              type: string
            read_at:
              type: string
              format: date
        question:
          type:
          - string
          - 'null'
        summary_line:
          type: string
        must_not_omit:
          type: array
          items: {}
        certificate_url:
          type:
          - string
          - 'null'
    PostV0CheckItemRequest:
      type: object
      properties:
        subject:
          type: object
          description: 'Subject to check, e.g. { "upc": "0 51500 25551 8" }'
        restrictions:
          type: array
          description: List of ingredients that must not be present
        thresholds:
          type: array
          description: List of nutrient thresholds, each with nutrient, max, unit, basis
      required:
      - subject
    PostV0CheckItemResponse:
      type: object
      properties:
        subject:
          type: string
          description: Human‑readable name of the subject
        verdict:
          type: string
          description: One of no_conflict_found, conflict_found, couldnt_verify, ask_one_question
        threshold_hits:
          type: array
          description: Details for each threshold evaluated
        source:
          type: object
          description: Source of the data with kind and read_at
        summary_line:
          type: string
          description: One‑line summary of the result
        must_not_omit:
          type: array
          description: Mandatory lines that must be included in any relay
  securitySchemes:
    bearer:
      type: http
      scheme: bearer
security:
- bearer: []
tags:
- name: Api
- name: Check Item
- name: Keys
- name: Stats