Using status badges to monitor projects on BrowserStack.
Status Badge Types
You can use BrowserStack status badges to monitor the status of the latest build run within your project. You only to need to add a simple markdown or HTML code to your project site or README.
|Latest build ran successfully|
|Latest build has a session error|
|Latest build has a session timeout|
|A build is currently executing|
|Project doesn't have any builds|
|Bad request e.g. invalid key|
Adding a status badge to your project
Choose a project
Use our REST API to obtain the list of projects associated with your account.
curl -u "USERNAME:ACCESS_KEY" https://www.browserstack.com/automate/projects.json
From the list of available projects, select the project you want to display the badge for using its project id.
curl -u "USERNAME:ACCESS_KEY" https://www.browserstack.com/automate/projects/<project-id>.json
Obtain badge key
Obtain the status badge key for your project.
curl -u "USERNAME:ACCESS_KEY" https://www.browserstack.com/automate/projects/<project-id>/badge_key
Add to your project README
Add the following markdown to your project's README by replacing <badge_key> with the key you got in the previous section.
Alternatively, you can add the following HTML to your project site