Example for Atlassian Bamboo, running on port 8085.
curl -s -H “Content-Type:application/json” -H “Accept:application/json” -u user:pass -X GET http://localhost:8085/rest/api/latest/plan | jq
curl -s -H “Content-Type:application/json” -H “Accept:application/json” -u user:pass -X GET http://localhost:8085/rest/api/latest/plan/PLAN | jq
curl -s -H “Content-Type:application/json” -H “Accept:application/json” -u user:pass -X GET http://localhost:8085/rest/api/latest/plan/PLAN/branch | jq
curl -s -H “Content-Type:application/json” -H “Accept:application/json” -u user:pass -X GET http://localhost:8085/rest/api/latest/server | jq