Zyberno Admin API

The admin API from Zyberno — 15 operation(s) for admin.

GitHub OpenAPI
Pull this API's OpenAPI, operations, scores and pricing into your own code or AI agent with a free APIs.io key — sign in with GitHub, Google or LinkedIn. No form to fill in; signing in shares your email address with us (Privacy).

Operations 16

GET /admin/mcp-stats Mcp Stats #
GET /admin/stocks Get Stocks To Cache #
POST /admin/stocks Add Stock To Cache #
DELETE /admin/stocks/{symbol} Remove Stock #
POST /admin/reset-positions Reset Processing Positions #
POST /admin/rebuild-from-source Rebuild From Source #
POST /admin/refresh-stocks Refresh Stocks #
POST /admin/rebuild-filter-indexes Rebuild Filter Indexes #
POST /admin/recompute-momentum Recompute Momentum #
POST /admin/recompute-moat Recompute Moat #
POST /admin/dependency-fields Upload Dependency Fields #
GET /admin/visits Visits Report #
GET /admin/purge-status Purge Status #
POST /admin/purge-all-tickers Purge All Tickers #
GET /admin/field-monitor Get Field Monitor History #
GET /admin/field-monitor/current Get Field Monitor Current #

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/zyberno-com:zyberno-com-admin-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

zyberno-com-admin-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: SEC EDGAR Financial Data Admin API
  description: API for accessing financial data from SEC EDGAR
  version: 1.0.0
tags:
- name: Admin
paths:
  /admin/mcp-stats:
    get:
      tags:
      - Admin
      summary: Mcp Stats
      description: 'Per-tool MCP usage, newest day first.


        Answers the three questions you cannot tune tool descriptions without:

        which tools models actually pick, which ones they call and get an error

        from, and which tools they try to call that do not exist.'
      operationId: mcp_stats_admin_mcp_stats_get
      parameters:
      - name: days
        in: query
        required: false
        schema:
          type: integer
          default: 7
          title: Days
      - name: x-admin-key
        in: header
        required: false
        schema:
          type: string
          default: ''
          title: X-Admin-Key
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /admin/stocks:
    get:
      tags:
      - Admin
      summary: Get Stocks To Cache
      description: Get list of stocks configured for background caching.
      operationId: get_stocks_to_cache_admin_stocks_get
      parameters:
      - name: x-admin-key
        in: header
        required: false
        schema:
          type: string
          default: ''
          title: X-Admin-Key
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
    post:
      tags:
      - Admin
      summary: Add Stock To Cache
      description: Add a stock to the background caching list.
      operationId: add_stock_to_cache_admin_stocks_post
      parameters:
      - name: x-admin-key
        in: header
        required: false
        schema:
          type: string
          default: ''
          title: X-Admin-Key
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/StockData'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /admin/stocks/{symbol}:
    delete:
      tags:
      - Admin
      summary: Remove Stock
      description: Remove a stock from the cache list.
      operationId: remove_stock_admin_stocks__symbol__delete
      parameters:
      - name: symbol
        in: path
        required: true
        schema:
          type: string
          title: Symbol
      - name: x-admin-key
        in: header
        required: false
        schema:
          type: string
          default: ''
          title: X-Admin-Key
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /admin/reset-positions:
    post:
      tags:
      - Admin
      summary: Reset Processing Positions
      description: 'Reset background service positions to reprocess stocks from the beginning.


        Query params to select which loops to reset (all default to True):

        ?price=true&edgar=true§or=false — reset price+edgar only, keep sector'
      operationId: reset_processing_positions_admin_reset_positions_post
      parameters:
      - name: price
        in: query
        required: false
        schema:
          type: boolean
          default: true
          title: Price
      - name: edgar
        in: query
        required: false
        schema:
          type: boolean
          default: true
          title: Edgar
      - name: sector
        in: query
        required: false
        schema:
          type: boolean
          default: true
          title: Sector
      - name: x-admin-key
        in: header
        required: false
        schema:
          type: string
          default: ''
          title: X-Admin-Key
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /admin/rebuild-from-source:
    post:
      tags:
      - Admin
      summary: Rebuild From Source
      description: 'Re-derive the working list from `data/source/sec_universe.json`.


        Use this to:

        - Undo recent runtime deletions (SPACs/shells/bad-CIKs pruned by the

        EDGAR cycle-restart block) — every stock comes back with zeroed

        counters and gets re-attempted on the next cycle.

        - Pick up a fresh SEC universe just-committed via

        `scripts/refresh_sec_universe.py`.


        Equivalent to running `scripts/rebuild_working_list.py` + reloading

        the background service — but in-process and instant, no redeploy.


        Note: a `flyctl deploy` also resets the working list to the bundled

        version, so this endpoint is purely a convenience for skipping the

        deploy cycle.'
      operationId: rebuild_from_source_admin_rebuild_from_source_post
      parameters:
      - name: x-admin-key
        in: header
        required: false
        schema:
          type: string
          default: ''
          title: X-Admin-Key
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /admin/refresh-stocks:
    post:
      tags:
      - Admin
      summary: Refresh Stocks
      description: 'Rebuild named stocks from EDGAR now, the way the EDGAR loop does.


        For healing a few records after a fix without resetting the loop: a reset

        restarts the cycle at the top of the queue, so the stocks near the end go

        without a rebuild for as long as resets keep coming. Sequential, at most 5

        symbols per call (each takes several seconds of SEC requests).


        POST /admin/refresh-stocks?symbols=GOOG,BRK-A'
      operationId: refresh_stocks_admin_refresh_stocks_post
      parameters:
      - name: symbols
        in: query
        required: true
        schema:
          type: string
          title: Symbols
      - name: x-admin-key
        in: header
        required: false
        schema:
          type: string
          default: ''
          title: X-Admin-Key
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /admin/rebuild-filter-indexes:
    post:
      tags:
      - Admin
      summary: Rebuild Filter Indexes
      description: 'Rebuild all screener filter indexes from stored records (no EDGAR refetch).


        Run once after a deploy that adds fields to the screening engine''s index

        map — otherwise the new filter:idx:* indexes stay empty until the

        background reprocess cycle (~2 weeks) touches every stock. Takes a couple

        of minutes for the full universe.'
      operationId: rebuild_filter_indexes_admin_rebuild_filter_indexes_post
      parameters:
      - name: x-admin-key
        in: header
        required: false
        schema:
          type: string
          default: ''
          title: X-Admin-Key
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /admin/recompute-momentum:
    post:
      tags:
      - Admin
      summary: Recompute Momentum
      description: 'Recompute 12-1 momentum + percentiles from the price history store.


        Run after each scripts/backfill_price_history.py pass (monthly): computes

        momentum for every symbol with history, ranks the cross-section, and

        merges values + percentiles onto stored records and filter indexes.

        No external API calls; takes a few minutes.'
      operationId: recompute_momentum_admin_recompute_momentum_post
      parameters:
      - name: x-admin-key
        in: header
        required: false
        schema:
          type: string
          default: ''
          title: X-Admin-Key
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /admin/recompute-moat:
    post:
      tags:
      - Admin
      summary: Recompute Moat
      description: 'Rank every record into the Zyberno Moat Score (app/services/financial/moat_score.py) and store the

        universe''s sorted inputs, which the EDGAR build scores rebuilt records against. Monthly; minutes; no

        external API calls. Refuses fewer than 500 scorable companies, so a broken read can''t wipe the score.'
      operationId: recompute_moat_admin_recompute_moat_post
      parameters:
      - name: x-admin-key
        in: header
        required: false
        schema:
          type: string
          default: ''
          title: X-Admin-Key
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /admin/dependency-fields:
    post:
      tags:
      - Admin
      summary: Upload Dependency Fields
      description: 'Store the supplier-dependency fields (app/services/financial/dependency.py), sent nightly by

        ~/projects/dependency-investing export_zyberno.py from the live network.


        Body: {"updated": "YYYY-MM-DD", "year": int, "companies": {SYMBOL: {critical_supplier_to, ..., named_by}}}.

        Kept in Redis without expiry; dependency.fields() re-reads it within 10 minutes, and records pick the fields

        up in the EDGAR build and in /admin/recompute-momentum. Refuses fewer than 50 companies, or fewer than half

        of what it has now, so a broken export can''t wipe the screener filter.'
      operationId: upload_dependency_fields_admin_dependency_fields_post
      parameters:
      - name: x-admin-key
        in: header
        required: false
        schema:
          type: string
          default: ''
          title: X-Admin-Key
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              title: Payload
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /admin/visits:
    get:
      tags:
      - Admin
      summary: Visits Report
      description: 'External referrals counted by the site''s referral beacon: AI assistants,

        search engines and other sites, by source and landing page (app/api/visits.py).'
      operationId: visits_report_admin_visits_get
      parameters:
      - name: days
        in: query
        required: false
        schema:
          type: integer
          default: 28
          title: Days
      - name: x-admin-key
        in: header
        required: false
        schema:
          type: string
          default: ''
          title: X-Admin-Key
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /admin/purge-status:
    get:
      tags:
      - Admin
      summary: Purge Status
      description: 'Edge-cache purge health.


        With a 30-day edge TTL a failed purge leaves a page wrong for a month, and

        nothing else surfaces it. Alert on `queue_depth` climbing (purges not

        draining) or `last_error_ts` advancing.'
      operationId: purge_status_admin_purge_status_get
      parameters:
      - name: x-admin-key
        in: header
        required: false
        schema:
          type: string
          default: ''
          title: X-Admin-Key
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /admin/purge-all-tickers:
    post:
      tags:
      - Admin
      summary: Purge All Tickers
      description: 'Queue every covered ticker for a full purge.


        The correct response to a genuinely global content change — the monthly

        /admin/recompute-momentum pass rewrites momentum percentiles for every

        symbol, since the cross-sectional rank moves even for tickers whose own

        data did not. Normal loop updates must NOT use this; they purge per ticker.'
      operationId: purge_all_tickers_admin_purge_all_tickers_post
      parameters:
      - name: x-admin-key
        in: header
        required: false
        schema:
          type: string
          default: ''
          title: X-Admin-Key
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /admin/field-monitor:
    get:
      tags:
      - Admin
      summary: Get Field Monitor History
      description: Return the last `limit` field-change events (most recent first).
      operationId: get_field_monitor_history_admin_field_monitor_get
      parameters:
      - name: limit
        in: query
        required: false
        schema:
          type: integer
          default: 50
          title: Limit
      - name: x-admin-key
        in: header
        required: false
        schema:
          type: string
          default: ''
          title: X-Admin-Key
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /admin/field-monitor/current:
    get:
      tags:
      - Admin
      summary: Get Field Monitor Current
      description: Return current field presence for all watched stocks, plus loop positions.
      operationId: get_field_monitor_current_admin_field_monitor_current_get
      parameters:
      - name: x-admin-key
        in: header
        required: false
        schema:
          type: string
          default: ''
          title: X-Admin-Key
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    StockData:
      properties:
        symbol:
          type: string
          title: Symbol
        name:
          type: string
          title: Name
        exchange:
          type: string
          title: Exchange
        exchangeShortName:
          type: string
          title: Exchangeshortname
        type:
          type: string
          title: Type
        price:
          type: number
          title: Price
          default: 0
      type: object
      required:
      - symbol
      - name
      - exchange
      - exchangeShortName
      - type
      title: StockData
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
            - type: string
            - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
      type: object
      required:
      - loc
      - msg
      - type
      title: ValidationError