PredictAsiaX Provider Keys API

Self-service issuance of oracle api-keys — mint, list, and revoke. These endpoints return the resource directly and are not wrapped in the {data,meta} envelope.

GitHub OpenAPI

Operations 3

POST /v1/provider/keys Mint an oracle api-key #
GET /v1/provider/keys List your oracle api-keys #
DELETE /v1/provider/keys/{id} Revoke an oracle api-key #

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-provider-keys-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-provider-keys-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: PredictAsiaX Network Provider Keys 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: Provider Keys
  description: Self-service issuance of oracle api-keys — mint, list, and revoke. These endpoints return the resource directly and are not wrapped in the {data,meta} envelope.
paths:
  /v1/provider/keys:
    servers:
    - url: https://origin.predictasiax.com
      description: PAX oracle gateway public edge.
    post:
      tags:
      - Provider Keys
      summary: Mint an oracle api-key
      operationId: mintProviderKey
      description: Requires a platform session or builder-portal OAuth token. Mints an api-key carrying oracle:write + read. The plaintext key is returned exactly once. Max 5 active keys per user.
      security:
      - platformSession: []
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/MintKeyRequest'
      responses:
        '201':
          description: Key minted. Plaintext returned once.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MintedKey'
        '401':
          description: Missing or invalid session/builder token.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GatewayError'
        '409':
          description: Active key limit reached; revoke one first.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GatewayError'
        '503':
          description: Session store or identity verifier unavailable.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GatewayError'
    get:
      tags:
      - Provider Keys
      summary: List your oracle api-keys
      operationId: listProviderKeys
      description: Requires a platform session or builder-portal OAuth token. Returns key metadata only — never secret material.
      security:
      - platformSession: []
      responses:
        '200':
          description: Your keys.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ProviderKeyList'
        '401':
          description: Missing or invalid session/builder token.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GatewayError'
  /v1/provider/keys/{id}:
    servers:
    - url: https://origin.predictasiax.com
      description: PAX oracle gateway public edge.
    delete:
      tags:
      - Provider Keys
      summary: Revoke an oracle api-key
      operationId: revokeProviderKey
      description: Requires a platform session or builder-portal OAuth token. Soft-revokes one of the caller's own keys.
      security:
      - platformSession: []
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
          format: uuid
          example: b3f1c2a4-5d6e-4f70-8a9b-0c1d2e3f4a5b
      responses:
        '200':
          description: Key revoked.
          content:
            application/json:
              schema:
                type: object
                properties:
                  revoked:
                    type: boolean
                  id:
                    type: string
                    format: uuid
        '400':
          description: Key id is not a uuid.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GatewayError'
        '404':
          description: No active key with that id for this user.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GatewayError'
components:
  schemas:
    MintedKey:
      type: object
      description: A newly minted oracle api-key. The plaintext is returned exactly once.
      required:
      - key
      - key_prefix
      - scopes
      - name
      properties:
        key:
          type: string
          description: The plaintext api-key. Shown only once — store it now.
          example: REDACTED_STRIPE_KEY
        key_prefix:
          type: string
          example: REDACTED_STRIPE_KEY
        scopes:
          type: array
          items:
            type: string
          example:
          - oracle:write
          - read
        name:
          type: string
        note:
          type: string
          example: store this key now; it is shown only once
    MintKeyRequest:
      type: object
      description: Optional body for minting a key.
      properties:
        name:
          type: string
          maxLength: 60
          description: Optional label for the key (defaults to "oracle").
    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
    ProviderKeyList:
      type: object
      required:
      - keys
      properties:
        keys:
          type: array
          items:
            $ref: '#/components/schemas/ProviderKey'
    ProviderKey:
      type: object
      description: Metadata for one oracle api-key. Never contains secret material.
      properties:
        id:
          type: string
          format: uuid
          example: b3f1c2a4-5d6e-4f70-8a9b-0c1d2e3f4a5b
        key_prefix:
          type: string
          example: REDACTED_STRIPE_KEY
        name:
          type: string
        scopes:
          type: array
          items:
            type: string
          example:
          - oracle:write
          - read
        created_at:
          type: string
          format: date-time
        last_used_at:
          type:
          - string
          - 'null'
          format: date-time
        revoked_at:
          type:
          - string
          - 'null'
          format: date-time
        active:
          type: boolean
  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.'