Every endpoints supports a parameter named archived (boolean). It indicates wether archived elements should be returned or not. If you set the parameter to true, you'll get all archived elements.
If you want to get a specific task that is archived for example, you have to make a get request to /tasks/:taskId?archived=true. If you don't set the archived parameter to true, you'll get a 204 status code.