Used API utility instead of resty.