UnoRouter Option API

The Option API from UnoRouter, for option.

GitHub OpenAPI

Operations 12

GET /api/option/ Get Options #
PUT /api/option/ Update Option #
DELETE /api/option/channel_affinity_cache Clear Channel Affinity Cache #
GET /api/option/channel_affinity_cache Get Channel Affinity Cache Stats #
POST /api/option/migrate_console_setting Migrate Console Setting #
POST /api/option/payment_compliance Confirm Payment Compliance #
POST /api/option/rest_model_ratio Reset Model Ratio #
GET /api/option/waffo-pancake/catalog List Waffo Pancake Catalog #
POST /api/option/waffo-pancake/pair Create Waffo Pancake Pair #
POST /api/option/waffo-pancake/save Save Waffo Pancake #
POST /api/option/waffo-pancake/subscription-product Create Waffo Pancake Subscription Product #
GET /api/option/waffo-pancake/subscription-product-options List Waffo Pancake Subscription Product Options #

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/unorouter-com:unorouter-com-option-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

unorouter-com-option-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  description: ' '
  title: New Option API
  version: 0.0.1
tags:
- name: Option
paths:
  /api/option/:
    get:
      operationId: getOptions
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Response_Array-model.Option'
            application/xml:
              schema:
                $ref: '#/components/schemas/Response_Array-model.Option'
          description: OK
      security:
      - accessToken: []
        newApiUser: []
      - newApiUser: []
        sessionAuth: []
      summary: Get Options
      tags:
      - Option
    put:
      operationId: updateOption
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/OptionUpdateRequest'
        description: Request body for dto.OptionUpdateRequest
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MessageResponse'
            application/xml:
              schema:
                $ref: '#/components/schemas/MessageResponse'
          description: OK
      security:
      - accessToken: []
        newApiUser: []
      - newApiUser: []
        sessionAuth: []
      summary: Update Option
      tags:
      - Option
  /api/option/channel_affinity_cache:
    delete:
      operationId: clearChannelAffinityCache
      parameters:
      - description: Clear all entries
        in: query
        name: all
        schema:
          type: string
      - description: Filter by rule name
        in: query
        name: rule_name
        schema:
          type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Response_dto.AffinityCacheClearData'
            application/xml:
              schema:
                $ref: '#/components/schemas/Response_dto.AffinityCacheClearData'
          description: OK
      security:
      - accessToken: []
        newApiUser: []
      - newApiUser: []
        sessionAuth: []
      summary: Clear Channel Affinity Cache
      tags:
      - Option
    get:
      operationId: getChannelAffinityCacheStats
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Response_service.ChannelAffinityCacheStats'
            application/xml:
              schema:
                $ref: '#/components/schemas/Response_service.ChannelAffinityCacheStats'
          description: OK
      security:
      - accessToken: []
        newApiUser: []
      - newApiUser: []
        sessionAuth: []
      summary: Get Channel Affinity Cache Stats
      tags:
      - Option
  /api/option/migrate_console_setting:
    post:
      operationId: migrateConsoleSetting
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MessageResponse'
            application/xml:
              schema:
                $ref: '#/components/schemas/MessageResponse'
          description: OK
      security:
      - accessToken: []
        newApiUser: []
      - newApiUser: []
        sessionAuth: []
      summary: Migrate Console Setting
      tags:
      - Option
  /api/option/payment_compliance:
    post:
      operationId: confirmPaymentCompliance
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PaymentComplianceRequest'
        description: Request body for controller.PaymentComplianceRequest
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiResponse'
            application/xml:
              schema:
                $ref: '#/components/schemas/ApiResponse'
          description: OK
      security:
      - accessToken: []
        newApiUser: []
      - newApiUser: []
        sessionAuth: []
      summary: Confirm Payment Compliance
      tags:
      - Option
  /api/option/rest_model_ratio:
    post:
      operationId: resetModelRatio
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MessageResponse'
            application/xml:
              schema:
                $ref: '#/components/schemas/MessageResponse'
          description: OK
      security:
      - accessToken: []
        newApiUser: []
      - newApiUser: []
        sessionAuth: []
      summary: Reset Model Ratio
      tags:
      - Option
  /api/option/waffo-pancake/catalog:
    get:
      operationId: listWaffoPancakeCatalog
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiResponse'
            application/xml:
              schema:
                $ref: '#/components/schemas/ApiResponse'
          description: OK
      security:
      - accessToken: []
        newApiUser: []
      - newApiUser: []
        sessionAuth: []
      summary: List Waffo Pancake Catalog
      tags:
      - Option
  /api/option/waffo-pancake/pair:
    post:
      operationId: createWaffoPancakePair
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiResponse'
            application/xml:
              schema:
                $ref: '#/components/schemas/ApiResponse'
          description: OK
      security:
      - accessToken: []
        newApiUser: []
      - newApiUser: []
        sessionAuth: []
      summary: Create Waffo Pancake Pair
      tags:
      - Option
  /api/option/waffo-pancake/save:
    post:
      operationId: saveWaffoPancake
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiResponse'
            application/xml:
              schema:
                $ref: '#/components/schemas/ApiResponse'
          description: OK
      security:
      - accessToken: []
        newApiUser: []
      - newApiUser: []
        sessionAuth: []
      summary: Save Waffo Pancake
      tags:
      - Option
  /api/option/waffo-pancake/subscription-product:
    post:
      operationId: createWaffoPancakeSubscriptionProduct
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiResponse'
            application/xml:
              schema:
                $ref: '#/components/schemas/ApiResponse'
          description: OK
      security:
      - accessToken: []
        newApiUser: []
      - newApiUser: []
        sessionAuth: []
      summary: Create Waffo Pancake Subscription Product
      tags:
      - Option
  /api/option/waffo-pancake/subscription-product-options:
    get:
      operationId: listWaffoPancakeSubscriptionProductOptions
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiResponse'
            application/xml:
              schema:
                $ref: '#/components/schemas/ApiResponse'
          description: OK
      security:
      - accessToken: []
        newApiUser: []
      - newApiUser: []
        sessionAuth: []
      summary: List Waffo Pancake Subscription Product Options
      tags:
      - Option
components:
  schemas:
    ApiResponse:
      properties:
        data: {}
        message:
          type: string
        object:
          type: string
        success:
          type: boolean
      required:
      - message
      - success
      type: object
    PaymentComplianceRequest:
      description: PaymentComplianceRequest schema
      properties:
        confirmed:
          type: boolean
      required:
      - confirmed
      type: object
    ChannelAffinityCacheStats:
      properties:
        by_rule_name:
          additionalProperties:
            type: integer
          type:
          - object
          - 'null'
        cache_algo:
          type: string
        cache_capacity:
          type: integer
        enabled:
          type: boolean
        total:
          type: integer
        unknown:
          type: integer
      required:
      - by_rule_name
      - cache_algo
      - cache_capacity
      - enabled
      - total
      - unknown
      type: object
    MessageResponse:
      properties:
        message:
          type: string
        success:
          type: boolean
      required:
      - message
      - success
      type: object
    Response_service.ChannelAffinityCacheStats:
      description: Response_service.ChannelAffinityCacheStats schema
      properties:
        data:
          $ref: '#/components/schemas/ChannelAffinityCacheStats'
        message:
          type: string
        success:
          type: boolean
      required:
      - data
      - message
      - success
      type: object
    AffinityCacheClearData:
      properties:
        deleted:
          type: integer
      required:
      - deleted
      type: object
    OptionUpdateRequest:
      description: OptionUpdateRequest schema
      properties:
        key:
          type: string
        value: {}
      required:
      - key
      - value
      type: object
    Response_Array-model.Option:
      description: Response_Array-model.Option schema
      properties:
        data:
          items:
            $ref: '#/components/schemas/Option'
          type:
          - array
          - 'null'
        message:
          type: string
        success:
          type: boolean
      required:
      - data
      - message
      - success
      type: object
    Response_dto.AffinityCacheClearData:
      description: Response_dto.AffinityCacheClearData schema
      properties:
        data:
          $ref: '#/components/schemas/AffinityCacheClearData'
        message:
          type: string
        success:
          type: boolean
      required:
      - data
      - message
      - success
      type: object
    Option:
      properties:
        key:
          type: string
        value:
          type: string
      required:
      - key
      - value
      type: object
  securitySchemes:
    accessToken:
      description: System access token for dashboard API routes. Must be paired with New-Api-User header.
      in: header
      name: Authorization
      type: apiKey
    anthropicApiKey:
      description: Anthropic-style API key. Used by /v1/messages and /v1/models.
      in: header
      name: x-api-key
      type: apiKey
    bearerAuth:
      description: API token (sk-...). Used by relay routes (/v1/*) and token-based query endpoints.
      scheme: bearer
      type: http
    newApiUser:
      description: User ID header. Required together with the access token or session cookie for dashboard API routes.
      in: header
      name: New-Api-User
      type: apiKey
    sessionAuth:
      description: Session cookie from /api/user/login. Used by dashboard routes as an alternative to access token.
      in: cookie
      name: session
      type: apiKey