Add API endpoint for buildconfig