get_headers function

Get headers for API requests