Integration with Perplexity like OpenAI

Has anyone figured out how to make Drafts work with Perplexity API like it does with OpenAI?

You can create a Drafts action that uses HTTP to send requests to Perplexity’s REST API.