Alpha Bazaar Leagues API

Custom league competitions

Operations 10

GET /api/leagues/my-school Get My School League #
GET /api/leagues/schools/{school_id}/standings Get School Standings #
GET /api/leagues/championship Get Championship Standings #
GET /api/leagues/custom Get Custom Leagues #
GET /api/leagues/custom/{league_id} Get League Details #
POST /api/leagues/custom/{league_id}/enroll Enroll In League #
GET /api/leagues/my-custom Get My Leagues #
GET /api/leagues/custom/{league_id}/leaderboard Get League Leaderboard #
GET /api/leagues/custom/{league_id}/participant/{user_id}/signals Get League Participant Signals #
POST /api/leagues/cleanup-orphaned-snapshots Cleanup Orphaned Snapshots #

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/alphabazaar-ai:alphabazaar-ai-leagues-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. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

alphabazaar-ai-leagues-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Alphabazaar Ai Leagues API
  version: 2.2.0-socketio
  contact:
    name: Alpha Bazaar
    url: https://alphabazaar.ai/
    email: support@alphabazaar.ai
  license:
    name: Proprietary
  termsOfService: https://www.alphabazaar.ai/legal/terms
  description: 'Operations tagged Leagues across 2 of this provider''s published API definitions: alphabazaar-ai-openapi.yml, openapi.json. Each path carries the servers of the definition it was published in.'
servers:
- url: https://alpha-bazaar-signal-server.onrender.com
  description: Production
- url: https://dev-alpha-bazaar-signal-server.onrender.com
  description: Staging
security:
- HTTPBearer: []
tags:
- name: Leagues
  description: Custom league competitions
paths:
  /api/leagues/my-school:
    get:
      tags:
      - Leagues
      summary: Get My School League
      description: Get user's school league info
      operationId: get_my_school_league_api_leagues_my_school_get
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
      security: []
    servers:
    - url: https://alpha-bazaar-signal-server.onrender.com
      description: Production
    - url: https://dev-alpha-bazaar-signal-server.onrender.com
      description: Staging
  /api/leagues/schools/{school_id}/standings:
    get:
      tags:
      - Leagues
      summary: Get School Standings
      description: Get standings for a specific school league
      operationId: get_school_standings_api_leagues_schools__school_id__standings_get
      parameters:
      - name: school_id
        in: path
        required: true
        schema:
          type: integer
          title: School Id
        description: School league UUID
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security: []
    servers:
    - url: https://alpha-bazaar-signal-server.onrender.com
      description: Production
    - url: https://dev-alpha-bazaar-signal-server.onrender.com
      description: Staging
  /api/leagues/championship:
    get:
      tags:
      - Leagues
      summary: Get Championship Standings
      description: Get inter-school championship rankings
      operationId: get_championship_standings_api_leagues_championship_get
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
      security: []
    servers:
    - url: https://alpha-bazaar-signal-server.onrender.com
      description: Production
    - url: https://dev-alpha-bazaar-signal-server.onrender.com
      description: Staging
  /api/leagues/custom:
    get:
      tags:
      - Leagues
      summary: Get Custom Leagues
      description: 'Get all public custom leagues.

        Optional filter by status: pending, active, completed, cancelled'
      operationId: get_custom_leagues_api_leagues_custom_get
      parameters:
      - name: status
        in: query
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          description: Filter by status (pending/active/completed/cancelled)
          title: Status
        description: Filter by status (pending/active/completed/cancelled)
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security: []
    servers:
    - url: https://alpha-bazaar-signal-server.onrender.com
      description: Production
    - url: https://dev-alpha-bazaar-signal-server.onrender.com
      description: Staging
  /api/leagues/custom/{league_id}:
    get:
      tags:
      - Leagues
      summary: Get League Details
      description: Get league details with current leaderboard
      operationId: get_league_details_api_leagues_custom__league_id__get
      parameters:
      - name: league_id
        in: path
        required: true
        schema:
          type: string
          title: League Id
        description: League UUID
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security: []
    servers:
    - url: https://alpha-bazaar-signal-server.onrender.com
      description: Production
    - url: https://dev-alpha-bazaar-signal-server.onrender.com
      description: Staging
  /api/leagues/custom/{league_id}/enroll:
    post:
      tags:
      - Leagues
      summary: Enroll In League
      description: Enroll current user in a league
      operationId: enroll_in_league_api_leagues_custom__league_id__enroll_post
      security: []
      parameters:
      - name: league_id
        in: path
        required: true
        schema:
          type: string
          title: League Id
        description: League UUID
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
    servers:
    - url: https://alpha-bazaar-signal-server.onrender.com
      description: Production
    - url: https://dev-alpha-bazaar-signal-server.onrender.com
      description: Staging
  /api/leagues/my-custom:
    get:
      tags:
      - Leagues
      summary: Get My Leagues
      description: Get current user's enrolled leagues
      operationId: get_my_leagues_api_leagues_my_custom_get
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
      security: []
    servers:
    - url: https://alpha-bazaar-signal-server.onrender.com
      description: Production
    - url: https://dev-alpha-bazaar-signal-server.onrender.com
      description: Staging
  /api/leagues/custom/{league_id}/leaderboard:
    get:
      tags:
      - Leagues
      summary: Get League Leaderboard
      description: Get leaderboard for a specific league
      operationId: get_league_leaderboard_api_leagues_custom__league_id__leaderboard_get
      parameters:
      - name: league_id
        in: path
        required: true
        schema:
          type: string
          title: League Id
        description: League UUID
      - name: limit
        in: query
        required: false
        schema:
          anyOf:
          - type: integer
            maximum: 500
            minimum: 1
          - type: 'null'
          description: Results per page
          default: 100
          title: Limit
        description: Results per page
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security: []
    servers:
    - url: https://alpha-bazaar-signal-server.onrender.com
      description: Production
    - url: https://dev-alpha-bazaar-signal-server.onrender.com
      description: Staging
  /api/leagues/custom/{league_id}/participant/{user_id}/signals:
    get:
      tags:
      - Leagues
      summary: Get League Participant Signals
      description: 'Get league-specific signals for a participant with subscription gating.

        Returns signals with league snapshot prices and P&L.'
      operationId: get_league_participant_signals_api_leagues_custom__league_id__participant__user_id__signals_get
      parameters:
      - name: league_id
        in: path
        required: true
        schema:
          type: string
          title: League Id
        description: League UUID
      - name: user_id
        in: path
        required: true
        schema:
          type: string
          description: User UUID
          title: User Id
        description: User UUID
      - name: authorization
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Authorization
        description: JWT bearer token
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security: []
    servers:
    - url: https://alpha-bazaar-signal-server.onrender.com
      description: Production
    - url: https://dev-alpha-bazaar-signal-server.onrender.com
      description: Staging
  /api/leagues/cleanup-orphaned-snapshots:
    post:
      tags:
      - Leagues
      summary: Cleanup Orphaned Snapshots
      description: 'Admin utility: Remove league snapshots referencing deleted signals.

        This cleans up orphaned snapshots that may have been created before a signal was canceled.'
      operationId: cleanup_orphaned_snapshots_api_leagues_cleanup_orphaned_snapshots_post
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
      security: []
    servers:
    - url: https://alpha-bazaar-signal-server.onrender.com
      description: Production
    - url: https://dev-alpha-bazaar-signal-server.onrender.com
      description: Staging
components:
  schemas:
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
            - type: string
            - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
      - loc
      - msg
      - type
      title: ValidationError
  securitySchemes:
    HTTPBearer:
      type: http
      scheme: bearer
externalDocs:
  description: Agent integration guide and full API docs
  url: https://www.alphabazaar.ai/llms-full.txt
x-refined-from:
- alphabazaar-ai-openapi.yml
- openapi.json