Can build logstash input are API?

Sorry for the question.
I want to use Rest API as input for logstsh