API functions (/api/recordings POST & GET)