Cloud World Model GitHub Marketplace API

The GitHub Marketplace API from Cloud World Model — 1 operation(s) for github marketplace.

GitHub OpenAPI

Operations 1

POST /github/marketplace/webhook Receive a signed GitHub Marketplace purchase event #

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/cloudworldmodel-ai:cloudworldmodel-ai-github-marketplace-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

cloudworldmodel-ai-github-marketplace-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Cloudworldmodel Ai GitHub Marketplace API
  version: 1.0.0
  contact:
    name: Cloud World Model API Support
    url: https://www.cloudworldmodel.ai
    email: api@cloudworldmodel.ai
  license:
    name: MIT
    url: https://opensource.org/licenses/MIT
  description: 'Operations tagged GitHub Marketplace across 2 of this provider''s published API definitions: cloudworldmodel-ai-openapi.json, cloudworldmodel-ai-openapi.yml. Each path carries the servers of the definition it was published in.'
servers:
- url: https://www.cloudworldmodel.ai/api
  description: Production
- url: http://localhost:5000/api
  description: Local development
security: []
tags:
- name: GitHub Marketplace
paths:
  /github/marketplace/webhook:
    post:
      tags:
      - GitHub Marketplace
      summary: Receive a signed GitHub Marketplace purchase event
      description: 'Receiver for GitHub Marketplace purchase events. GitHub authenticates this

        callback with `X-Hub-Signature-256`; callers do not need a Cloud World Model

        API key. The server verifies the `sha256=` HMAC-SHA256 digest against the

        exact raw request-body bytes using the configured `GITHUB_WEBHOOK_SECRET`

        before parsing the payload. Do not re-serialize the JSON before computing

        or verifying the signature.


        GitHub sends `X-GitHub-Event: marketplace_purchase` and a GUID in

        `X-GitHub-Delivery`. A correctly signed delivery with another event name

        is acknowledged with `200 {"ok": true}` without processing it. Valid

        Marketplace payloads with an unknown future `action` are also acknowledged

        without processing. Recognized actions are `purchased`, `changed`,

        `cancelled`, `pending_change`, and `pending_change_cancelled`.


        JSON is the primary request format. GitHub''s form-encoded format is also

        accepted when its `payload` field contains the JSON event; its signature

        is checked against the exact raw form-encoded request body.


        This receiver only logs the allowlisted action and delivery ID. It does

        not persist purchase details or change CWM billing or entitlements.'
      operationId: receiveGitHubMarketplaceWebhook
      security: []
      parameters:
      - name: X-GitHub-Event
        in: header
        required: true
        description: GitHub webhook event name. Marketplace purchases use `marketplace_purchase`.
        schema:
          type: string
          example: marketplace_purchase
      - name: X-GitHub-Delivery
        in: header
        required: true
        description: GitHub delivery GUID. Required for `marketplace_purchase` events.
        schema:
          type: string
          format: uuid
          example: 00000000-0000-4000-8000-000000000001
      - name: X-Hub-Signature-256
        in: header
        required: true
        description: 'GitHub''s `sha256=`-prefixed HMAC-SHA256 signature of the exact raw

          request-body bytes, using the configured `GITHUB_WEBHOOK_SECRET`.

          '
        schema:
          type: string
          pattern: ^sha256=[0-9a-fA-F]{64}$
          example: sha256=0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
              - action
              - effective_date
              - marketplace_purchase
              properties:
                action:
                  type: string
                  minLength: 1
                  description: Marketplace action. Unknown future action strings are acknowledged but not processed.
                  example: purchased
                effective_date:
                  type: string
                  format: date-time
                  description: Date and time when the purchase change takes effect.
                  example: '2026-09-28T00:00:00Z'
                marketplace_purchase:
                  type: object
                  description: GitHub Marketplace purchase details; the receiver validates this as an object but does not persist its fields.
                  additionalProperties: true
                  example:
                    account:
                      id: 91827364
                      login: synthetic-marketplace-account
                      type: Organization
                    plan:
                      id: 123
                      name: Free
                      price_model: free
              additionalProperties: true
            example:
              action: purchased
              effective_date: '2026-09-28T00:00:00Z'
              marketplace_purchase:
                account:
                  id: 91827364
                  login: synthetic-marketplace-account
                  type: Organization
                plan:
                  id: 123
                  name: Free
                  price_model: free
          application/x-www-form-urlencoded:
            schema:
              type: object
              required:
              - payload
              properties:
                payload:
                  type: string
                  description: JSON-serialized Marketplace event payload.
                  example: '{"action":"purchased","effective_date":"2026-09-28T00:00:00Z","marketplace_purchase":{"account":{"id":91827364,"login":"synthetic-marketplace-account","type":"Organization"},"plan":{"id":123,"name":"Free","price_model":"free"}}}'
              additionalProperties: true
            description: GitHub form-encoded delivery; HMAC verification covers the exact encoded request-body bytes.
      responses:
        '200':
          description: Signed delivery acknowledged, including other event names and unknown Marketplace actions.
          content:
            application/json:
              schema:
                type: object
                required:
                - ok
                properties:
                  ok:
                    type: boolean
                    const: true
              example:
                ok: true
        '400':
          description: Invalid GitHub delivery GUID or malformed Marketplace payload.
          content:
            application/json:
              schema:
                type: object
                required:
                - ok
                - error
                properties:
                  ok:
                    type: boolean
                    const: false
                  error:
                    type: string
                    enum:
                    - invalid_delivery_id
                    - invalid_marketplace_payload
              examples:
                invalidDeliveryId:
                  summary: Delivery ID is not a GUID
                  value:
                    ok: false
                    error: invalid_delivery_id
                invalidMarketplacePayload:
                  summary: Required payload fields are missing or invalid
                  value:
                    ok: false
                    error: invalid_marketplace_payload
        '401':
          description: Missing, invalid, or unverifiable GitHub HMAC signature.
          content:
            application/json:
              schema:
                type: object
                required:
                - ok
                - error
                properties:
                  ok:
                    type: boolean
                    const: false
                  error:
                    type: string
                    const: invalid_webhook_signature
              example:
                ok: false
                error: invalid_webhook_signature
        '415':
          description: Request content type is not JSON or form-encoded.
          content:
            application/json:
              schema:
                type: object
                required:
                - ok
                - error
                properties:
                  ok:
                    type: boolean
                    const: false
                  error:
                    type: string
                    const: unsupported_webhook_content_type
              example:
                ok: false
                error: unsupported_webhook_content_type
    servers:
    - url: https://www.cloudworldmodel.ai/api
      description: Production
    - url: http://localhost:5000/api
      description: Local development
components:
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: API Key or Wallet Session JWT
      description: 'API key or wallet-session JWT authentication using Bearer tokens in the Authorization header.


        **How to authenticate:**

        1. Create an API key using POST /api/keys

        2. Include the key in the Authorization header: `Bearer cwm_live_<your_key>`

        3. All RL environment endpoints require authentication


        **Rate Limits:**

        - Default: 1000 requests/hour per key

        - Configurable per key

        - Returns 429 when exceeded

        '
    UiSessionCookie:
      type: apiKey
      in: cookie
      name: cwm_ui_session
      description: 'HttpOnly browser-workspace session cookie issued by

        `POST /api/ui/simulations`. It authorizes UI mutations for simulations

        owned by that browser workspace.

        '
    x402:
      type: apiKey
      in: header
      name: X-PAYMENT
      description: "x402 v2 Base micropayment option. Select the Base entry from\n`GET /api/billing/x402/config` `paymentOptions`, then send its signed USDC\nmicro-payment in the `X-PAYMENT` header to get full access to the metered\nendpoint in a single round-trip — no account, no API key, no sign-up required.\n\n**402 → pay → retry loop:**\n1. Call the endpoint without an `X-PAYMENT` header.\n2. Receive a `402 Payment Required` response. The body is a\n   standard JSON `PaymentRequired` object. The same payload is also\n   echoed as a base64-encoded string in the `PAYMENT-REQUIRED`\n   response header for clients that cannot access the body.\n3. Decode the `PaymentRequired` body (or the `PAYMENT-REQUIRED`\n   header) to read the exact `payTo` wallet,\n   USDC amount, network, and facilitator URL.\n4. Construct and sign the payment with your x402 client library.\n5. Retry the Base request with the `X-PAYMENT` header — the server\n   verifies via `https://facilitator.payai.network` and responds `200`.\n\n**Optional Solana:** When `paymentOptions` advertises a Solana entry, callers\nmay instead select it and use `PAYMENT-SIGNATURE`. Solana is an additional\noption; use `X-PAYMENT` for the Base option shown by this security scheme.\n\n**Discovery:** `GET /api/billing/x402/config` returns the live `payTo`\naddress, canonical `paymentOptions`, per-call-type USDC amounts, facilitator\nURL, and the credits-per-USDC conversion rate. Always fetch this before\nhardcoding any amounts or a payment header.\n\n**Price range:** $0.0030 per 3-credit call — $0.0050 per 5-credit\ncall (see `x-x402-price-usdc` on each\noperation for the exact amount).\n\n**Facilitator:** `https://facilitator.payai.network` (PayAI-operated,\nverifies the advertised Base and optional Solana options).\n"
    x402Solana:
      type: apiKey
      in: header
      name: PAYMENT-SIGNATURE
      description: 'Optional x402 v2 Solana payment alternative. Use this security option only

        when `GET /api/billing/x402/config` `paymentOptions` advertises a Solana

        network, then send its signed Solana USDC payment payload in the

        `PAYMENT-SIGNATURE` header. Include the option''s `feePayer` detail when

        constructing the transaction.


        For the primary Base payment option, select the `x402` security option

        instead and send its signed payment payload in the `X-PAYMENT` header.

        '
x-refined-from:
- cloudworldmodel-ai-openapi.json
- cloudworldmodel-ai-openapi.yml