Use parameters to accept key and key-prefix instead of the URL.