PredictAsiaX Composer API

Market Composer 3 lanes

GitHub OpenAPI

Operations 7

GET /v1/composer/templates List market templates (Lane A) #
POST /v1/composer/markets Instantiate a market from a template (Lane A) #
POST /v1/composer/proposals Submit a free-form market proposal (Lane C) #
GET /v1/composer/proposals List your composer proposals #
GET /v1/composer/templates/{tpl_id} Get composer template by ID #
GET /v1/composer/proposals/{prp_id} Get composer proposal by ID #
GET /v1/markets/templates List market templates (public catalog view) #

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-composer-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-composer-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: PredictAsiaX Network Composer 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: Composer
  description: Market Composer 3 lanes
paths:
  /v1/composer/templates:
    get:
      tags:
      - Composer
      summary: List market templates (Lane A)
      responses:
        '200':
          description: OK
      operationId: getV1ComposerTemplates
      x-operation-id-source: derived
  /v1/composer/markets:
    post:
      tags:
      - Composer
      summary: Instantiate a market from a template (Lane A)
      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: postV1ComposerMarkets
      x-operation-id-source: derived
  /v1/composer/proposals:
    post:
      tags:
      - Composer
      summary: Submit a free-form market proposal (Lane C)
      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: postV1ComposerProposals
      x-operation-id-source: derived
    get:
      tags:
      - Composer
      summary: List your composer proposals
      description: 'Returns proposals submitted by the caller (matched via builder_id or user_id). Optional filter by status. Scope: builder:apps:read.'
      parameters:
      - name: status
        in: query
        required: false
        schema:
          type: string
          enum:
          - submitted
          - under_review
          - approved
          - rejected
          - listed
          - pending_translation
      responses:
        '200':
          description: Proposals
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: object
                    properties:
                      proposals:
                        type: array
                        items:
                          type: object
                          properties:
                            id:
                              type: string
                              example: prp_abc123def456
                            title:
                              type: string
                            status:
                              type: string
                            submitter_builder_id:
                              type:
                              - string
                              - 'null'
                            submitter_user_id:
                              type:
                              - string
                              - 'null'
                            cutoff_time_ms:
                              type: integer
                              format: int64
                            resolution_deadline_ms:
                              type: integer
                              format: int64
                            submitted_at_ms:
                              type: integer
                              format: int64
                            reviewed_at_ms:
                              type:
                              - integer
                              - 'null'
                              format: int64
                  meta:
                    type: object
                    properties:
                      ts_ms:
                        type: integer
                        format: int64
                      trace_id:
                        type: string
      operationId: getV1ComposerProposals
      x-operation-id-source: derived
  /v1/composer/templates/{tpl_id}:
    get:
      tags:
      - Composer
      summary: Get composer template by ID
      parameters:
      - name: tpl_id
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: OK
      security:
      - BearerAuth:
        - markets:read
      - ApiKeyAuth:
        - markets:read
      operationId: getV1ComposerTemplatesByTplId
      x-operation-id-source: derived
  /v1/composer/proposals/{prp_id}:
    get:
      tags:
      - Composer
      summary: Get composer proposal by ID
      parameters:
      - name: prp_id
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: OK
      security:
      - BearerAuth:
        - markets:read
      - ApiKeyAuth:
        - markets:read
      operationId: getV1ComposerProposalsByPrpId
      x-operation-id-source: derived
  /v1/markets/templates:
    get:
      tags:
      - Composer
      summary: List market templates (public catalog view)
      responses:
        '200':
          description: OK
      operationId: getV1MarketsTemplates
      x-operation-id-source: derived
components:
  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.'