Nibgate JEV API

JEV decision-layer helpers: LLM-scored options for deterministic decide(). Server-side only; provider keys never leave the hub.

GitHub OpenAPI

Operations 3

POST /hub/jev/decide Ask the JEV decisions model to choose one option #
POST /hub/jev/classify Classify a page as creator content (calibrated probability) #
POST /hub/jev/tags Score candidate tags and return confident top-k #

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/nibgate-xyz:nibgate-xyz-jev-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

nibgate-xyz-jev-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Nibgate Hub JEV API
  version: 0.2.15
  description: 'Public API for the Nibgate hub: verified content discovery, paid unlocks over x402 (Circle Gateway on Arc (chain ID 5042)), Nib Tips, public ledger, reputation, and platform stats. Nibgate is an open protocol for paid content on creator-owned domains. Agent guide: https://nibgate.xyz/discovery.md'
  contact:
    name: Nibgate
    url: https://nibgate.xyz
servers:
- url: https://api.nibgate.xyz
  description: Production hub API
tags:
- name: JEV
  description: 'JEV decision-layer helpers: LLM-scored options for deterministic decide(). Server-side only; provider keys never leave the hub.'
paths:
  /hub/jev/decide:
    post:
      tags:
      - JEV
      summary: Ask the JEV decisions model to choose one option
      description: 'Calls TypeSafe''s actual JEV decisions model (`~typesafe/jev-latest` via OpenRouter''s /api/alpha/decisions — a decisions model, not a chat model) to CHOOSE exactly one candidate over a described state. Returns the pick plus calibrated per-option probabilities and confidence. Server-side only; the provider key never leaves the hub. Used by the wallet extension as a last resort for recipient inference: rules first, model only on ambiguity, and the caller still applies its own confidence threshold before acting.'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
              - state
              - instructions
              - candidates
              properties:
                state:
                  type: string
                  description: Situation the model reasons over — page URL, title, author, and where each wallet appeared (max 4000 chars)
                instructions:
                  type: string
                  description: What the choice is about, in plain language (max 500 chars)
                questionId:
                  type: string
                  description: Question key (default 'choice')
                candidates:
                  type: array
                  minItems: 2
                  maxItems: 12
                  items:
                    type: object
                    required:
                    - id
                    - context
                    properties:
                      id:
                        type: string
                        description: Candidate id the model must choose (e.g. a wallet address)
                      context:
                        type: string
                        description: Evidence describing this candidate (max 2000 chars)
      responses:
        '200':
          description: 'The pick: {success, choice, confidence, probabilities, model, usage}'
          content:
            application/json:
              schema:
                type: object
        '400':
          description: Invalid state/instructions/candidates
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '501':
          description: Decisions not enabled in this build
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '502':
          description: Model returned no usable decision, or provider failure
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      operationId: postHubJevDecide
      x-operation-id-source: derived
  /hub/jev/classify:
    post:
      tags:
      - JEV
      summary: Classify a page as creator content (calibrated probability)
      description: Runs a JEV `noul` judgment over a described page and returns a calibrated 0..1 probability that it is a single creator-authored content page (article/story/post/media) rather than a landing/feed/app/auth/shopping page. Used by the wallet extension ONLY when its deterministic page model is inconclusive; the caller thresholds the probability and stays silent otherwise.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
              - state
              properties:
                state:
                  type: string
                  description: 'Page description: URL, title, site, detected kind, word count, byline, excerpt (max 4000 chars)'
                instructions:
                  type: string
                  description: Optional override of the default judgment phrasing (max 500 chars)
      responses:
        '200':
          description: '{success, probability (0..1), model, usage}'
          content:
            application/json:
              schema:
                type: object
        '400':
          description: Invalid state/instructions
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '501':
          description: Decisions not enabled in this build
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '502':
          description: No usable judgment, or provider failure
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      operationId: postHubJevClassify
      x-operation-id-source: derived
  /hub/jev/tags:
    post:
      tags:
      - JEV
      summary: Score candidate tags and return confident top-k
      description: Batch `noul` scoring of a caller-supplied candidate tag set (auto-generated by the caller) against a described piece of content. Returns the top-k tags whose probability clears the threshold — used to give thin content TENTATIVE discovery metadata (tag categories), never to generate prose.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
              - state
              - candidates
              properties:
                state:
                  type: string
                  description: 'Content description: title, site, type, excerpt/path (max 4000 chars)'
                candidates:
                  type: array
                  minItems: 2
                  maxItems: 24
                  items:
                    type: string
                  description: Candidate tags to score (each <= 60 chars)
                topK:
                  type: integer
                  description: Max tags to return (1-10, default 3)
                minProbability:
                  type: number
                  description: Minimum probability to keep (0-1, default 0)
      responses:
        '200':
          description: '{success, tags: [{tag, probability}], model, usage}'
          content:
            application/json:
              schema:
                type: object
        '400':
          description: Invalid state/candidates/topK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '501':
          description: Decisions not enabled in this build
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '502':
          description: No usable tags, or provider failure
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      operationId: postHubJevTags
      x-operation-id-source: derived
components:
  schemas:
    Error:
      type: object
      properties:
        error:
          type: string
        details:
          type: string
  securitySchemes:
    x402:
      type: apiKey
      in: header
      name: Payment
      description: x402 payment challenge-response header. Include the header on retry after settlement to unlock paid content.
x-discovery:
  ownershipProofs:
  - '0x7514Ff68BE453931ce1a8e752140E209Dd125A'