One more update: everything’s prepared now for the release of the API. It will be a very minimal first release, but hopefully we’ll be able to iterate on it and add the most demanded new endpoints quickly.
The API will only work with “personal access tokens” for now, which is already implemented in bitrise.io but the UI to register and manage tokens is still pending review - should be deployed in a couple of days.
Once the access token management is available on bitrise.io we’ll create a new topic for the API here on discuss.bitrise.io and I’ll link it here. Documentation of existing endpoints will be published and updated there, in the separate discussion topic.
In the meantime if you have any questions, notes, comments or feedback just let us know here!
It looks like the /me and /me/apps endpoints are working for me, but not the /me/apps/xx/builds endpoint (where I have replaced xx with the output from /me/apps). Is that expected?
Please keep in mind that this is work in progress, new endpoints will be added soon. There are still a couple of technical details we have to talk though, but we think that the base structure of the API is sufficient to build upon.
If you have any questions feel free to ask here, or leave a comment at the API docs topic.
This is already super useful and thanks for the public beta !
Could i bother you to add asap the following endpoint:
GET /apps/{APP-SLUG}/builds/{BUILD-SLUG}
My use case is as follow: I use the trigger API to start a build, which give me back the BUILD-SLUG and I want to query the build status of that build specifically. At the moment, I have to retrieve the list of builds of the app and then find my build inside it which is a waste of resources and bandwidth on both sides.
Hi,
Would it be possible to add a little more info about the commit from thich the build was triggered? Just a simple addition with author’s data besides just the commit hash?
Currently we have commit_hash returned from Bitrise’s API.
I’d love to also get, if it’s a repo that supports it (git for example), commit’s
Author and Date fields.
By the way, would it be possible to get latest builds of all apps associated with the token? Or is it a performance issue?
This is just so I don’t query the API for every app’s slug every time I want to get an overview.
The /apps endpoint returns infos for all apps, but indeed that does not include any info about the latest build. It most likely won’t, because what infos you need about every app depends on what you need it for, can be quite different for different use cases.
That said we’ll provide API endpoints to quickly query a specific app’s latest build infos. You’ll still have to call that for every app, but you’ll be able to parameterize it, e.g. to get the latest build on a specific branch, including or excluding PRs, etc.