Returns the handler for the threads endpoint. This handler can be used to create, retrieve, and delete threads.