recording api