Add api for workspace

Add an api to access workspace. Implementation and tests to follow once we have finalized the api

@devoncarew @dinhviethoa