Created the api for the sse server.