Phabricator with GitLab CI/CD

How can I configure gitlab to post the pipeline status to Phabricator?

There is an API on phabricator - harbormaster.sendmessage, via which the Pipeline result can be updated. And I can do that via API calls, manually.

But, how do I send or trigger this API call once the pipeline completes. How can I configure GitLab to make a call or take some action post every pipeline execution ?