HTTP 406 Not Acceptable means the server cannot generate a response matching the criteria given by the client's Accept, Accept-Language, Accept-Encoding, or Accept-Charset headers. The server can only return content in formats not listed in the request.
The client requested a content type the server does not support (e.g., Accept: application/xml when only JSON is available).
Use a less restrictive Accept header or include multiple acceptable types.
curl -H 'Accept: application/json, text/html, */*' https://api.example.com/resource
Consult the API documentation to find which content types the server can return.