rest api talks to dashboard