API set-up