Neuron Systems Buying API

Quote, book, bid, and pay.

GitHub OpenAPI

Operations 5

POST /api/v1/quote Get a binding quote (REQUIRED before any charge) #
POST /api/v1/orders Book a flight against a quote_id #
POST /api/v1/bids Submit a programmatic CPM bid #
POST /api/v1/checkout Stripe Checkout for a quote_id or order_id #
POST /createDynamicCheckoutSession Legacy checkout (quote-bound) #

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/neuronsystems-org:neuronsystems-org-buying-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

neuronsystems-org-buying-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Neuron Sports Ad Exchange Buying API
  description: 'Autonomous sports advertising exchange. Buy flow: POST /api/v1/quote to receive a binding quote_id and the exact price, then POST /api/v1/orders with that quote_id plus your creative to book and receive a Stripe Checkout URL. Poll /api/v1/orders/{order_id}/telemetry for real delivery.


    The exchange sets prices. A quote_id is the only thing that authorizes a charge — requests that supply their own amount are rejected. Volume discounts apply at 25k/50k/100k/250k impressions and never price below floor_cpm_usd, the hard floor. Note the CPM fields: list_cpm_usd is the published rate-card rate, floor_cpm_usd is the lowest price a bid can win at, and standard_cpm_usd is list plus the sport-targeting premium. (cpm_floor_usd is a deprecated alias of list_cpm_usd.) Settlement goes to @neuronsystems via Stripe.


    An MCP (Streamable HTTP) endpoint exposing the same operations is available at https://neuronsystems.org/mcp.'
  version: 2.0.0
  contact:
    name: Neuron Systems Inc.
    email: support@neuronsystems.org
    url: https://neuronsystems.org/sponsor
  termsOfService: https://neuronsystems.org/terms
  x-stripe-merchant: '@neuronsystems'
  x-mcp-endpoint: https://neuronsystems.org/mcp
servers:
- url: https://neuronsystems.org
  description: Production. All paths below resolve against this origin.
tags:
- name: Buying
  description: Quote, book, bid, and pay.
paths:
  /api/v1/quote:
    post:
      operationId: createQuote
      tags:
      - Buying
      summary: Get a binding quote (REQUIRED before any charge)
      description: Prices a slot and returns a quote_id valid for 30 minutes. The returned total_cost_usd is what you will be charged — nothing else can set the price.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
              - format
              - sport
              - impressions
              properties:
                format:
                  $ref: '#/components/schemas/AdFormat'
                sport:
                  $ref: '#/components/schemas/Sport'
                impressions:
                  type: integer
                  minimum: 5000
                  maximum: 5000000
                  description: Impressions or audio listeners to reach. Minimum 5,000.
                voice_persona:
                  $ref: '#/components/schemas/VoicePersona'
            example:
              format: halftime_music_show
              sport: gridiron
              impressions: 50000
      responses:
        '200':
          description: A binding quote.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/QuoteResponse'
        '400':
          $ref: '#/components/responses/ExchangeError'
        '429':
          $ref: '#/components/responses/ExchangeError'
  /api/v1/orders:
    post:
      operationId: createAdOrder
      tags:
      - Buying
      summary: Book a flight against a quote_id
      description: Books the flight and returns an order_id plus a Stripe Checkout URL for exactly the quoted amount. Price and impressions come from the stored quote. Send an Idempotency-Key header so a retry does not double-book.
      parameters:
      - name: Idempotency-Key
        in: header
        required: false
        schema:
          type: string
        description: Reuse the same value when retrying to get the original result back.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateOrderRequest'
            example:
              quote_id: NQ-ABC123-4567
              brand_name: Acme Hydration
              headline: Acme Hydration — Official Partner
              click_url: https://acme.example/sports
              image_url: https://cdn.acme.example/banner-728x90.png
      responses:
        '201':
          description: Order booked; pay at checkout.url.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OrderResponse'
        '400':
          $ref: '#/components/responses/ExchangeError'
        '404':
          $ref: '#/components/responses/ExchangeError'
        '409':
          description: Quote expired, already used, or the slot lacks capacity.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '422':
          description: Creative failed validation for the quoted format.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
  /api/v1/bids:
    post:
      operationId: submitProgrammaticBid
      tags:
      - Buying
      summary: Submit a programmatic CPM bid
      description: The broker evaluates the bid against floor_cpm_usd (the hard floor) and the authorized discount band, then auto-accepts (returning a spendable quote_id), counters with a price, or rejects. No bid is accepted below floor_cpm_usd — read it from GET /api/v1/inventory before bidding.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
              - format
              - sport
              - bid_cpm_usd
              - impressions
              - bidder_name
              properties:
                format:
                  $ref: '#/components/schemas/AdFormat'
                sport:
                  $ref: '#/components/schemas/Sport'
                bid_cpm_usd:
                  type: number
                  description: Proposed CPM in USD.
                impressions:
                  type: integer
                  minimum: 5000
                bidder_name:
                  type: string
            example:
              format: leaderboard_728x90
              sport: gridiron
              bid_cpm_usd: 5.5
              impressions: 60000
              bidder_name: Acme DSP Agent
      responses:
        '200':
          description: 'Bid outcome: auto_accepted (with a quote), countered, or rejected.'
          content:
            application/json:
              schema:
                type: object
        '400':
          $ref: '#/components/responses/ExchangeError'
  /api/v1/checkout:
    post:
      operationId: createCheckoutSession
      tags:
      - Buying
      summary: Stripe Checkout for a quote_id or order_id
      description: Generates a live checkout.stripe.com URL settling to @neuronsystems. The amount is read from the stored quote; it cannot be supplied by the caller.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                quote_id:
                  type: string
                  description: Quote to settle. Provide this or order_id.
                order_id:
                  type: string
                  description: Existing order to settle. Provide this or quote_id.
                customer_email:
                  type: string
                  format: email
            example:
              quote_id: NQ-ABC123-4567
      responses:
        '200':
          description: Checkout session created.
          content:
            application/json:
              schema:
                type: object
        '400':
          $ref: '#/components/responses/ExchangeError'
  /createDynamicCheckoutSession:
    post:
      operationId: createDynamicCheckoutSessionLegacy
      tags:
      - Buying
      summary: Legacy checkout (quote-bound)
      deprecated: true
      description: Retained for manifests already published to agents. Prefer POST /api/v1/quote then POST /api/v1/orders. Send { quoteId } to settle a quote, or { format, sport, impressions } to have the exchange price and settle in one call. A bare amountUSD is rejected — buyers do not set prices.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                quoteId:
                  type: string
                orderId:
                  type: string
                format:
                  $ref: '#/components/schemas/AdFormat'
                sport:
                  $ref: '#/components/schemas/Sport'
                impressions:
                  type: integer
                  minimum: 5000
                customerEmail:
                  type: string
                  format: email
            example:
              format: voice_sponsor_read
              sport: gridiron
              impressions: 25000
      responses:
        '200':
          description: Checkout session created.
          content:
            application/json:
              schema:
                type: object
        '400':
          description: A caller-supplied amount was sent, or required fields are missing.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  schemas:
    VoicePersona:
      type: string
      enum:
      - The Architect
      - Marcus
      - Leo
      - Sam
      - Zareena
      - Big Mike
    CreateOrderRequest:
      type: object
      required:
      - quote_id
      - ad_category
      - brand_name
      - click_url
      properties:
        quote_id:
          type: string
          description: From POST /api/v1/quote.
        ad_category:
          type: string
          enum:
          - general
          - alcohol
          - betting
          description: What the sponsor sells. alcohol and betting ads are shown only to signed in fans who have told us they are 21 or over; general ads are shown to everyone.
        brand_name:
          type: string
        headline:
          type: string
        click_url:
          type: string
          format: uri
          description: HTTPS only.
        image_url:
          type: string
          format: uri
          description: Required for display formats.
        voice_script:
          type: string
          description: Required for voice_sponsor_read. Maximum 35 words (~15 seconds).
        selected_persona:
          $ref: '#/components/schemas/VoicePersona'
        track_title:
          type: string
          description: Required for music slots.
        artist_name:
          type: string
          description: Required for music slots.
        audio_stream_url:
          type: string
          format: uri
          description: Required for music slots.
        cover_art_url:
          type: string
          format: uri
        streaming_platform_url:
          type: string
          format: uri
        rights_confirmed:
          type: boolean
          description: 'Must be true for music slots: you confirm licensing or ownership.'
        advertiser_email:
          type: string
          format: email
        idempotency_key:
          type: string
    QuoteResponse:
      type: object
      properties:
        status:
          type: string
        quote:
          type: object
          properties:
            quote_id:
              type: string
              description: Pass this to /api/v1/orders or /api/v1/checkout.
            format:
              $ref: '#/components/schemas/AdFormat'
            sport:
              $ref: '#/components/schemas/Sport'
            impressions_guaranteed:
              type: integer
            effective_cpm_usd:
              type: number
            volume_discount_pct:
              type: number
            total_cost_usd:
              type: number
              description: Exactly what Stripe will collect.
            expires_at:
              type: string
              format: date-time
            expires_in_seconds:
              type: integer
            list_cpm_usd:
              type: number
              description: Published rate-card CPM for the format.
            floor_cpm_usd:
              type: number
              description: Hard floor for the format. effective_cpm_usd is never below this.
    Error:
      type: object
      properties:
        status:
          type: string
          enum:
          - error
        code:
          type: string
          description: Machine-readable reason, e.g. quote_expired, quote_already_used, insufficient_capacity, creative_invalid, rate_limited, caller_supplied_amounts_not_accepted.
        message:
          type: string
        details:
          type: object
    AdFormat:
      type: string
      enum:
      - leaderboard_728x90
      - medium_rectangle_300x250
      - mobile_banner_320x50
      - voice_sponsor_read
      - pregame_anthem_slot
      - halftime_music_show
    OrderResponse:
      type: object
      properties:
        status:
          type: string
        order:
          type: object
          properties:
            order_id:
              type: string
            quote_id:
              type: string
            status:
              type: string
              enum:
              - pending_payment
              - active
              - completed
              - amount_mismatch
              - expired_unpaid
            impressions_ordered:
              type: integer
            impressions_delivered:
              type: integer
            pacing_pct:
              type: number
            clicks:
              type: integer
            ctr_pct:
              type: number
            audio_completes:
              type: integer
            audio_completion_rate_pct:
              type:
              - number
              - 'null'
            total_cost_usd:
              type: number
            paid_at:
              type:
              - string
              - 'null'
              format: date-time
        checkout:
          type: object
          properties:
            url:
              type: string
              format: uri
              description: Send the buyer here to pay.
            session_id:
              type: string
            amount_usd:
              type: number
    Sport:
      type: string
      enum:
      - all
      - gridiron
      - fnba
      - pitwall
      - starsofsoccer
      - fiba
      - fifa
      description: gridiron=NFL, fnba=WNBA/NBA, pitwall=Formula 1, starsofsoccer=European football, all=run-of-network. fiba/fifa are concluded tournaments (replay vault).
      default: all
  responses:
    ExchangeError:
      description: Request rejected. `code` is machine-readable; `message` says how to correct it.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'