Is it possible to create an action that involves the use of a Photoshop plugin
If I understand correctly it depends on whether the plugin-makers made the effort to enable just that.
and use the recorded action within the Photoshop api?
What do you mean exactly?