Hi,
If you are talking about API exposed by NiFi, NiFi exposes a REST API:
https://nifi.apache.org/docs/nifi-docs/rest-api/index.html
If you want to develop your own processor in Java, this is easy and you may find interesting the following:
https://nifi.apache.org/docs/nifi-docs/html/developer-guide.html