using env defined api url. defaulting to localhost:3000 url.