changed url to api.internal from localhost