Codebase Community API

Builder leaderboard, gallery, upvotes.

GitHub OpenAPI

Operations 7

GET /api/v1/community/leaderboard Builder leaderboard, ranked by score desc #
GET /api/v1/community/builders/{id} One builder's profile + featured build #
GET /api/v1/community/me/votes List the project ids the authenticated viewer has upvoted #
POST /api/v1/community/projects/{id}/upvote Toggle an upvote on a published project #
POST /api/v1/community/publish Publish a project to the community gallery #
POST /api/v1/community/unpublish Unpublish a project from the community gallery #
PATCH /api/v1/community/me/alias Change the authenticated builder's public alias #

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/codebase-design:codebase-design-community-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

codebase-design-community-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Codebase Design Community API
  version: 1.0.0
  contact:
    email: admin@aipowergrid.io
  description: 'Operations tagged Community across 2 of this provider''s published API definitions: codebase-design-openapi.json, codebase-design-openapi.yml. Each path carries the servers of the definition it was published in.'
servers:
- url: http://localhost:3001
  description: Current
- url: https://dev.codebase.design
  description: Development
- url: https://staging.codebase.design
  description: Staging
- url: https://codebase.design
  description: Production
security:
- ApiKeyAuth: []
- BearerAuth: []
tags:
- name: Community
  description: Builder leaderboard, gallery, upvotes.
paths:
  /api/v1/community/leaderboard:
    get:
      summary: Builder leaderboard, ranked by score desc
      description: 'Returns the top N builders. Anonymous read; pass an API key only if

        you need `viewerHasVoted` annotations on featured-build rows.'
      tags:
      - Community
      security: []
      parameters:
      - in: query
        name: limit
        schema:
          type: integer
          default: 50
          maximum: 100
      responses:
        '200':
          description: Leaderboard rows
          content:
            application/json:
              schema:
                type: object
                properties:
                  rows:
                    type: array
                    items:
                      $ref: '#/components/schemas/CommunityLeaderboardRow'
                  totals:
                    type: object
                    properties:
                      builders:
                        type: integer
                      publishedBuilds:
                        type: integer
                      weightedUpvotes:
                        type: integer
        '503':
          description: Community API not available
      x-codeSamples:
      - lang: TypeScript
        label: TypeScript
        source: "// No authentication required.\n\nconst res = await fetch('https://codebase.design/api/v1/community/leaderboard?limit=50', {\n  method: 'GET',\n  headers: {\n    'Content-Type': 'application/json',\n  }\n});\n\nif (!res.ok) throw new Error(`${res.status} ${await res.text()}`);\nconst data = await res.json();\nconsole.log(data);"
      - lang: Python
        label: Python
        source: "import os\nimport requests\n\n# No authentication required.\n\nresponse = requests.get(\n    'https://codebase.design/api/v1/community/leaderboard?limit=50',\n    headers={\n        'Content-Type': 'application/json',\n    }\n)\nresponse.raise_for_status()\nprint(response.json())"
      - lang: Rust
        label: Rust
        source: "// Cargo.toml:\n//   reqwest    = { version = \"0.12\", features = [\"json\"] }\n//   serde_json = \"1\"\n//   tokio      = { version = \"1\", features = [\"full\"] }\n\nuse std::env;\n\n#[tokio::main]\nasync fn main() -> Result<(), Box<dyn std::error::Error>> {\n    let client = reqwest::Client::new();\n\n    let res = client\n        .get(\"https://codebase.design/api/v1/community/leaderboard?limit=50\")\n        .header(\"Content-Type\", \"application/json\")\n        .send()\n        .await?;\n\n    let data: serde_json::Value = res.json().await?;\n    println!(\"{:#?}\", data);\n    Ok(())\n}"
      operationId: getApiV1CommunityLeaderboard
      x-operation-id-source: derived
    servers:
    - url: http://localhost:3001
      description: Current
    - url: http://localhost:3001
      description: Local development
    - url: https://dev.codebase.design
      description: Development
    - url: https://staging.codebase.design
      description: Staging
    - url: https://codebase.design
      description: Production
  /api/v1/community/builders/{id}:
    get:
      summary: One builder's profile + featured build
      tags:
      - Community
      security: []
      parameters:
      - in: path
        name: id
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Builder profile
        '404':
          description: Builder not found
        '503':
          description: Community API not available
      x-codeSamples:
      - lang: TypeScript
        label: TypeScript
        source: "// No authentication required.\n\nconst res = await fetch('https://codebase.design/api/v1/community/builders/YOUR_ID', {\n  method: 'GET',\n  headers: {\n    'Content-Type': 'application/json',\n  }\n});\n\nif (!res.ok) throw new Error(`${res.status} ${await res.text()}`);\nconst data = await res.json();\nconsole.log(data);"
      - lang: Python
        label: Python
        source: "import os\nimport requests\n\n# No authentication required.\n\nresponse = requests.get(\n    'https://codebase.design/api/v1/community/builders/YOUR_ID',\n    headers={\n        'Content-Type': 'application/json',\n    }\n)\nresponse.raise_for_status()\nprint(response.json())"
      - lang: Rust
        label: Rust
        source: "// Cargo.toml:\n//   reqwest    = { version = \"0.12\", features = [\"json\"] }\n//   serde_json = \"1\"\n//   tokio      = { version = \"1\", features = [\"full\"] }\n\nuse std::env;\n\n#[tokio::main]\nasync fn main() -> Result<(), Box<dyn std::error::Error>> {\n    let client = reqwest::Client::new();\n\n    let res = client\n        .get(\"https://codebase.design/api/v1/community/builders/YOUR_ID\")\n        .header(\"Content-Type\", \"application/json\")\n        .send()\n        .await?;\n\n    let data: serde_json::Value = res.json().await?;\n    println!(\"{:#?}\", data);\n    Ok(())\n}"
      operationId: getApiV1CommunityBuildersById
      x-operation-id-source: derived
    servers:
    - url: http://localhost:3001
      description: Current
    - url: http://localhost:3001
      description: Local development
    - url: https://dev.codebase.design
      description: Development
    - url: https://staging.codebase.design
      description: Staging
    - url: https://codebase.design
      description: Production
  /api/v1/community/me/votes:
    get:
      summary: List the project ids the authenticated viewer has upvoted
      tags:
      - Community
      security:
      - ApiKeyAuth: []
      responses:
        '200':
          description: Vote set
          content:
            application/json:
              schema:
                type: object
                properties:
                  projectIds:
                    type: array
                    items:
                      type: string
        '401':
          $ref: '#/components/responses/Unauthorized'
        '503':
          description: Community API not available
      x-codeSamples:
      - lang: TypeScript
        label: TypeScript
        source: "// Auth: X-API-Key header.\nconst apiKey = process.env.CODEBASE_API_KEY!;\n\nconst res = await fetch('https://codebase.design/api/v1/community/me/votes', {\n  method: 'GET',\n  headers: {\n    'X-API-Key': apiKey,\n    'Content-Type': 'application/json',\n  }\n});\n\nif (!res.ok) throw new Error(`${res.status} ${await res.text()}`);\nconst data = await res.json();\nconsole.log(data);"
      - lang: Python
        label: Python
        source: "import os\nimport requests\n\napi_key = os.environ['CODEBASE_API_KEY']\n\nresponse = requests.get(\n    'https://codebase.design/api/v1/community/me/votes',\n    headers={\n        'X-API-Key': api_key,\n        'Content-Type': 'application/json',\n    }\n)\nresponse.raise_for_status()\nprint(response.json())"
      - lang: Rust
        label: Rust
        source: "// Cargo.toml:\n//   reqwest    = { version = \"0.12\", features = [\"json\"] }\n//   serde_json = \"1\"\n//   tokio      = { version = \"1\", features = [\"full\"] }\n\nuse std::env;\n\n#[tokio::main]\nasync fn main() -> Result<(), Box<dyn std::error::Error>> {\n    let api_key = env::var(\"CODEBASE_API_KEY\")?;\n    let client = reqwest::Client::new();\n\n    let res = client\n        .get(\"https://codebase.design/api/v1/community/me/votes\")\n        .header(\"X-API-Key\", api_key)\n        .header(\"Content-Type\", \"application/json\")\n        .send()\n        .await?;\n\n    let data: serde_json::Value = res.json().await?;\n    println!(\"{:#?}\", data);\n    Ok(())\n}"
      operationId: getApiV1CommunityMeVotes
      x-operation-id-source: derived
    servers:
    - url: http://localhost:3001
      description: Current
    - url: http://localhost:3001
      description: Local development
    - url: https://dev.codebase.design
      description: Development
    - url: https://staging.codebase.design
      description: Staging
    - url: https://codebase.design
      description: Production
  /api/v1/community/projects/{id}/upvote:
    post:
      summary: Toggle an upvote on a published project
      description: 'Idempotent on `(voter_id, project_id)` — calling twice removes the prior vote.

        The vote weight is server-derived from the caller''s plan tier and role;

        free-tier callers receive 403 `insufficient_plan`.'
      tags:
      - Community
      security:
      - ApiKeyAuth: []
      parameters:
      - in: path
        name: id
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Vote toggled
        '400':
          description: Self-vote forbidden
          or project missing: null
        '403':
          description: Insufficient plan
        '429':
          description: Rate limit exceeded
        '503':
          description: Community API not available
      x-codeSamples:
      - lang: TypeScript
        label: TypeScript
        source: "// Auth: X-API-Key header.\nconst apiKey = process.env.CODEBASE_API_KEY!;\n\nconst res = await fetch('https://codebase.design/api/v1/community/projects/YOUR_ID/upvote', {\n  method: 'POST',\n  headers: {\n    'X-API-Key': apiKey,\n    'Content-Type': 'application/json',\n  }\n});\n\nif (!res.ok) throw new Error(`${res.status} ${await res.text()}`);\nconst data = await res.json();\nconsole.log(data);"
      - lang: Python
        label: Python
        source: "import os\nimport requests\n\napi_key = os.environ['CODEBASE_API_KEY']\n\nresponse = requests.post(\n    'https://codebase.design/api/v1/community/projects/YOUR_ID/upvote',\n    headers={\n        'X-API-Key': api_key,\n        'Content-Type': 'application/json',\n    }\n)\nresponse.raise_for_status()\nprint(response.json())"
      - lang: Rust
        label: Rust
        source: "// Cargo.toml:\n//   reqwest    = { version = \"0.12\", features = [\"json\"] }\n//   serde_json = \"1\"\n//   tokio      = { version = \"1\", features = [\"full\"] }\n\nuse std::env;\n\n#[tokio::main]\nasync fn main() -> Result<(), Box<dyn std::error::Error>> {\n    let api_key = env::var(\"CODEBASE_API_KEY\")?;\n    let client = reqwest::Client::new();\n\n    let res = client\n        .post(\"https://codebase.design/api/v1/community/projects/YOUR_ID/upvote\")\n        .header(\"X-API-Key\", api_key)\n        .header(\"Content-Type\", \"application/json\")\n        .send()\n        .await?;\n\n    let data: serde_json::Value = res.json().await?;\n    println!(\"{:#?}\", data);\n    Ok(())\n}"
      operationId: postApiV1CommunityProjectsByIdUpvote
      x-operation-id-source: derived
    servers:
    - url: http://localhost:3001
      description: Current
    - url: http://localhost:3001
      description: Local development
    - url: https://dev.codebase.design
      description: Development
    - url: https://staging.codebase.design
      description: Staging
    - url: https://codebase.design
      description: Production
  /api/v1/community/publish:
    post:
      summary: Publish a project to the community gallery
      description: 'Mirrors `/api/v1/gallery/publish`; the gallery route remains the

        canonical write path.'
      tags:
      - Community
      security:
      - ApiKeyAuth: []
      responses:
        '503':
          description: Community API not available
      x-codeSamples:
      - lang: TypeScript
        label: TypeScript
        source: "// Auth: X-API-Key header.\nconst apiKey = process.env.CODEBASE_API_KEY!;\n\nconst res = await fetch('https://codebase.design/api/v1/community/publish', {\n  method: 'POST',\n  headers: {\n    'X-API-Key': apiKey,\n    'Content-Type': 'application/json',\n  }\n});\n\nif (!res.ok) throw new Error(`${res.status} ${await res.text()}`);\nconst data = await res.json();\nconsole.log(data);"
      - lang: Python
        label: Python
        source: "import os\nimport requests\n\napi_key = os.environ['CODEBASE_API_KEY']\n\nresponse = requests.post(\n    'https://codebase.design/api/v1/community/publish',\n    headers={\n        'X-API-Key': api_key,\n        'Content-Type': 'application/json',\n    }\n)\nresponse.raise_for_status()\nprint(response.json())"
      - lang: Rust
        label: Rust
        source: "// Cargo.toml:\n//   reqwest    = { version = \"0.12\", features = [\"json\"] }\n//   serde_json = \"1\"\n//   tokio      = { version = \"1\", features = [\"full\"] }\n\nuse std::env;\n\n#[tokio::main]\nasync fn main() -> Result<(), Box<dyn std::error::Error>> {\n    let api_key = env::var(\"CODEBASE_API_KEY\")?;\n    let client = reqwest::Client::new();\n\n    let res = client\n        .post(\"https://codebase.design/api/v1/community/publish\")\n        .header(\"X-API-Key\", api_key)\n        .header(\"Content-Type\", \"application/json\")\n        .send()\n        .await?;\n\n    let data: serde_json::Value = res.json().await?;\n    println!(\"{:#?}\", data);\n    Ok(())\n}"
      operationId: postApiV1CommunityPublish
      x-operation-id-source: derived
    servers:
    - url: http://localhost:3001
      description: Current
    - url: http://localhost:3001
      description: Local development
    - url: https://dev.codebase.design
      description: Development
    - url: https://staging.codebase.design
      description: Staging
    - url: https://codebase.design
      description: Production
  /api/v1/community/unpublish:
    post:
      summary: Unpublish a project from the community gallery
      tags:
      - Community
      security:
      - ApiKeyAuth: []
      responses:
        '503':
          description: Community API not available
      x-codeSamples:
      - lang: TypeScript
        label: TypeScript
        source: "// Auth: X-API-Key header.\nconst apiKey = process.env.CODEBASE_API_KEY!;\n\nconst res = await fetch('https://codebase.design/api/v1/community/unpublish', {\n  method: 'POST',\n  headers: {\n    'X-API-Key': apiKey,\n    'Content-Type': 'application/json',\n  }\n});\n\nif (!res.ok) throw new Error(`${res.status} ${await res.text()}`);\nconst data = await res.json();\nconsole.log(data);"
      - lang: Python
        label: Python
        source: "import os\nimport requests\n\napi_key = os.environ['CODEBASE_API_KEY']\n\nresponse = requests.post(\n    'https://codebase.design/api/v1/community/unpublish',\n    headers={\n        'X-API-Key': api_key,\n        'Content-Type': 'application/json',\n    }\n)\nresponse.raise_for_status()\nprint(response.json())"
      - lang: Rust
        label: Rust
        source: "// Cargo.toml:\n//   reqwest    = { version = \"0.12\", features = [\"json\"] }\n//   serde_json = \"1\"\n//   tokio      = { version = \"1\", features = [\"full\"] }\n\nuse std::env;\n\n#[tokio::main]\nasync fn main() -> Result<(), Box<dyn std::error::Error>> {\n    let api_key = env::var(\"CODEBASE_API_KEY\")?;\n    let client = reqwest::Client::new();\n\n    let res = client\n        .post(\"https://codebase.design/api/v1/community/unpublish\")\n        .header(\"X-API-Key\", api_key)\n        .header(\"Content-Type\", \"application/json\")\n        .send()\n        .await?;\n\n    let data: serde_json::Value = res.json().await?;\n    println!(\"{:#?}\", data);\n    Ok(())\n}"
      operationId: postApiV1CommunityUnpublish
      x-operation-id-source: derived
    servers:
    - url: http://localhost:3001
      description: Current
    - url: http://localhost:3001
      description: Local development
    - url: https://dev.codebase.design
      description: Development
    - url: https://staging.codebase.design
      description: Staging
    - url: https://codebase.design
      description: Production
  /api/v1/community/me/alias:
    patch:
      summary: Change the authenticated builder's public alias
      tags:
      - Community
      security:
      - ApiKeyAuth: []
      responses:
        '503':
          description: Community API not available
      x-codeSamples:
      - lang: TypeScript
        label: TypeScript
        source: "// Auth: X-API-Key header.\nconst apiKey = process.env.CODEBASE_API_KEY!;\n\nconst res = await fetch('https://codebase.design/api/v1/community/me/alias', {\n  method: 'PATCH',\n  headers: {\n    'X-API-Key': apiKey,\n    'Content-Type': 'application/json',\n  }\n});\n\nif (!res.ok) throw new Error(`${res.status} ${await res.text()}`);\nconst data = await res.json();\nconsole.log(data);"
      - lang: Python
        label: Python
        source: "import os\nimport requests\n\napi_key = os.environ['CODEBASE_API_KEY']\n\nresponse = requests.patch(\n    'https://codebase.design/api/v1/community/me/alias',\n    headers={\n        'X-API-Key': api_key,\n        'Content-Type': 'application/json',\n    }\n)\nresponse.raise_for_status()\nprint(response.json())"
      - lang: Rust
        label: Rust
        source: "// Cargo.toml:\n//   reqwest    = { version = \"0.12\", features = [\"json\"] }\n//   serde_json = \"1\"\n//   tokio      = { version = \"1\", features = [\"full\"] }\n\nuse std::env;\n\n#[tokio::main]\nasync fn main() -> Result<(), Box<dyn std::error::Error>> {\n    let api_key = env::var(\"CODEBASE_API_KEY\")?;\n    let client = reqwest::Client::new();\n\n    let res = client\n        .patch(\"https://codebase.design/api/v1/community/me/alias\")\n        .header(\"X-API-Key\", api_key)\n        .header(\"Content-Type\", \"application/json\")\n        .send()\n        .await?;\n\n    let data: serde_json::Value = res.json().await?;\n    println!(\"{:#?}\", data);\n    Ok(())\n}"
      operationId: patchApiV1CommunityMeAlias
      x-operation-id-source: derived
    servers:
    - url: http://localhost:3001
      description: Current
    - url: http://localhost:3001
      description: Local development
    - url: https://dev.codebase.design
      description: Development
    - url: https://staging.codebase.design
      description: Staging
    - url: https://codebase.design
      description: Production
components:
  schemas:
    CommunityFeaturedBuild:
      type:
      - object
      - 'null'
      properties:
        projectId:
          type: string
        title:
          type: string
        description:
          type: string
        tags:
          type: array
          items:
            type: string
        publishedAt:
          type: integer
          format: int64
          description: epoch ms
        viewCount:
          type: integer
        forkCount:
          type: integer
        weightedUpvotes:
          type: integer
          format: int64
        viewerHasVoted:
          type: boolean
          description: Present only when authenticated
    CommunityLeaderboardRow:
      type: object
      properties:
        rank:
          type: integer
        builderId:
          type: string
        alias:
          type: string
          maxLength: 28
        planId:
          type: string
          enum:
          - free
          - starter
          - builder
          - pro
          - team
          - founder
        voteWeight:
          type: integer
          minimum: 0
          maximum: 5
        tokensUsed:
          type: integer
          format: int64
        completedProjects:
          type: integer
        publishedBuilds:
          type: integer
        weightedUpvotes:
          type: integer
          format: int64
        upvoteCount:
          type: integer
        score:
          type: integer
          format: int64
          description: round(tokens/1000) + completed*250 + weighted_upvotes*100
        featuredBuild:
          $ref: '#/components/schemas/CommunityFeaturedBuild'
  responses:
    Unauthorized:
      description: Missing or invalid authentication
      content:
        application/json:
          schema:
            type: object
            properties:
              error:
                type: string
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-API-Key
      description: Revocable API key (cb_live_... or cb_test_...)
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: OAuth2 access token
x-refined-from:
- codebase-design-openapi.json
- codebase-design-openapi.yml