---
id: builds
title: "Gets all available builds for a project's version."
description: "Gets all available builds for a project's version."
sidebar_label: "Gets all available builds for a project's version."
hide_title: true
hide_table_of_contents: true
api:  
sidebar_class_name: "get api-method"
info_path: wiki/api/downloads.geysermc.org/downloads-api
custom_edit_url: null
---

import ApiTabs from "@theme/ApiTabs";
import DiscriminatorTabs from "@theme/DiscriminatorTabs";
import MethodEndpoint from "@theme/ApiExplorer/MethodEndpoint";
import SecuritySchemes from "@theme/ApiExplorer/SecuritySchemes";
import MimeTabs from "@theme/MimeTabs";
import ParamsItem from "@theme/ParamsItem";
import ResponseSamples from "@theme/ResponseSamples";
import SchemaItem from "@theme/SchemaItem";
import SchemaTabs from "@theme/SchemaTabs";
import Markdown from "@theme/Markdown";
import Heading from "@theme/Heading";
import OperationTabs from "@theme/OperationTabs";
import TabItem from "@theme/TabItem";

<Heading
  as={"h1"}
  className={"openapi__heading"}
  children={"Gets all available builds for a project's version."}
>
</Heading>

<MethodEndpoint
  method={"get"}
  path={"/v2/projects/{project}/versions/{version}/builds"}
>
  
</MethodEndpoint>



Gets all available builds for a project's version.

<Heading
  id={"request"}
  as={"h2"}
  className={"openapi-tabs__heading"}
  children={"Request"}
>
</Heading>

<details
  style={{"marginBottom":"1rem"}}
  className={"openapi-markdown__details"}
  data-collapsed={false}
  open={true}
>
  <summary
    style={{}}
  >
    <h3
      className={"openapi-markdown__details-summary-header-params"}
    >
      Path Parameters
    </h3>
  </summary><div>
    <ul>
      <ParamsItem
        className={"paramsItem"}
        param={{"name":"project","in":"path","description":"The project identifier.","required":true,"schema":{"pattern":"[a-z]+","type":"string"},"example":"geyser"}}
      >
        
      </ParamsItem><ParamsItem
        className={"paramsItem"}
        param={{"name":"version","in":"path","description":"A version of the project.","required":true,"schema":{"pattern":"(?:latest|[0-9.]+-?(?:pre|SNAPSHOT)?(?:[0-9.]+)?)?","type":"string"}}}
      >
        
      </ParamsItem>
    </ul>
  </div>
</details><div>
  <div>
    <ApiTabs
      label={undefined}
      id={undefined}
    >
      <TabItem
        label={"200"}
        value={"200"}
      >
        <div>
          
          
          OK
          
          
        </div><div>
          <MimeTabs
            className={"openapi-tabs__mime"}
            schemaType={"response"}
          >
            <TabItem
              label={"application/json"}
              value={"application/json"}
            >
              <SchemaTabs
                className={"openapi-tabs__schema"}
              >
                <TabItem
                  label={"Schema"}
                  value={"Schema"}
                >
                  <details
                    style={{}}
                    className={"openapi-markdown__details response"}
                    data-collapsed={false}
                    open={true}
                  >
                    <summary
                      style={{}}
                      className={"openapi-markdown__details-summary-response"}
                    >
                      <strong>
                        Schema
                      </strong>
                    </summary><div
                      style={{"textAlign":"left","marginLeft":"1rem"}}
                    >
                      
                    </div><ul
                      style={{"marginLeft":"1rem"}}
                    >
                      <SchemaItem
                        collapsible={false}
                        name={"project_id"}
                        required={false}
                        schemaName={"string"}
                        qualifierMessage={"**Possible values:** Value must match regular expression `[a-z]+`"}
                        schema={{"pattern":"[a-z]+","type":"string","example":"geyser"}}
                      >
                        
                      </SchemaItem><SchemaItem
                        collapsible={false}
                        name={"project_name"}
                        required={false}
                        schemaName={"string"}
                        qualifierMessage={undefined}
                        schema={{"type":"string","example":"Geyser"}}
                      >
                        
                      </SchemaItem><SchemaItem
                        collapsible={false}
                        name={"version"}
                        required={false}
                        schemaName={"string"}
                        qualifierMessage={"**Possible values:** Value must match regular expression `(?:latest|[0-9.]+-?(?:pre|SNAPSHOT)?(?:[0-9.]+)?)?`"}
                        schema={{"pattern":"(?:latest|[0-9.]+-?(?:pre|SNAPSHOT)?(?:[0-9.]+)?)?","type":"string","example":"2.1.0"}}
                      >
                        
                      </SchemaItem><SchemaItem
                        collapsible={true}
                        className={"schemaItem"}
                      >
                        <details
                          style={{}}
                          className={"openapi-markdown__details"}
                        >
                          <summary
                            style={{}}
                          >
                            <span
                              className={"openapi-schema__container"}
                            >
                              <strong
                                className={"openapi-schema__property"}
                              >
                                builds
                              </strong><span
                                className={"openapi-schema__name"}
                              >
                                 object[]
                              </span>
                            </span>
                          </summary><div
                            style={{"marginLeft":"1rem"}}
                          >
                            <li>
                              <div
                                style={{"fontSize":"var(--ifm-code-font-size)","opacity":"0.6","marginLeft":"-.5rem","paddingBottom":".5rem"}}
                              >
                                Array [
                              </div>
                            </li><SchemaItem
                              collapsible={false}
                              name={"build"}
                              required={false}
                              schemaName={"int32"}
                              qualifierMessage={"**Possible values:** Value must match regular expression `\\d+`"}
                              schema={{"pattern":"\\d+","type":"integer","format":"int32","example":30}}
                            >
                              
                            </SchemaItem><SchemaItem
                              collapsible={false}
                              name={"time"}
                              required={false}
                              schemaName={"date-time"}
                              qualifierMessage={undefined}
                              schema={{"type":"string","format":"date-time"}}
                            >
                              
                            </SchemaItem><SchemaItem
                              collapsible={false}
                              name={"channel"}
                              required={false}
                              schemaName={"string"}
                              qualifierMessage={"**Possible values:** [`default`, `experimental`]"}
                              schema={{"type":"string","enum":["default","experimental"]}}
                            >
                              
                            </SchemaItem><SchemaItem
                              collapsible={false}
                              name={"promoted"}
                              required={false}
                              schemaName={"boolean"}
                              qualifierMessage={undefined}
                              schema={{"type":"boolean"}}
                            >
                              
                            </SchemaItem><SchemaItem
                              collapsible={true}
                              className={"schemaItem"}
                            >
                              <details
                                style={{}}
                                className={"openapi-markdown__details"}
                              >
                                <summary
                                  style={{}}
                                >
                                  <span
                                    className={"openapi-schema__container"}
                                  >
                                    <strong
                                      className={"openapi-schema__property"}
                                    >
                                      changes
                                    </strong><span
                                      className={"openapi-schema__name"}
                                    >
                                       object[]
                                    </span>
                                  </span>
                                </summary><div
                                  style={{"marginLeft":"1rem"}}
                                >
                                  <li>
                                    <div
                                      style={{"fontSize":"var(--ifm-code-font-size)","opacity":"0.6","marginLeft":"-.5rem","paddingBottom":".5rem"}}
                                    >
                                      Array [
                                    </div>
                                  </li><SchemaItem
                                    collapsible={false}
                                    name={"commit"}
                                    required={false}
                                    schemaName={"string"}
                                    qualifierMessage={undefined}
                                    schema={{"type":"string"}}
                                  >
                                    
                                  </SchemaItem><SchemaItem
                                    collapsible={false}
                                    name={"summary"}
                                    required={false}
                                    schemaName={"string"}
                                    qualifierMessage={undefined}
                                    schema={{"type":"string"}}
                                  >
                                    
                                  </SchemaItem><SchemaItem
                                    collapsible={false}
                                    name={"message"}
                                    required={false}
                                    schemaName={"string"}
                                    qualifierMessage={undefined}
                                    schema={{"type":"string"}}
                                  >
                                    
                                  </SchemaItem><li>
                                    <div
                                      style={{"fontSize":"var(--ifm-code-font-size)","opacity":"0.6","marginLeft":"-.5rem"}}
                                    >
                                      ]
                                    </div>
                                  </li>
                                </div>
                              </details>
                            </SchemaItem><SchemaItem
                              collapsible={true}
                              className={"schemaItem"}
                            >
                              <details
                                style={{}}
                                className={"openapi-markdown__details"}
                              >
                                <summary
                                  style={{}}
                                >
                                  <span
                                    className={"openapi-schema__container"}
                                  >
                                    <strong
                                      className={"openapi-schema__property"}
                                    >
                                      downloads
                                    </strong><span
                                      className={"openapi-schema__name"}
                                    >
                                       object
                                    </span>
                                  </span>
                                </summary><div
                                  style={{"marginLeft":"1rem"}}
                                >
                                  <SchemaItem
                                    collapsible={true}
                                    className={"schemaItem"}
                                  >
                                    <details
                                      style={{}}
                                      className={"openapi-markdown__details"}
                                    >
                                      <summary
                                        style={{}}
                                      >
                                        <span
                                          className={"openapi-schema__container"}
                                        >
                                          <strong
                                            className={"openapi-schema__property"}
                                          >
                                            property name*
                                          </strong><span
                                            className={"openapi-schema__name"}
                                          >
                                             Download
                                          </span>
                                        </span>
                                      </summary><div
                                        style={{"marginLeft":"1rem"}}
                                      >
                                        <SchemaItem
                                          collapsible={false}
                                          name={"name"}
                                          required={false}
                                          schemaName={"string"}
                                          qualifierMessage={"**Possible values:** Value must match regular expression `[a-z0-9._-]+`"}
                                          schema={{"pattern":"[a-z0-9._-]+","type":"string","example":"Geyser-Spigot.jar"}}
                                        >
                                          
                                        </SchemaItem><SchemaItem
                                          collapsible={false}
                                          name={"sha256"}
                                          required={false}
                                          schemaName={"string"}
                                          qualifierMessage={"**Possible values:** Value must match regular expression `[a-f0-9]{64}`"}
                                          schema={{"pattern":"[a-f0-9]{64}","type":"string","example":"9ecc7374c2110a077f6c288fa4ad53a6812c09d5690dae0bc96508f939d4cb8a"}}
                                        >
                                          
                                        </SchemaItem>
                                      </div>
                                    </details>
                                  </SchemaItem>
                                </div>
                              </details>
                            </SchemaItem><li>
                              <div
                                style={{"fontSize":"var(--ifm-code-font-size)","opacity":"0.6","marginLeft":"-.5rem"}}
                              >
                                ]
                              </div>
                            </li>
                          </div>
                        </details>
                      </SchemaItem>
                    </ul>
                  </details>
                </TabItem><TabItem
                  label={"Example (from schema)"}
                  value={"Example (from schema)"}
                >
                  <ResponseSamples
                    responseExample={"{\n  \"project_id\": \"geyser\",\n  \"project_name\": \"Geyser\",\n  \"version\": \"2.1.0\",\n  \"builds\": [\n    {\n      \"build\": 30,\n      \"time\": \"2024-07-14T21:42:40.604Z\",\n      \"channel\": \"default\",\n      \"promoted\": true,\n      \"changes\": [\n        {\n          \"commit\": \"string\",\n          \"summary\": \"string\",\n          \"message\": \"string\"\n        }\n      ],\n      \"downloads\": {}\n    }\n  ]\n}"}
                    language={"json"}
                  >
                    
                  </ResponseSamples>
                </TabItem>
              </SchemaTabs>
            </TabItem>
          </MimeTabs>
        </div>
      </TabItem>
    </ApiTabs>
  </div>
</div>
      