api-function url formatting