[api] Add ability to get properties by id

Fixes #4091