Moves api() to Response class