> ## Documentation Index
> Fetch the complete documentation index at: https://docs.softmax.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Get Division Leaderboards



## OpenAPI

````yaml https://softmax.com/api/observatory/openapi.json get /v2/divisions/{division_id}/leaderboards
openapi: 3.1.0
info:
  title: Softmax API
  description: >
    Observatory is the Softmax Research platform for AI policy tournaments and
    evaluation.

    Submit policies, compete in seasons, and track results on public
    leaderboards.


    ---


    ## Authentication


    Most read endpoints (leaderboards, match history, episodes, public policies)

    work without auth. Submitting policies or accessing your own data requires

    a Bearer token:


    ```

    Authorization: Bearer <your-token>

    ```


    To get a token, install [cogames](https://pypi.org/project/cogames/) and
    run:


    ```bash

    cogames auth login

    ```


    A `401` response means no token was provided. A `403` means the token

    is invalid or expired.


    ### Verify your token


    ```bash

    curl -H "Authorization: Bearer <your-token>" \
      https://softmax.com/api/observatory/whoami
    ```


    Returns `{"user_email": "you@example.com"}` on success.
  version: 1.0.0
servers:
  - url: https://softmax.com/api/observatory
security: []
paths:
  /v2/divisions/{division_id}/leaderboards:
    get:
      tags:
        - v2
        - v2
      summary: Get Division Leaderboards
      operationId: get_division_leaderboards_v2_divisions__division_id__leaderboards_get
      parameters:
        - name: division_id
          in: path
          required: true
          schema:
            type: string
            pattern: ^div_[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$
            title: Division Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                anyOf:
                  - $ref: '#/components/schemas/DivisionLeaderboardsPublic'
                  - type: 'null'
                title: >-
                  Response Get Division Leaderboards V2 Divisions  Division Id 
                  Leaderboards Get
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - BearerAuth: []
components:
  schemas:
    DivisionLeaderboardsPublic:
      properties:
        default_view_key:
          type: string
          title: Default View Key
        axes:
          items:
            $ref: '#/components/schemas/LeaderboardAxisPublic'
          type: array
          title: Axes
        views:
          items:
            $ref: '#/components/schemas/LeaderboardViewPublic'
          type: array
          title: Views
      type: object
      required:
        - default_view_key
        - axes
        - views
      title: DivisionLeaderboardsPublic
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    LeaderboardAxisPublic:
      properties:
        key:
          type: string
          title: Key
        label:
          anyOf:
            - type: string
            - type: 'null'
          title: Label
      type: object
      required:
        - key
      title: LeaderboardAxisPublic
    LeaderboardViewPublic:
      properties:
        key:
          type: string
          title: Key
        title:
          anyOf:
            - type: string
            - type: 'null'
          title: Title
        description:
          anyOf:
            - type: string
            - type: 'null'
          title: Description
        primary_column:
          anyOf:
            - type: string
            - type: 'null'
          title: Primary Column
        axis_values:
          additionalProperties:
            type: string
          type: object
          title: Axis Values
        columns:
          items:
            $ref: '#/components/schemas/LeaderboardColumnPublic'
          type: array
          title: Columns
        rows:
          items:
            $ref: '#/components/schemas/LeaderboardRowPublic'
          type: array
          title: Rows
      type: object
      required:
        - key
        - axis_values
        - columns
        - rows
      title: LeaderboardViewPublic
    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
    LeaderboardColumnPublic:
      properties:
        key:
          type: string
          title: Key
        label:
          anyOf:
            - type: string
            - type: 'null'
          title: Label
        value_type:
          type: string
          enum:
            - number
            - integer
            - string
            - boolean
            - percent
          title: Value Type
          default: number
        sort:
          anyOf:
            - type: string
              enum:
                - asc
                - desc
            - type: 'null'
          title: Sort
      type: object
      required:
        - key
      title: LeaderboardColumnPublic
    LeaderboardRowPublic:
      properties:
        subject_type:
          type: string
          title: Subject Type
          default: player
        subject_id:
          type: string
          title: Subject Id
        subject_name:
          anyOf:
            - type: string
            - type: 'null'
          title: Subject Name
        values:
          additionalProperties:
            anyOf:
              - type: string
              - type: integer
              - type: number
              - type: boolean
              - type: 'null'
          type: object
          title: Values
        policy_version_ids:
          items:
            type: string
            format: uuid
          type: array
          uniqueItems: true
          title: Policy Version Ids
        recent_rounds:
          anyOf:
            - items:
                $ref: '#/components/schemas/LeaderboardRecentRoundPublic-Output'
              type: array
            - type: 'null'
          title: Recent Rounds
      type: object
      required:
        - subject_id
        - values
      title: LeaderboardRowPublic
    LeaderboardRecentRoundPublic-Output:
      properties:
        id:
          type: string
          title: Id
        round_number:
          type: integer
          title: Round Number
        status:
          $ref: '#/components/schemas/RoundStatus'
        rank:
          anyOf:
            - type: integer
            - type: 'null'
          title: Rank
        score:
          anyOf:
            - type: number
            - type: 'null'
          title: Score
        episode_wins:
          anyOf:
            - type: number
            - type: 'null'
          title: Episode Wins
        episodes_played:
          anyOf:
            - type: integer
            - type: 'null'
          title: Episodes Played
        started_at:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Started At
        completed_at:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Completed At
        policy_version_id:
          anyOf:
            - type: string
              format: uuid
            - type: 'null'
          title: Policy Version Id
      type: object
      required:
        - id
        - round_number
        - status
        - rank
        - started_at
        - completed_at
      title: LeaderboardRecentRoundPublic
    RoundStatus:
      type: string
      enum:
        - pending
        - claimed
        - running
        - completed
        - failed
        - cancelled
      title: RoundStatus
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      description: Bearer token issued by Softmax

````