REST API, Get project history, fails to return specified startBuildId

Dale Phurrough's Avatar

Dale Phurrough

17 Jul, 2019 12:33 PM

GET /api/projects/{accountName}/{projectSlug}/history?recordsNumber={records-per-page}[&startBuildId={buildId}&branch={branch}]
as doc'd at
fails to return a specified startBuildId.
Instead, the API returns the build previous in history the given startBuildId


  1. Create a history of builds
  2. Determine the unique buildId of one of those builds
  3. Query the above REST API defining recordsNumber=1, startBuildId=<your buildId of step 2>, branch=<branch of the build you chose>


You will get one build returned, the build before the buildId you specified.


The single build with the buildId you specified


None viable known. There is no other API which takes buildId as a parameter to return a build. It may be possible to query for all builds in the entire history of the project and then filter it with a tool like jq. However, this doesn't scale.

  1. Support Staff 1 Posted by Owen McDonnell on 18 Jul, 2019 04:46 PM

    Owen McDonnell's Avatar

    We are looking into this. It should be a pretty simple fix.
    There is an undocumented api call that you can use as a workaround to get at single build by ID for now. It's fairly straightforward.}/{projectSlug}/builds/{buildId}

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:


Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts


? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac