api injection