> For the complete documentation index, see [llms.txt](https://docs.flxbl.io/flxbl/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.flxbl.io/flxbl/sfp-server/api-reference/builds.md).

# Builds

## Get build status with enriched package metadata

> Retrieves the latest build statuses ordered by commit date, with package metadata enriched from the package collection

```json
{"openapi":"3.0.0","info":{"title":"sfp server","version":"51.20.0"},"security":[{"access-token":[]}],"components":{"securitySchemes":{"access-token":{"scheme":"bearer","bearerFormat":"JWT","type":"http","in":"header"}},"schemas":{"BuildStatusResponseDto":{"type":"object","properties":{"builds":{"description":"List of builds with enriched package metadata","type":"array","items":{"$ref":"#/components/schemas/BuildStatusDto"}},"total":{"type":"number","description":"Total number of builds matching the query"},"hasMore":{"type":"boolean","description":"Whether more results are available"}},"required":["builds","total","hasMore"]},"BuildStatusDto":{"type":"object","properties":{"commitId":{"type":"string","description":"Git commit ID"},"commitMessage":{"type":"string","description":"Commit message"},"commitAuthor":{"type":"string","description":"Commit author"},"commitDate":{"type":"string","description":"Commit date"},"commitTimestamp":{"type":"number","description":"Commit timestamp (Unix epoch)"},"ciInfo":{"description":"CI run information","allOf":[{"$ref":"#/components/schemas/CIRunInfoDto"}]},"domains":{"type":"object","description":"Build data by domain","additionalProperties":true},"skipReason":{"type":"string","description":"Reason why the build was skipped"},"workflowStatus":{"type":"object","description":"Dispatch lifecycle of the build workflow (pending, completed, failed, cancelled, skipped)","additionalProperties":true},"firstSeenAt":{"type":"string","description":"First seen timestamp"},"lastUpdatedAt":{"type":"string","description":"Last updated timestamp"}},"required":["commitId","domains","firstSeenAt","lastUpdatedAt"]},"CIRunInfoDto":{"type":"object","properties":{"service":{"type":"string","description":"CI service identifier (e.g., github, azure-devops, gitlab, buildkite, sfp-server)"},"name":{"type":"string","description":"Human-readable CI service name"},"buildUrl":{"type":"string","description":"URL to the CI build/run"},"buildNumber":{"type":"string","description":"Build number or ID"},"job":{"type":"string","description":"Job name"},"branch":{"type":"string","description":"Branch being built"},"isPr":{"type":"boolean","description":"Whether this is a PR build"},"prNumber":{"type":"string","description":"PR number if applicable"}},"required":["service"]}}},"paths":{"/sfp/api/builds/status":{"get":{"operationId":"BuildsController_getBuildStatus","summary":"Get build status with enriched package metadata","description":"Retrieves the latest build statuses ordered by commit date, with package metadata enriched from the package collection","parameters":[{"name":"repositoryIdentifier","required":true,"in":"query","description":"Repository identifier (e.g., owner/repo)","schema":{"type":"string"}},{"name":"limit","required":false,"in":"query","description":"Maximum number of builds to return","schema":{"minimum":1,"maximum":100,"default":20,"type":"number"}},{"name":"offset","required":false,"in":"query","description":"Offset for pagination","schema":{"minimum":0,"default":0,"type":"number"}},{"name":"domain","required":false,"in":"query","description":"Filter by specific domain","schema":{"type":"string"}}],"responses":{"200":{"description":"Build status retrieved successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BuildStatusResponseDto"}}}},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden - Requires role: member, application"},"500":{"description":"Internal server error"}},"tags":["Builds"]}}}}
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.flxbl.io/flxbl/sfp-server/api-reference/builds.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
