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

# `GET /version` — build & release metadata.

> All fields except `version` are best-effort: they're populated from environment variables the release pipeline injects at compile time (`GITHUB_SHA`, `GITHUB_REF_NAME`, `STATESET_RELEASE_TAG`, `STATESET_BUILD_TIMESTAMP`, `STATESET_SIGNED`). Local `cargo build` runs leave the optional fields unset and `signed = false`, which the admin UI surfaces as 'this binary did not come from a verified release pipeline'.

All fields except `version` are best-effort: they're populated from
environment variables the release pipeline injects at compile time
(`GITHUB_SHA`, `GITHUB_REF_NAME`, `STATESET_RELEASE_TAG`,
`STATESET_BUILD_TIMESTAMP`, `STATESET_SIGNED`). Local `cargo build`
runs leave the optional fields unset and `signed = false`, which the
admin UI surfaces as 'this binary did not come from a verified
release pipeline'.

### Responses

<ResponseField name="200" type="VersionResponse">
  Build & release metadata
</ResponseField>

<RequestExample>
  ```bash cURL theme={null}
  curl --request GET \
    --url 'https://api.stateset.com/version' \
    --header 'Authorization: Bearer YOUR_API_KEY'
  ```
</RequestExample>

<ResponseExample>
  ```json 200 theme={null}
  {
    "built_at": null,
    "git_commit": null,
    "git_ref": null,
    "release_tag": null,
    "signed": true,
    "version": "string"
  }
  ```
</ResponseExample>
