PredictAsiaX Oracle API

Resolution manifests + disputes

GitHub OpenAPI

Operations 11

POST /v1/resolution/disputes Open a resolution dispute #
GET /v1/markets/{id}/resolution Current resolution status (open/pending/settled) #
GET /v1/oracle/providers List active oracle providers #
POST /v1/oracle/providers Register an oracle provider #
GET /v1/oracle/providers/{id} Get an oracle provider #
POST /v1/oracle/attestations Propose an attestation #
GET /v1/oracle/attestations/{id} Get an attestation #
POST /v1/oracle/attestations/{id}/challenge Challenge an attestation #
GET /v1/oracle/markets/{market_id}/attestation Get a market's latest attestation #
GET /v1/oracle/bond-account Get your PAX bond account #
GET /v1/oracle/pool Get the oracle forfeit pool #

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/predictasiax-com:predictasiax-com-oracle-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

predictasiax-com-oracle-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: PredictAsiaX Network Oracle API
  version: v1
  description: 'The canonical REST surface for the PredictAsiaX Network. Most /v1/*

    response is wrapped in an envelope `{ data, meta: { ts_ms, trace_id, is_simulated? } }`.

    All timestamps are `*_at_ms` integer milliseconds; all money is decimal string.'
  contact:
    email: support@predictasiax.com
  license:
    name: PredictAsiaX Builder License
    url: https://docs.predictasiax.com/legal/builder-license
servers:
- url: https://api.predictasiax.com
  description: Production
security:
- bearerAuth: []
tags:
- name: Oracle
  description: Resolution manifests + disputes
paths:
  /v1/resolution/disputes:
    post:
      tags:
      - Oracle
      summary: Open a resolution dispute
      description: Challenge an oracle verdict while it is inside its dispute window. The caller must hold a position in the market (otherwise 403 DISPUTE_REQUIRES_POSITION).
      parameters:
      - name: Idempotency-Key
        in: header
        required: false
        schema:
          type: string
          pattern: ^[A-Za-z0-9_\-]{8,128}$
        description: 'Optional. Backend accepts POST without this header for this endpoint (only POST /v1/orders and POST /v1/orders/batch strictly enforce). Portal SDKs auto-inject a UUID for safe retry. Format: [A-Za-z0-9_\-]{8,128}.'
      responses:
        '200':
          description: OK
      operationId: postV1ResolutionDisputes
      x-operation-id-source: derived
  /v1/markets/{id}/resolution:
    get:
      tags:
      - Oracle
      summary: Current resolution status (open/pending/settled)
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: OK
      operationId: getV1MarketsByIdResolution
      x-operation-id-source: derived
  /v1/oracle/providers:
    servers:
    - url: https://origin.predictasiax.com
      description: PAX oracle gateway public edge.
    get:
      tags:
      - Oracle
      summary: List active oracle providers
      operationId: listOracleProviders
      description: Public. Active providers, most-attested first (max 200). Not enveloped.
      security: []
      responses:
        '200':
          description: Active providers.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OracleProviderList'
    post:
      tags:
      - Oracle
      summary: Register an oracle provider
      operationId: registerOracleProvider
      description: Requires an api-key with the oracle:write scope. Registers a provider owned by the authenticated user.
      security:
      - oracleApiKey: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/RegisterProviderRequest'
      responses:
        '201':
          description: Provider created.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OracleProvider'
        '400':
          description: Invalid display_name or adapter_kind.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OracleError'
        '401':
          description: Missing or invalid api-key.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GatewayError'
        '403':
          description: Key lacks the oracle:write scope.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GatewayError'
  /v1/oracle/providers/{id}:
    servers:
    - url: https://origin.predictasiax.com
      description: PAX oracle gateway public edge.
    get:
      tags:
      - Oracle
      summary: Get an oracle provider
      operationId: getOracleProvider
      security: []
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
          example: ovp_9f8e7d6c5b4a39281706f5e4d3c2b1a0
      responses:
        '200':
          description: The provider.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OracleProvider'
        '404':
          description: Provider not found.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OracleError'
      description: Fetch a single oracle provider by id.
  /v1/oracle/attestations:
    servers:
    - url: https://origin.predictasiax.com
      description: PAX oracle gateway public edge.
    post:
      tags:
      - Oracle
      summary: Propose an attestation
      operationId: proposeAttestation
      description: Requires an api-key with the oracle:write scope and a funded PAX bond. The market must be closed and not yet resolved.
      security:
      - oracleApiKey: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ProposeAttestationRequest'
      responses:
        '201':
          description: Attestation proposed; proposer bond locked.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OracleAttestation'
        '402':
          description: Insufficient available PAX bond.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OracleError'
        '403':
          description: Key lacks the oracle:write scope.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GatewayError'
        '404':
          description: Market not found.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OracleError'
        '409':
          description: Market already resolved/cancelled, or not closed yet.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OracleError'
  /v1/oracle/attestations/{id}:
    servers:
    - url: https://origin.predictasiax.com
      description: PAX oracle gateway public edge.
    get:
      tags:
      - Oracle
      summary: Get an attestation
      operationId: getAttestation
      security: []
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
          example: att_1a2b3c4d5e6f70819a2b3c4d5e6f7081
      responses:
        '200':
          description: The attestation.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OracleAttestation'
        '404':
          description: Attestation not found.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OracleError'
      description: Fetch a single attestation by id, including status, bond, and liveness expiry.
  /v1/oracle/attestations/{id}/challenge:
    servers:
    - url: https://origin.predictasiax.com
      description: PAX oracle gateway public edge.
    post:
      tags:
      - Oracle
      summary: Challenge an attestation
      operationId: challengeAttestation
      description: Requires an api-key with the oracle:write scope and a funded PAX bond. Opens a dispute within the liveness window.
      security:
      - oracleApiKey: []
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
          example: att_1a2b3c4d5e6f70819a2b3c4d5e6f7081
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ChallengeAttestationRequest'
      responses:
        '200':
          description: Dispute recorded; disputer bond locked.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OracleAttestation'
        '400':
          description: Empty outcome, or attempt to dispute your own attestation.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OracleError'
        '402':
          description: Insufficient available PAX bond.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OracleError'
        '403':
          description: Key lacks the oracle:write scope.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GatewayError'
        '409':
          description: Attestation not open for dispute, or liveness window closed.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OracleError'
  /v1/oracle/markets/{market_id}/attestation:
    servers:
    - url: https://origin.predictasiax.com
      description: PAX oracle gateway public edge.
    get:
      tags:
      - Oracle
      summary: Get a market's latest attestation
      operationId: getMarketAttestation
      description: Public. The most relevant attestation for a market (open disputes first), or null.
      security: []
      parameters:
      - name: market_id
        in: path
        required: true
        schema:
          type: string
          example: mkt_aabbccddeeff00112233445566778899
      responses:
        '200':
          description: The market's latest attestation, or null.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MarketAttestation'
  /v1/oracle/bond-account:
    servers:
    - url: https://origin.predictasiax.com
      description: PAX oracle gateway public edge.
    get:
      tags:
      - Oracle
      summary: Get your PAX bond account
      operationId: getMyBondAccount
      description: Requires a valid api-key (any scope). Returns the authenticated user's own bond balances.
      security:
      - oracleApiKey: []
      responses:
        '200':
          description: Your bond balances.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BondAccount'
        '401':
          description: Missing or invalid api-key.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GatewayError'
  /v1/oracle/pool:
    servers:
    - url: https://origin.predictasiax.com
      description: PAX oracle gateway public edge.
    get:
      tags:
      - Oracle
      summary: Get the oracle forfeit pool
      operationId: getForfeitPool
      security: []
      responses:
        '200':
          description: The forfeit pool state.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ForfeitPool'
        '404':
          description: Pool not initialized.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OracleError'
      description: Return the current forfeit-pool balance and distribution parameters.
components:
  schemas:
    ForfeitPool:
      type: object
      description: The oracle forfeit pool (slashed bonds accrue here).
      properties:
        pool_pax:
          $ref: '#/components/schemas/Money'
        pool_cap:
          $ref: '#/components/schemas/Money'
        overflow_pax:
          $ref: '#/components/schemas/Money'
        updated_at:
          type:
          - string
          - 'null'
          format: date-time
    ChallengeAttestationRequest:
      type: object
      required:
      - disputer_outcome
      properties:
        disputer_outcome:
          type: string
          description: The outcome the disputer asserts instead.
        evidence_urls:
          type: array
          items:
            type: string
    OracleProvider:
      type: object
      description: An oracle attestation provider (resolver) registered by a platform user.
      properties:
        id:
          type: string
          example: ovp_9f8e7d6c5b4a39281706f5e4d3c2b1a0
        user_id:
          type: string
          example: usr_0011223344556677889900aabbccddee
        display_name:
          type: string
        adapter_kind:
          type: string
          enum:
          - feed
          - official_source
          - regional_data
          - manual
        status:
          type: string
          example: active
        staked_pax:
          $ref: '#/components/schemas/Money'
        attestations_total:
          type: integer
        disputed_total:
          type: integer
        slashed_total:
          type: integer
        rewards_pax:
          $ref: '#/components/schemas/Money'
        created_at:
          type:
          - string
          - 'null'
          format: date-time
        updated_at:
          type:
          - string
          - 'null'
          format: date-time
    MarketAttestation:
      type: object
      description: The latest attestation for a market, or null if none exists.
      required:
      - attestation
      properties:
        attestation:
          oneOf:
          - $ref: '#/components/schemas/OracleAttestation'
          - type: 'null'
    OracleAttestation:
      type: object
      description: An optimistic-oracle attestation and its dispute lifecycle.
      properties:
        id:
          type: string
          example: att_1a2b3c4d5e6f70819a2b3c4d5e6f7081
        market_id:
          type: string
          example: mkt_aabbccddeeff00112233445566778899
        proposer_user_id:
          type: string
          example: usr_0011223344556677889900aabbccddee
        provider_id:
          type:
          - string
          - 'null'
          example: ovp_9f8e7d6c5b4a39281706f5e4d3c2b1a0
        proposed_outcome:
          type: string
        evidence_urls:
          type: array
          items:
            type: string
        bond_pax:
          $ref: '#/components/schemas/Money'
        state:
          type: string
          enum:
          - proposed
          - disputed
          - resolved
        liveness_expires_at:
          type:
          - string
          - 'null'
          format: date-time
        disputer_user_id:
          type:
          - string
          - 'null'
        disputer_outcome:
          type:
          - string
          - 'null'
        disputer_evidence_urls:
          type:
          - array
          - 'null'
          items:
            type: string
        disputer_bond_pax:
          type:
          - string
          - 'null'
        disputed_at:
          type:
          - string
          - 'null'
          format: date-time
        resolved_outcome:
          type:
          - string
          - 'null'
        proposer_won:
          type:
          - boolean
          - 'null'
        reward_pax:
          $ref: '#/components/schemas/Money'
        created_at:
          type:
          - string
          - 'null'
          format: date-time
        updated_at:
          type:
          - string
          - 'null'
          format: date-time
        finalized_at:
          type:
          - string
          - 'null'
          format: date-time
    OracleError:
      type: object
      description: Error shape returned by the oracle service for business-rule failures.
      required:
      - error
      properties:
        error:
          type: string
    ProposeAttestationRequest:
      type: object
      required:
      - market_id
      - proposed_outcome
      properties:
        market_id:
          type: string
          example: mkt_aabbccddeeff00112233445566778899
        proposed_outcome:
          type: string
          description: The outcome the proposer attests resolves the market.
        evidence_urls:
          type: array
          items:
            type: string
        provider_id:
          type: string
          description: Optional provider to credit the attestation to.
          example: ovp_9f8e7d6c5b4a39281706f5e4d3c2b1a0
    GatewayError:
      type: object
      description: Error shape returned by the gateway edge (auth, scope, key issuance).
      required:
      - error
      properties:
        error:
          type: object
          required:
          - code
          - message
          properties:
            code:
              type: string
            message:
              type: string
    BondAccount:
      type: object
      description: A user's PAX bond custody balances.
      required:
      - user_id
      - available_pax
      - locked_pax
      properties:
        user_id:
          type: string
          example: usr_0011223344556677889900aabbccddee
        available_pax:
          $ref: '#/components/schemas/Money'
        locked_pax:
          $ref: '#/components/schemas/Money'
    Money:
      type: string
      description: Decimal string with up to 6 fractional digits
      example: '1234.5678'
    OracleProviderList:
      type: object
      required:
      - providers
      properties:
        providers:
          type: array
          items:
            $ref: '#/components/schemas/OracleProvider'
    RegisterProviderRequest:
      type: object
      required:
      - display_name
      - adapter_kind
      properties:
        display_name:
          type: string
          maxLength: 80
          description: Human-readable provider name (1-80 chars, no control characters).
        adapter_kind:
          type: string
          enum:
          - feed
          - official_source
          - regional_data
          - manual
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: 'Send `Authorization: Bearer sk_live_*` or an OAuth 2.1 access token. `sk_live_` and OAuth tokens go through the same authenticator; capability is differentiated by tier (`sandbox` / `self_serve` / `read_live` / `trade_capped` / `trade_full` / `genesis` / `partner`). Sandbox and production share the same host and key prefix — the tier flag caps sandbox at $10/order + $100/day.'
    oracleApiKey:
      type: apiKey
      in: header
      name: X-API-Key
      description: 'Oracle api-key minted via POST /v1/provider/keys. Equivalently sent as `Authorization: Bearer <api-key>`. Write endpoints additionally require the `oracle:write` scope.'
    platformSession:
      type: apiKey
      in: header
      name: X-PAX-Session
      description: 'Platform login session (consumer app) or builder-portal OAuth token. Equivalently sent as `Authorization: Bearer <token>`. Used only by the /v1/provider/keys endpoints to mint, list, or revoke oracle api-keys.'