> 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.40.2"},"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 (for example github, azure-devops, or sfp-server)"},"name":{"type":"string","description":"Human-readable CI service name"},"buildUrl":{"type":"string","description":"URL to the CI build or server 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 pull request build"},"prNumber":{"type":"string","description":"Pull request number, when 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, and the optional `goal` query parameter:

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

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
