The Accept request HTTP header indicates which content types, expressed as MIME types, the client is able to understand. The server (Slim) uses “content negotiation” to select one of the proposals and informs the client of the choice with the Content-Type response header.
Your API client has to set this value for this header based on the context of the request.
For example: Accept: application/json.