set headers for api