simplify way to call api_headers